onesec-bridge
Version:
A library for interacting with the onesec.to bridge
20 lines (19 loc) • 841 B
TypeScript
import { type _SERVICE as OneSec } from "../../generated/candid/onesec/onesec.did";
import type { About, EvmChain, IcrcAccount, StepStatus, Token, TransferId } from "../../types";
import { BaseStep, GetEvmTx, GetTransferId } from "../baseStep";
export declare class ValidateReceiptStep extends BaseStep implements GetTransferId {
private oneSecActor;
private token;
private evmChain;
private icpAccount;
private evmAmount;
private evmAddress;
private getEvmTx;
private delayMs;
private transferId?;
constructor(oneSecActor: OneSec, token: Token, evmChain: EvmChain, icpAccount: IcrcAccount, evmAmount: bigint, evmAddress: string, getEvmTx: GetEvmTx, delayMs: number);
about(): About;
expectedDurationMs(): number;
getTransferId(): TransferId | undefined;
run(): Promise<StepStatus>;
}