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

Create e2e tests for ink contracts #167

Closed
ashneverdawn opened this issue Mar 14, 2023 · 2 comments
Closed

Create e2e tests for ink contracts #167

ashneverdawn opened this issue Mar 14, 2023 · 2 comments
Labels

Comments

@ashneverdawn
Copy link
Contributor

ashneverdawn commented Mar 14, 2023

With ink4, contracts can have special e2e tests. These tests test against a running chain (for example using zombienet)

  • Allow 3 currencies for smart contracts
  • Fund smart contract deployer with various tokens
  • Compile erc20 contract with solang, then deploy with swanky (1 pure erc20 token?)
  • Deploy ink smart contracts with swanky: (3 different wrapped tokens)
  • Call all chain extensions through smart contracts (need special contract to test edge cases not covered by our wrapper contracts?)
  • Chain extensions should be thoroughly tested to make sure to not only succeed when supposed to, but also fail when they should.
  • Need a test to prove that ERC20 and ink token wrapper contracts are interoperable. Perhaps need to deploy a uniswapv2 clone? or a simple amm. To make sure ink token behaves exactly the same as ERC20 token.

(Needs more info: exact list of tests to create)

@ashneverdawn ashneverdawn converted this from a draft issue Mar 14, 2023
@ashneverdawn ashneverdawn self-assigned this Mar 14, 2023
@ashneverdawn ashneverdawn added the priority:medium Do it soon label Mar 14, 2023
@ashneverdawn ashneverdawn added this to the Rococo testnet milestone Mar 14, 2023
@vadaynujra
Copy link

@RustNinja please share your estimate or remove yourself from planning poker.

@ashneverdawn ashneverdawn changed the title Create script to test smart contracts and chain extensions Create e2e tests for ink contracts Apr 26, 2023
@ashneverdawn ashneverdawn removed their assignment Apr 26, 2023
@ashneverdawn
Copy link
Contributor Author

ashneverdawn commented Jul 20, 2023

Closing this ticket, since our wrapper contracts have since been rewritten in Solidity, so we no longer have access to this e2e_test feature of ink4. Instead, we would use the wasm-deploy tool to deploy and call testing contracts, which will already be done as part of pendulum-chain/pendulum-solidity-wrapper#20 for the chain extensions and #225 for Nabla.

@github-project-automation github-project-automation bot moved this from Backlog to Done in Pendulum Board Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants