Skip to content

Commit

Permalink
Merge pull request #364 from lidofinance/develop
Browse files Browse the repository at this point in the history
Develop to main
  • Loading branch information
jake4take authored Jun 18, 2024
2 parents 4213788 + dee5f24 commit 61b2d8c
Show file tree
Hide file tree
Showing 15 changed files with 251 additions and 199 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ RESEARCH_ORIGIN=https://research.lido.fi

# EL_RPC_URLS_{CHAIN_ID} list or URLs delimeted by commas, first entry is primary, else are fallbacks
EL_RPC_URLS_1=
EL_RPC_URLS_5=
EL_RPC_URLS_17000=

# IPFS prefill RPC URLs - list of URLs delimited by commas
PREFILL_UNSAFE_EL_RPC_URLS_1=
PREFILL_UNSAFE_EL_RPC_URLS_5=
PREFILL_UNSAFE_EL_RPC_URLS_17000=

# supported networks for connecting wallet
Expand Down
5 changes: 4 additions & 1 deletion IPFS.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"17000": {
"__warning__": "For testing purposes only",
"cid": "bafybeibbsoqlofslw273b4ih2pdxfaz2zbjmred2ijog725tcmfoewix7y",
"leastSafeVersion": "0.36.1"
"leastSafeVersion": "0.36.1",
"config": {
"enabledWithdrawalDexes": ["one-inch", "paraswap", "bebop"]
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ yarn build:ipfs
## Adding a new route API

- create a new file in `pages/api/` folder
- use `wrapRequest` function from `utilsApi/apiWrappers.ts`
- use default wrappers from `utilsApi/apiWrappers.ts` if needed (e.g. `defaultErrorHandler` for handle errors)
- use `wrapRequest` function from `@lidofinance/next-api-wrapper` package.
- use default wrappers from `utilsApi/nextApiWrappers.ts` if needed (e.g. `defaultErrorHandler` for handle errors)

**Example:**

Expand Down
125 changes: 125 additions & 0 deletions abi/partialStakingRouter.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_depositContract",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "stakingModuleId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "stakingModuleFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "treasuryFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "setBy",
"type": "address"
}
],
"name": "StakingModuleFeesSet",
"type": "event"
},
{
"inputs": [],
"name": "FEE_PRECISION_POINTS",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "TOTAL_BASIS_POINTS",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLido",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakingFeeAggregateDistribution",
"outputs": [
{ "internalType": "uint96", "name": "modulesFee", "type": "uint96" },
{ "internalType": "uint96", "name": "treasuryFee", "type": "uint96" },
{ "internalType": "uint256", "name": "basePrecision", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakingFeeAggregateDistributionE4Precision",
"outputs": [
{ "internalType": "uint16", "name": "modulesFee", "type": "uint16" },
{ "internalType": "uint16", "name": "treasuryFee", "type": "uint16" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakingRewardsDistribution",
"outputs": [
{
"internalType": "address[]",
"name": "recipients",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "stakingModuleIds",
"type": "uint256[]"
},
{
"internalType": "uint96[]",
"name": "stakingModuleFees",
"type": "uint96[]"
},
{ "internalType": "uint96", "name": "totalFee", "type": "uint96" },
{
"internalType": "uint256",
"name": "precisionPoints",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalFeeE4Precision",
"outputs": [
{ "internalType": "uint16", "name": "totalFee", "type": "uint16" }
],
"stateMutability": "view",
"type": "function"
},
{ "stateMutability": "payable", "type": "receive" }
]
Loading

0 comments on commit 61b2d8c

Please sign in to comment.