@lidofinance/lido-ethereum-sdk
Version:
<div style="display: flex;" align="center"> <h1 align="center">Lido Ethereum SDK</h1> </div>
33 lines • 2.36 kB
TypeScript
import { LidoSDKModule } from '../common/class-primitives/sdk-module.js';
import type { AccountValue, LidoSDKCommonProps, TransactionOptions } from '../core/types.js';
import { LidoSDKL2Steth, LidoSDKL2Wsteth } from './tokens.js';
import { type GetContractReturnType, type WalletClient, type Address, type WriteContractParameters } from 'viem';
import { CHAINS, LIDO_L2_CONTRACT_NAMES } from '../common/constants.js';
import { rebasableL2StethAbi } from './abi/rebasableL2Steth.js';
import { UnwrapResults, WrapProps, WrapPropsWithoutTxOptions, WrapResults } from './types.js';
import { PopulatedTransaction, TransactionResult } from '../core/types.js';
export declare class LidoSDKL2 extends LidoSDKModule {
private static TRANSFER_SIGNATURE;
static isContractAvailableOn(contract: LIDO_L2_CONTRACT_NAMES, chain: CHAINS): boolean;
readonly wsteth: LidoSDKL2Wsteth;
readonly steth: LidoSDKL2Steth;
constructor(props: LidoSDKCommonProps);
contractAddress(): Promise<Address>;
getContract(): Promise<GetContractReturnType<typeof rebasableL2StethAbi, WalletClient>>;
approveWstethForWrap(props: WrapProps): Promise<TransactionResult>;
approveWstethForWrapEstimateGas(props: WrapPropsWithoutTxOptions, options?: TransactionOptions): Promise<bigint>;
approveWstethForWrapPopulateTx(props: WrapPropsWithoutTxOptions): Promise<PopulatedTransaction>;
getWstethForWrapAllowance(account?: AccountValue): Promise<bigint>;
wrapWstethToSteth(props: WrapProps): Promise<TransactionResult<WrapResults>>;
wrapWstethToStethPopulateTx(props: WrapPropsWithoutTxOptions): Promise<PopulatedTransaction>;
wrapWstethToStethEstimateGas(props: WrapPropsWithoutTxOptions, options?: TransactionOptions): Promise<bigint>;
private wrapWstethToStethParseEvents;
wrapWstethToStethSimulateTx(props: WrapPropsWithoutTxOptions): Promise<WriteContractParameters>;
unwrapStethToWsteth(props: WrapProps): Promise<TransactionResult<UnwrapResults>>;
unwrapStethPopulateTx(props: WrapPropsWithoutTxOptions): Promise<PopulatedTransaction>;
unwrapStethSimulateTx(props: WrapPropsWithoutTxOptions): Promise<WriteContractParameters>;
unwrapStethEstimateGas(props: WrapPropsWithoutTxOptions, options?: TransactionOptions): Promise<bigint>;
private unwrapParseEvents;
private parseProps;
}
//# sourceMappingURL=l2.d.ts.map