UNPKG

@arcana/ca-sdk

Version:

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

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