@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) • 801 B
TypeScript
import type { IDL } from '@icp-sdk/core/candid';
import type { IcrcCallCanisterRequestParams } from '../types/icrc-requests';
import type { IcrcCallCanisterResult } from '../types/icrc-responses';
import type { 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: IDL.RecordClass | IDL.VariantClass;
host?: RelyingPartyHost;
}) => Promise<T>;