@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
21 lines (20 loc) • 826 B
TypeScript
import { Principal } from '@dfinity/principal';
import { PrincipalText } from '@dfinity/zod-schemas';
import { IcrcBlob } from '../types/blob';
import { Method } from '../types/icrc-requests';
export declare const assertCallMethod: ({ requestMethod, responseMethod }: {
responseMethod: string;
requestMethod: Method;
}) => void;
export declare const assertCallArg: ({ responseArg, requestArg: requestArgBlob }: {
responseArg: ArrayBuffer;
requestArg: IcrcBlob;
}) => void;
export declare const assertCallCanisterId: ({ requestCanisterId, responseCanisterId }: {
responseCanisterId: Principal;
requestCanisterId: Principal;
}) => void;
export declare const assertCallSender: ({ requestSender, responseSender }: {
responseSender: Uint8Array | Principal;
requestSender: PrincipalText;
}) => void;