Skip to content

Commit

Permalink
add kelp contracts (#227)
Browse files Browse the repository at this point in the history
* add kelp contracts

* remove kelp contracts from stader

* format files

---------

Co-authored-by: Julien Nicoulaud <[email protected]>
  • Loading branch information
AdvayAgrawal and jnicoulaud-ledger authored Oct 15, 2024
1 parent 2548f16 commit 353c799
Show file tree
Hide file tree
Showing 6 changed files with 2,062 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
"name": "NotEnoughAssetToTransfer",
"type": "error"
},
{
"inputs": [],
"name": "TokenTransferFailed",
"type": "error"
},
{
"inputs": [],
"name": "ValueAlreadyInUse",
Expand Down Expand Up @@ -178,25 +183,6 @@
"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": [
Expand Down Expand Up @@ -403,21 +389,6 @@
"internalType": "uint256",
"name": "assetStakedInEigenLayer",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "assetUnstakingFromEigenLayer",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "assetLyingInConverter",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "assetLyingUnstakingVault",
"type": "uint256"
}
],
"stateMutability": "view",
Expand All @@ -441,21 +412,6 @@
"internalType": "uint256",
"name": "ethStakedInEigenLayer",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethUnstakingFromEigenLayer",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethLyingInConverter",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethLyingInUnstakingVault",
"type": "uint256"
}
],
"stateMutability": "view",
Expand Down Expand Up @@ -586,19 +542,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
}
],
"name": "maxApproveToLRTConverter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "maxNodeDelegatorLimit",
Expand Down Expand Up @@ -799,4 +742,4 @@
"stateMutability": "payable",
"type": "receive"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type": "uint256"
}
],
"name": "AssetPriceMustBeGreaterMinimum",
"name": "AssetPriceOutOfPriceRange",
"type": "error"
},
{
Expand All @@ -41,6 +41,11 @@
"name": "CallerNotLRTConfigAllowedRole",
"type": "error"
},
{
"inputs": [],
"name": "CallerNotLRTConfigManager",
"type": "error"
},
{
"inputs": [],
"name": "CallerNotLRTConfigOperator",
Expand All @@ -56,6 +61,11 @@
"name": "ExceedAmountToWithdraw",
"type": "error"
},
{
"inputs": [],
"name": "ExceedWithdrawalDelay",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAmountToWithdraw",
Expand Down Expand Up @@ -89,7 +99,7 @@
"type": "uint256"
}
],
"name": "RsETHPriceMustBeGreaterMinimum",
"name": "RsETHPriceOutOfPriceRange",
"type": "error"
},
{
Expand All @@ -112,11 +122,6 @@
"name": "WithdrawalDelayNotPassed",
"type": "error"
},
{
"inputs": [],
"name": "WithdrawalDelayTooSmall",
"type": "error"
},
{
"inputs": [],
"name": "WithdrawalLocked",
Expand Down Expand Up @@ -296,6 +301,19 @@
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "ReferralIdEmitted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -360,6 +378,11 @@
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "completeWithdrawal",
Expand Down Expand Up @@ -502,6 +525,11 @@
"internalType": "uint256",
"name": "rsETHUnstaked",
"type": "uint256"
},
{
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "initiateWithdrawal",
Expand Down Expand Up @@ -658,6 +686,16 @@
"internalType": "uint256",
"name": "minimumRsEthPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maximumAssetPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maximumRsEthPrice",
"type": "uint256"
}
],
"name": "unlockQueue",
Expand Down Expand Up @@ -771,4 +809,4 @@
"stateMutability": "payable",
"type": "receive"
}
]
]
141 changes: 141 additions & 0 deletions ethereum/kelp/abis/0xbf28c9fcb12a97441488f9c68faa49811a98688a.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
[
{
"inputs": [
{
"internalType": "contract ILRTDepositPool",
"name": "_lrtDepositPool",
"type": "address"
},
{
"internalType": "contract IERC4626",
"name": "_vault",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "_rsETH",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rsETHAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "refferalId",
"type": "string"
}
],
"name": "RSETHMintedAndDepositedInVault",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "rsETHAmount",
"type": "uint256"
},
{
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "depositRsETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"internalType": "uint256",
"name": "depositAmount",
"type": "uint256"
},
{
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "getRSETHWithERC20",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "referralId",
"type": "string"
}
],
"name": "getRSETHWithETH",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "lrtDepositPool",
"outputs": [
{
"internalType": "contract ILRTDepositPool",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "rsETH",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "vault",
"outputs": [
{
"internalType": "contract IERC4626",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 353c799

Please sign in to comment.