@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) • 796 B
TypeScript
import { type IcrcTokenMetadataResponse } from '@icp-sdk/canisters/ledger/icrc';
import type { IcrcCallCanisterRequestParams } from '../types/icrc-requests';
import type { IcrcCallCanisterResult } from '../types/icrc-responses';
import type { SignerOptions } from '../types/signer-options';
import { Icrc21Canister } from './icrc21-canister.api';
export declare class SignerApi extends Icrc21Canister {
call({ owner, host, params: { canisterId, method, arg, nonce } }: {
params: IcrcCallCanisterRequestParams;
} & SignerOptions): Promise<IcrcCallCanisterResult>;
ledgerMetadata({ host, owner, params: { canisterId } }: {
params: Pick<IcrcCallCanisterRequestParams, 'canisterId'>;
} & SignerOptions): Promise<IcrcTokenMetadataResponse>;
private encodeResult;
}