Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KelpDAO integration #334

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e232a1f
Merge pull request #4 from karpatkey/main
coviccinelle Nov 25, 2024
a817cb6
Merge branch 'karpatkey:main' into main
coviccinelle Nov 27, 2024
7bb2f34
added Symbiotic config to setup ABIs
coviccinelle Nov 27, 2024
dce18f3
WIP: symbiotic dev, setup config for wstETHPool, deposit
coviccinelle Nov 27, 2024
5a12fe3
WIP: symbiotic, setup config for proxy for all Pools
coviccinelle Nov 27, 2024
759245f
WIP: symbiotic: setup config add (proxy) for all Pools
coviccinelle Nov 27, 2024
d53c3fe
wip symbiotic, import symbiotic + index symbiotic step 1
coviccinelle Nov 27, 2024
ed5f5f9
wip symbiotic: actions and index
coviccinelle Nov 27, 2024
76319f1
wip symbiotic, stakeWise insp
coviccinelle Nov 27, 2024
4bf2808
wip: moved pools addresses from config to _ethPools + change abi name…
coviccinelle Nov 28, 2024
2058db7
_ethPools
coviccinelle Nov 28, 2024
46f46aa
types added
coviccinelle Nov 28, 2024
02246de
added schema symbiotic
coviccinelle Nov 28, 2024
0df82d5
adapt _ethPools format + wip index symbiotic
coviccinelle Nov 28, 2024
a95b9fc
wip index symbio
coviccinelle Nov 28, 2024
e491395
update _ethPools + config file
coviccinelle Nov 28, 2024
e021de8
update _ethPools token
coviccinelle Nov 28, 2024
cf59b3b
update deposit in index for symbiotic
coviccinelle Nov 28, 2024
d73b611
update deposit symbiotic, not so sure ...
coviccinelle Nov 28, 2024
3071651
desposit symbiotic
coviccinelle Nov 28, 2024
8661fe4
symbiotic: deposit + withdraw
coviccinelle Nov 29, 2024
a3ce83d
prettier symbiotic
coviccinelle Dec 4, 2024
4120a3e
test deposit symbiotic p1
coviccinelle Dec 6, 2024
2facabd
test symbiotic ok
coviccinelle Dec 6, 2024
96bc84b
pretty tests for symbiotic
coviccinelle Dec 6, 2024
2f379fa
Merge branch 'karpatkey:main' into main
coviccinelle Dec 6, 2024
62a1b8d
small fix
coviccinelle Dec 9, 2024
fd3b2b1
removing comments + using global wsteth address
coviccinelle Dec 9, 2024
44fa9b3
Merge branch 'main' into symbiotic
coviccinelle Dec 9, 2024
9a64f7e
yarn setup
coviccinelle Dec 9, 2024
2db73ba
Merge pull request #5 from hopperlabsxyz/symbiotic
jfrancai Dec 9, 2024
56bd58c
fix merge conflicts
jfrancai Dec 9, 2024
25d20b6
added kelp in protocols/index
coviccinelle Dec 10, 2024
3dd1a32
kelp stake
coviccinelle Dec 11, 2024
180f3f5
wip
coviccinelle Dec 13, 2024
dde3d21
wip
jfrancai Dec 13, 2024
1bcfab1
let it aside for now, need more test
coviccinelle Dec 18, 2024
c078e1a
wip kelp, test 2/3
coviccinelle Dec 20, 2024
b780491
wip kelp, test 2/3, tiny fix
coviccinelle Dec 20, 2024
60d72e8
tests finally ok kelp
coviccinelle Dec 23, 2024
492faa8
kelp tested ok
coviccinelle Dec 30, 2024
387a2cb
Merge branch 'karpatkey:main' into main
coviccinelle Dec 31, 2024
f3ab381
Merge branch 'main' into kelp
coviccinelle Dec 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/eth-sdk/abis/mainnet/kelp/LRTDepositPool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AssetNotSupported","type":"error"},{"inputs":[],"name":"CallerNotLRTConfigAdmin","type":"error"},{"inputs":[],"name":"CallerNotLRTConfigManager","type":"error"},{"inputs":[],"name":"CallerNotLRTConfigOperator","type":"error"},{"inputs":[],"name":"EthTransferFailed","type":"error"},{"inputs":[],"name":"InvalidAmountToDeposit","type":"error"},{"inputs":[],"name":"InvalidMaximumNodeDelegatorLimit","type":"error"},{"inputs":[],"name":"MaximumDepositLimitReached","type":"error"},{"inputs":[],"name":"MaximumNodeDelegatorLimitReached","type":"error"},{"inputs":[],"name":"MinimumAmountToReceiveNotMet","type":"error"},{"inputs":[{"internalType":"address","name":"assetAddress","type":"address"},{"internalType":"uint256","name":"assetBalance","type":"uint256"}],"name":"NodeDelegatorHasAssetBalance","type":"error"},{"inputs":[],"name":"NodeDelegatorHasETH","type":"error"},{"inputs":[],"name":"NodeDelegatorHasUnaccountedWithdrawals","type":"error"},{"inputs":[],"name":"NodeDelegatorNotFound","type":"error"},{"inputs":[],"name":"NotEnoughAssetToTransfer","type":"error"},{"inputs":[],"name":"ValueAlreadyInUse","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rsethMintAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"referralId","type":"string"}],"name":"AssetDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rsethMintAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"referralId","type":"string"}],"name":"ETHDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"toAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"ETHSwappedForLST","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxNegligibleAmount","type":"uint256"}],"name":"MaxNegligibleAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxNodeDelegatorLimit","type":"uint256"}],"name":"MaxNodeDelegatorLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minAmountToDeposit","type":"uint256"}],"name":"MinAmountToDepositUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"nodeDelegatorContracts","type":"address[]"}],"name":"NodeDelegatorAddedinQueue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nodeDelegatorContracts","type":"address"}],"name":"NodeDelegatorRemovedFromQueue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"lrtConfig","type":"address"}],"name":"UpdatedLRTConfig","type":"event"},{"inputs":[{"internalType":"address[]","name":"nodeDelegatorContracts","type":"address[]"}],"name":"addNodeDelegatorContractToQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"minRSETHAmountExpected","type":"uint256"},{"internalType":"string","name":"referralId","type":"string"}],"name":"depositAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minRSETHAmountExpected","type":"uint256"},{"internalType":"string","name":"referralId","type":"string"}],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getAssetCurrentLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getAssetDistributionData","outputs":[{"internalType":"uint256","name":"assetLyingInDepositPool","type":"uint256"},{"internalType":"uint256","name":"assetLyingInNDCs","type":"uint256"},{"internalType":"int256","name":"assetStakedInEigenLayer","type":"int256"},{"internalType":"uint256","name":"assetUnstakingFromEigenLayer","type":"uint256"},{"internalType":"uint256","name":"assetLyingInConverter","type":"uint256"},{"internalType":"uint256","name":"assetLyingUnstakingVault","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHDistributionData","outputs":[{"internalType":"uint256","name":"ethLyingInDepositPool","type":"uint256"},{"internalType":"uint256","name":"ethLyingInNDCs","type":"uint256"},{"internalType":"int256","name":"ethStakedInEigenLayer","type":"int256"},{"internalType":"uint256","name":"ethUnstakingFromEigenLayer","type":"uint256"},{"internalType":"uint256","name":"ethLyingInConverter","type":"uint256"},{"internalType":"uint256","name":"ethLyingInUnstakingVault","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNodeDelegatorQueue","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getRsETHAmountToMint","outputs":[{"internalType":"uint256","name":"rsethAmountToMint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAsset","type":"address"},{"internalType":"uint256","name":"ethAmountToSend","type":"uint256"}],"name":"getSwapETHToAssetReturnAmount","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getTotalAssetDeposits","outputs":[{"internalType":"uint256","name":"totalAssetDeposit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"lrtConfigAddr","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isNodeDelegator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lrtConfig","outputs":[{"internalType":"contract ILRTConfig","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"maxApproveToLRTConverter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxNegligibleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNodeDelegatorLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minAmountToDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nodeDelegatorQueue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiveFromLRTConverter","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"receiveFromNodeDelegator","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"receiveFromRewardReceiver","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"nodeDelegatorContracts","type":"address[]"}],"name":"removeManyNodeDelegatorContractsFromQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nodeDelegatorAddress","type":"address"}],"name":"removeNodeDelegatorContractFromQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxNegligibleAmount_","type":"uint256"}],"name":"setMaxNegligibleAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmountToDeposit_","type":"uint256"}],"name":"setMinAmountToDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAsset","type":"address"},{"internalType":"uint256","name":"minToAssetAmount","type":"uint256"}],"name":"swapETHForAssetWithinDepositPool","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferAssetToLRTUnstakingVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ndcIndex","type":"uint256"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferAssetToNodeDelegator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferETHToLRTUnstakingVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ndcIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferETHToNodeDelegator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lrtConfigAddr","type":"address"}],"name":"updateLRTConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxNodeDelegatorLimit_","type":"uint256"}],"name":"updateMaxNodeDelegatorLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Loading