UNPKG

@ledgerhq/coin-multiversx

Version:
15 lines 774 B
import BigNumber from "bignumber.js"; import type { Account } from "@ledgerhq/types-live"; import type { Transaction, MultiversXTransactionMode, MultiversXDelegation } from "./types"; /** * Returns true if address is a valid bech32 * * @param {string} address */ export declare const isValidAddress: (address: string) => boolean; export declare const isSelfTransaction: (a: Account, t: Transaction) => boolean; export declare const isAmountSpentFromBalance: (mode: MultiversXTransactionMode) => boolean; export declare const computeDelegationBalance: (delegations: MultiversXDelegation[]) => BigNumber; export declare const addPrefixToken: (tokenId: string) => string; export declare const extractTokenId: (tokenId: string) => string; //# sourceMappingURL=logic.d.ts.map