Skip to content

Commit

Permalink
Merge pull request #121 from yieldnest/feature/yneigen
Browse files Browse the repository at this point in the history
Feature/yneigen
  • Loading branch information
danoctavian authored Aug 28, 2024
2 parents 0a41832 + a6de395 commit 520c3b4
Show file tree
Hide file tree
Showing 100 changed files with 13,765 additions and 2,823 deletions.
7 changes: 6 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ STAKING_ADMIN_ADDRESS=
STAKING_NODES_ADMIN_ADDRESS=
VALIDATOR_MANAGER_ADDRESS=
REWARDS_DISTRIBUTOR_ADDRESS=
PROXY_OWNER
PROXY_OWNER=

# for deploying the contracts
RPC_URL=
# for use with cast wallet. store the deployer private key in the keystore and put the public address here.
DEPLOYER_ADDRESS=
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,17 @@ deploy-protocol :; forge script script/DeployYieldNest.s.sol:DeployYieldNest --
# Verify

verify-roles :; forge script script/Verify.s.sol --rpc-url ${rpc}

# to set up cast wallet run: cast wallet import yieldnestDeployerKey --interactive
# then import the private key with which you wish to deploy, create a password and add the public address of that key to the .env under DEPLOYER_ADDRESS.

# make ynEigen path=script/ynEigen/input/lsd-mainnet.json rpc=your-rpc-here deployer=0xYourPublicAddressThatCorrespondsToYourSavedPrivateKeyInyieldnestDeployerKey api=etherscanApiKey
deployerAccountName ?= yieldnestDeployerKey
ynEigen :; forge script script/ynEigen/YnEigenScript.s.sol:YnEigenScript --rpc-url ${rpc} --sig "run(string)" ${path} --account ${deployerAccountName} --sender ${deployer} --broadcast --etherscan-api-key ${api} --verify

# make ynEigen-verify path=script/ynEigen/input/lsd-mainnet.json rpc=your-rpc-here
ynEigen-verify :; forge script script/ynEigen/YnEigenScript.s.sol:YnEigenScript --rpc-url ${rpc} --sig "verify(string)" ${path} --broadcast

# alternative bash script with less inputs
# make ynEigen-bash path=script/ynEigen/input/lsd-mainnet.json
ynEigen-bash :; ./script/ynEigen/bash/deployYnEigen.sh ${path}
37 changes: 37 additions & 0 deletions deployments/YnLSDe-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"ADMIN": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"DEFAULT_SIGNER": "0xa1E340bd1e3ea09B3981164BBB4AfeDdF0e7bA0D",
"EIGEN_STRATEGY_ADMIN": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"PAUSE_ADMIN": "0xa08F39d30dc865CC11a49b6e5cBd27630D6141C3",
"PROXY_ADMIN_OWNER": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"STAKING_ADMIN": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"STAKING_NODES_OPERATOR": "0xa08F39d30dc865CC11a49b6e5cBd27630D6141C3",
"STRATEGY_CONTROLLER": "0x0573A7DaFBc080064663623979287286Bb65C1BD",
"TOKEN_STAKING_NODE_CREATOR": "0xa08F39d30dc865CC11a49b6e5cBd27630D6141C3",
"UNPAUSE_ADMIN": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"YNDev": "0xa08F39d30dc865CC11a49b6e5cBd27630D6141C3",
"YnSecurityCouncil": "0xfcad670592a3b24869C0b51a6c6FDED4F95D6975",
"implementation-YnLSDe": "0x3688bAce1C507b368b5061F97cB48037f0Df6b2f",
"implementation-assetRegistry": "0x84dA5aB890B0a3314deEd0BeBd2463309a755EAc",
"implementation-eigenStrategyManager": "0xE2343a850394ee1b1e33b16Da5bD73B076D6Fa81",
"implementation-rateProvider": "0xAEDC83F607126b4D2437F79285e2C635685BBA01",
"implementation-tokenStakingNodesManager": "0x17e77F964538fed3ADEc3E8dBB6147dA258206Da",
"implementation-ynEigenDepositAdapter": "0x5F8c55A5A33d63CAa231c668a62f69AA862020E9",
"implementation-ynEigenViewer": "0x95046553147036dA98Aecc02B2526FCBc36F4306",
"proxy-YnLSDe": "0x35Ec69A77B79c255e5d47D5A3BdbEFEfE342630c",
"proxy-assetRegistry": "0x323C933df2523D5b0C756210446eeE0fB84270fd",
"proxy-eigenStrategyManager": "0x92D904019A92B0Cafce3492Abb95577C285A68fC",
"proxy-rateProvider": "0xb658Cf6F4C232Be5c6035f2b42b96393089F20D9",
"proxy-tokenStakingNodesManager": "0x6B566CB6cDdf7d140C59F84594756a151030a0C3",
"proxy-ynEigenDepositAdapter": "0xA9CD5a5199177b704287e379e85af95F0f061Bf2",
"proxy-ynEigenViewer": "0x9B933D84Fac0782F3B275D76B64a0DBf6FBEf28F",
"proxyAdmin-YnLSDe": "0x1bfF798A6072597c401f7C83A6a1096Ae5F0aFf7",
"proxyAdmin-assetRegistry": "0xDf92BE359fB53846cCdaC8FFF1884314533949C7",
"proxyAdmin-eigenStrategyManager": "0x69C34FB00Ebc0d7ac09Ab7968D2Eb9a07C2eB301",
"proxyAdmin-rateProvider": "0x16c95825faD0CE0dD56698bc8Ab49E7B00Fa29d9",
"proxyAdmin-tokenStakingNodesManager": "0x850d012115fb4D90711F53e86B2945019Bf7F36C",
"proxyAdmin-ynEigenDepositAdapter": "0x7D779806B0c6A0201984b82e57830B84a75c3C07",
"proxyAdmin-ynEigenViewer": "0x40fBdD124e80fF168574Fa7823440E574345307E",
"tokenStakingNodeImplementation": "0x57e1D090B1aF526CD4174019D5b9702EEBE236FA",
"upgradeTimelock": "0xbB73f8a5B0074b27c6df026c77fA08B0111D017A"
}
37 changes: 37 additions & 0 deletions deployments/YnLSDe-17000.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"ADMIN": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"DEFAULT_SIGNER": "0x72fdBD51085bDa5eEEd3b55D1a46E2e92f0837a5",
"EIGEN_STRATEGY_ADMIN": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"PAUSE_ADMIN": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"PROXY_ADMIN_OWNER": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"STAKING_ADMIN": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"STAKING_NODES_OPERATOR": "0x9Dd8F69b62ddFd990241530F47dcEd0Dad7f7d39",
"STRATEGY_CONTROLLER": "0x1234567890123456789012345678901234567890",
"TOKEN_STAKING_NODE_CREATOR": "0x9Dd8F69b62ddFd990241530F47dcEd0Dad7f7d39",
"UNPAUSE_ADMIN": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"YNDev": "0x9Dd8F69b62ddFd990241530F47dcEd0Dad7f7d39",
"YnSecurityCouncil": "0x743b91CDB1C694D4F51bCDA3a4A59DcC0d02b913",
"implementation-YnLSDe": "0xA6cf070663127FAa41a2150BdadAD8D84b876AEb",
"implementation-assetRegistry": "0x7385f1dBF3b0Ee3d85c89A38901Aa87333D30946",
"implementation-eigenStrategyManager": "0xc599064e66FB509FD49B5083896649a742066758",
"implementation-rateProvider": "0x94009d1296dc2e6370Aa34c94BEDFeD55f96a276",
"implementation-tokenStakingNodesManager": "0xAD89Fd40BE78811E279C89FF15DC3B831785192D",
"implementation-ynEigenDepositAdapter": "0x7af5cc12cee35dee9ccd0aa4d5e1772eb45b2046",
"implementation-ynEigenViewer": "0x85bB85b81Db2f9b446e9100057420AE5DE7232E4",
"proxy-YnLSDe": "0x071bdC8eDcdD66730f45a3D3A6F794FAA37C75ED",
"proxy-assetRegistry": "0xaD31546AdbfE1EcD7137310508f112039a35b6F7",
"proxy-eigenStrategyManager": "0xA0a11A9b84bf87c0323bc183715a22eC7881B7FC",
"proxy-rateProvider": "0xd68C29263F6dC2Ff8D9307b3AfAcD6D6fDeFbB3A",
"proxy-tokenStakingNodesManager": "0x5c20D1a85C7d9acB503135a498E26Eb55d806552",
"proxy-ynEigenDepositAdapter": "0x7d0c1F604571a1c015684e6c15f2DdEc432C5e74",
"proxy-ynEigenViewer": "0xECCE549926637E974Ca5739a8827E612682415E7",
"proxyAdmin-YnLSDe": "0x92Df7b6001EF4cFe40B6b425bC4a358c05f27624",
"proxyAdmin-assetRegistry": "0x4248392db8Ee31aA579822207d059A28A38c4510",
"proxyAdmin-eigenStrategyManager": "0x010c60d663fddDAA076F0cE63f6692f0b5605fE5",
"proxyAdmin-rateProvider": "0x401af3714dc0c0d28f752dbdd70cf423c667246e",
"proxyAdmin-tokenStakingNodesManager": "0x18ED5129bCEfA996B4cade4e614c8941De3126d2",
"proxyAdmin-ynEigenDepositAdapter": "0x9E9ce6D0fD72c7A31Eb7D99d8eCEA4b35a4FD088",
"proxyAdmin-ynEigenViewer": "0x4879936e5822b936A9981f8F67844BC77096d433",
"tokenStakingNodeImplementation": "0xd1436C90205Dc2F807C33D88F122dC9D06964200",
"upgradeTimelock": "0x62173555C27C67644C5634e114e42A63A59CD7A5"
}
Loading

0 comments on commit 520c3b4

Please sign in to comment.