@metamask-previews/controller-utils
Advanced tools
Comparing version 4.3.2-preview.04c2e62 to 4.3.2-preview.b963821
@@ -1,2 +0,2 @@ | ||
import { NetworkType, NetworksTicker, NetworkId } from './types'; | ||
import { NetworksTicker, ChainId, BuiltInNetworkName } from './types'; | ||
export declare const RPC = "rpc"; | ||
@@ -106,3 +106,3 @@ export declare const FALL_BACK_VS_CURRENCY = "ETH"; | ||
} | ||
export declare const NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP: Record<NetworkId, NetworkType>; | ||
export declare const CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP: Record<ChainId, BuiltInNetworkName>; | ||
//# sourceMappingURL=constants.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP = exports.ApprovalType = exports.ORIGIN_METAMASK = exports.OPENSEA_TEST_API_URL = exports.OPENSEA_API_URL = exports.OPENSEA_PROXY_URL = exports.BUILT_IN_NETWORKS = exports.TESTNET_TICKER_SYMBOLS = exports.ASSET_TYPES = exports.GWEI = exports.ERC1155_TOKEN_RECEIVER_INTERFACE_ID = exports.ERC1155_METADATA_URI_INTERFACE_ID = exports.ERC1155_INTERFACE_ID = exports.ERC721_ENUMERABLE_INTERFACE_ID = exports.ERC721_METADATA_INTERFACE_ID = exports.ERC721_INTERFACE_ID = exports.ERC20 = exports.ERC1155 = exports.ERC721 = exports.MAX_SAFE_CHAIN_ID = exports.GANACHE_CHAIN_ID = exports.IPFS_DEFAULT_GATEWAY_URL = exports.FALL_BACK_VS_CURRENCY = exports.RPC = void 0; | ||
exports.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP = exports.ApprovalType = exports.ORIGIN_METAMASK = exports.OPENSEA_TEST_API_URL = exports.OPENSEA_API_URL = exports.OPENSEA_PROXY_URL = exports.BUILT_IN_NETWORKS = exports.TESTNET_TICKER_SYMBOLS = exports.ASSET_TYPES = exports.GWEI = exports.ERC1155_TOKEN_RECEIVER_INTERFACE_ID = exports.ERC1155_METADATA_URI_INTERFACE_ID = exports.ERC1155_INTERFACE_ID = exports.ERC721_ENUMERABLE_INTERFACE_ID = exports.ERC721_METADATA_INTERFACE_ID = exports.ERC721_INTERFACE_ID = exports.ERC20 = exports.ERC1155 = exports.ERC721 = exports.MAX_SAFE_CHAIN_ID = exports.GANACHE_CHAIN_ID = exports.IPFS_DEFAULT_GATEWAY_URL = exports.FALL_BACK_VS_CURRENCY = exports.RPC = void 0; | ||
const types_1 = require("./types"); | ||
@@ -119,9 +119,10 @@ exports.RPC = 'rpc'; | ||
})(ApprovalType = exports.ApprovalType || (exports.ApprovalType = {})); | ||
exports.NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP = { | ||
[types_1.NetworkId.goerli]: types_1.NetworkType.goerli, | ||
[types_1.NetworkId.sepolia]: types_1.NetworkType.sepolia, | ||
[types_1.NetworkId.mainnet]: types_1.NetworkType.mainnet, | ||
[types_1.NetworkId['linea-goerli']]: types_1.NetworkType['linea-goerli'], | ||
[types_1.NetworkId['linea-mainnet']]: types_1.NetworkType['linea-mainnet'], | ||
exports.CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP = { | ||
[types_1.ChainId.goerli]: types_1.BuiltInNetworkName.Goerli, | ||
[types_1.ChainId.sepolia]: types_1.BuiltInNetworkName.Sepolia, | ||
[types_1.ChainId.mainnet]: types_1.BuiltInNetworkName.Mainnet, | ||
[types_1.ChainId['linea-goerli']]: types_1.BuiltInNetworkName.LineaGoerli, | ||
[types_1.ChainId['linea-mainnet']]: types_1.BuiltInNetworkName.LineaMainnet, | ||
[types_1.ChainId.aurora]: types_1.BuiltInNetworkName.Aurora, | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -58,13 +58,2 @@ /** | ||
export declare type ChainId = (typeof ChainId)[keyof typeof ChainId]; | ||
/** | ||
* Decimal string network IDs of built-in Infura networks, by name. | ||
*/ | ||
export declare const NetworkId: { | ||
readonly mainnet: "1"; | ||
readonly goerli: "5"; | ||
readonly sepolia: "11155111"; | ||
readonly "linea-goerli": "59140"; | ||
readonly "linea-mainnet": "59144"; | ||
}; | ||
export declare type NetworkId = (typeof NetworkId)[keyof typeof NetworkId]; | ||
export declare enum NetworksTicker { | ||
@@ -71,0 +60,0 @@ mainnet = "ETH", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NetworksTicker = exports.NetworkId = exports.ChainId = exports.BuiltInNetworkName = exports.isNetworkType = exports.NetworkType = exports.InfuraNetworkType = void 0; | ||
exports.NetworksTicker = exports.ChainId = exports.BuiltInNetworkName = exports.isNetworkType = exports.NetworkType = exports.InfuraNetworkType = void 0; | ||
/** | ||
@@ -55,12 +55,2 @@ * The names of built-in Infura networks | ||
}; | ||
/** | ||
* Decimal string network IDs of built-in Infura networks, by name. | ||
*/ | ||
exports.NetworkId = { | ||
[exports.InfuraNetworkType.mainnet]: '1', | ||
[exports.InfuraNetworkType.goerli]: '5', | ||
[exports.InfuraNetworkType.sepolia]: '11155111', | ||
[exports.InfuraNetworkType['linea-goerli']]: '59140', | ||
[exports.InfuraNetworkType['linea-mainnet']]: '59144', | ||
}; | ||
var NetworksTicker; | ||
@@ -67,0 +57,0 @@ (function (NetworksTicker) { |
{ | ||
"name": "@metamask-previews/controller-utils", | ||
"version": "4.3.2-preview.04c2e62", | ||
"version": "4.3.2-preview.b963821", | ||
"description": "Data and convenience functions shared by multiple packages", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
110544
1306