Skip to content

Commit

Permalink
♻️ Refactor Mock
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jan 21, 2025
1 parent 7ca037a commit 41555c7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/snekmate/utils/mocks/pausable_mock.vy
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ initializes: ps

# @dev We export (i.e. the runtime bytecode exposes these
# functions externally, allowing them to be called using
# the ABI encoding specification) all `external` functions
# from the `pausable` module. The built-in dunder method
# `__interface__` allows you to export all functions of a
# module without specifying the individual functions (see
# https://github.com/vyperlang/vyper/pull/3919). Please take
# note that if you do not know the full interface of a module
# contract, you can get the `.vyi` interface in Vyper by using
# `vyper -f interface your_filename.vy` or the external interface
# by using `vyper -f external_interface your_filename.vy`.
# the ABI encoding specification) the `external` getter
# function `paused` from the `pausable` module.
# @notice Please note that you must always also export (if
# required by the contract logic) `public` declared `constant`,
# `immutable`, and state variables, for which Vyper automatically
# generates an `external` getter function for the variable.
exports: ps.__interface__
exports: ps.paused


@deploy
Expand Down

0 comments on commit 41555c7

Please sign in to comment.