From ea8cc2b8a758f78c7d0652dab25f14cfa3a963e5 Mon Sep 17 00:00:00 2001 From: Space_Station09 <40360004+SpaceStation09@users.noreply.github.com> Date: Fri, 6 May 2022 13:49:10 +0800 Subject: [PATCH] support astar evm chain (#45) --- README.md | 5 +++++ helper_scripts/contract-addresses.csv | 3 ++- helper_scripts/types.ts | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e620fc1..666c749 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ To prevent a malicious attack, you can set a `swap_start_time` in your custom qu | Metis_test | [`0x71834a3F`][ito-metis_test] | | | Metis | [`0x5B966f3a`][ito-metis] | | | Kardia | [`0x224e8327`][ito-kardia] | [`0x0cE6df81`][qlf-kardia] | +| Astar | [`0x1D720657`][ito-astar] | [`0xdd2Cf3fF`][qlf-astar] | [ito-mainnet]: https://etherscan.io/address/0xc2CFbF22d6Dc87D0eE18d38d73733524c109Ff46 [ito-ropsten]: https://ropsten.etherscan.io/address/0xcdE281B32b629f2e89E5953B674E1E507e6dabcF @@ -119,6 +120,7 @@ To prevent a malicious attack, you can set a `swap_start_time` in your custom qu [ito-metis_test]: https://stardust-explorer.metis.io/address/0x71834a3FDeA3E70F14a93ED85c6be70925D0CAd9 [ito-metis]: https://andromeda-explorer.metis.io/address/0x5B966f3a32Db9C180843bCb40267A66b73E4f022 [ito-kardia]: https://explorer.kardiachain.io/address/0x224e8327182a85e511A08C63C4341efB0460f36e +[ito-astar]: https://blockscout.com/astar/address/0x1D720657e6B11F468BACE2d513b10C8CbfF247Cd [qlf-mainnet]: https://etherscan.io/address/0x4dC5f343Fe57E4fbDA1B454d125D396A3181272c [qlf-ropsten]: https://ropsten.etherscan.io/address/0xd5e6434bde165062b3d9572DEFd6393c7B3E2902 [qlf-rinkeby]: https://rinkeby.etherscan.io/address/0x8440b99B1Df5D4B61957c8Ce0a199487Be3De270 @@ -143,6 +145,7 @@ To prevent a malicious attack, you can set a `swap_start_time` in your custom qu [qlf-harmony]: https://explorer.harmony.one/address/0x02Ea0720254F7fa4eca7d09A1b9C783F1020EbEF [qlf-harmony_test]: https://explorer.pops.one/address/0x812463356F58fc8194645A1838ee6C52D8ca2D26 [qlf-kardia]: https://explorer.kardiachain.io/address/0x0cE6df8171AD4B23fe162FFA01DEC8595ED1f7cc +[qlf-astar]: https://blockscout.com/astar/address/0xdd2Cf3fF67769d49613587CcE8A452D3b58AfC33 @@ -176,6 +179,7 @@ To prevent a malicious attack, you can set a `swap_start_time` in your custom qu | Metis_test | | [5207086][v2-metis_test] | | Metis | | [1701875][v2-metis] | | Kardia | | [7566530][v2-kardia] | +| Astar | | [915536][v2-astar] | [v1-mainnet]: https://etherscan.io/block/12689616 [v2-mainnet]: https://etherscan.io/block/12766513 @@ -205,6 +209,7 @@ To prevent a malicious attack, you can set a `swap_start_time` in your custom qu [v2-metis_test]: https://stardust-explorer.metis.io/block/5207086 [v2-metis]: https://andromeda-explorer.metis.io/block/1701875 [v2-kardia]: https://explorer.kardiachain.io/block/7566530 +[v2-astar]: https://blockscout.com/astar/block/915536 diff --git a/helper_scripts/contract-addresses.csv b/helper_scripts/contract-addresses.csv index c9803cb..59875ad 100644 --- a/helper_scripts/contract-addresses.csv +++ b/helper_scripts/contract-addresses.csv @@ -24,4 +24,5 @@ Harmony,0x5B966f3a32Db9C180843bCb40267A66b73E4f022,0x02Ea0720254F7fa4eca7d09A1b9 Harmony_test,0x578a7Fee5f0D8CEc7d00578Bf37374C5b95C4b98,0x812463356F58fc8194645A1838ee6C52D8ca2D26,,22744597 Metis_test,0x71834a3FDeA3E70F14a93ED85c6be70925D0CAd9,,,5207086 Metis,0x5B966f3a32Db9C180843bCb40267A66b73E4f022,,,1701875 -Kardia,0x224e8327182a85e511A08C63C4341efB0460f36e,0x0cE6df8171AD4B23fe162FFA01DEC8595ED1f7cc,,7566530 \ No newline at end of file +Kardia,0x224e8327182a85e511A08C63C4341efB0460f36e,0x0cE6df8171AD4B23fe162FFA01DEC8595ED1f7cc,,7566530 +Astar,0x1D720657e6B11F468BACE2d513b10C8CbfF247Cd,0xdd2Cf3fF67769d49613587CcE8A452D3b58AfC33,,915536 diff --git a/helper_scripts/types.ts b/helper_scripts/types.ts index 3188c70..04279ea 100644 --- a/helper_scripts/types.ts +++ b/helper_scripts/types.ts @@ -25,6 +25,7 @@ export enum ChainId { Metis_test = 28, xDai = 100, Kardia = 24, + Astar = 592, } function makeDetailURL(domain: string) { @@ -73,7 +74,8 @@ export const BlockExplorer: Record }, [ChainId.Arbitrum]: makeDetailURL("explorer.arbitrum.io"), [ChainId.Arbitrum_rinkeby]: makeDetailURL("rinkeby-explorer.arbitrum.io"), - [ChainId.Kardia]: makeDetailURL("explorer.kardiachain.io") + [ChainId.Kardia]: makeDetailURL("explorer.kardiachain.io"), + [ChainId.Astar]: makeDetailURL("blockscout.com/astar"), } export type DeployedAddressRow = {