UNPKG

@ledgerhq/coin-elrond

Version:
15 lines 758 B
import BigNumber from "bignumber.js"; import type { Account } from "@ledgerhq/types-live"; import type { Transaction, ElrondTransactionMode, ElrondDelegation } 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: ElrondTransactionMode) => boolean; export declare const computeDelegationBalance: (delegations: ElrondDelegation[]) => BigNumber; export declare const addPrefixToken: (tokenId: string) => string; export declare const extractTokenId: (tokenId: string) => string; //# sourceMappingURL=logic.d.ts.map