UNPKG

@akashicpay/sdk

Version:

SDK to interact with the Akashic ecosystem

83 lines 2.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkDictionary = exports.TRX_REGEX = exports.ETH_REGEX = void 0; const types_1 = require("./types"); const ETH_DECIMAL = 18; const TRX_DECIMAL = 6; exports.ETH_REGEX = { address: /^0x[A-Fa-f\d]{40}$/, hash: /^0x([A-Fa-f\d]{64})$/, signedTxn: /0x[a-f\d]*/, }; exports.TRX_REGEX = { address: /^T[A-Za-z1-9]{33}$/, hash: /^[\da-f]{64}$/, signedTxn: /^[\da-f]{64}$/, }; exports.NetworkDictionary = { [types_1.NetworkSymbol.Ethereum_Mainnet]: { regex: exports.ETH_REGEX, nativeCoin: { decimal: ETH_DECIMAL, symbol: 'ETH', displayName: 'ETH', }, tokens: [ { symbol: types_1.TokenSymbol.USDT, displayName: 'USDT (ETH)', contract: '0xdac17f958d2ee523a2206206994597c13d831ec7', decimal: 6, }, ], }, [types_1.NetworkSymbol.Ethereum_Sepolia]: { regex: exports.ETH_REGEX, nativeCoin: { decimal: ETH_DECIMAL, symbol: 'SEP', displayName: 'Sepolia-ETH', }, tokens: [ { symbol: types_1.TokenSymbol.USDT, displayName: 'USDT (Sepolia-ETH)', contract: '0xa62be7ec09f56a813f654a9ac1aa6d29d96f604e', decimal: 6, }, ], }, [types_1.NetworkSymbol.Tron]: { regex: exports.TRX_REGEX, nativeCoin: { symbol: 'TRX', displayName: 'TRX', decimal: TRX_DECIMAL, }, tokens: [ { symbol: types_1.TokenSymbol.USDT, displayName: 'USDT (TRX)', contract: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', decimal: 6, }, ], }, [types_1.NetworkSymbol.Tron_Shasta]: { regex: exports.TRX_REGEX, nativeCoin: { symbol: 'tTRX', displayName: 'TRX', decimal: TRX_DECIMAL, }, tokens: [ { symbol: types_1.TokenSymbol.USDT, displayName: 'USDT (Shasta-TRX)', contract: 'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs', decimal: 6, }, ], }, }; //# sourceMappingURL=l1Network.js.map