Skip to content

Commit 27de5b6

Browse files
authored
swap and router factory new deployments (#58)
* swap and router factory deployment * deployed swap router * bump
1 parent 784ae22 commit 27de5b6

File tree

5 files changed

+40
-13
lines changed

5 files changed

+40
-13
lines changed

hardhat.config.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,39 @@ const TEST_ACCOUNTS = {
1010
path: 'm/44\'/60\'/0\'/0',
1111
};
1212

13-
const PROD_ACCOUNTS = process.env.KEY ? process.env.KEY.split(',') : [];
13+
const MY_ACCOUNTS = process.env.KEY ? process.env.KEY.split(',') : [];
1414

1515
const config: HardhatUserConfig = {
1616
solidity: '0.8.18',
1717
networks: {
1818
mandala: {
1919
url: 'http://127.0.0.1:8545',
20-
accounts: TEST_ACCOUNTS,
20+
accounts: MY_ACCOUNTS,
2121
chainId: 595,
2222
},
2323
karuraTestnet: {
2424
url: 'https://eth-rpc-karura-testnet.aca-staging.network',
25-
accounts: TEST_ACCOUNTS,
25+
accounts: MY_ACCOUNTS,
2626
chainId: 596,
2727
},
28+
acalaTestnet: {
29+
url: 'https://eth-rpc-acala-testnet.aca-staging.network',
30+
accounts: MY_ACCOUNTS,
31+
chainId: 597,
32+
},
2833
acalaFork: {
2934
url: 'https://crosschain-dev.polkawallet.io/forkAcala/',
30-
accounts: PROD_ACCOUNTS,
35+
accounts: MY_ACCOUNTS,
3136
chainId: 787,
3237
},
3338
karura: {
3439
url: 'https://eth-rpc-karura.aca-api.network',
35-
accounts: PROD_ACCOUNTS,
40+
accounts: MY_ACCOUNTS,
3641
chainId: 686,
3742
},
3843
acala: {
3944
url: 'https://eth-rpc-acala.aca-api.network',
40-
accounts: PROD_ACCOUNTS,
45+
accounts: MY_ACCOUNTS,
4146
chainId: 787,
4247
},
4348
},
@@ -64,8 +69,8 @@ const config: HardhatUserConfig = {
6469
network: 'acalaTestnet',
6570
chainId: 597,
6671
urls: {
67-
apiURL: 'https://blockscout.acala-dev.aca-dev.network/api',
68-
browserURL: 'https://blockscout.acala-dev.aca-dev.network',
72+
apiURL: 'https://blockscout.acala-testnet.aca-staging.network/api',
73+
browserURL: 'https://blockscout.acala-testnet.aca-staging.network',
6974
},
7075
},
7176
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@acala-network/asset-router",
3-
"version": "1.0.18-1",
3+
"version": "1.0.18",
44
"main": "dist/index.js",
55
"repository": "[email protected]:AcalaNetwork/asset-router.git",
66
"author": "Acala Developers <[email protected]>",

scripts/consts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export const ADDRESSES = {
7171
[CHAIN.ACALA]: {
7272
tokenBridgeAddr: CONTRACTS.MAINNET.acala.token_bridge,
7373
factoryAddr: '0x4D72F3b3e6D2AFeD99923137a04b9Cd9Cd2F21C5',
74-
feeAddr: '0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015',
74+
feeAddr: '0x5Fc7261E168F6a8c1053F2208c7db4BCbef133b3',
7575
usdcAddr: '0x07DF96D1341A7d16Ba1AD431E2c847d978BC2bCe',
7676
homaFactoryAddr: '0x2ed9aa0e30D52958E21Db37FfBDC3F0B0fD4b973',
7777
accountHelperAddr: '0x0252340cC347718f9169d329CEFf8B15A92badf8',
7878
euphratesFactoryAddr: '0x2AeFc65B6E1660d2bA2796f8698120A2acB95634',
79-
swapAndStakeFactoryAddr: '',
79+
swapAndStakeFactoryAddr: '0x3923E44cf1062FBa513279Ab81e6B8727a6de3D6',
8080
},
8181
} as const;
8282

scripts/deploy-fee.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ karura: 0x2AeFc65B6E1660d2bA2796f8698120A2acB95634
5858
'0x0000000000000000000100000000000000000082': 1000000000n
5959
}
6060
61-
acala: 0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015
61+
acala: 0x5Fc7261E168F6a8c1053F2208c7db4BCbef133b3
6262
{
6363
'0xD53E4bA478cCA5080C47435769ff82F41e5e4cd0': 36000000000000000n,
6464
'0x19EbA3efA7D0E02956678C5f3c63c46Beda2D7D8': 50000000000000000n,
@@ -80,6 +80,7 @@ acala: 0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015
8080
'0x0000000000000000000100000000000000000002': 100000000n,
8181
'0x0000000000000000000100000000000000000003': 800000000n,
8282
'0x0000000000000000000300000000000000000000': 100000000n,
83-
'0x000000000000000000040000000000000000000d': 100000000n
83+
'0x000000000000000000040000000000000000000d': 100000000n,
84+
'0xa7fb00459f5896c3bd4df97870b44e868ae663d7': 300000n
8485
}
8586
--------------- */
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { ethers, run } from 'hardhat';
2+
3+
async function main() {
4+
const Factory = await ethers.getContractFactory('SwapAndStakeEuphratesFactory');
5+
const factory = await Factory.deploy();
6+
await factory.deployed();
7+
8+
console.log(`swap and route factory address: ${factory.address}`);
9+
10+
if (process.env.VERIFY) {
11+
await run('verify:verify', {
12+
address: factory.address,
13+
constructorArguments: [],
14+
});
15+
}
16+
}
17+
18+
main().catch((error) => {
19+
console.error(error);
20+
process.exitCode = 1;
21+
});

0 commit comments

Comments
 (0)