You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to offer the developers a test suite for interacting with the pop chain extension. Luckily there is drink!.
Goal
Create an example contract (preferably with some logic around the api to see how what the devex is like - e.g. Error) using drink! for testing.
Steps
Fork the drink! repository with the following changes to make drink! mostly generic.
Move the required code from ink sandbox (e.g. the Sandbox trait) to the forked drink repository. This is not dependent of any ink code, see Cargo.toml`, so this should be straightforward. There are some useful macros that can be used as well.
Now in the pop-node repo we want to create a PopSandbox (here you can see how) which the developers can then use for their drink tests. One thing that I haven't tested yet is including the chain extension. The code says it handles it and there is also an example in the drink repository, so this should be doable.
When this all works we want to implement the example contract. This contract will be a very important exercise. Not only will we test the api, the error handling, the test suite, exposure to ink!, but also will be used for the first resource (most probably tutorial) for the pop api.
The text was updated successfully, but these errors were encountered:
We want to offer the developers a test suite for interacting with the pop chain extension. Luckily there is drink!.
Goal
Create an example contract (preferably with some logic around the api to see how what the devex is like - e.g.
Error
) using drink! for testing.Steps
Sandbox trait) to the forked drink repository. This is not dependent of any ink code, see
Cargo.toml`, so this should be straightforward. There are some useful macros that can be used as well.PopSandbox
(here you can see how) which the developers can then use for their drink tests. One thing that I haven't tested yet is including the chain extension. The code says it handles it and there is also an example in the drink repository, so this should be doable.The text was updated successfully, but these errors were encountered: