@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) • 820 B
TypeScript
import type { IcrcTokenMetadataResponse } from '@dfinity/ledger-icrc/dist/types/types/ledger.responses';
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;
}