Skip to content

Commit

Permalink
ops: deploy sonic (#29)
Browse files Browse the repository at this point in the history
* ops: initial sonic deploy script

* fix: cleanup deploy script

* ops: add sonic msig

* ops: only setup frxUSD peers for fraxtal, ink

* fix: optional setLib if already set

* ops: setup sonic

* ops: finish sonic deploy with logs

* docs: additional sonic notes

* docs: missing Sonic annotation
  • Loading branch information
pegahcarter authored Jan 3, 2025
1 parent 03fdbc1 commit 8fd11a7
Show file tree
Hide file tree
Showing 102 changed files with 200,323 additions and 36 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ This repository contains all of the contracts and deployment code used to manage
- [`X-Layer`](https://app.safe.global/home?safe=xlayer:0xe7Cc52f0C86f4FAB6630f1E26167B487fbF66a61)
- [`Solana`](https://app.squads.so/squads/FSRTW4KPGifKL8yKcZ8mfoR9mKtAjwZiTHbHwgix8AQo)
- [`Ink`](https://app.safe.global/home?safe=ink:0x91eBC17cD330DD694225133455583FBCA54b8eC8)
- [`Sonic`](https://app.safe.global/home?safe=sonic:0x87c7A1ef67c67cd57CBF101522a0c3B19D2C3aAc)

### Proxy (upgradeable) OFTs
- Chain: `Mode`, `Sei`, `Fraxtal`, `X-Layer`, `Ink`
- Chain: `Mode`, `Sei`, `Fraxtal`, `X-Layer`, `Ink`, `Sonic`
- Admin: `ProxyAdmin` (owned by chain-respective msig)
- OFTs
- `frxUSD`: `0x80eede496655fb9047dd39d9f418d5483ed600df`
Expand Down Expand Up @@ -89,6 +90,14 @@ TODO: automatically save as strings.

- Submit each newly crafted json to the respective `DESTINATION_CHAIN_ID` msig.

## TODO
- Ink, Sonic
- Configure source/destination (s)frxUSD peers for Xlayer, Sei, Mode
- Configure source/destination Fraxtal (s)frxUSD peer to predetermined OFT
- Sonic
- Set up DVNs
- Execute msig txs

## 1) Developing Contracts

#### Installing dependencies
Expand Down
34 changes: 34 additions & 0 deletions broadcast/1_BlockSendLib.s.sol/8453/dry-run/run-1734388901.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x1a44076050125825900e736c501f859c50fe728c",
"function": "setSendLibrary(address,uint32,address)",
"arguments": [
"0xa536976c9cA36e74Af76037af555eefa632ce469",
"30255",
"0x1ccBf0db9C192d969de57E25B3fF09A25bb1D862"
],
"transaction": {
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"gas": "0x12ab9",
"value": "0x0",
"input": "0x9535ff30000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"nonce": "0xd",
"chainId": "0x2105"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1734388901,
"chain": 8453,
"commit": "b552015"
}
34 changes: 34 additions & 0 deletions broadcast/1_BlockSendLib.s.sol/8453/dry-run/run-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x1a44076050125825900e736c501f859c50fe728c",
"function": "setSendLibrary(address,uint32,address)",
"arguments": [
"0xa536976c9cA36e74Af76037af555eefa632ce469",
"30255",
"0x1ccBf0db9C192d969de57E25B3fF09A25bb1D862"
],
"transaction": {
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"gas": "0x12ab9",
"value": "0x0",
"input": "0x9535ff30000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"nonce": "0xd",
"chainId": "0x2105"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1734388901,
"chain": 8453,
"commit": "b552015"
}
71 changes: 71 additions & 0 deletions broadcast/1_BlockSendLib.s.sol/8453/run-1734388958.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"transactions": [
{
"hash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x1a44076050125825900e736c501f859c50fe728c",
"function": "setSendLibrary(address,uint32,address)",
"arguments": [
"0xa536976c9cA36e74Af76037af555eefa632ce469",
"30255",
"0x1ccBf0db9C192d969de57E25B3fF09A25bb1D862"
],
"transaction": {
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"gas": "0x12ab9",
"value": "0x0",
"input": "0x9535ff30000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"nonce": "0xd",
"chainId": "0x2105"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x1971f61",
"logs": [
{
"address": "0x1a44076050125825900e736c501f859c50fe728c",
"topics": [
"0x4cff966ebee29a156dcb34cf72c1d06231fb1777f6bdf6e8089819232f002b1c"
],
"data": "0x000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"blockHash": "0xc110aebce8f730a831debeaac90c246afd37eec4fcc4bea73750485deb34cea1",
"blockNumber": "0x16b2806",
"transactionHash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionIndex": "0x97",
"logIndex": "0x170",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000200000000000000000000001000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000010000000000000000000000",
"type": "0x2",
"transactionHash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionIndex": "0x97",
"blockHash": "0xc110aebce8f730a831debeaac90c246afd37eec4fcc4bea73750485deb34cea1",
"blockNumber": "0x16b2806",
"gasUsed": "0xd846",
"effectiveGasPrice": "0xeb1137",
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"contractAddress": null,
"l1BaseFeeScalar": "0x8dd",
"l1BlobBaseFee": "0x39afbecf",
"l1BlobBaseFeeScalar": "0x101c12",
"l1Fee": "0x2912c95837",
"l1GasPrice": "0x416c7d12d",
"l1GasUsed": "0x6a4"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1734388958,
"chain": 8453,
"commit": "b552015"
}
71 changes: 71 additions & 0 deletions broadcast/1_BlockSendLib.s.sol/8453/run-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"transactions": [
{
"hash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x1a44076050125825900e736c501f859c50fe728c",
"function": "setSendLibrary(address,uint32,address)",
"arguments": [
"0xa536976c9cA36e74Af76037af555eefa632ce469",
"30255",
"0x1ccBf0db9C192d969de57E25B3fF09A25bb1D862"
],
"transaction": {
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"gas": "0x12ab9",
"value": "0x0",
"input": "0x9535ff30000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"nonce": "0xd",
"chainId": "0x2105"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x1971f61",
"logs": [
{
"address": "0x1a44076050125825900e736c501f859c50fe728c",
"topics": [
"0x4cff966ebee29a156dcb34cf72c1d06231fb1777f6bdf6e8089819232f002b1c"
],
"data": "0x000000000000000000000000a536976c9ca36e74af76037af555eefa632ce469000000000000000000000000000000000000000000000000000000000000762f0000000000000000000000001ccbf0db9c192d969de57e25b3ff09a25bb1d862",
"blockHash": "0xc110aebce8f730a831debeaac90c246afd37eec4fcc4bea73750485deb34cea1",
"blockNumber": "0x16b2806",
"transactionHash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionIndex": "0x97",
"logIndex": "0x170",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000200000000000000000000001000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000010000000000000000000000",
"type": "0x2",
"transactionHash": "0x6bf51e2eb3f5c348bcef89e8b5b6408066996dd06cc434a3470e6149d10ac0c9",
"transactionIndex": "0x97",
"blockHash": "0xc110aebce8f730a831debeaac90c246afd37eec4fcc4bea73750485deb34cea1",
"blockNumber": "0x16b2806",
"gasUsed": "0xd846",
"effectiveGasPrice": "0xeb1137",
"from": "0x0990be6db8c785fbbf9ded8baec612a10cae814b",
"to": "0x1a44076050125825900e736c501f859c50fe728c",
"contractAddress": null,
"l1BaseFeeScalar": "0x8dd",
"l1BlobBaseFee": "0x39afbecf",
"l1BlobBaseFeeScalar": "0x101c12",
"l1Fee": "0x2912c95837",
"l1GasPrice": "0x416c7d12d",
"l1GasUsed": "0x6a4"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1734388958,
"chain": 8453,
"commit": "b552015"
}

Large diffs are not rendered by default.

141 changes: 141 additions & 0 deletions broadcast/1_DeployFraxtalLockboxes.s.sol/252/dry-run/run-latest.json

Large diffs are not rendered by default.

4,388 changes: 4,388 additions & 0 deletions broadcast/1_DeployFraxtalLockboxes.s.sol/252/run-1734989457.json

Large diffs are not rendered by default.

4,388 changes: 4,388 additions & 0 deletions broadcast/1_DeployFraxtalLockboxes.s.sol/252/run-latest.json

Large diffs are not rendered by default.

3,860 changes: 3,860 additions & 0 deletions broadcast/1_DeployInk.s.sol/57073/dry-run/run-1734651845.json

Large diffs are not rendered by default.

3,860 changes: 3,860 additions & 0 deletions broadcast/1_DeployInk.s.sol/57073/dry-run/run-latest.json

Large diffs are not rendered by default.

4,397 changes: 4,397 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/dry-run/run-1735842789.json

Large diffs are not rendered by default.

4,359 changes: 4,359 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/dry-run/run-1735843164.json

Large diffs are not rendered by default.

4,359 changes: 4,359 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/dry-run/run-latest.json

Large diffs are not rendered by default.

4,359 changes: 4,359 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/run-1735845190.json

Large diffs are not rendered by default.

7,777 changes: 7,777 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/run-1735845654.json

Large diffs are not rendered by default.

7,777 changes: 7,777 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/run-1735845679.json

Large diffs are not rendered by default.

7,777 changes: 7,777 additions & 0 deletions broadcast/1_DeploySonic.s.sol/146/run-latest.json

Large diffs are not rendered by default.

4,391 changes: 4,391 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/dry-run/run-1735237894.json

Large diffs are not rendered by default.

4,391 changes: 4,391 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/dry-run/run-latest.json

Large diffs are not rendered by default.

4,391 changes: 4,391 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735238749.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735240149.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735240937.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735241312.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735241376.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735241582.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735241892.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-1735242008.json

Large diffs are not rendered by default.

8,150 changes: 8,150 additions & 0 deletions broadcast/2_DeployInk.s.sol/57073/run-latest.json

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions broadcast/2_DeployMockOFT.s.sol/252/run-1734395659.json

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions broadcast/2_DeployMockOFT.s.sol/252/run-1734395882.json

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions broadcast/2_DeployMockOFT.s.sol/252/run-1734401839.json

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions broadcast/2_DeployMockOFT.s.sol/252/run-1734479543.json

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions broadcast/2_DeployMockOFT.s.sol/252/run-1734479607.json

Large diffs are not rendered by default.

Loading

0 comments on commit 8fd11a7

Please sign in to comment.