Skip to content

Commit f85daca

Browse files
authored
chore: deploy SwapFacility to Plasma (#78)
1 parent 7adf945 commit f85daca

9 files changed

Lines changed: 752 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 \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ A helper contract that enables token swaps via Uniswap V3.
8989
| HyperEVM | [0xB6807116b3B1B321a390594e31ECD6e0076f6278](https://hyperevmscan.io/address/0xB6807116b3B1B321a390594e31ECD6e0076f6278) | [0x23E07a9353236d0367Ea9C5d6481c39920c6984C](https://hyperevmscan.io/address/0x23e07a9353236d0367ea9c5d6481c39920c6984c) | [0x0f38d8a5583f9316084e9c40737244870c565924](https://hyperevmscan.io/address/0x0f38d8a5583f9316084e9c40737244870c565924) |
9090
| Plume | [0xB6807116b3B1B321a390594e31ECD6e0076f6278](https://explorer.plume.org/address/0xB6807116b3B1B321a390594e31ECD6e0076f6278) | [0xF3Ef8f66955FFe4637768A2C7937f731CD67d890](https://explorer.plume.org/address/0xF3Ef8f66955FFe4637768A2C7937f731CD67d890) | [0x0f38d8a5583f9316084e9c40737244870c565924](https://explorer.plume.org/address/0x0f38d8a5583f9316084e9c40737244870c565924) |
9191
| Mantra | [0xB6807116b3B1B321a390594e31ECD6e0076f6278](https://blockscout.mantrascan.io/address/0xb6807116b3b1b321a390594e31ecd6e0076f6278) | [0x23d8162e084aA33D8EF6FCC0Ab33f4028A53Ee79](https://blockscout.mantrascan.io/address/0x23d8162e084aA33D8EF6FCC0Ab33f4028A53Ee79) | [0x0f38d8a5583f9316084e9c40737244870c565924](https://blockscout.mantrascan.io/address/0x0f38d8a5583f9316084e9c40737244870c565924) |
92+
| Plasma | [0xB6807116b3B1B321a390594e31ECD6e0076f6278](https://plasmascan.to/address/0xB6807116b3B1B321a390594e31ECD6e0076f6278) | [0x83B73B2cc04578455f0194aD99af6752f4a117DD](https://plasmascan.to/address/0x83B73B2cc04578455f0194aD99af6752f4a117DD) | [0x0f38d8a5583f9316084e9c40737244870c565924](https://plasmascan.to/address/0x0f38d8a5583f9316084e9c40737244870c565924) |
9293

9394
#### Testnet
9495

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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": [
32+
"0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE",
33+
"true"
34+
],
35+
"transaction": {
36+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
37+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
38+
"gas": "0x11f30",
39+
"value": "0x0",
40+
"input": "0xc64f535100000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece0000000000000000000000000000000000000000000000000000000000000001",
41+
"nonce": "0x33",
42+
"chainId": "0x2611"
43+
},
44+
"additionalContracts": [],
45+
"isFixedGasLimit": false
46+
}
47+
],
48+
"receipts": [
49+
{
50+
"status": "0x1",
51+
"cumulativeGasUsed": "0x838a01",
52+
"logs": [
53+
{
54+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
55+
"topics": [
56+
"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d",
57+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
58+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
59+
"0x000000000000000000000000f2f1acbe0ba726fee8d75f3e32900526874740bb"
60+
],
61+
"data": "0x",
62+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
63+
"blockNumber": "0x86e1c0",
64+
"blockTimestamp": "0x693f842f",
65+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
66+
"transactionIndex": "0x6",
67+
"logIndex": "0x1",
68+
"removed": false
69+
}
70+
],
71+
"logsBloom": "0x00000004100000000000000000000000000000000000000400000000040000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080010000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000001400000000000000000000000000000000000000000000000000000100000100000000000000000000000000000000000000000000000000000000000004000000000000000000",
72+
"type": "0x2",
73+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
74+
"transactionIndex": "0x6",
75+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
76+
"blockNumber": "0x86e1c0",
77+
"gasUsed": "0xdc35",
78+
"effectiveGasPrice": "0x239c",
79+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
80+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
81+
"contractAddress": null
82+
},
83+
{
84+
"status": "0x1",
85+
"cumulativeGasUsed": "0x8459ed",
86+
"logs": [
87+
{
88+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
89+
"topics": [
90+
"0xf03b9904b8234e041267377d7a55ddb345d1ee737d0116a2e621e3a5fad07a7d",
91+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece"
92+
],
93+
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
94+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
95+
"blockNumber": "0x86e1c0",
96+
"blockTimestamp": "0x693f842f",
97+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
98+
"transactionIndex": "0x7",
99+
"logIndex": "0x2",
100+
"removed": false
101+
}
102+
],
103+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000400000008000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000001000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000",
104+
"type": "0x2",
105+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
106+
"transactionIndex": "0x7",
107+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
108+
"blockNumber": "0x86e1c0",
109+
"gasUsed": "0xcfec",
110+
"effectiveGasPrice": "0x239c",
111+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
112+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
113+
"contractAddress": null
114+
}
115+
],
116+
"libraries": [],
117+
"pending": [],
118+
"returns": {},
119+
"timestamp": 1765770288165,
120+
"chain": 9745,
121+
"commit": "7adf945"
122+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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": [
32+
"0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE",
33+
"true"
34+
],
35+
"transaction": {
36+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
37+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
38+
"gas": "0x11f30",
39+
"value": "0x0",
40+
"input": "0xc64f535100000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece0000000000000000000000000000000000000000000000000000000000000001",
41+
"nonce": "0x33",
42+
"chainId": "0x2611"
43+
},
44+
"additionalContracts": [],
45+
"isFixedGasLimit": false
46+
}
47+
],
48+
"receipts": [
49+
{
50+
"status": "0x1",
51+
"cumulativeGasUsed": "0x838a01",
52+
"logs": [
53+
{
54+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
55+
"topics": [
56+
"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d",
57+
"0xafa8499804819c4de3fc4b1a2e9723737c59b02467b5c043939709ac9f066b43",
58+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece",
59+
"0x000000000000000000000000f2f1acbe0ba726fee8d75f3e32900526874740bb"
60+
],
61+
"data": "0x",
62+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
63+
"blockNumber": "0x86e1c0",
64+
"blockTimestamp": "0x693f842f",
65+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
66+
"transactionIndex": "0x6",
67+
"logIndex": "0x1",
68+
"removed": false
69+
}
70+
],
71+
"logsBloom": "0x00000004100000000000000000000000000000000000000400000000040000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080010000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000001400000000000000000000000000000000000000000000000000000100000100000000000000000000000000000000000000000000000000000000000004000000000000000000",
72+
"type": "0x2",
73+
"transactionHash": "0xd6d438bc4ccd5ee444af8cff46beb9b9be9613d60b86c913e2620df96de30d78",
74+
"transactionIndex": "0x6",
75+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
76+
"blockNumber": "0x86e1c0",
77+
"gasUsed": "0xdc35",
78+
"effectiveGasPrice": "0x239c",
79+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
80+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
81+
"contractAddress": null
82+
},
83+
{
84+
"status": "0x1",
85+
"cumulativeGasUsed": "0x8459ed",
86+
"logs": [
87+
{
88+
"address": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
89+
"topics": [
90+
"0xf03b9904b8234e041267377d7a55ddb345d1ee737d0116a2e621e3a5fad07a7d",
91+
"0x00000000000000000000000036f586a30502ae3afb555b8aa4dcc05d233c2ece"
92+
],
93+
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
94+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
95+
"blockNumber": "0x86e1c0",
96+
"blockTimestamp": "0x693f842f",
97+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
98+
"transactionIndex": "0x7",
99+
"logIndex": "0x2",
100+
"removed": false
101+
}
102+
],
103+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000400000008000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000001000000000000000000004000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000",
104+
"type": "0x2",
105+
"transactionHash": "0xc66cb29ce326411913ee6546c2a3c215faefbc50f99553c9abb51c0152addc9b",
106+
"transactionIndex": "0x7",
107+
"blockHash": "0xcb615e62414e09b6680552382cb92a6ee553ed28d2623994310e4d142114c52d",
108+
"blockNumber": "0x86e1c0",
109+
"gasUsed": "0xcfec",
110+
"effectiveGasPrice": "0x239c",
111+
"from": "0xf2f1acbe0ba726fee8d75f3e32900526874740bb",
112+
"to": "0xb6807116b3b1b321a390594e31ecd6e0076f6278",
113+
"contractAddress": null
114+
}
115+
],
116+
"libraries": [],
117+
"pending": [],
118+
"returns": {},
119+
"timestamp": 1765770288165,
120+
"chain": 9745,
121+
"commit": "7adf945"
122+
}

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)