UNPKG

@exromany/lido-csm-sdk

Version:

[![GitHub license](https://img.shields.io/github/license/lidofinance/lido-csm-sdk?color=limegreen)](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [![Version npm](https://img.shields.io/npm/v/@lidofinance/lido-csm-sdk?label=version)](h

47 lines 1.23 kB
import { PermitSignature } from '@lidofinance/lido-ethereum-sdk'; import { Address, Hex } from 'viem'; import { ROLES } from './constants/roles.js'; import { TOKENS } from './constants/tokens.js'; export type DepositDataKey = { pubkey: Hex; signature: Hex; }; export type PerToken<T> = { [K in TOKENS]: T; }; export type WithToken<T> = T & { token: TOKENS; }; export type Erc20Tokens = Exclude<TOKENS, TOKENS.eth>; export type PermitSignatureShort = Pick<PermitSignature, 'v' | 'r' | 's' | 'value' | 'deadline'>; export type NodeOperatorId = bigint; export type NodeOperatorShortInfo = { nodeOperatorId: NodeOperatorId; managerAddress: Address; rewardsAddress: Address; extendedManagerPermissions: boolean; }; export type NodeOperator = { id: NodeOperatorId; roles: ROLES[]; }; export type NodeOperatorInvite = { id: NodeOperatorId; role: ROLES; }; export type BondBalance = { required: bigint; current: bigint; locked: bigint; delta: bigint; isInsufficient: boolean; }; export type Proof = Hex[]; export type RewardProof = { shares: bigint; proof: Proof; }; export type Rewards = RewardProof & { available: bigint; }; //# sourceMappingURL=types.d.ts.map