UNPKG

@dfinity/oisy-wallet-signer

Version:

A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.

15 lines (14 loc) 807 B
import { RecordClass, VariantClass } from '@dfinity/candid/lib/cjs/idl'; import { IcrcCallCanisterRequestParams } from '../types/icrc-requests'; import type { IcrcCallCanisterResult } from '../types/icrc-responses'; import { RelyingPartyHost } from '../types/relying-party-options'; export declare const assertCallResponse: ({ params: { method, arg, canisterId, sender }, result: { contentMap } }: { params: IcrcCallCanisterRequestParams; result: IcrcCallCanisterResult; }) => void; export declare const decodeResponse: <T>({ params: { canisterId }, result: { certificate: cert, contentMap }, resultRecordClass, host }: { params: IcrcCallCanisterRequestParams; result: IcrcCallCanisterResult; resultRecordClass: RecordClass | VariantClass; host?: RelyingPartyHost; }) => Promise<T>;