@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
11 lines (10 loc) • 383 B
TypeScript
import { IDL } from '@dfinity/candid';
import type { IcrcBlob } from '../types/blob';
export declare const encodeIdl: <T>({ recordClass, rawArgs }: {
recordClass: IDL.RecordClass | IDL.VariantClass;
rawArgs: T;
}) => IcrcBlob;
export declare const decodeIdl: <T>({ recordClass, bytes }: {
recordClass: IDL.RecordClass | IDL.VariantClass;
bytes: ArrayBuffer;
}) => T;