Skip to content

Commit 2fff0ca

Browse files
authored
feat: add astron testnet v5 (#62)
* feat: add astron testnet v5 * feat: add astron testnet config * chore: update astron testnet contracts * fix: update hardhat config
1 parent 494b904 commit 2fff0ca

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

hardhat.config.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -96,28 +96,30 @@ const config: HardhatUserConfig = {
9696
*/
9797
astrontestnet: ASTRON_TESTNET_API_KEY!,
9898
},
99-
customChains: [{
99+
customChains: [
100+
{
100101
/**
101102
* Astron
102103
*/
103-
network: "astron",
104-
chainId: 1338,
105-
urls: {
106-
apiURL: "https://astronscanl2.bitfactory.cn/api",
107-
browserURL: "https://astronscanl2.bitfactory.cn",
108-
},
104+
network: "astron",
105+
chainId: 1338,
106+
urls: {
107+
apiURL: "https://astronscanl2.bitfactory.cn/api",
108+
browserURL: "https://astronscanl2.bitfactory.cn",
109+
},
109110
},
110111
{
111112
/**
112113
* Astron testnet
113114
*/
114-
network: "astrontestnet",
115-
chainId: 21002,
116-
urls: {
117-
apiURL: "https://dev-astronscanl2.bitfactory.cn/api",
118-
browserURL: "https://dev-astronscanl2.bitfactory.cn",
119-
},
120-
}],
115+
network: "astrontestnet",
116+
chainId: 21002,
117+
urls: {
118+
apiURL: "https://dev-astronscanl2.bitfactory.cn/api",
119+
browserURL: "https://dev-astronscanl2.bitfactory.cn",
120+
},
121+
},
122+
],
121123
},
122124
networks: {
123125
/**
@@ -166,16 +168,16 @@ const config: HardhatUserConfig = {
166168
* Astron
167169
*/
168170
astron: {
169-
...networkConfig,
170-
url: "https://astronlayer2.bitfactory.cn/rpc/",
171-
},
171+
...networkConfig,
172+
url: "https://astronlayer2.bitfactory.cn/rpc/",
173+
},
172174
/**
173-
* Astron
175+
* Astron testnet
174176
*/
175177
astrontestnet: {
176-
...networkConfig,
177-
url: `https://dev-astronlayer2.bitfactory.cn/auth/${ASTRON_TESTNET_API_KEY}`,
178-
},
178+
...networkConfig,
179+
url: `https://dev-astronlayer2.bitfactory.cn/auth/${ASTRON_TESTNET_API_KEY}`,
180+
},
179181
/**
180182
* Development
181183
*/

src/constants/contract-address.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const contractAddress = {
2121
[ChainId.XDCApothem]: "0xca70f36aeeda435c1048fd372bf286a41ac538be",
2222
[ChainId.Stability]: "0x96cc41e7007Dee20eB409586E2e8206d5053219B",
2323
[ChainId.StabilityTestnet]: "0xAac003619FA8C7008C73704a550aA2bF20951dbb",
24-
[ChainId.AstronTestnet]: "0x1782421524a0c89a03a874B4A9B6f150707d5352",
24+
[ChainId.AstronTestnet]: "0x812A0E71c61A42C8d3d449BdfF51834f85686C73",
2525
},
2626
Deployer: {
2727
[ChainId.Ethereum]: "0xEc6fD701743cEdf504873F5E5E807586f437A500",
@@ -32,7 +32,7 @@ export const contractAddress = {
3232
[ChainId.XDC]: "0x9EFE3127e4F3f4e4CF83132F05BE11a097e0f9Ca",
3333
[ChainId.XDCApothem]: "0x20284AFe0B36545611dCF90Bb8128FC52e24247F",
3434
[ChainId.PolygonAmoy]: "0xfcafea839e576967b96ad1FBFB52b5CA26cd1D25",
35-
[ChainId.AstronTestnet]: "0x0A4363FA27b3D2116ef8893630CE29FC1258104d",
35+
[ChainId.AstronTestnet]: "0x1043B46Ad9072fB784492d94F8d25eF679B7AAf8",
3636
},
3737
TokenImplementation: {
3838
[ChainId.Ethereum]: "0x1583A4Eb50Bdde67F44A506a16c6d90C1E0A46d3",
@@ -43,6 +43,6 @@ export const contractAddress = {
4343
[ChainId.Stability]: "0x9093AD686C92572750d7399484131F0b3E02b62A",
4444
[ChainId.XDC]: "0xCdF35cA8e01f5693B23135C7a92B8FefeFd0bDd0",
4545
[ChainId.XDCApothem]: "0xcc72c1b3f7875fda22bcdb147d462d7da64efc55",
46-
[ChainId.AstronTestnet]: "0xDf9D1C3127C840aD07f23b522048BC47Da3e162C",
46+
[ChainId.AstronTestnet]: "0xA0Da221B3cd3e863425E1F1D34B9307D295a9d03",
4747
},
4848
};

0 commit comments

Comments
 (0)