UNPKG

onesec-bridge

Version:
11 lines (10 loc) 646 B
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>;