onesec-bridge
Version:
A library for interacting with the onesec.to bridge
23 lines (22 loc) • 906 B
TypeScript
import type { _SERVICE as OneSec } from "../generated/candid/onesec/onesec.did";
import type { About, Chain, StepStatus, Token } from "../types";
import { BaseStep } from "./baseStep";
/**
* Step that fetches transfer fees and validates bridging limits.
*
* This step queries the OneSec canister to get current fees and availability,
* then validates that the requested bridging operation is within supported limits.
*/
export declare class FetchFeesAndCheckLimitsStep extends BaseStep {
private onesec;
private token;
private sourceChain;
private destinationChain;
private decimals;
private isForwarding;
private amount?;
constructor(onesec: OneSec, token: Token, sourceChain: Chain, destinationChain: Chain, decimals: number, isForwarding: boolean, amount?: bigint | undefined);
about(): About;
expectedDurationMs(): number;
run(): Promise<StepStatus>;
}