UNPKG

@dfinity/ledger-icp

Version:

A library for interfacing with the ICP ledger on the Internet Computer.

7 lines (6 loc) 1.07 kB
import type { TransferArg as Icrc1TransferRawRequest, icrc21_consent_message_request as Icrc21ConsentMessageRawRequest, ApproveArgs as Icrc2ApproveRawRequest, TransferArgs as TransferRawRequest } from "../../../candid/ledger"; import type { Icrc1TransferRequest, Icrc21ConsentMessageRequest, Icrc2ApproveRequest, TransferRequest } from "../../types/ledger_converters"; export declare const toTransferRawRequest: ({ to, amount, memo, fee, fromSubAccount, createdAt, }: TransferRequest) => TransferRawRequest; export declare const toIcrc1TransferRawRequest: ({ fromSubAccount, to, amount, fee, icrc1Memo, createdAt, }: Icrc1TransferRequest) => Icrc1TransferRawRequest; export declare const toIcrc2ApproveRawRequest: ({ fee, createdAt, icrc1Memo, fromSubAccount, expected_allowance, expires_at, amount, ...rest }: Icrc2ApproveRequest) => Icrc2ApproveRawRequest; export declare const toIcrc21ConsentMessageRawRequest: ({ userPreferences: { metadata: { utcOffsetMinutes, language }, deriveSpec, }, ...rest }: Icrc21ConsentMessageRequest) => Icrc21ConsentMessageRawRequest;