UNPKG

@ledgerhq/coin-ton

Version:
52 lines 2.05 kB
/** * Maximum commission fee for jetton transactions in TON units. * Any excess fee will be returned to the user. */ export const TOKEN_TRANSFER_MAX_FEE = "0.1"; // 0.1 TON /** * Minimum required balance in TON units. * This is the minimum balance required to perform transactions. */ export const MINIMUM_REQUIRED_BALANCE = "0.02"; // 0.02 TON /** * Forward amount for token transfers in nanoTON units. */ export const TOKEN_TRANSFER_FORWARD_AMOUNT = 1; // 0.000000001 TON /** * Query ID for token transfers. */ export const TOKEN_TRANSFER_QUERY_ID = 0; /** * Maximum allowed bytes for a comment in a transaction. * Comments exceeding this limit will be considered invalid. */ export const MAX_COMMENT_BYTES = 120; /** * Operation codes for Jetton (TON token standard) transactions. * These codes are used to identify different types of token operations. */ export var JettonOpCode; (function (JettonOpCode) { JettonOpCode[JettonOpCode["Transfer"] = 260734629] = "Transfer"; JettonOpCode[JettonOpCode["TransferNotification"] = 1935855772] = "TransferNotification"; JettonOpCode[JettonOpCode["InternalTransfer"] = 395134233] = "InternalTransfer"; JettonOpCode[JettonOpCode["Excesses"] = 3576854235] = "Excesses"; JettonOpCode[JettonOpCode["Burn"] = 1499400124] = "Burn"; JettonOpCode[JettonOpCode["BurnNotification"] = 2078119902] = "BurnNotification"; })(JettonOpCode || (JettonOpCode = {})); /** * TON blockchain workchain identifiers. * MasterChain (-1) is used for validator operations and governance. * BaseChain (0) is the main workchain used for regular accounts and smart contracts. */ export var Workchain; (function (Workchain) { Workchain[Workchain["MasterChain"] = -1] = "MasterChain"; Workchain[Workchain["BaseChain"] = 0] = "BaseChain"; })(Workchain || (Workchain = {})); /** * Default workchain used for TON addresses. * BaseChain (0) is the standard workchain for user accounts and transactions. */ export const WORKCHAIN = Workchain.BaseChain; //# sourceMappingURL=constants.js.map