onesec-bridge
Version:
A library for interacting with the onesec.to bridge
21 lines (20 loc) • 825 B
TypeScript
import { Principal } from '@dfinity/principal';
import { _SERVICE as OneSec } from '../../generated/candid/onesec/onesec.did';
import { About, EvmChain, IcrcAccount, StepStatus, Token, TransferId } from '../../types';
import { BaseStep } from '../baseStep';
export declare class TransferStep extends BaseStep {
private oneSecActor;
private token;
private icpAccount;
private evmChain;
private evmAddress;
private icpAmount;
private decimals;
private ledgerId;
private transferId?;
constructor(oneSecActor: OneSec, token: Token, icpAccount: IcrcAccount, evmChain: EvmChain, evmAddress: string, icpAmount: bigint, decimals: number, ledgerId: Principal);
about(): About;
expectedDurationMs(): number;
getTransferId(): TransferId | undefined;
run(): Promise<StepStatus>;
}