@lifi/sdk
Version:
LI.FI Any-to-Any Cross-Chain-Swap SDK
76 lines • 2.14 kB
JavaScript
import { ChainId, ChainType } from '@lifi/types';
export const UNS_PROXY_READER_ADDRESSES = {
[]: '0x578853aa776Eef10CeE6c4dd2B5862bdcE767A8B',
[]: '0x91EDd8708062bd4233f4Dd0FCE15A7cb4d500091',
};
export const getUNSProxyAddress = (chainId) => UNS_PROXY_READER_ADDRESSES[chainId];
export const 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',
},
];
export const CHAIN_TYPE_UNS_CHAIN_MAP = {
[]: 'ETH',
[]: 'SUI',
[]: 'SOL',
[]: 'BTC',
[]: 'TRON',
};
export const CHAIN_ID_UNS_CHAIN_MAP = {
[]: 'ETH',
[]: 'BTC',
[]: 'SUI',
[]: 'SOL',
[]: 'BASE',
[]: 'MATIC',
[]: 'ARB1',
[]: 'AVAX',
};
export const CHAIN_TYPE_FAMILY_MAP = {
[]: 'EVM',
[]: 'BTC',
[]: 'SOL',
[]: 'SUI',
[]: 'TRON',
};
//# sourceMappingURL=constants.js.map