onesec-bridge
Version:
A library for interacting with the onesec.to bridge
11 lines (10 loc) • 646 B
TypeScript
import { type Agent } from "@dfinity/agent";
import { Principal } from "@dfinity/principal";
import { type Config } from "../config";
import { type _SERVICE as OneSec } from "../generated/candid/onesec/onesec.did";
import type { Deployment } from "../types";
export declare const EVM_CALL_DURATION_MS = 5000;
export declare const ICP_CALL_DURATION_MS = 5000;
export declare function anonymousAgent(deployment: Deployment, config?: Config): Promise<Agent>;
export declare function oneSecWithAgent(onesec: Principal, agent: Agent): Promise<OneSec>;
export declare function anonymousOneSec(deployment: Deployment, config?: Config): Promise<OneSec>;