@lifi/sdk
Version:
LI.FI Any-to-Any Cross-Chain-Swap SDK
80 lines • 2.6 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CHAIN_TYPE_FAMILY_MAP = exports.CHAIN_ID_UNS_CHAIN_MAP = exports.CHAIN_TYPE_UNS_CHAIN_MAP = exports.UNSProxyReaderABI = exports.getUNSProxyAddress = exports.UNS_PROXY_READER_ADDRESSES = void 0;
const types_1 = require("@lifi/types");
exports.UNS_PROXY_READER_ADDRESSES = {
[]: '0x578853aa776Eef10CeE6c4dd2B5862bdcE767A8B',
[]: '0x91EDd8708062bd4233f4Dd0FCE15A7cb4d500091',
};
const getUNSProxyAddress = (chainId) => exports.UNS_PROXY_READER_ADDRESSES[chainId];
exports.getUNSProxyAddress = getUNSProxyAddress;
exports.UNSProxyReaderABI = [
{
constant: true,
inputs: [
{
internalType: 'string[]',
name: 'keys',
type: 'string[]',
},
{
internalType: 'uint256',
name: 'tokenId',
type: 'uint256',
},
],
name: 'getData',
outputs: [
{
internalType: 'address',
name: 'resolver',
type: 'address',
},
{
internalType: 'address',
name: 'owner',
type: 'address',
},
{
internalType: 'string[]',
name: 'values',
type: 'string[]',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
name: 'exists',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
];
exports.CHAIN_TYPE_UNS_CHAIN_MAP = {
[]: 'ETH',
[]: 'SUI',
[]: 'SOL',
[]: 'BTC',
[]: 'TRON',
};
exports.CHAIN_ID_UNS_CHAIN_MAP = {
[]: 'ETH',
[]: 'BTC',
[]: 'SUI',
[]: 'SOL',
[]: 'BASE',
[]: 'MATIC',
[]: 'ARB1',
[]: 'AVAX',
};
exports.CHAIN_TYPE_FAMILY_MAP = {
[]: 'EVM',
[]: 'BTC',
[]: 'SOL',
[]: 'SUI',
[]: 'TRON',
};
//# sourceMappingURL=constants.js.map