UNPKG

@lidofinance/lido-ethereum-sdk

Version:

<div style="display: flex;" align="center"> <h1 align="center">Lido Ethereum SDK</h1> </div>

57 lines 2.49 kB
import type { GetContractReturnType } from 'viem'; import type { EncodableContract } from '../common/index.js'; import type { LidoSdkKeyedClients } from '../core/index.js'; import type { dualGovernanceAbiType } from './abi/DualGovernance.js'; import type { emergencyProtectedTimelockAbiType } from './abi/EmergencyProtectedTimelock.js'; import type { escrowAbiType } from './abi/Escrow.js'; import type { dgConfigProviderAbiType } from './abi/DGConfigProvider.js'; export type EmergencyProtectedTimelockContractType = EncodableContract<GetContractReturnType<emergencyProtectedTimelockAbiType, LidoSdkKeyedClients>>; export type DualGovernanceContractType = EncodableContract<GetContractReturnType<dualGovernanceAbiType, LidoSdkKeyedClients>>; export type EscrowContractType = EncodableContract<GetContractReturnType<escrowAbiType, LidoSdkKeyedClients>>; export type DGConfigProviderContractType = EncodableContract<GetContractReturnType<dgConfigProviderAbiType, LidoSdkKeyedClients>>; export type SignallingEscrowDetails = { totalStETHLockedShares: bigint; totalStETHClaimedETH: bigint; totalUnstETHUnfinalizedShares: bigint; totalUnstETHFinalizedETH: bigint; }; export type DualGovernanceConfig = { firstSealRageQuitSupport: bigint; secondSealRageQuitSupport: bigint; minAssetsLockDuration: number; vetoSignallingMinDuration: number; vetoSignallingMaxDuration: number; vetoSignallingMinActiveDuration: number; vetoSignallingDeactivationMaxDuration: number; vetoCooldownDuration: number; rageQuitExtensionPeriodDuration: number; rageQuitEthWithdrawalsMinDelay: number; rageQuitEthWithdrawalsMaxDelay: number; rageQuitEthWithdrawalsDelayGrowth: number; }; export type DualGovernanceState = { effectiveState: number; persistedState: number; persistedStateEnteredAt: number; vetoSignallingActivatedAt: number; vetoSignallingReactivationTime: number; normalOrVetoCooldownExitedAt: number; rageQuitRound: bigint; vetoSignallingDuration: number; }; export declare enum GovernanceState { NotInitialized = 0, Normal = 1, VetoSignalling = 2, VetoSignallingDeactivation = 3, VetoCooldown = 4, RageQuit = 5 } export type GetGovernanceWarningStatusProps = { triggerPercent: number; }; export type GetGovernanceWarningStatusReturnType = { state: 'Blocked' | 'Warning' | 'Normal' | 'Unknown'; currentVetoSupportPercent: number | null; }; //# sourceMappingURL=types.d.ts.map