Skip to content

Commit

Permalink
test: add e2e through contract complete
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Sep 25, 2024
1 parent b18c50d commit 35013e3
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 41 deletions.
1 change: 1 addition & 0 deletions cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ func localE2ETest(cmd *cobra.Command, _ []string) {
e2etests.TestPrecompilesStakingThroughContractName,
e2etests.TestPrecompilesBankName,
e2etests.TestPrecompilesBankFailName,
e2etests.TestPrecompilesBankThroughContractName,
}
}

Expand Down
2 changes: 1 addition & 1 deletion e2e/contracts/testbank/TestBank.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
60a060405260675f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015604e575f80fd5b503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250506080516106826100a85f395f818160f7015281816101f701526102f701526106825ff3fe608060405260043610610037575f3560e01c806347e7ef2414610040578063f3fef3a31461007c578063f7888aec146100b85761003e565b3661003e57005b005b34801561004b575f80fd5b5061006660048036038101906100619190610484565b6100f4565b60405161007391906104dc565b60405180910390f35b348015610087575f80fd5b506100a2600480360381019061009d9190610484565b6101f4565b6040516100af91906104dc565b60405180910390f35b3480156100c3575f80fd5b506100de60048036038101906100d991906104f5565b6102f4565b6040516100eb9190610542565b60405180910390f35b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461014c575f80fd5b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2485856040518363ffffffff1660e01b81526004016101a892919061056a565b6020604051808303815f875af11580156101c4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101e891906105bb565b90508091505092915050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461024c575f80fd5b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a385856040518363ffffffff1660e01b81526004016102a892919061056a565b6020604051808303815f875af11580156102c4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102e891906105bb565b90508091505092915050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461034c575f80fd5b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7888aec85856040518363ffffffff1660e01b81526004016103a89291906105e6565b602060405180830381865afa1580156103c3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103e79190610621565b90508091505092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610420826103f7565b9050919050565b61043081610416565b811461043a575f80fd5b50565b5f8135905061044b81610427565b92915050565b5f819050919050565b61046381610451565b811461046d575f80fd5b50565b5f8135905061047e8161045a565b92915050565b5f806040838503121561049a576104996103f3565b5b5f6104a78582860161043d565b92505060206104b885828601610470565b9150509250929050565b5f8115159050919050565b6104d6816104c2565b82525050565b5f6020820190506104ef5f8301846104cd565b92915050565b5f806040838503121561050b5761050a6103f3565b5b5f6105188582860161043d565b92505060206105298582860161043d565b9150509250929050565b61053c81610451565b82525050565b5f6020820190506105555f830184610533565b92915050565b61056481610416565b82525050565b5f60408201905061057d5f83018561055b565b61058a6020830184610533565b9392505050565b61059a816104c2565b81146105a4575f80fd5b50565b5f815190506105b581610591565b92915050565b5f602082840312156105d0576105cf6103f3565b5b5f6105dd848285016105a7565b91505092915050565b5f6040820190506105f95f83018561055b565b610606602083018461055b565b9392505050565b5f8151905061061b8161045a565b92915050565b5f60208284031215610636576106356103f3565b5b5f6106438482850161060d565b9150509291505056fea264697066735822122058606fa72b81a1490986349908a18577e434b840b15c1299c0a4ae455e29088864736f6c634300081a0033
60a060405260676000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561005157600080fd5b503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250506080516106a16100ae6000396000818160fc015281816101fc01526102fc01526106a16000f3fe6080604052600436106100385760003560e01c806347e7ef2414610041578063f3fef3a31461007e578063f7888aec146100bb5761003f565b3661003f57005b005b34801561004d57600080fd5b506100686004803603810190610063919061048f565b6100f8565b60405161007591906104ea565b60405180910390f35b34801561008a57600080fd5b506100a560048036038101906100a0919061048f565b6101f8565b6040516100b291906104ea565b60405180910390f35b3480156100c757600080fd5b506100e260048036038101906100dd9190610505565b6102f8565b6040516100ef9190610554565b60405180910390f35b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461015257600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2484846040518363ffffffff1660e01b81526004016101ad92919061057e565b6020604051808303816000875af11580156101cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f091906105d3565b905092915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461025257600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a384846040518363ffffffff1660e01b81526004016102ad92919061057e565b6020604051808303816000875af11580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f091906105d3565b905092915050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461035257600080fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7888aec84846040518363ffffffff1660e01b81526004016103ad929190610600565b602060405180830381865afa1580156103ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ee919061063e565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610426826103fb565b9050919050565b6104368161041b565b811461044157600080fd5b50565b6000813590506104538161042d565b92915050565b6000819050919050565b61046c81610459565b811461047757600080fd5b50565b60008135905061048981610463565b92915050565b600080604083850312156104a6576104a56103f6565b5b60006104b485828601610444565b92505060206104c58582860161047a565b9150509250929050565b60008115159050919050565b6104e4816104cf565b82525050565b60006020820190506104ff60008301846104db565b92915050565b6000806040838503121561051c5761051b6103f6565b5b600061052a85828601610444565b925050602061053b85828601610444565b9150509250929050565b61054e81610459565b82525050565b60006020820190506105696000830184610545565b92915050565b6105788161041b565b82525050565b6000604082019050610593600083018561056f565b6105a06020830184610545565b9392505050565b6105b0816104cf565b81146105bb57600080fd5b50565b6000815190506105cd816105a7565b92915050565b6000602082840312156105e9576105e86103f6565b5b60006105f7848285016105be565b91505092915050565b6000604082019050610615600083018561056f565b610622602083018461056f565b9392505050565b60008151905061063881610463565b92915050565b600060208284031215610654576106536103f6565b5b600061066284828501610629565b9150509291505056fea2646970667358221220c0c585590967d576c91dec72feb553b8a6186d045ddc558ecc1de043c068bcb764736f6c634300080a0033
2 changes: 1 addition & 1 deletion e2e/contracts/testbank/TestBank.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 35013e3

Please sign in to comment.