@ledgerhq/coin-aptos
Version:
Ledger Aptos Coin integration
15 lines • 881 B
TypeScript
import BigNumber from "bignumber.js";
import { OP_TYPE } from "../constants";
import { AptosTransaction } from "../types";
import { WriteSetChangeWriteResource, Event } from "@aptos-labs/ts-sdk";
export declare function compareAddress(addressA: string, addressB: string): boolean;
export declare function checkFAOwner(tx: AptosTransaction, event: Event, user_address: string): boolean;
export declare function getEventCoinAddress(change: WriteSetChangeWriteResource, event: Event, event_name: string): string | null;
export declare function getEventFAAddress(change: WriteSetChangeWriteResource, event: Event, _event_name: string): string | null;
export declare function getCoinAndAmounts(tx: AptosTransaction, address: string): {
coin_id: string | null;
amount_in: BigNumber;
amount_out: BigNumber;
type: OP_TYPE;
};
//# sourceMappingURL=getCoinAndAmounts.d.ts.map