Skip to content

Commit

Permalink
Merge pull request #21 from Ion-Protocol/jun/deployment
Browse files Browse the repository at this point in the history
ssETH deployment files
  • Loading branch information
junkim012 authored Sep 19, 2024
2 parents c297f98 + 2417298 commit 24058c1
Show file tree
Hide file tree
Showing 16 changed files with 494 additions and 119 deletions.
9 changes: 6 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
ETHERFI_LIQUID_DEPLOYER=

MAINNET_RPC_URL=
TENDERLY_RPC_URL=
SEPOLIA_RPC_URL=
SEI_DEVNET_RPC_URL=
OP_SEPOLIA_RPC_URL=

ETH_FROM=
PRIVATE_KEY=
PRIVATE_KEY=

L1_RPC_URL=
L2_RPC_URL=
CREATEX=
LIVE_DEPLOY_READ_FILE_NAME=
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
include .env

check-configs:
@echo "l1_file: ${l1_file} l2_file ${l2_file}"
bun lzConfigCheck.cjs ${l1_file} ${l2_file}

checkL1:
@echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)"
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge test --mp test/LiveDeploy.t.sol --fork-url=${L1_RPC_URL}
Expand All @@ -14,15 +18,15 @@ deployL1:

deployL2:
@echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)"
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L1_RPC_URL}
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L2_RPC_URL}

live-deployL1:
@echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)"
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L1_RPC_URL} --private-key=$(PRIVATE_KEY) --broadcast --slow --verify

live-deployL2:
@echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)"
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L1_RPC_URL} --private-key=$(PRIVATE_KEY) --broadcast --slow --verify
@export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L2_RPC_URL} --private-key=$(PRIVATE_KEY) --broadcast --slow --verify

prettier:
prettier --write '**/*.{md,yml,yaml,ts,js}'
Expand All @@ -37,10 +41,7 @@ prepare:
husky

deploy-createx-l1:
forge script script/DeployCustomCreatex.s.sol --rpc-url $L1_RPC_URL --private-key $PRIVATE_KEY --slow --no-metadata
forge script script/DeployCustomCreatex.s.sol --rpc-url ${L1_RPC_URL} --private-key ${PRIVATE_KEY} --slow --no-metadata

deploy-createx-l2:
forge script script/DeployCustomCreatex.s.sol --rpc-url $L2_RPC_URL --private-key $PRIVATE_KEY --slow --no-metadata

check-configs:
bun lzConfigCheck.cjs
forge script script/DeployCustomCreatex.s.sol --rpc-url ${L2_RPC_URL} --private-key ${PRIVATE_KEY} --slow --no-metadata
123 changes: 80 additions & 43 deletions deployment-config/chains/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,98 @@
"opMessenger": "0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1",
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c",
"assetToRateProviderAndPriceFeed": {
"NOTE_0_CHAINLINK_1_REDSTONE_2_GENERIC": 0,
"NOTE_THESE_KEYS_MUST_NOT_BE_CHECKSUMMED": 0,
"maxTimeFromLastUpdate": "86400",
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
"denomination": "stETH/wstETH",
"priceFeedType": 2,
"target": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
"signature": "stEthPerToken()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0xf7c9c121b09cd45591554eb8419a4e8a47e7b0a8"
},
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee": {
"priceFeed": "0x5c9C449BbC9a6075A2c061dF312a35fd1E05fF22",
"rateProvider": "0x51a9319B45F41c405eFA1EcbCcE530607A694862",
"decimals": 18,
"description": "weETH / ETH",
"priceFeedType": 0
"denomination": "eeETH/weETH",
"priceFeedType": 2,
"target": "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
"signature": "getEETHByWeETH(uint256)",
"arg": 1000000000000000000,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0x7d3b0ce57842b01abf6c490646fbb694dfa389e4"
},
"0xbf5495efe5db9ce00f80364c8b423567e58d2110": {
"priceFeed": "0x636A000262F6aA9e1F094ABF0aD8f645C44f641C",
"rateProvider": "0xb9B1eD92d3902eBEca23F931a629343D4C46c38D",
"decimals": 18,
"description": "ezETH / ETH",
"priceFeedType": 0
"denomination": "ETH/ezETH",
"priceFeedType": 2,
"target": "0x3239396B740cD6BBABb42196A03f7B77fA7102C9",
"signature": "getProtocolExchangeRate()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0x0852be00fa37fc24fb34111e3a4e44a28fb76106"
},
"0xa1290d69c65a6fe4df752f95823fae25cb99e5a7":{
"priceFeed": "0x03c68933f7a3F76875C0bc670a58e69294cDFD01",
"rateProvider": "0xB140e881E206E94B18e143f1739d5f212C59C859",
"decimals": 18,
"description": "RSETH / ETH",
"priceFeedType": 0
"0xa1290d69c65a6fe4df752f95823fae25cb99e5a7": {
"denomination": "ETH/rsETH",
"priceFeedType": 2,
"target": "0x349A73444b1a310BAe67ef67973022020d70020d",
"signature": "rsETHPrice()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0x6aeea90872fcfb5a45befd070adc3fcd8e71c067"
},
"0xfae103dc9cf190ed75350761e95403b7b8afa6c0": {
"priceFeed": "0xb613CfebD0b6e95abDDe02677d6bC42394FdB857",
"rateProvider": "0x4E323185C91Ef73e36f0CD2DdDcE54fb33112949",
"decimals": 18,
"description": "rswETH / ETH",
"priceFeedType": 0
"denomination": "ETH/rswETH",
"priceFeedType": 2,
"target": "0xfae103dc9cf190ed75350761e95403b7b8afa6c0",
"signature": "getRate()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0x99554bbcb88c2a26897e77686ee5425cebfb4f01"
},
"0xd9a442856c234a39a81a089c06451ebaa4306a72": {
"priceFeed": "0x76A495b0bFfb53ef3F0E94ef0763e03cE410835C",
"rateProvider": "0xEE8259373fCf5dc12F511867551F7f6FA6fcb0FB",
"decimals": 18,
"description": "pufETH/ETH",
"priceFeedType": 1
},
"0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0": {
"priceFeed": "0x86392dC19c0b719886221c78AB11eb8Cf5c52812",
"rateProvider": "0xa360Df495d0560bDDc5d681B54991629965ae170",
"decimals": 18,
"description": "STETH / ETH",
"priceFeedType": 0
"denomination": "ETH/pufETH",
"priceFeedType": 2,
"target": "0xd9a442856c234a39a81a089c06451ebaa4306a72",
"signature": "previewRedeem(uint256)",
"arg": 1000000000000000000,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0xbda3cfa3be083f4087cb3b647da8dfca51bdaa6a"
},
"0x8db2350d78abc13f5673a411d4700bcf87864dde": {
"rateProvider": "0x318Da095d602C08eF41319f4c4bA0646d318C906",
"decimals": 8
"denomination": "WBTC/swBTC",
"priceFeedType": 2,
"target": "0x8DB2350D78aBc13f5673A411D4700BCF87864dDE",
"signature": "pricePerShare()",
"arg": 0,
"expectedMin": "100000000",
"expectedMax": "100000000",
"rateProvider": "0x318Da095d602C08eF41319f4c4bA0646d318C906"
},
"0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6": {
"denomination": "ETH/apxETH",
"priceFeedType": 2,
"target": "0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6",
"signature": "assetsPerShare()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0x9a044a83ddd7de8cafd8ecbf70bf7dad4865cf44"
},
"0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6":{
"priceFeed": "0x19219bc90f48dee4d5cf202e09c438faacfd8bea",
"rateProvider": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"description": "apxETH/ETH",
"priceFeedType": 1

"0xac3e018457b222d93114458476f3e3416abbe38f": {
"denomination": "ETH/sfrxETH",
"priceFeedType": 2,
"target": "0xac3e018457b222d93114458476f3e3416abbe38f",
"signature": "pricePerShare()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1200000000000000000",
"rateProvider": "0xa427b23b686986ed993b4ba9ae23bf65022f938a"
}

}
}
17 changes: 16 additions & 1 deletion deployment-config/chains/1329.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"name": "Sei",
"balancerVault": "0x0000000000000000000000000000000000000000",
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c"
"lzEndpoint": "0x1a44076050125825900e736c501f859c50fE728c",
"assetToRateProviderAndPriceFeed": {
"NOTE_0_CHAINLINK_1_REDSTONE_2_GENERIC": 0,
"NOTE_THESE_KEYS_MUST_NOT_BE_CHECKSUMMED": 0,
"maxTimeFromLastUpdate": "86400",
"0x9faaea2cdd810b21594e54309dc847842ae301ce": {
"denomination": "ETH/seiyanETH",
"priceFeedType": 2,
"target": "0x24152894Decc7384b05E8907D6aDAdD82c176499",
"signature": "getRateSafe()",
"arg": 0,
"expectedMin": "1000000000000000000",
"expectedMax": "1100000000000000000",
"rateProvider": "0x4cb84449fab2812556533491a5c171611a9737fa"
}
}
}
12 changes: 10 additions & 2 deletions deployment-config/exampleL1.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"peerEid": 30280,
"tellerContractName": "TellerWithMultiAssetSupport",
"assets": [
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
"0xbf5495efe5db9ce00f80364c8b423567e58d2110",
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",
"0xD9A442856C234a39a81a089C06451EBAa4306a72",
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6"
],
"dvnIfNoDefault": {
"required": [
Expand All @@ -46,8 +53,9 @@
},
"rolesAuthority": {
"rolesAuthoritySalt": "0x66bbc3b3b3000b01466a3a00000000000000000000000000000000000000001c",
"strategist": "0xC2d99d76bb9D46BF8Ec9449E4DfAE48C30CF0839",
"exchangeRateBot": "0x00000000004F96C07B83e86600D86F0000000000",
"strategist": "0x00000000004F96C07B83e86600D86F0000000000",
"exchangeRateBot": "0x1755397BEc366a1e1160d8aE0106C60E7e344B56",
"pauser": "0xe5CcB29Cb9C886da329098A184302E2D5Ff0cD9E",
"address": "0x00000000004F96C07B83e86600D86F0000000000"
},
"decoder": {
Expand Down
5 changes: 3 additions & 2 deletions deployment-config/exampleL2.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
},
"rolesAuthority": {
"rolesAuthoritySalt": "0x66bbc3b3b3000b01466a3a00000000000000000000000000000000000000000e",
"strategist": "0xC2d99d76bb9D46BF8Ec9449E4DfAE48C30CF0839",
"exchangeRateBot": "0x00000000004F96C07B83e86600D86F0000000000",
"strategist": "0x00000000004F96C07B83e86600D86F0000000000",
"exchangeRateBot": "0x1755397BEc366a1e1160d8aE0106C60E7e344B56",
"pauser": "0xe5CcB29Cb9C886da329098A184302E2D5Ff0cD9E",
"address": "0x00000000004F96C07B83e86600D86F0000000000"
},
"decoder": {
Expand Down
66 changes: 66 additions & 0 deletions deployment-config/ssETH-L1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"protocolAdmin": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"base": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"boringVaultAndBaseDecimals": "18",
"boringVault": {
"boringVaultSalt": "0x1000000000000000000000000000000000000000000000000000000000000011",
"boringVaultName": "Sei Native Yield Super Seiyan ETH",
"boringVaultSymbol": "ssETH",
"address": "0x0000000000000000000000000000000000000000"
},
"manager": {
"managerSalt": "0x2000000000000000000000000000000000000000000000000000000000000011",
"address": "0x0000000000000000000000000000000000000000"
},
"accountant": {
"accountantSalt": "0x3000000000000000000000000000000000000000000000000000000000000011",
"payoutAddress": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"allowedExchangeRateChangeUpper": "10030",
"allowedExchangeRateChangeLower": "9980",
"minimumUpdateDelayInSeconds": "3600",
"managementFee": "0",
"address": "0x0000000000000000000000000000000000000000"
},
"teller": {
"tellerSalt": "0x4000000000000000000000000000000000000000000000000000000000000011",
"maxGasForPeer": 200000,
"minGasForPeer": 60000,
"peerEid": 30280,
"tellerContractName": "MultiChainLayerZeroTellerWithMultiAssetSupport",
"opMessenger": "0x0000000000000000000000000000000000000000",
"assets": [
"0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
"0xbf5495efe5db9ce00f80364c8b423567e58d2110",
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",
"0xD9A442856C234a39a81a089C06451EBAa4306a72",
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
"0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6",
"0xac3E018457B222d93114458476f3E3416Abbe38F"
],
"dvnIfNoDefault": {
"required": [
"0x589dEDbD617e0CBcB916A9223F4d1300c294236b"
],
"optional": [
"0x380275805876Ff19055EA900CDb2B46a94ecF20D",
"0x8FafAE7Dd957044088b3d0F67359C327c6200d18",
"0xa59BA433ac34D2927232918Ef5B2eaAfcF130BA5",
"0xe552485d02EDd3067FE7FCbD4dd56BB1D3A998D2"
],
"blockConfirmationsRequiredIfNoDefault": 15,
"optionalThreshold": 2
},
"address": "0x0000000000000000000000000000000000000000"
},
"rolesAuthority": {
"rolesAuthoritySalt": "0x5000000000000000000000000000000000000000000000000000000000000011",
"strategist": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"exchangeRateBot": "0x0000000000417626Ef34D62C4DC189b021603f2F",
"address": "0x0000000000000000000000000000000000000000"
},
"decoder": {
"decoderSalt": "0x6000000000000000000000000000000000000000000000000000000000000007",
"address": "0x0000000000000000000000000000000000000000"
}
}
59 changes: 59 additions & 0 deletions deployment-config/ssETH-L2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"protocolAdmin": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505",
"base": "0x160345fC359604fC6e70E3c5fAcbdE5F7A9342d8",
"boringVaultAndBaseDecimals": "18",
"boringVault": {
"boringVaultSalt": "0x1000000000000000000000000000000000000000000000000000000000000011",
"boringVaultName": "Sei Native Yield Super Seiyan ETH",
"boringVaultSymbol": "ssETH",
"address": "0x0000000000000000000000000000000000000000"
},
"manager": {
"managerSalt": "0x2000000000000000000000000000000000000000000000000000000000000011",
"address": "0x0000000000000000000000000000000000000000"
},
"accountant": {
"accountantSalt": "0x3000000000000000000000000000000000000000000000000000000000000011",
"payoutAddress": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505",
"allowedExchangeRateChangeUpper": "10030",
"allowedExchangeRateChangeLower": "9980",
"minimumUpdateDelayInSeconds": "3600",
"managementFee": "0",
"address": "0x0000000000000000000000000000000000000000"
},
"teller": {
"tellerSalt": "0x4000000000000000000000000000000000000000000000000000000000000011",
"maxGasForPeer": 200000,
"minGasForPeer": 60000,
"peerEid": 30101,
"tellerContractName": "MultiChainLayerZeroTellerWithMultiAssetSupport",
"opMessenger": "0x0000000000000000000000000000000000000000",
"assets": [
"0x9fAaEA2CDd810b21594E54309DC847842Ae301Ce"
],
"dvnIfNoDefault": {
"required": [
"0x6788f52439aca6bff597d3eec2dc9a44b8fee842"
],
"optional": [
"0x1feb08b1a53a9710afce82d380b8c2833c69a37e",
"0x87048402c32632b7c4d0a892d82bc1160e8b2393",
"0xd24972c11f91c1bb9eaee97ec96bb9c33cf7af24",
"0xbd00c87850416db0995ef8030b104f875e1bdd15"
],
"blockConfirmationsRequiredIfNoDefault": 15,
"optionalThreshold": 2
},
"address": "0x0000000000000000000000000000000000000000"
},
"rolesAuthority": {
"rolesAuthoritySalt": "0x5000000000000000000000000000000000000000000000000000000000000011",
"strategist": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505",
"exchangeRateBot": "0xF2dE1311C5b2C1BD94de996DA13F80010453e505",
"address": "0x0000000000000000000000000000000000000000"
},
"decoder": {
"decoderSalt": "0x6000000000000000000000000000000000000000000000000000000000000007",
"address": "0x0000000000000000000000000000000000000000"
}
}
Loading

0 comments on commit 24058c1

Please sign in to comment.