@cityofzion/bs-ethereum 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/constants.js DELETED
@@ -1,160 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = exports.BITQUERY_MIRROR_NETWORK_BY_NETWORK_ID = exports.BITQUERY_MIRROR_URL = exports.NETWORK_NAME_BY_NETWORK_ID = exports.DEFAULT_URL_BY_NETWORK_ID = exports.RPC_LIST_BY_NETWORK_ID = exports.NATIVE_ASSET_BY_NETWORK_ID = exports.DEFAULT_PATH = exports.DERIVATION_PATH = void 0;
4
- const tokens_1 = require("./assets/tokens");
5
- exports.DERIVATION_PATH = "m/44'/60'/0'/0/?";
6
- exports.DEFAULT_PATH = "44'/60'/0'/0/0";
7
- exports.NATIVE_ASSET_BY_NETWORK_ID = {
8
- '1': tokens_1.ETH,
9
- '10': tokens_1.ETH,
10
- '25': tokens_1.CRO,
11
- '56': tokens_1.BNB,
12
- '137': tokens_1.MATIC,
13
- '1101': tokens_1.ETH,
14
- '250': tokens_1.FTM,
15
- '8453': tokens_1.ETH,
16
- '80002': tokens_1.MATIC,
17
- '42161': tokens_1.ETH,
18
- '42220': tokens_1.CELO,
19
- '43114': tokens_1.AVAX,
20
- '59144': tokens_1.ETH,
21
- '11155111': tokens_1.ETH,
22
- '12227331': tokens_1.GAS,
23
- };
24
- exports.RPC_LIST_BY_NETWORK_ID = {
25
- '1': [
26
- 'https://eth.llamarpc.com',
27
- 'https://mainnet.infura.io/v3/',
28
- 'https://ethereum-rpc.publicnode.com',
29
- 'https://endpoints.omniatech.io/v1/eth/mainnet/public',
30
- 'https://rpc.flashbots.net',
31
- 'https://rpc.mevblocker.io',
32
- ],
33
- '10': [
34
- 'https://optimism.llamarpc.com',
35
- 'https://endpoints.omniatech.io/v1/op/mainnet/public',
36
- 'https://optimism-rpc.publicnode.com',
37
- 'https://optimism.meowrpc.com',
38
- 'https://optimism.rpc.subquery.network/public',
39
- ],
40
- '25': ['https://cronos-evm-rpc.publicnode.com', 'https://1rpc.io/cro', 'https://rpc.vvs.finance'],
41
- '56': [
42
- 'https://bsc-dataseed.binance.org/',
43
- 'https://binance.llamarpc.com',
44
- 'https://bsc-dataseed.bnbchain.org',
45
- 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
46
- 'https://bsc-rpc.publicnode.com',
47
- ],
48
- '137': [
49
- 'https://polygon-mainnet.infura.io',
50
- 'https://polygon.llamarpc.com',
51
- 'https://endpoints.omniatech.io/v1/matic/mainnet/public',
52
- 'https://polygon.drpc.org',
53
- 'https://polygon.meowrpc.com',
54
- ],
55
- '250': [
56
- 'https://endpoints.omniatech.io/v1/fantom/mainnet/public',
57
- 'https://rpcapi.fantom.network',
58
- 'https://fantom-pokt.nodies.app',
59
- 'https://fantom-rpc.publicnode.com',
60
- 'https://fantom.drpc.org',
61
- ],
62
- '1101': [
63
- 'https://polygon-zkevm.drpc.org',
64
- 'https://polygon-zkevm.blockpi.network/v1/rpc/public',
65
- 'https://1rpc.io/polygon/zkevm',
66
- ],
67
- '80002': [
68
- 'https://polygon-amoy.drpc.org',
69
- 'https://rpc.ankr.com/polygon_amoy',
70
- 'https://polygon-amoy-bor-rpc.publicnode.com',
71
- ],
72
- '8453': [
73
- 'https://base.rpc.subquery.network/public',
74
- 'https://base.llamarpc.com',
75
- 'https://mainnet.base.org',
76
- 'https://1rpc.io/base',
77
- 'https://base.meowrpc.com',
78
- 'https://base-rpc.publicnode.com',
79
- 'https://endpoints.omniatech.io/v1/base/mainnet/public',
80
- ],
81
- '42161': [
82
- 'https://arbitrum.llamarpc.com',
83
- 'https://arbitrum-one-rpc.publicnode.com',
84
- 'https://arb-mainnet-public.unifra.io',
85
- 'https://arbitrum-one.publicnode.com',
86
- ],
87
- '42220': [
88
- 'https://forno.celo.org',
89
- 'https://api.tatum.io/v3/blockchain/node/celo-mainnet',
90
- 'https://rpc.ankr.com/celo',
91
- ],
92
- '43114': [
93
- 'https://avalanche-mainnet.infura.io',
94
- 'https://avalanche-c-chain-rpc.publicnode.com',
95
- 'https://avalanche.public-rpc.com',
96
- 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
97
- 'https://avalanche.drpc.org',
98
- ],
99
- '59144': ['https://linea.decubate.com', 'https://linea.blockpi.network/v1/rpc/public', 'https://linea.decubate.com'],
100
- '11155111': [
101
- 'https://ethereum-sepolia.rpc.subquery.network/public',
102
- 'https://ethereum-sepolia-rpc.publicnode.com',
103
- 'https://endpoints.omniatech.io/v1/eth/sepolia/public',
104
- 'https://eth-sepolia.public.blastapi.io',
105
- 'https://eth-sepolia-public.unifra.io',
106
- 'https://1rpc.io/sepolia',
107
- 'https://eth-sepolia.api.onfinality.io/public',
108
- ],
109
- '12227331': ['https://neoxseed1.ngd.network'],
110
- };
111
- exports.DEFAULT_URL_BY_NETWORK_ID = {
112
- '1': exports.RPC_LIST_BY_NETWORK_ID['1'][0],
113
- '10': exports.RPC_LIST_BY_NETWORK_ID['10'][0],
114
- '25': exports.RPC_LIST_BY_NETWORK_ID['25'][0],
115
- '56': exports.RPC_LIST_BY_NETWORK_ID['56'][0],
116
- '137': exports.RPC_LIST_BY_NETWORK_ID['137'][0],
117
- '250': exports.RPC_LIST_BY_NETWORK_ID['250'][0],
118
- '1101': exports.RPC_LIST_BY_NETWORK_ID['1101'][0],
119
- '8453': exports.RPC_LIST_BY_NETWORK_ID['8453'][0],
120
- '80002': exports.RPC_LIST_BY_NETWORK_ID['80002'][0],
121
- '42161': exports.RPC_LIST_BY_NETWORK_ID['42161'][0],
122
- '42220': exports.RPC_LIST_BY_NETWORK_ID['42220'][0],
123
- '43114': exports.RPC_LIST_BY_NETWORK_ID['43114'][0],
124
- '59144': exports.RPC_LIST_BY_NETWORK_ID['59144'][0],
125
- '11155111': exports.RPC_LIST_BY_NETWORK_ID['11155111'][0],
126
- '12227331': exports.RPC_LIST_BY_NETWORK_ID['12227331'][0],
127
- };
128
- exports.NETWORK_NAME_BY_NETWORK_ID = {
129
- '1': 'Ethereum Mainnet',
130
- '10': 'Optimism Mainnet',
131
- '25': 'Cronos Mainnet',
132
- '56': 'Binance Smart Chain Mainnet',
133
- '137': 'Polygon Mainnet',
134
- '250': 'Fantom Opera',
135
- '1101': 'Polygon zkEVM',
136
- '8453': 'Base',
137
- '80002': 'Polygon Amoy',
138
- '42161': 'Arbitrum One',
139
- '42220': 'Celo Mainnet',
140
- '43114': 'Avalanche C-Chain',
141
- '59144': 'Linea',
142
- '11155111': 'Ethereum Sepolia',
143
- '12227331': 'NeoX Testnet',
144
- };
145
- exports.BITQUERY_MIRROR_URL = 'https://i4l7kcg43c.execute-api.us-east-1.amazonaws.com/production/';
146
- exports.BITQUERY_MIRROR_NETWORK_BY_NETWORK_ID = {
147
- '1': 'ethereum',
148
- '25': 'cronos',
149
- '56': 'bsc',
150
- '137': 'matic',
151
- '250': 'fantom',
152
- '42220': 'celo_mainnet',
153
- '43114': 'avalanche',
154
- };
155
- exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = {
156
- 1: 'https://api.ghostmarket.io/api/v2',
157
- };
158
- exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = {
159
- 1: 'eth',
160
- };