-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Ion-Protocol/carson/createxcustom
Sei Mainnet deployment and custom createx
- Loading branch information
Showing
15 changed files
with
212 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"base": "0x160345fC359604fC6e70E3c5fAcbdE5F7A9342d8", | ||
"balancerVault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", | ||
"opMessenger": "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1", | ||
"balancerVault": "0x0000000000000000000000000000000000000000", | ||
"opMessenger": "0x0000000000000000000000000000000000000000", | ||
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"protocolAdmin": "0x0000000000417626Ef34D62C4DC189b021603f2F", | ||
|
||
"boringVault":{ | ||
"boringVaultSalt": "0x1000000000000000000000000000000000000000000000000000000000000000", | ||
"boringVaultName": "Sei Native Yield Nucleus Token", | ||
"boringVaultSymbol": "seiyanETH", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"manager":{ | ||
"managerSalt": "0x2000000000000000000000000000000000000000000000000000000000000000", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"accountant":{ | ||
"accountantSalt": "0x3000000000000000000000000000000000000000000000000000000000000000", | ||
"payoutAddress": "0x0000000000417626Ef34D62C4DC189b021603f2F", | ||
"allowedExchangeRateChangeUpper": "10030", | ||
"allowedExchangeRateChangeLower": "9980", | ||
"minimumUpdateDelayInSeconds": "3600", | ||
"managementFee": "0", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"teller": { | ||
"tellerSalt": "0x4000000000000000000000000000000000000000000000000000000000000000", | ||
"maxGasForPeer": 200000, | ||
"minGasForPeer": 60000, | ||
"peerEid": 30280, | ||
"tellerContractName": "MultiChainLayerZeroTellerWithMultiAssetSupport", | ||
"assets": [ | ||
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee", | ||
"0xbf5495efe5db9ce00f80364c8b423567e58d2110", | ||
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7", | ||
"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0", | ||
"0xD9A442856C234a39a81a089C06451EBAa4306a72", | ||
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" | ||
], | ||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
"rolesAuthority": { | ||
"rolesAuthoritySalt": "0x5000000000000000000000000000000000000000000000000000000000000000", | ||
"strategist": "0x0000000000417626Ef34D62C4DC189b021603f2F", | ||
"exchangeRateBot": "0x0000000000417626Ef34D62C4DC189b021603f2F", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"decoder": { | ||
"decoderSalt": "0x6000000000000000000000000000000000000000000000000000000000000000", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"protocolAdmin": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505", | ||
|
||
"boringVault":{ | ||
"boringVaultSalt": "0x1000000000000000000000000000000000000000000000000000000000000000", | ||
"boringVaultName": "Sei Native Yield Nucleus Token", | ||
"boringVaultSymbol": "seiyanETH", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"manager":{ | ||
"managerSalt": "0x2000000000000000000000000000000000000000000000000000000000000000", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"accountant":{ | ||
"accountantSalt": "0x3000000000000000000000000000000000000000000000000000000000000000", | ||
"payoutAddress": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505", | ||
"allowedExchangeRateChangeUpper": "10030", | ||
"allowedExchangeRateChangeLower": "9980", | ||
"minimumUpdateDelayInSeconds": "3600", | ||
"managementFee": "0", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"teller": { | ||
"tellerSalt": "0x4000000000000000000000000000000000000000000000000000000000000000", | ||
"maxGasForPeer": 200000, | ||
"minGasForPeer": 60000, | ||
"peerEid": 30101, | ||
"tellerContractName": "MultiChainLayerZeroTellerWithMultiAssetSupport", | ||
"assets": [ | ||
], | ||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
"rolesAuthority": { | ||
"rolesAuthoritySalt": "0x5000000000000000000000000000000000000000000000000000000000000000", | ||
"strategist": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505", | ||
"exchangeRateBot": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
}, | ||
|
||
"decoder": { | ||
"decoderSalt": "0x6000000000000000000000000000000000000000000000000000000000000000", | ||
|
||
"address": "0x0000000000000000000000000000000000000000" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity =0.8.23; | ||
|
||
import { console } from "forge-std/console.sol"; | ||
import { CreateX } from "lib/createx/src/CreateX.sol"; | ||
import { Script, stdJson } from "@forge-std/Script.sol"; | ||
|
||
contract DeployCustomCreateX is Script { | ||
address broadcaster; | ||
string internal mnemonic; | ||
string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk"; | ||
|
||
address constant EXPECTED = 0xD7d6e6C50507d278b9F43f62Bc7b9310ECeff2C5; | ||
bytes32 constant SALT = 0x8888888833388888888000000000000000000000000000000000000000000000; | ||
|
||
constructor() { | ||
address from = vm.envOr({ name: "ETH_FROM", defaultValue: address(0) }); | ||
if (from != address(0)) { | ||
broadcaster = from; | ||
} else { | ||
mnemonic = vm.envOr({ name: "MNEMONIC", defaultValue: TEST_MNEMONIC }); | ||
(broadcaster,) = deriveRememberKey({ mnemonic: mnemonic, index: 0 }); | ||
} | ||
} | ||
|
||
modifier broadcast() { | ||
vm.startBroadcast(broadcaster); | ||
_; | ||
vm.stopBroadcast(); | ||
} | ||
|
||
function run() public broadcast { | ||
require(EXPECTED.code.length == 0, "Createx already exists on this chain"); | ||
|
||
CreateX createx = new CreateX{ salt: SALT }(); | ||
|
||
console.log(address(createx)); | ||
require(address(createx) == EXPECTED, "address is not expected"); | ||
} | ||
} |
Oops, something went wrong.