zeta-chain / example-contracts

Examples of universal smart contract implementing cross-chain swaps, NFT transfers, ERC-20 transfers and more
https://www.zetachain.com/docs
MIT License
82 stars 47 forks source link

Reorg of cross-chain messaging contracts #173

Closed fadeev closed 6 months ago

fadeev commented 6 months ago

ZETA

npx hardhat deploy --networks sepolia_testnet,bsc_testnet
๐Ÿš€ Successfully deployed contract on bsc_testnet
๐Ÿ“œ Contract address: 0x65D661B68ff1466dedf80685450ac4c684b522BB

๐Ÿš€ Successfully deployed contract on sepolia_testnet
๐Ÿ“œ Contract address: 0xDEB42ce9d2F32caaA38Bf3107a054951E11575DF

๐Ÿ”— Setting interactors for a contract on bsc_testnet
โœ… Interactor address for 11155111 (sepolia_testnet) is set to 0xdeb42ce9d2f32caaa38bf3107a054951e11575df

๐Ÿ”— Setting interactors for a contract on sepolia_testnet
โœ… Interactor address for 97 (bsc_testnet) is set to 0x65d661b68ff1466dedf80685450ac4c684b522bb
npx hardhat interact --contract 0xDEB42ce9d2F32caaA38Bf3107a054951E11575DF --network sepolia_testnet --amount 3 --destination bsc_testnet
๐Ÿ”‘ Using account: 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32

โœ… The transaction has been broadcasted to sepolia_testnet
๐Ÿ“ Transaction hash: 0x90db3fa9e6e169eadae84b2dbfac15c6829807029f7198f1fcf515e6fb4d04cb

Message

npx hardhat deploy --networks sepolia_testnet,bsc_testnet
๐Ÿš€ Successfully deployed contract on bsc_testnet
๐Ÿ“œ Contract address: 0x4036009aa206a5c4d3bDABaC7242b18ACc5655D5

๐Ÿš€ Successfully deployed contract on sepolia_testnet
๐Ÿ“œ Contract address: 0x5d5c88B669337686af75f97C817365164786C88a

๐Ÿ”— Setting interactors for a contract on bsc_testnet
โœ… Interactor address for 11155111 (sepolia_testnet) is set to 0x5d5c88b669337686af75f97c817365164786c88a

๐Ÿ”— Setting interactors for a contract on sepolia_testnet
โœ… Interactor address for 97 (bsc_testnet) is set to 0x4036009aa206a5c4d3bdabac7242b18acc5655d5
npx hardhat interact --message hello --contract 0x5d5c88B669337686af75f97C817365164786C88a --network sepolia_testnet --amount 0.01 --destination bsc_testnet   

โœ… The transaction has been broadcasted to sepolia_testnet
๐Ÿ“ Transaction hash: 0x798f15cc214e8d5d595ba1944099134330439a4a30b76cc791e1ca60cd85d696

ERC-20

npx hardhat deploy --networks sepolia_testnet,bsc_testnet
๐Ÿš€ Successfully deployed contract on sepolia_testnet
๐Ÿ“œ Contract address: 0x18B6f0aB98429F00eDD44D5900090D71e3747e10

๐Ÿš€ Successfully deployed contract on bsc_testnet
๐Ÿ“œ Contract address: 0x7eA3054e5086FeE43D745975d171d3a850A94304

๐Ÿ”— Setting interactors for a contract on sepolia_testnet
โœ… Interactor address for 97 (bsc_testnet) is set to 0x7ea3054e5086fee43d745975d171d3a850a94304

๐Ÿ”— Setting interactors for a contract on bsc_testnet
โœ… Interactor address for 11155111 (sepolia_testnet) is set to 0x18b6f0ab98429f00edd44d5900090d71e3747e10
npx hardhat interact --to 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32 --value 1000000000 --contract 0x18B6f0aB98429F00eDD44D5900090D71e3747e10 --network sepolia_testnet --amount 0.01 --destination bsc_testnet
๐Ÿ”‘ Using account: 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32

โœ… The transaction has been broadcasted to sepolia_testnet
๐Ÿ“ Transaction hash: 0x25cfda972e255480e15b47472ae6c8d8842201855776fedaa446f75cab7a0e86

NFT

npx hardhat deploy --networks sepolia_testnet,bsc_testnet
๐Ÿš€ Successfully deployed contract on bsc_testnet
๐Ÿ“œ Contract address: 0x345b7a0ecd2faecF980db7fC1E645b960450E8E4

๐Ÿš€ Successfully deployed contract on sepolia_testnet
๐Ÿ“œ Contract address: 0x8A0061fFb4572e4D57D260C3c2a99DD25e8Ab66C

๐Ÿ”— Setting interactors for a contract on bsc_testnet
โœ… Interactor address for 11155111 (sepolia_testnet) is set to 0x8a0061ffb4572e4d57d260c3c2a99dd25e8ab66c

๐Ÿ”— Setting interactors for a contract on sepolia_testnet
โœ… Interactor address for 97 (bsc_testnet) is set to 0x345b7a0ecd2faecf980db7fc1e645b960450e8e4
npx hardhat mint --contract 0x8A0061fFb4572e4D57D260C3c2a99DD25e8Ab66C --network sepolia_testnet
๐Ÿ”‘ Using account: 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32

โœ… "mint" transaction has been broadcasted to sepolia_testnet
๐Ÿ“ Transaction hash: 0xd29edcb4a785fb237965cee63ad415a4a3d091eb022241583ddc30eda49b1d0c
๐ŸŒ  Minted NFT ID: 4
npx hardhat interact --to 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32 --token 4 --contract 0x8A0061fFb4572e4D57D260C3c2a99DD25e8Ab66C --network sepolia_testnet --amount 0.01 --destinati
on bsc_testnet
๐Ÿ”‘ Using account: 0x4955a3F38ff86ae92A914445099caa8eA2B9bA32

โœ… The transaction has been broadcasted to sepolia_testnet
๐Ÿ“ Transaction hash: 0x132d6312be65590a66eae59df835528b74b6a46ded59b67712c0646280ceac33
socket-security[bot] commented 6 months ago

New and removed dependencies detected. Learn more about Socket for GitHub โ†—๏ธŽ

Package New capabilities Transitives Size Publisher
npm/@inquirer/input@1.2.14 None +8 136 kB sboudrias
npm/@inquirer/type@1.1.5 None 0 4.43 kB sboudrias
npm/@noble/hashes@1.3.2 None 0 747 kB paulmillr
npm/@nomicfoundation/hardhat-network-helpers@1.0.10 None +2 437 kB fvictorio
npm/@nomiclabs/hardhat-etherscan@3.1.8 environment Transitive: eval, network, unsafe +20 3.71 MB fvictorio
npm/@types/chai@4.3.11 None 0 76.8 kB types
npm/@types/mocha@10.0.6 None 0 95.6 kB types
npm/@types/node@20.10.4 None +1 4.01 MB types
npm/axios@1.6.4 network Transitive: environment, filesystem +5 2.13 MB jasonsaayman
npm/call-bind@1.0.5 None +4 81.5 kB ljharb
npm/chai@4.3.10 None +3 832 kB keithamus
npm/check-error@1.0.3 None 0 14.4 kB keithamus
npm/cli-spinners@2.9.2 None 0 32.1 kB sindresorhus
npm/define-data-property@1.1.1 None +2 47.5 kB ljharb
npm/define-properties@1.2.1 None +2 50 kB ljharb
npm/envfile@6.22.0 None 0 42.2 kB bevryme
npm/eslint-import-resolver-typescript@3.6.1 Transitive: filesystem, unsafe +4 396 kB jounqin
npm/eslint-plugin-import@2.29.0 filesystem, unsafe Transitive: environment +59 4.68 MB ljharb
npm/eslint@8.55.0 environment, filesystem Transitive: eval, shell, unsafe +49 8.46 MB eslintbot
npm/fast-glob@3.3.2 filesystem +1 153 kB mrmlnc
npm/follow-redirects@1.15.2 network 0 28.3 kB rubenverborgh
npm/get-intrinsic@1.2.2 eval +3 89.4 kB ljharb
npm/hardhat@2.19.2 environment, filesystem, network, shell Transitive: eval, unsafe +120 55.7 MB fvictorio
npm/ignore@5.3.0 None 0 51.2 kB kael
npm/is-core-module@2.13.1 None +2 72.5 kB ljharb
npm/keccak@3.0.4 None +1 1.58 MB fanatid
npm/node-gyp-build@4.7.1 environment, filesystem 0 13.4 kB mafintosh
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/resolve@1.22.8 environment, filesystem +1 155 kB ljharb
npm/solidity-coverage@0.8.5 filesystem Transitive: environment, eval, network, shell, unsafe +81 18.5 MB cgewecke
npm/ts-node@10.9.2 environment, filesystem, unsafe +15 1.51 MB blakeembrey
npm/typechain@8.3.2 filesystem Transitive: environment +29 1.51 MB ethereum-ts-bot
npm/typescript@5.3.3 None 0 32 MB typescript-bot
npm/which-typed-array@1.1.13 None +4 80.4 kB ljharb

๐Ÿšฎ Removed packages: npm/@inquirer/input@1.2.8, npm/@nomicfoundation/hardhat-network-helpers@1.0.8, npm/@nomiclabs/hardhat-etherscan@3.1.7, npm/assert-plus@1.0.0, npm/axios@1.6.1, npm/call-bind@1.0.2, npm/chai@4.3.7, npm/define-properties@1.2.0, npm/es-abstract@1.22.1, npm/eslint-import-resolver-typescript@3.6.0, npm/eslint-plugin-import@2.28.0, npm/eslint@8.47.0, npm/extsprintf@1.3.0, npm/fast-glob@3.3.1, npm/get-intrinsic@1.2.1, npm/hardhat@2.17.1, npm/is-core-module@2.13.0, npm/keccak@3.0.3, npm/mkdirp@0.5.5, npm/node-gyp-build@4.6.0, npm/punycode@2.3.0, npm/qs@6.5.3, npm/resolve@1.22.4, npm/solidity-coverage@0.8.4, npm/tough-cookie@2.5.0, npm/ts-node@10.9.1, npm/typechain@8.3.1, npm/which-typed-array@1.1.11, npm/yargs-parser@13.1.2, npm/yargs@13.3.2

View full reportโ†—๏ธŽ