UNPKG

@ledgerhq/coin-internet_computer

Version:
30 lines 1.25 kB
import { Account } from "@ledgerhq/types-live"; import { Transaction } from "../../../types"; import { ICPRosettaConstructionPayloadsResponse } from "./types"; import { SignerContext } from "@ledgerhq/coin-framework/signer"; import { ICPSigner } from "../../../types"; export declare const getUnsignedTransaction: (transaction: Transaction, account: Account) => Promise<{ unsignedTxn: string; payloads: ICPRosettaConstructionPayloadsResponse["payloads"]; }>; export declare const signICPTransaction: ({ signerContext, deviceId, unsignedTxn, path, payloads, pubkey, }: { signerContext: SignerContext<ICPSigner>; deviceId: string; unsignedTxn: string; path: string; payloads: ICPRosettaConstructionPayloadsResponse["payloads"]; pubkey: string; }) => Promise<{ signatures: { txnSig: string; readSig: string; }; signedTxn: string; }>; export declare const getTxnMetadata: (signedTxn: string) => Promise<{ hash: string; }>; export declare const getTxnExpirationDate: (_unsignedTxn: string) => Date; export declare const broadcastTxn: (signedTxn: string) => Promise<void>; export declare const deriveAddressFromPubkey: (pubkey: string) => Promise<string>; //# sourceMappingURL=index.d.ts.map