UNPKG

@arcana/ca-sdk

Version:

Arcana Network's chain abstraction SDK for unified balance in Web3 apps

62 lines (61 loc) 1.72 kB
import { ChainList } from "./chains"; import { Intent, onAllowanceHookSource, Step } from "./typings"; export declare const INTENT_ACCEPTED: { readonly type: "INTENT_ACCEPTED"; readonly typeID: "IA"; }; export declare const INTENT_HASH_SIGNED: { readonly type: "INTENT_HASH_SIGNED"; readonly typeID: "IHS"; }; export declare const INTENT_SUBMITTED: { readonly type: "INTENT_SUBMITTED"; readonly typeID: "IS"; }; export declare const INTENT_INIT_STEPS: ({ readonly type: "INTENT_ACCEPTED"; readonly typeID: "IA"; } | { readonly type: "INTENT_HASH_SIGNED"; readonly typeID: "IHS"; } | { data: { explorerURL: string; intentID: number; }; type: "INTENT_SUBMITTED"; typeID: "IS"; })[]; export declare const INTENT_FULFILLED: { type: string; typeID: string; }; export declare const ALLOWANCE_APPROVAL_REQ: (chainID: number) => { readonly type: "ALLOWANCE_USER_APPROVAL"; readonly typeID: `AUA_${number}`; }; export declare const ALLOWANCE_APPROVAL_MINED: (chainID: number) => { type: string; typeID: string; }; export declare const ALLOWANCE_COMPLETE: { type: string; typeID: string; }; export declare const INTENT_DEPOSIT_REQ: (id: number) => { type: string; typeID: string; }; export declare const INTENT_DEPOSITS_CONFIRMED: { type: string; typeID: string; }; export declare const INTENT_COLLECTION_COMPLETE: { type: string; typeID: string; }; export declare const INTENT_COLLECTION: (id: number) => { type: string; typeID: string; }; export declare const createSteps: (intent: Intent, kind: "erc20" | "native", chainList: ChainList, unallowedSources?: onAllowanceHookSource[]) => Step[];