UNPKG

onesec-bridge

Version:
21 lines (20 loc) 835 B
import { Principal } from "@dfinity/principal"; import { type _SERVICE as OneSec } from "../../generated/candid/onesec/onesec.did"; import type { 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>; }