@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
18 lines (17 loc) • 864 B
TypeScript
import type { IcrcAccounts } from '../types/icrc-accounts';
import type { IcrcCallCanisterResult, IcrcScopesArray } from '../types/icrc-responses';
import type { Notify } from '../types/signer-handlers';
export declare const notifyReady: ({ id, origin }: Notify) => void;
export declare const notifySupportedStandards: ({ id, origin }: Notify) => void;
export type NotifyPermissions = Notify & {
scopes: IcrcScopesArray;
};
export declare const notifyPermissionScopes: ({ id, origin, scopes }: NotifyPermissions) => void;
export type NotifyAccounts = Notify & {
accounts: IcrcAccounts;
};
export declare const notifyAccounts: ({ id, origin, accounts }: NotifyAccounts) => void;
export type NotifyCallCanister = Notify & {
result: IcrcCallCanisterResult;
};
export declare const notifyCallCanister: ({ id, origin, result }: NotifyCallCanister) => void;