UNPKG

@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) 845 B
import type { PrincipalText } from '@dfinity/zod-schemas'; import { Principal } from '@icp-sdk/core/principal'; import type { IcrcBlob } from '../types/blob'; import type { Method } from '../types/icrc-requests'; export declare const assertCallMethod: ({ requestMethod, responseMethod }: { responseMethod: string; requestMethod: Method; }) => void; export declare const assertCallArg: ({ responseArg, requestArg: requestArgBlob }: { responseArg: Uint8Array; 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;