Skip to content

Commit 8e12a28

Browse files
committed
support base
1 parent 09cde3f commit 8e12a28

7 files changed

Lines changed: 38 additions & 7 deletions

File tree

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ blast = "https://erpc.ringdao.com/main/evm/81457"
4444
polygon = "https://polygon-mainnet.infura.io/v3/b6400dafb2e14de5bf24429abab8e098"
4545
moonbeam = "https://erpc.ringdao.com/main/evm/1284"
4646
morph = "https://erpc.ringdao.com/main/evm/2818"
47+
base = "https://erpc.ringdao.com/main/evm/8453"

proposal/0x8ed8ae243a4823b490402b72a5a66bd6367651f42c7ca9d53351953dddb0461a/deployment.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@
26652665
"bd281d871188d23306cfa03337a3378b": {
26662666
"id": "bd281d871188d23306cfa03337a3378b",
26672667
"solcVersion": "0.8.17",
2668-
"solcLongVersion": "0.8.17",
2668+
"solcLongVersion": "0.8.17+commit.8df45f5f",
26692669
"input": {
26702670
"language": "Solidity",
26712671
"sources": {
@@ -3043,7 +3043,7 @@
30433043
"inputs": [
30443044
{
30453045
"solcVersion": "0.8.17",
3046-
"solcLongVersion": "0.8.17",
3046+
"solcLongVersion": "0.8.17+commit.8df45f5f",
30473047
"id": "bd281d871188d23306cfa03337a3378b",
30483048
"input": {
30493049
"language": "Solidity",
@@ -10174,4 +10174,4 @@
1017410174
"buildInfoId": "bd281d871188d23306cfa03337a3378b"
1017510175
}
1017610176
}
10177-
}
10177+
}

script/common/Base.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract contract Base is Script, Sphinx, SphinxConstants {
1818
function configureSphinx() public override {
1919
sphinxConfig.projectName = "RING-DAO";
2020
sphinxConfig.testnets = ["sepolia", "arbitrum_sepolia"];
21-
sphinxConfig.mainnets = ["arbitrum", "blast", "crab", "darwinia", "ethereum", "polygon", "moonbeam", "morph"];
21+
sphinxConfig.mainnets = ["arbitrum", "base", "blast", "crab", "darwinia", "ethereum", "polygon", "moonbeam", "morph"];
2222
}
2323

2424
function CREATE3() public returns (address create3) {

script/input/46.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ chainAlias = "darwinia"
55
rpcUrl = "https://rpc.darwinia.network"
66

77
[remote]
8-
chains = [1,44,137,1284,42161]
8+
chains = [1,44,137,1284,8453,42161]
99

1010
[ormp]
1111
[ormp.oracle]
@@ -21,6 +21,9 @@ fee = "2000000000000000000"
2121
[ormp.oracle.1284]
2222
fee = "2000000000000000000"
2323

24+
[ormp.oracle.8453]
25+
fee = "36000000000000000000"
26+
2427
[ormp.oracle.42161]
2528
fee = "36000000000000000000"
2629

@@ -53,6 +56,12 @@ dstGasPriceInWei = 140000000000
5356
baseGas = 200000
5457
gasPerByte = 16
5558

59+
[ormp.relayer.8453]
60+
dstPriceRatio = 9250000000000000
61+
dstGasPriceInWei = 1000000000
62+
baseGas = 200000
63+
gasPerByte = 16
64+
5665
[ormp.relayer.42161]
5766
dstPriceRatio = 9250000000000000
5867
dstGasPriceInWei = 110000000

script/input/8453.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[local]
2+
name = "Base"
3+
chainId = 8453
4+
chainAlias = "base"
5+
rpcUrl = "https://eprc.ringdao.com/main/evm/8453"
6+
7+
[remote]
8+
chains = [46]
9+
10+
[ormp]
11+
[ormp.oracle]
12+
13+
[ormp.oracle.46]
14+
fee = "2000000000000"
15+
16+
[ormp.relayer]
17+
[ormp.relayer.46]
18+
dstPriceRatio = 10810
19+
dstGasPriceInWei = 60000000000
20+
baseGas = 200000
21+
gasPerByte = 16

script/msgport/OneClick.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ contract OneClickScript is DeployScript, ConnectScript, SwapOwnerScript {
1515
function _run() internal override(DeployScript, ConnectScript, SwapOwnerScript) {
1616
DeployScript._run();
1717
ConnectScript._run();
18-
// SwapOwnerScript._run();
18+
SwapOwnerScript._run();
1919
}
2020
}

script/self/SwapOwner.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract SwapOwnerScript is Base {
1212
address bear = 0x5b7544b3f6aBd9E03Fba494796B1eE6F9543E2e4;
1313

1414
function _run() internal virtual {
15-
if (block.chainid != 2818) {
15+
if (block.chainid != 8453) {
1616
return;
1717
}
1818
address self = safeAddress();

0 commit comments

Comments
 (0)