Skip to content

Commit

Permalink
deps and remove omnichain swap
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 11, 2024
1 parent 50e7217 commit f8357ad
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 60 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
file: "hello.sarif"
- project: "examples/swap"
file: "swap.sarif"
- project: "omnichain/swap"
file: "omnichain-swap.sarif"
permissions:
contents: read
security-events: write
Expand Down
44 changes: 1 addition & 43 deletions examples/hello/README.md
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/
2 changes: 1 addition & 1 deletion examples/hello/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@zetachain/localnet": "4.0.0-rc5",
"@zetachain/toolkit": "13.0.0-rc4",
"@zetachain/toolkit": "13.0.0-rc7",
"axios": "^1.3.6",
"chai": "^4.2.0",
"dotenv": "^16.0.3",
Expand Down
13 changes: 7 additions & 6 deletions examples/hello/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand All @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions examples/swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
"@solana/spl-memo": "^0.2.5",
"@solana/web3.js": "^1.95.2",
"@zetachain/protocol-contracts": "11.0.0-rc3",
"@zetachain/toolkit": "13.0.0-rc5"
"@zetachain/toolkit": "13.0.0-rc7"
}
}
}
13 changes: 7 additions & 6 deletions examples/swap/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit f8357ad

Please sign in to comment.