UNPKG

test-ic-wallet-middleware-icrc

Version:
11 lines (10 loc) 420 B
import { Principal } from "@dfinity/principal"; import { SubAccountId } from "../types"; export declare class PrincipalProvider { static toAccountIdentifier(principal: Principal, subAccountId: SubAccountId): string; static toPrincipalAndSubAccountId(accountIdentifier: string): { owner: Principal; subaccount: SubAccountId; }; static toSubAccountId(principal: Principal): SubAccountId; }