@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) • 832 B
TypeScript
import type { Principal } from '@dfinity/principal';
import type { IcrcScopesArray } from '../types/icrc-responses';
import type { IcrcPermissionState, IcrcScopedMethod } from '../types/icrc-standards';
import type { Origin } from '../types/post-message';
import { 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 {};