UNPKG

@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) 842 B
import type { Principal } from '@icp-sdk/core/principal'; import type { IcrcScopesArray } from '../types/icrc-responses'; import type { IcrcPermissionState, IcrcScopedMethod } from '../types/icrc-standards'; import type { Origin } from '../types/post-message'; import type { SignerOptions } from '../types/signer-options'; interface SessionIdentifier { owner: Principal; origin: Origin; } export declare const saveSessionScopes: ({ scopes, ...rest }: SessionIdentifier & { scopes: IcrcScopesArray; }) => void; export declare const readSessionValidScopes: ({ sessionOptions, ...params }: SessionIdentifier & Pick<SignerOptions, "sessionOptions">) => IcrcScopesArray | undefined; export declare const sessionScopeState: ({ method, ...rest }: SessionIdentifier & { method: IcrcScopedMethod; }) => IcrcPermissionState; export {};