-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
18 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,3 @@ | ||
# Hello Example | ||
|
||
``` | ||
yarn deploy | ||
``` | ||
|
||
## EVM | ||
|
||
Successful call: | ||
|
||
``` | ||
npx hardhat echo-call --contract 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --receiver 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --network localhost --types '["string"]' hello | ||
``` | ||
|
||
Failed call: | ||
|
||
``` | ||
npx hardhat echo-call --contract 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --receiver 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --network localhost --types '["uint256"]' 42 | ||
``` | ||
|
||
Failed call with handled revert: | ||
|
||
``` | ||
npx hardhat echo-call --contract 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --receiver 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --network localhost --revert-address 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --revert-message 0x --call-on-revert --types '["uint256"]' 42 | ||
``` | ||
|
||
## ZetaChain | ||
|
||
Successful call: | ||
|
||
``` | ||
npx hardhat hello-call --contract 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --receiver 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --zrc20 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe --function "hello(string)" --network localhost --types '["string"]' hello | ||
``` | ||
|
||
Failed call: | ||
|
||
``` | ||
npx hardhat hello-call --contract 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --receiver 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --zrc20 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe --function "hello(string)" --network localhost --types '["uint256"]' 42 | ||
``` | ||
|
||
Failed call with handled revert: | ||
|
||
``` | ||
npx hardhat hello-call --contract 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --receiver 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 --zrc20 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe --function "hello(string)" --network localhost --revert-address 0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E --revert-message 0x --call-on-revert --types '["uint256"]' 42 | ||
``` | ||
Tutorial: https://www.zetachain.com/docs/developers/tutorials/hello/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2758,7 +2758,7 @@ | |
hardhat "^2.22.8" | ||
wait-on "^7.2.0" | ||
|
||
"@zetachain/networks@^10.0.0": | ||
"@zetachain/networks@10.0.0", "@zetachain/networks@^10.0.0": | ||
version "10.0.0" | ||
resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-10.0.0.tgz#dd5d14a0870f6b658644aded8c96859f15531089" | ||
integrity sha512-FPolaO19oVkSLSPDUA/Hu+8AhG3lDEslRDpLnMzbMbnNSC669Fkah0/TEf+6egrQbAifBRfFLzwWidAGs8oxtA== | ||
|
@@ -2780,10 +2780,10 @@ | |
resolved "https://registry.yarnpkg.com/@zetachain/protocol-contracts/-/protocol-contracts-9.0.0.tgz#c20ad5da43f6f3676f31556b303d1cb4ea17357e" | ||
integrity sha512-L4A8bddlyhjaBAsIv/x1Bvxc38RJz8U8rbbBtxK5oVyOAd5Zz04ZiT3HqzO4FuKq6RGGM1uiA8jvUfmRkKchXw== | ||
|
||
"@zetachain/[email protected]rc4": | ||
version "13.0.0-rc4" | ||
resolved "https://registry.yarnpkg.com/@zetachain/toolkit/-/toolkit-13.0.0-rc4.tgz#e137fc16043f1416469f709c48808cfa301d9299" | ||
integrity sha512-4z4MKbQKjRIeNruUyDBjZDRO5oTLa1w/7wVn+PfMsXn++mFFGkiawkLcitnkH9dadBJiERzmo89MRJxsLQ3U6w== | ||
"@zetachain/[email protected]rc7": | ||
version "13.0.0-rc7" | ||
resolved "https://registry.yarnpkg.com/@zetachain/toolkit/-/toolkit-13.0.0-rc7.tgz#d8710dfeed6c84d7d5808de253887da3e67bf050" | ||
integrity sha512-rh9q66iipRF3XJ4jlkawYqc10eA2mYgIS2rl1PiWvcqi39R1PgUzperKVwwoVmRuJi0FxE5fetP4SmqzfkfBXw== | ||
dependencies: | ||
"@coral-xyz/anchor" "^0.30.1" | ||
"@inquirer/prompts" "^2.1.1" | ||
|
@@ -2794,12 +2794,13 @@ | |
"@solana/web3.js" "^1.95.3" | ||
"@uniswap/v2-periphery" "^1.1.0-beta.0" | ||
"@zetachain/faucet-cli" "^4.1.1" | ||
"@zetachain/networks" "^10.0.0" | ||
"@zetachain/networks" "10.0.0" | ||
"@zetachain/protocol-contracts" "9.0.0" | ||
axios "^1.4.0" | ||
bech32 "^2.0.0" | ||
bip39 "^3.1.0" | ||
bitcoinjs-lib "^6.1.3" | ||
bs58 "^6.0.0" | ||
dotenv "16.0.3" | ||
ecpair "^2.1.0" | ||
envfile "^6.18.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2496,7 +2496,7 @@ | |
hardhat "^2.22.8" | ||
wait-on "^7.2.0" | ||
|
||
"@zetachain/networks@^10.0.0": | ||
"@zetachain/networks@10.0.0", "@zetachain/networks@^10.0.0": | ||
version "10.0.0" | ||
resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-10.0.0.tgz#dd5d14a0870f6b658644aded8c96859f15531089" | ||
integrity sha512-FPolaO19oVkSLSPDUA/Hu+8AhG3lDEslRDpLnMzbMbnNSC669Fkah0/TEf+6egrQbAifBRfFLzwWidAGs8oxtA== | ||
|
@@ -2518,10 +2518,10 @@ | |
resolved "https://registry.yarnpkg.com/@zetachain/protocol-contracts/-/protocol-contracts-9.0.0.tgz#c20ad5da43f6f3676f31556b303d1cb4ea17357e" | ||
integrity sha512-L4A8bddlyhjaBAsIv/x1Bvxc38RJz8U8rbbBtxK5oVyOAd5Zz04ZiT3HqzO4FuKq6RGGM1uiA8jvUfmRkKchXw== | ||
|
||
"@zetachain/[email protected]rc5": | ||
version "13.0.0-rc5" | ||
resolved "https://registry.yarnpkg.com/@zetachain/toolkit/-/toolkit-13.0.0-rc5.tgz#56b2603c8367819a5265fcc7354e93ffdfbc3ea3" | ||
integrity sha512-/97eSf3ALdrLHc9vyaO/xcjuAI9wa4JUNkB8NtnNT6dMeSBPI2ME9lmG+Qk2YDoZkrYlzmEzeru+zcZI9v7cog== | ||
"@zetachain/[email protected]rc7": | ||
version "13.0.0-rc7" | ||
resolved "https://registry.yarnpkg.com/@zetachain/toolkit/-/toolkit-13.0.0-rc7.tgz#d8710dfeed6c84d7d5808de253887da3e67bf050" | ||
integrity sha512-rh9q66iipRF3XJ4jlkawYqc10eA2mYgIS2rl1PiWvcqi39R1PgUzperKVwwoVmRuJi0FxE5fetP4SmqzfkfBXw== | ||
dependencies: | ||
"@coral-xyz/anchor" "^0.30.1" | ||
"@inquirer/prompts" "^2.1.1" | ||
|
@@ -2532,12 +2532,13 @@ | |
"@solana/web3.js" "^1.95.3" | ||
"@uniswap/v2-periphery" "^1.1.0-beta.0" | ||
"@zetachain/faucet-cli" "^4.1.1" | ||
"@zetachain/networks" "^10.0.0" | ||
"@zetachain/networks" "10.0.0" | ||
"@zetachain/protocol-contracts" "9.0.0" | ||
axios "^1.4.0" | ||
bech32 "^2.0.0" | ||
bip39 "^3.1.0" | ||
bitcoinjs-lib "^6.1.3" | ||
bs58 "^6.0.0" | ||
dotenv "16.0.3" | ||
ecpair "^2.1.0" | ||
envfile "^6.18.0" | ||
|