Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add WorkNetFixture #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

merl111
Copy link

@merl111 merl111 commented Nov 25, 2022

  • WorkNetFixture allows you to define specific contracts which can then be used in a unit test with the state they currenlty have on the specified network (mainnet, testnet, etc.).

  • WorkNetConfig attribute: [WorkNetConfig("<RPC_NODE>", "<HEIGHT || latest>", "<PATH || tmp>", <PROTO_SETTINGS || null>)]

    • PATH is used to define the storage path for the prefetched state, default is the OS temp directory + "data".
  • PrefetchContract attribute: [PrefetchContract("<ON_CHAIN_CONTRACT_NAME>")]

- WorkNetFixture allows you to define specific contracts which can
  then be used in a unit test with the state they currenlty have on
  the specified network (mainnet, testnet, etc.).

- WorkNetConfig attribute:
  [WorkNetConfig("<RPC_NODE>", "<HEIGHT || latest>", "<PATH || tmp>", <PROTO_SETTINGS || null>)]
  * PATH is used to define the storage path for the prefetched state,
    default is the OS temp directory + "data".

- PrefetchContract attribute:
  [PrefetchContract("<ON_CHAIN_CONTRACT_NAME>")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant