UNPKG

@f5i23q999d/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

53 lines 2.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.nativeCurrencyTemplate = exports.WRAPPED_NATIVE_CURRENCIES = exports.TOKEN_LIST_IMAGES_PATH = exports.NATIVE_CURRENCY_ADDRESS = void 0; const types_1 = require("../../chains/types.js"); exports.NATIVE_CURRENCY_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'; exports.TOKEN_LIST_IMAGES_PATH = 'https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/images'; const wrappedNativeCurrencyEth = { decimals: 18, name: 'Wrapped Ether', symbol: 'WETH', logoUrl: `${exports.TOKEN_LIST_IMAGES_PATH}/1/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/logo.png`, }; exports.WRAPPED_NATIVE_CURRENCIES = { [types_1.SupportedChainId.MAINNET]: { ...wrappedNativeCurrencyEth, chainId: types_1.SupportedChainId.MAINNET, address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', }, [types_1.SupportedChainId.GNOSIS_CHAIN]: { chainId: types_1.SupportedChainId.GNOSIS_CHAIN, address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', decimals: 18, name: 'Wrapped XDAI', symbol: 'WXDAI', logoUrl: `${exports.TOKEN_LIST_IMAGES_PATH}/100/0xe91d153e0b41518a2ce8dd3d7944fa863463a97d/logo.png`, }, [types_1.SupportedChainId.ARBITRUM_ONE]: { ...wrappedNativeCurrencyEth, chainId: types_1.SupportedChainId.ARBITRUM_ONE, address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', }, [types_1.SupportedChainId.BASE]: { ...wrappedNativeCurrencyEth, chainId: types_1.SupportedChainId.BASE, address: '0x4200000000000000000000000000000000000006', }, [types_1.SupportedChainId.SEPOLIA]: { ...wrappedNativeCurrencyEth, chainId: types_1.SupportedChainId.SEPOLIA, address: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14', }, }; /** * Just a base template for the native currency, handy to define new networks. */ exports.nativeCurrencyTemplate = { address: exports.NATIVE_CURRENCY_ADDRESS, decimals: 18, name: 'Ether', symbol: 'ETH', logoUrl: `${exports.TOKEN_LIST_IMAGES_PATH}/1/${exports.NATIVE_CURRENCY_ADDRESS}/logo.png`, }; //# sourceMappingURL=tokens.js.map