rocklabs-io / omnic

Omnic protocol repo
25 stars 7 forks source link

[Test] Integration test scripts #9

Closed ccyanxyz closed 2 years ago

ccyanxyz commented 2 years ago

Implement test scripts in core/scripts, when finished, test the crosschain process like this:

npx hardhat run scripts/deploy_evm.ts // deploy contracts to evm chains
npx hardhat run scripts/deploy_ic.ts // deploy proxy canister and demo app canister on ic
npx hardhat run scripts/send_msg.ts // send crosschain messages
npx hardhat run scripts/process_msgs.tx // call proxy canister's process_logs to process crosschain messages and check if receiver gets the messages correctly

can refer to core/evm/scripts for script example. @mircial