Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:lidofinance/ethereum-staking-wid…
Browse files Browse the repository at this point in the history
…get into feature/si-1371-use-ipfs-json-from-github
  • Loading branch information
Jeday committed Jun 19, 2024
2 parents 587d60a + dee5f24 commit ef19ee8
Show file tree
Hide file tree
Showing 15 changed files with 248 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
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" }
]
2 changes: 1 addition & 1 deletion config/feature-flags/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { FeatureFlagsType } from './types';
export const getFeatureFlagsDefault = (): FeatureFlagsType => {
return {
rpcSettingsPageOnInfraIsEnabled: false,
vaultsBannerIsEnabled: false,
vaultsBannerIsEnabled: true,
};
};
Loading

0 comments on commit ef19ee8

Please sign in to comment.