UNPKG

@ledgerhq/coin-canton

Version:
17 lines 1.22 kB
import { SignerContext } from "@ledgerhq/ledger-wallet-framework/signer"; import type { CryptoCurrency } from "@ledgerhq/ledger-wallet-framework/types"; import type { Account } from "@ledgerhq/types-live"; import { Observable } from "rxjs"; import type { CantonSigner } from "../types"; import { CantonOnboardProgress, CantonOnboardResult, CantonAuthorizeProgress, CantonAuthorizeResult } from "../types/onboard"; export declare const isAccountOnboarded: (currency: CryptoCurrency, publicKey: string) => Promise<{ isOnboarded: boolean; partyId: string; } | { partyId?: never; isOnboarded: boolean; }>; export declare const isCantonCoinPreapproved: (currency: CryptoCurrency, partyId: string) => Promise<boolean>; export declare const buildOnboardAccount: (signerContext: SignerContext<CantonSigner>) => (currency: CryptoCurrency, deviceId: string, account: Account) => Observable<CantonOnboardProgress | CantonOnboardResult>; export declare const buildAuthorizePreapproval: (signerContext: SignerContext<CantonSigner>) => (currency: CryptoCurrency, deviceId: string, account: Account, partyId: string) => Observable<CantonAuthorizeProgress | CantonAuthorizeResult>; //# sourceMappingURL=onboard.d.ts.map