test-ic-wallet-middleware-icrc
Version:
Ic middleware wallet ICRC protocol
7 lines (6 loc) • 574 B
TypeScript
import { AllowanceCacheModel, AllowanceModel } from "../types";
import { AllowanceDataModel } from "../types/allowances/allowanceDataModel";
import { CheckAllowanceForm } from "../types/forms";
export declare function allowanceCacheToModel(allowance: AllowanceCacheModel, decimal: number, formatter: string): AllowanceModel;
export declare function allowanceFormToCache(form: CheckAllowanceForm, amount: bigint, expiration: bigint | undefined): AllowanceCacheModel;
export declare function allowanceCacheModelToDataModel(allowance: AllowanceCacheModel): AllowanceDataModel;