Skip to content

Commit

Permalink
support astar evm chain (DimensionDev#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceStation09 authored May 5, 2022
1 parent acf6851 commit 9520efa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Using the [`helper.js`](helper.js) script to set up the deployed smart contracts
| Metis_test | [`0x5B966f3a`][mb-metis_test] | [`0x981be454`][nft-metis_test] |
| Metis | [`0x981be454`][mb-metis] | [`0x96c7D011`][nft-metis] |
| Kardia | [`0xbC7d9898`][mb-kardia] | [`0x8D03d9b4`][nft-kardia] |
| Astar | [`0x041Bdc5b`][mb-astar] | [`0x7E0aa694`][nft-astar] |

[mb-mainnet]: https://etherscan.io/address/0x294428f04b0F9EbC49B7Ad61E2736ebD6808c145
[mb-ropsten]: https://ropsten.etherscan.io/address/0xc7387b6Ac310ae15576451d2d37058711331105c
Expand All @@ -100,6 +101,7 @@ Using the [`helper.js`](helper.js) script to set up the deployed smart contracts
[mb-metis_test]: https://stardust-explorer.metis.io/address/0x5B966f3a32Db9C180843bCb40267A66b73E4f022
[mb-metis]: https://andromeda-explorer.metis.io/address/0x981be454a930479d92C91a0092D204b64845A5D6
[mb-kardia]: https://explorer.kardiachain.io/address/0xbC7d98985966f56A66B0cB5F23d865676dc2ac84
[mb-astar]: https://blockscout.com/astar/address/0x041Bdc5b713aFc3AA06b9511E1e55552138b139A
[nft-mainnet]: https://etherscan.io/address/0x56136E69A5771436a9598804c5eA792230c21181
[nft-ropsten]: https://ropsten.etherscan.io/address/0x4c73F4DC55Ef094259570892F52717cF19c62283
[nft-rinkeby]: https://rinkeby.etherscan.io/address/0x0c8FB5C985E00fb1D002b6B9700084492Fb4B9A8
Expand All @@ -120,6 +122,7 @@ Using the [`helper.js`](helper.js) script to set up the deployed smart contracts
[nft-metis_test]: https://stardust-explorer.metis.io/address/0x981be454a930479d92C91a0092D204b64845A5D6
[nft-metis]: https://andromeda-explorer.metis.io/address/0x96c7D011cdFD467f551605f0f5Fce279F86F4186
[nft-kardia]: https://explorer.kardiachain.io/address/0x8D03d9b43e98Cc2f790Be4E96503fD0CcFd04a2D
[nft-astar]: https://blockscout.com/astar/address/0x7E0aa694E51551Bcc0e669180123AAcB1debC5fd

<!-- end main -->

Expand Down
3 changes: 2 additions & 1 deletion helper_scripts/contract-addresses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Harmony_test,0x4fda6d9bb68af18e5d686555b18ccea7c82e0a3f,0xd48bc506a9fe6024f6b8a4
Harmony,0xDc0905F2Dac875E29A36f22F1Ea046e063875D3e,0x677f7bba13108649ecff068e8b3d55631327b83a,,,,
Metis_test,0x5B966f3a32Db9C180843bCb40267A66b73E4f022,0x981be454a930479d92C91a0092D204b64845A5D6,,,,
Metis,0x981be454a930479d92C91a0092D204b64845A5D6,0x96c7D011cdFD467f551605f0f5Fce279F86F4186,,,,
Kardia,0xbC7d98985966f56A66B0cB5F23d865676dc2ac84,0x8D03d9b43e98Cc2f790Be4E96503fD0CcFd04a2D,,,,
Kardia,0xbC7d98985966f56A66B0cB5F23d865676dc2ac84,0x8D03d9b43e98Cc2f790Be4E96503fD0CcFd04a2D,,,,
Astar,0x041Bdc5b713aFc3AA06b9511E1e55552138b139A,0x7E0aa694E51551Bcc0e669180123AAcB1debC5fd,,,,
4 changes: 3 additions & 1 deletion helper_scripts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum ChainId {
xDai = 100,
Arbiturm = 42161,
Kardia = 24,
Astar = 592,
}
function makeAddressDetailURL(domain: string) {
return (address: string) => `https://${domain}/address/${address}`
Expand Down Expand Up @@ -52,7 +53,8 @@ export const BlockExplorer: Record<ChainId, (address: string) => string> = {
[ChainId.Metis_test]: makeAddressDetailURL("stardust-explorer.metis.io"),
[ChainId.xDai]: (address) => `https://blockscout.com/xdai/mainnet/address/${address}`,
[ChainId.Arbiturm]: makeAddressDetailURL("explorer.arbitrum.io"),
[ChainId.Kardia]: makeAddressDetailURL("explorer.kardiachain.io")
[ChainId.Kardia]: makeAddressDetailURL("explorer.kardiachain.io"),
[ChainId.Astar]: makeAddressDetailURL('blockscout.com/astar'),
}

export const Contracts: string[] = [
Expand Down

0 comments on commit 9520efa

Please sign in to comment.