Skip to content

Commit b4d1951

Browse files
committed
Merge branch 'main' into fuzz-suite
2 parents e4c473a + f85daca commit b4d1951

8 files changed

Lines changed: 745 additions & 0 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export LINEA_RPC_URL=
1313
export OPTIMISM_RPC_URL=
1414
export PLUME_RPC_URL=
1515
export MANTRA_RPC_URL=
16+
export PLASMA_RPC_URL=
1617

1718
# Testnet RPC URLs
1819
export SEPOLIA_RPC_URL=
@@ -32,6 +33,7 @@ export HYPERLIQUID_VERIFIER_URL="https://api.etherscan.io/v2/api?chainid=999"
3233
export OPTIMISM_VERIFIER_URL="https://api.etherscan.io/v2/api?chainid=10"
3334
export PLUME_VERIFIER_URL="https://explorer.plume.org/api/"
3435
export MANTRA_VERIFIER_URL="https://blockscout.mantrascan.io/api/"
36+
export PLASMA_VERIFIER_URL=https://api.routescan.io/v2/network/mainnet/evm/9745/etherscan
3537

3638
export SEPOLIA_VERIFIER_URL="https://api.etherscan.io/v2/api?chainid=11155111"
3739
export APECHAIN_TESTNET_VERIFIER_URL="https://api.etherscan.io/v2/api?chainid=33111"

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ deploy-swap-facility-soneium: VERIFIER="blockscout"
205205
deploy-swap-facility-soneium: VERIFIER_URL=${SONEIUM_VERIFIER_URL}
206206
deploy-swap-facility-soneium: deploy-swap-facility
207207

208+
deploy-swap-facility-plasma: RPC_URL=$(PLASMA_RPC_URL)
209+
deploy-swap-facility-plasma: VERIFIER="custom"
210+
deploy-swap-facility-plasma: VERIFIER_URL=${PLASMA_VERIFIER_URL}
211+
deploy-swap-facility-plasma: deploy-swap-facility
212+
208213
upgrade-swap-facility:
209214
FOUNDRY_PROFILE=production PRIVATE_KEY=$(PRIVATE_KEY) PAUSER=$(PAUSER) \
210215
forge script script/upgrade/UpgradeSwapFacility.s.sol:UpgradeSwapFacility \
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"transactions": [
3+
{
4+
"hash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
5+
"transactionType": "CALL",
6+
"contractName": null,
7+
"contractAddress": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
8+
"function": "grantRole(bytes32,address)",
9+
"arguments": [
10+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
11+
"0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE"
12+
],
13+
"transaction": {
14+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
15+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
16+
"gas": "0x13028",
17+
"value": "0x0",
18+
"input": "0x2f2ff15dafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b4300000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
19+
"nonce": "0x32",
20+
"chainId": "0x2611"
21+
},
22+
"additionalContracts": [],
23+
"isFixedGasLimit": false
24+
},
25+
{
26+
"hash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
27+
"transactionType": "CALL",
28+
"contractName": null,
29+
"contractAddress": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
30+
"function": "setTrustedRouter(address,bool)",
31+
"arguments": ["0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE", "true"],
32+
"transaction": {
33+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
34+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
35+
"gas": "0x11f30",
36+
"value": "0x0",
37+
"input": "0xc64f535100000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece0000000000000000000000000000000000000000000000000000000000000001",
38+
"nonce": "0x33",
39+
"chainId": "0x2611"
40+
},
41+
"additionalContracts": [],
42+
"isFixedGasLimit": false
43+
}
44+
],
45+
"receipts": [
46+
{
47+
"status": "0x1",
48+
"cumulativeGasUsed": "0x838a01",
49+
"logs": [
50+
{
51+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
52+
"topics": [
53+
"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d",
54+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
55+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
56+
"0x000000000000000000000000f2f1acbe0ba726fee8d75f3e32900526874740bb"
57+
],
58+
"data": "0x",
59+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
60+
"blockNumber": "0x86e1c0",
61+
"blockTimestamp": "0x693f842f",
62+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
63+
"transactionIndex": "0x6",
64+
"logIndex": "0x1",
65+
"removed": false
66+
}
67+
],
68+
"logsBloom": "0x00000004100000000000000000000000000000000000000400000000040000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080010000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000001400000000000000000000000000000000000000000000000000000100000100000000000000000000000000000000000000000000000000000000000004000000000000000000",
69+
"type": "0x2",
70+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
71+
"transactionIndex": "0x6",
72+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
73+
"blockNumber": "0x86e1c0",
74+
"gasUsed": "0xdc35",
75+
"effectiveGasPrice": "0x239c",
76+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
77+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
78+
"contractAddress": null
79+
},
80+
{
81+
"status": "0x1",
82+
"cumulativeGasUsed": "0x8459ed",
83+
"logs": [
84+
{
85+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
86+
"topics": [
87+
"0xf03b9904b8234e041267377d7a55ddb345d1ee737d0116a2e621e3a5fad07a7d",
88+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece"
89+
],
90+
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
91+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
92+
"blockNumber": "0x86e1c0",
93+
"blockTimestamp": "0x693f842f",
94+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
95+
"transactionIndex": "0x7",
96+
"logIndex": "0x2",
97+
"removed": false
98+
}
99+
],
100+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000400000008000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000001000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000",
101+
"type": "0x2",
102+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
103+
"transactionIndex": "0x7",
104+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
105+
"blockNumber": "0x86e1c0",
106+
"gasUsed": "0xcfec",
107+
"effectiveGasPrice": "0x239c",
108+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
109+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
110+
"contractAddress": null
111+
}
112+
],
113+
"libraries": [],
114+
"pending": [],
115+
"returns": {},
116+
"timestamp": 1765770288165,
117+
"chain": 9745,
118+
"commit": "7adf945"
119+
}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"transactions": [
3+
{
4+
"hash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
5+
"transactionType": "CALL",
6+
"contractName": null,
7+
"contractAddress": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
8+
"function": "grantRole(bytes32,address)",
9+
"arguments": [
10+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
11+
"0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE"
12+
],
13+
"transaction": {
14+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
15+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
16+
"gas": "0x13028",
17+
"value": "0x0",
18+
"input": "0x2f2ff15dafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b4300000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
19+
"nonce": "0x32",
20+
"chainId": "0x2611"
21+
},
22+
"additionalContracts": [],
23+
"isFixedGasLimit": false
24+
},
25+
{
26+
"hash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
27+
"transactionType": "CALL",
28+
"contractName": null,
29+
"contractAddress": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
30+
"function": "setTrustedRouter(address,bool)",
31+
"arguments": ["0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE", "true"],
32+
"transaction": {
33+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
34+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
35+
"gas": "0x11f30",
36+
"value": "0x0",
37+
"input": "0xc64f535100000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece0000000000000000000000000000000000000000000000000000000000000001",
38+
"nonce": "0x33",
39+
"chainId": "0x2611"
40+
},
41+
"additionalContracts": [],
42+
"isFixedGasLimit": false
43+
}
44+
],
45+
"receipts": [
46+
{
47+
"status": "0x1",
48+
"cumulativeGasUsed": "0x838a01",
49+
"logs": [
50+
{
51+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
52+
"topics": [
53+
"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d",
54+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
55+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
56+
"0x000000000000000000000000f2f1acbe0ba726fee8d75f3e32900526874740bb"
57+
],
58+
"data": "0x",
59+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
60+
"blockNumber": "0x86e1c0",
61+
"blockTimestamp": "0x693f842f",
62+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
63+
"transactionIndex": "0x6",
64+
"logIndex": "0x1",
65+
"removed": false
66+
}
67+
],
68+
"logsBloom": "0x00000004100000000000000000000000000000000000000400000000040000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080010000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000001400000000000000000000000000000000000000000000000000000100000100000000000000000000000000000000000000000000000000000000000004000000000000000000",
69+
"type": "0x2",
70+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
71+
"transactionIndex": "0x6",
72+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
73+
"blockNumber": "0x86e1c0",
74+
"gasUsed": "0xdc35",
75+
"effectiveGasPrice": "0x239c",
76+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
77+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
78+
"contractAddress": null
79+
},
80+
{
81+
"status": "0x1",
82+
"cumulativeGasUsed": "0x8459ed",
83+
"logs": [
84+
{
85+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
86+
"topics": [
87+
"0xf03b9904b8234e041267377d7a55ddb345d1ee737d0116a2e621e3a5fad07a7d",
88+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece"
89+
],
90+
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
91+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
92+
"blockNumber": "0x86e1c0",
93+
"blockTimestamp": "0x693f842f",
94+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
95+
"transactionIndex": "0x7",
96+
"logIndex": "0x2",
97+
"removed": false
98+
}
99+
],
100+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000400000008000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000001000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000",
101+
"type": "0x2",
102+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
103+
"transactionIndex": "0x7",
104+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
105+
"blockNumber": "0x86e1c0",
106+
"gasUsed": "0xcfec",
107+
"effectiveGasPrice": "0x239c",
108+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
109+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
110+
"contractAddress": null
111+
}
112+
],
113+
"libraries": [],
114+
"pending": [],
115+
"returns": {},
116+
"timestamp": 1765770288165,
117+
"chain": 9745,
118+
"commit": "7adf945"
119+
}

broadcast/DeploySwapFacility.s.sol/9745/run-1765764617112.json

Lines changed: 246 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeploySwapFacility.s.sol/9745/run-latest.json

Lines changed: 246 additions & 0 deletions
Large diffs are not rendered by default.

deployments/9745.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extensionAddresses": [],
3+
"extensionNames": [],
4+
"swapAdapter": "0x0000000000000000000000000000000000000000",
5+
"swapFacility": "0xB6807116b3B1B321a390594e31ECD6e0076f6278"
6+
}

script/Config.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ contract Config {
6464
uint256 public constant MANTRA_CHAIN_ID = 5888;
6565
uint256 public constant BASE_CHAIN_ID = 8453;
6666
uint256 public constant SONEIUM_CHAIN_ID = 1868;
67+
uint256 public constant PLASMA_CHAIN_ID = 9745;
6768

6869
// Testnet chain IDs
6970
uint256 public constant LOCAL_CHAIN_ID = 31337;
@@ -107,6 +108,7 @@ contract Config {
107108
if (chainId_ == BSC_CHAIN_ID) return _getDefaultDeployConfig();
108109
if (chainId_ == MANTRA_CHAIN_ID) return _getDefaultDeployConfig();
109110
if (chainId_ == BASE_CHAIN_ID) return _getDefaultDeployConfig();
111+
if (chainId_ == PLASMA_CHAIN_ID) return _getDefaultDeployConfig();
110112
if (chainId_ == SONEIUM_CHAIN_ID) {
111113
config = _getDefaultDeployConfig();
112114
config.uniswapV3Router = UNISWAP_V3_ROUTER;

0 commit comments

Comments
 (0)