@injectivelabs/networks 1.16.38 → 1.17.2-alpha.0

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/esm/index.js CHANGED
@@ -1,3 +1,343 @@
1
- export * from './network.js';
2
- export * from './types.js';
3
- export * from './utils.js';
1
+ import { ChainId, EvmChainId } from "@injectivelabs/ts-types";
2
+
3
+ //#region src/types.ts
4
+ const Network = {
5
+ MainnetK8s: "mainnetK8s",
6
+ MainnetLB: "mainnetLB",
7
+ Mainnet: "mainnet",
8
+ MainnetSentry: "mainnetSentry",
9
+ MainnetOld: "mainnetOld",
10
+ Staging: "staging",
11
+ Internal: "internal",
12
+ TestnetK8s: "testnetK8s",
13
+ TestnetOld: "testnetOld",
14
+ TestnetSentry: "testnetSentry",
15
+ Testnet: "testnet",
16
+ Devnet1: "devnet1",
17
+ Devnet2: "devnet2",
18
+ Devnet3: "devnet3",
19
+ Devnet: "devnet",
20
+ Local: "local"
21
+ };
22
+
23
+ //#endregion
24
+ //#region src/chainInfos.ts
25
+ const INJ_DENOM = "inj";
26
+ const getMainnetChainInfo = () => ({
27
+ feeDenom: INJ_DENOM,
28
+ chainId: ChainId.Mainnet,
29
+ evmChainId: EvmChainId.Mainnet,
30
+ env: "mainnet"
31
+ });
32
+ const getTestnetChainInfo = () => ({
33
+ feeDenom: INJ_DENOM,
34
+ chainId: ChainId.Testnet,
35
+ evmChainId: EvmChainId.Sepolia,
36
+ env: "testnet"
37
+ });
38
+ const getDevnetChainInfo = () => ({
39
+ feeDenom: INJ_DENOM,
40
+ chainId: ChainId.Devnet,
41
+ evmChainId: EvmChainId.Sepolia,
42
+ env: "devnet"
43
+ });
44
+ const getLocalChainInfo = () => ({
45
+ feeDenom: INJ_DENOM,
46
+ chainId: ChainId.Mainnet,
47
+ evmChainId: EvmChainId.Sepolia,
48
+ env: "local"
49
+ });
50
+
51
+ //#endregion
52
+ //#region src/endpoints.ts
53
+ const getEndpointsMainnetSentry = () => ({
54
+ indexer: "https://sentry.exchange.grpc-web.injective.network",
55
+ grpc: "https://sentry.chain.grpc-web.injective.network",
56
+ rpc: "https://sentry.tm.injective.network",
57
+ rest: "https://sentry.lcd.injective.network",
58
+ chronos: "https://sentry.exchange.grpc-web.injective.network",
59
+ explorer: "https://sentry.explorer.grpc-web.injective.network",
60
+ cacheGrpc: "https://sentry.chain.grpc-web.injective.network",
61
+ cacheRest: "https://staging.gateway.grpc-web.injective.network",
62
+ web3gw: "https://sentry.exchange.grpc-web.injective.network",
63
+ chart: "https://sentry.exchange.grpc-web.injective.network"
64
+ });
65
+ const getEndpointsStaging = () => ({
66
+ indexer: "https://k8s.mainnet.staging.exchange.grpc-web.injective.network",
67
+ grpc: "https://k8s.global.mainnet.chain.grpc-web.injective.network",
68
+ rpc: "https://k8s.global.mainnet.tm.injective.network",
69
+ rest: "https://k8s.global.mainnet.lcd.injective.network",
70
+ chronos: "https://k8s.mainnet.staging.exchange.grpc-web.injective.network",
71
+ explorer: "https://k8s.mainnet.staging.exchange.grpc-web.injective.network",
72
+ cacheGrpc: "https://k8s.global.mainnet.chain.grpc-web.injective.network",
73
+ cacheRest: "https://k8s.mainnet.staging.exchange.grpc-web.injective.network",
74
+ web3gw: "https://k8s.mainnet.staging.exchange.grpc-web.injective.network",
75
+ chart: "https://k8s.mainnet.staging.chart.grpc-web.injective.network"
76
+ });
77
+ const getEndpointsInternal = () => ({
78
+ indexer: "https://products.exchange.grpc-web.injective.network",
79
+ grpc: "https://products.chain.grpc-web.injective.network",
80
+ rpc: "https://products.tm.injective.network",
81
+ rest: "https://products.lcd.injective.network",
82
+ chronos: "https://products.chronos.grpc-web.injective.network",
83
+ explorer: "https://products.explorer.grpc-web.injective.network",
84
+ cacheGrpc: "https://products.chain.grpc-web.injective.network",
85
+ cacheRest: "https://staging.gateway.grpc-web.injective.network",
86
+ web3gw: "https://products.web3-gateway.injective.network",
87
+ chart: "https://products.exchange.grpc-web.injective.network"
88
+ });
89
+ const getEndpointsTestnetSentry = () => ({
90
+ indexer: "https://testnet.sentry.exchange.grpc-web.injective.network",
91
+ grpc: "https://testnet.sentry.chain.grpc-web.injective.network",
92
+ rpc: "https://testnet.sentry.tm.injective.network",
93
+ rest: "https://testnet.sentry.lcd.injective.network",
94
+ chronos: "https://testnet.sentry.exchange.grpc-web.injective.network",
95
+ explorer: "https://testnet.sentry.exchange.grpc-web.injective.network",
96
+ cacheGrpc: "https://testnet.sentry.chain.grpc-web.injective.network",
97
+ cacheRest: "https://testnet.sentry.exchange.grpc-web.injective.network",
98
+ web3gw: "https://testnet.sentry.exchange.grpc-web.injective.network",
99
+ chart: "https://k8s.testnet.chart.grpc-web.injective.network"
100
+ });
101
+ const getEndpointsDevnet = () => ({
102
+ indexer: "https://devnet.api.injective.dev",
103
+ grpc: "https://devnet.grpc.injective.dev",
104
+ rpc: "https://devnet.tm.injective.dev",
105
+ rest: "https://devnet.lcd.injective.dev",
106
+ chronos: "https://devnet.api.injective.dev",
107
+ explorer: "https://devnet.api.injective.dev",
108
+ cacheGrpc: "https://devnet.grpc.injective.dev",
109
+ cacheRest: "https://devnet.api.injective.dev",
110
+ web3gw: "https://devnet.api.injective.dev",
111
+ chart: "https://devnet.api.injective.dev"
112
+ });
113
+ const getEndpointsDevnet1 = () => ({
114
+ indexer: "https://devnet-1.api.injective.dev",
115
+ grpc: "https://devnet-1.grpc.injective.dev",
116
+ rpc: "https://devnet-1.tm.injective.dev",
117
+ rest: "https://devnet-1.lcd.injective.dev",
118
+ chronos: "https://devnet-1.api.injective.dev",
119
+ explorer: "https://devnet-1.api.injective.dev",
120
+ cacheGrpc: "https://devnet-1.grpc.injective.dev",
121
+ cacheRest: "https://devnet-1.api.injective.dev",
122
+ web3gw: "https://devnet-1.api.injective.dev",
123
+ chart: "https://devnet-1.api.injective.dev"
124
+ });
125
+ const getEndpointsDevnet2 = () => ({
126
+ indexer: "https://devnet-2.api.injective.dev",
127
+ grpc: "https://devnet-2.grpc.injective.dev",
128
+ rpc: "https://devnet-2.tm.injective.dev",
129
+ rest: "https://devnet-2.lcd.injective.dev",
130
+ chronos: "https://devnet-2.api.injective.dev",
131
+ explorer: "https://devnet-2.api.injective.dev",
132
+ cacheGrpc: "https://devnet-2.grpc.injective.dev",
133
+ cacheRest: "https://devnet-2.api.injective.dev",
134
+ web3gw: "https://devnet-2.api.injective.dev",
135
+ chart: "https://devnet-2.api.injective.dev"
136
+ });
137
+ const getEndpointsDevnet3 = () => ({
138
+ indexer: "https://devnet-3.api.injective.dev",
139
+ grpc: "https://devnet-3.grpc.injective.dev",
140
+ rpc: "https://devnet-3.tm.injective.dev",
141
+ rest: "https://devnet-3.lcd.injective.dev",
142
+ chronos: "https://devnet-3.api.injective.dev",
143
+ explorer: "https://devnet-3.api.injective.dev",
144
+ cacheGrpc: "https://devnet-3.grpc.injective.dev",
145
+ cacheRest: "https://devnet-3.api.injective.dev",
146
+ web3gw: "https://devnet-3.api.injective.dev",
147
+ chart: "https://devnet-3.api.injective.dev"
148
+ });
149
+ const getEndpointsLocal = () => ({
150
+ indexer: "https://localhost:4444",
151
+ grpc: "http://localhost:10337",
152
+ rpc: "http://localhost:9092",
153
+ rest: "http://localhost:10337",
154
+ chronos: "https://localhost:4442",
155
+ explorer: "http://localhost:4443",
156
+ cacheGrpc: "http://localhost:10337",
157
+ cacheRest: "https://localhost:4444",
158
+ web3gw: "https://localhost:4444"
159
+ });
160
+ /**
161
+ * @deprecated use TestnetSentry instead
162
+ */
163
+ const getEndpointsTestnetOld = () => ({
164
+ indexer: "https://testnet.exchange.grpc-web.injective.network",
165
+ grpc: "https://testnet.chain.grpc-web.injective.network",
166
+ rpc: "https://testnet.tm.injective.network",
167
+ rest: "https://testnet.lcd.injective.network",
168
+ chronos: "https://testnet.exchange.grpc-web.injective.network",
169
+ explorer: "https://testnet.exchange.grpc-web.injective.network",
170
+ web3gw: "https://testnet.exchange.grpc-web.injective.network",
171
+ cacheGrpc: "https://testnet.exchange.grpc-web.injective.network/",
172
+ cacheRest: "https://testnet.exchange.grpc-web.injective.network"
173
+ });
174
+ /**
175
+ * @deprecated use TestnetSentry instead
176
+ */
177
+ const getEndpointsTestnetK8s = () => ({
178
+ indexer: "https://k8s.testnet.exchange.grpc-web.injective.network",
179
+ grpc: "https://k8s.testnet.chain.grpc-web.injective.network",
180
+ rpc: "https://k8s.testnet.tm.injective.network",
181
+ rest: "https://k8s.testnet.lcd.injective.network",
182
+ chronos: "https://k8s.testnet.exchange.grpc-web.injective.network",
183
+ explorer: "https://k8s.testnet.explorer.grpc-web.injective.network",
184
+ cacheGrpc: "https://k8s.testnet.gateway.grpc.injective.network",
185
+ cacheRest: "https://k8s.testnet.gateway.grpc-web.injective.network",
186
+ web3gw: "https://k8s.testnet.exchange.grpc-web.injective.network"
187
+ });
188
+ /**
189
+ * @deprecated use MainnetSentry instead
190
+ */
191
+ const getEndpointsMainnetLB = () => ({
192
+ indexer: "https://k8s.global.mainnet.exchange.grpc-web.injective.network",
193
+ grpc: "https://k8s.global.mainnet.chain.grpc-web.injective.network",
194
+ rpc: "https://k8s.global.mainnet.tm.injective.network",
195
+ rest: "https://k8s.global.mainnet.lcd.injective.network",
196
+ chronos: "https://k8s.global.mainnet.exchange.grpc-web.injective.network",
197
+ explorer: "https://k8s.global.mainnet.exchange.grpc-web.injective.network",
198
+ cacheGrpc: "https://k8s.global.mainnet.chain.grpc-web.injective.network",
199
+ cacheRest: "https://k8s.global.mainnet.exchange.grpc-web.injective.network",
200
+ web3gw: "https://k8s.global.mainnet.exchange.grpc-web.injective.network",
201
+ chart: "https://k8s.global.mainnet.chart.grpc-web.injective.network"
202
+ });
203
+ /**
204
+ * @deprecated use MainnetSentry instead
205
+ */
206
+ const getEndpointsMainnetOld = () => ({
207
+ indexer: "https://api.injective.network",
208
+ grpc: "https://grpc.injective.network",
209
+ cacheGrpc: "https://grpc.injective.network",
210
+ rpc: "https://tm.injective.network",
211
+ rest: "https://lcd.injective.network",
212
+ cacheRest: "https://api.injective.network",
213
+ chronos: "https://api.injective.network",
214
+ explorer: "https://api.injective.network",
215
+ web3gw: "https://api.injective.network"
216
+ });
217
+ /**
218
+ * @deprecated use MainnetSentry instead
219
+ */
220
+ const getEndpointsMainnetK8s = () => ({
221
+ indexer: "https://k8s.mainnet.exchange.grpc-web.injective.network",
222
+ grpc: "https://k8s.mainnet.chain.grpc-web.injective.network",
223
+ rpc: "https://k8s.mainnet.tm.injective.network",
224
+ rest: "https://k8s.mainnet.lcd.injective.network",
225
+ chronos: "https://k8s.mainnet.exchange.grpc-web.injective.network",
226
+ explorer: "https://k8s.mainnet.exchange.grpc-web.injective.network",
227
+ cacheGrpc: "https://k8s.mainnet.chain.grpc-web.injective.network",
228
+ cacheRest: "https://k8s.mainnet.exchange.grpc-web.injective.network",
229
+ web3gw: "https://k8s.mainnet.exchange.grpc-web.injective.network"
230
+ });
231
+
232
+ //#endregion
233
+ //#region src/network.ts
234
+ const getNetworkEndpoints = (network) => {
235
+ switch (network) {
236
+ case Network.MainnetLB: return getEndpointsMainnetLB();
237
+ case Network.MainnetK8s: return getEndpointsMainnetK8s();
238
+ case Network.MainnetSentry:
239
+ case Network.Mainnet: return getEndpointsMainnetSentry();
240
+ case Network.MainnetOld: return getEndpointsMainnetOld();
241
+ case Network.Staging: return getEndpointsStaging();
242
+ case Network.Internal: return getEndpointsInternal();
243
+ case Network.Devnet: return getEndpointsDevnet();
244
+ case Network.Devnet1: return getEndpointsDevnet1();
245
+ case Network.Devnet2: return getEndpointsDevnet2();
246
+ case Network.Devnet3: return getEndpointsDevnet3();
247
+ case Network.TestnetK8s: return getEndpointsTestnetK8s();
248
+ case Network.TestnetOld: return getEndpointsTestnetOld();
249
+ case Network.TestnetSentry:
250
+ case Network.Testnet: return getEndpointsTestnetSentry();
251
+ case Network.Local: return getEndpointsLocal();
252
+ default: throw new Error(`Unknown network: ${network}`);
253
+ }
254
+ };
255
+ /**
256
+ * @deprecated - use getNetworkChainInfo instead
257
+ * @param network deprecated
258
+ * @returns
259
+ */
260
+ const getChainInfoForNetwork = (network) => getNetworkChainInfo(network);
261
+ const getNetworkChainInfo = (network) => {
262
+ if (network === Network.Local) return getLocalChainInfo();
263
+ if (isTestnet(network)) return getTestnetChainInfo();
264
+ if (isDevnet(network)) return getDevnetChainInfo();
265
+ return getMainnetChainInfo();
266
+ };
267
+ const getNetworkInfo = (network) => ({
268
+ ...getNetworkChainInfo(network),
269
+ ...getNetworkEndpoints(network)
270
+ });
271
+ const isMainnet = (network) => [
272
+ Network.Staging,
273
+ Network.Mainnet,
274
+ Network.MainnetOld,
275
+ Network.MainnetK8s,
276
+ Network.MainnetSentry,
277
+ Network.Internal,
278
+ Network.MainnetLB
279
+ ].includes(network);
280
+ const isDevnet = (network) => [
281
+ Network.Devnet,
282
+ Network.Devnet1,
283
+ Network.Devnet2,
284
+ Network.Devnet3,
285
+ Network.Local
286
+ ].includes(network);
287
+ const isTestnet = (network) => [
288
+ Network.Testnet,
289
+ Network.TestnetOld,
290
+ Network.TestnetK8s,
291
+ Network.TestnetSentry
292
+ ].includes(network);
293
+ const isTestnetOrDevnet = (network) => isDevnet(network) || isTestnet(network);
294
+
295
+ //#endregion
296
+ //#region src/utils.ts
297
+ const CW20_CODE_IDS_BY_NETWORK = (network = Network.Mainnet) => {
298
+ if (isTestnet(network)) return ["25"];
299
+ return [
300
+ "28",
301
+ "5",
302
+ "42"
303
+ ];
304
+ };
305
+ const getCw20AdapterContractForNetwork = (network = Network.Mainnet) => {
306
+ if (isDevnet(network)) return "inj1uukt3kqela4vsllvrqnrgllkna5wn3cm588w6k";
307
+ if (isTestnet(network)) return "inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6";
308
+ return "inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk";
309
+ };
310
+ const getCw20SwapContractForNetwork = (network = Network.Mainnet) => {
311
+ if (isDevnet(network)) return "inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h";
312
+ if (isTestnet(network)) return "inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43";
313
+ if (network === Network.Staging) return "inj12yj3mtjarujkhcp6lg3klxjjfrx2v7v8yswgp9";
314
+ return "inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx";
315
+ };
316
+ const getIncentivesContractForNetwork = (network = Network.Mainnet) => {
317
+ if (isDevnet(network)) return "";
318
+ if (isTestnet(network)) return "inj16twru668nsl7tqzahxd9q033swhr6a5xuslpkt";
319
+ return "";
320
+ };
321
+ const getInjNameRegistryContractForNetwork = (network = Network.Mainnet) => {
322
+ if (isDevnet(network)) return "inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa";
323
+ if (isTestnet(network)) return "inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa";
324
+ return "inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275";
325
+ };
326
+ const getInjNameReverseResolverContractForNetwork = (network = Network.Mainnet) => {
327
+ if (isDevnet(network)) return "inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v";
328
+ if (isTestnet(network)) return "inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v";
329
+ return "inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu";
330
+ };
331
+ const getPeggyGraphQlEndpointForNetwork = (network) => {
332
+ if (isDevnet(network)) return "https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet";
333
+ if (isTestnet(network)) return "https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-goerli";
334
+ return "https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet";
335
+ };
336
+ const getAssetPriceServiceForNetwork = (network) => {
337
+ if (isDevnet(network)) return "https://devnet.asset.injective.dev/asset-price/v1";
338
+ if (isTestnet(network)) return "https://k8s.testnet.asset.injective.network/asset-price/v1";
339
+ return "https://k8s.mainnet.asset.injective.network/asset-price/v1";
340
+ };
341
+
342
+ //#endregion
343
+ export { CW20_CODE_IDS_BY_NETWORK, Network, getAssetPriceServiceForNetwork, getChainInfoForNetwork, getCw20AdapterContractForNetwork, getCw20SwapContractForNetwork, getIncentivesContractForNetwork, getInjNameRegistryContractForNetwork, getInjNameReverseResolverContractForNetwork, getNetworkChainInfo, getNetworkEndpoints, getNetworkInfo, getPeggyGraphQlEndpointForNetwork, isDevnet, isMainnet, isTestnet, isTestnetOrDevnet };
@@ -1,3 +1,3 @@
1
1
  {
2
- "type": "module"
3
- }
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,65 +1,64 @@
1
1
  {
2
2
  "name": "@injectivelabs/networks",
3
+ "version": "1.17.2-alpha.0",
3
4
  "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.",
4
- "version": "1.16.38",
5
- "sideEffects": false,
6
- "type": "module",
7
5
  "license": "Apache-2.0",
8
6
  "author": {
9
7
  "name": "InjectiveLabs",
10
8
  "email": "admin@injectivelabs.org"
11
9
  },
12
- "types": "dist/cjs/index.d.ts",
13
- "main": "dist/cjs/index.js",
14
- "module": "dist/esm/index.js",
15
- "files": [
16
- "dist"
17
- ],
18
- "_moduleAliases": {
19
- "~networks": "dist"
20
- },
10
+ "type": "module",
11
+ "sideEffects": false,
21
12
  "exports": {
22
13
  ".": {
23
14
  "react-native": {
24
15
  "import": "./dist/esm/index.js",
25
- "require": "./dist/cjs/index.js",
26
- "types": "./dist/cjs/index.d.ts",
27
- "default": "./dist/cjs/index.js"
16
+ "require": "./dist/cjs/index.cjs",
17
+ "types": "./dist/cjs/index.d.cts",
18
+ "default": "./dist/cjs/index.cjs"
28
19
  },
29
20
  "require": {
30
- "types": "./dist/cjs/index.d.ts",
31
- "default": "./dist/cjs/index.js"
21
+ "types": "./dist/cjs/index.d.cts",
22
+ "default": "./dist/cjs/index.cjs"
32
23
  },
33
24
  "import": {
34
25
  "types": "./dist/esm/index.d.ts",
35
26
  "default": "./dist/esm/index.js"
36
27
  },
37
28
  "default": {
38
- "types": "./dist/cjs/index.d.ts",
39
- "default": "./dist/cjs/index.js"
29
+ "types": "./dist/cjs/index.d.cts",
30
+ "default": "./dist/cjs/index.cjs"
40
31
  }
41
32
  }
42
33
  },
43
- "scripts": {
44
- "build": "pnpm build:cjs && pnpm build:esm && pnpm build:post",
45
- "build:cjs": "tsc --build --force tsconfig.build.json",
46
- "build:esm": "tsc --build --force tsconfig.build.esm.json",
47
- "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && pnpm build:post",
48
- "build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json",
49
- "clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist",
50
- "test": "jest",
51
- "test:watch": "jest --watch",
52
- "test:ci": "jest --coverage --ci --reporters='jest-junit'",
53
- "coverage": "jest --coverage",
54
- "coverage:show": "live-server coverage",
55
- "dev": "ts-node -r tsconfig-paths/register src/index.ts",
56
- "start": "node dist/index.js"
57
- },
34
+ "main": "dist/cjs/index.cjs",
35
+ "module": "dist/esm/index.js",
36
+ "types": "dist/cjs/index.d.cts",
37
+ "files": [
38
+ "dist"
39
+ ],
58
40
  "dependencies": {
59
- "@injectivelabs/ts-types": "1.16.38"
41
+ "@injectivelabs/ts-types": "1.17.2-alpha.0"
60
42
  },
61
- "devDependencies": {
62
- "shx": "^0.3.4"
43
+ "publishConfig": {
44
+ "access": "public"
63
45
  },
64
- "gitHead": "c67633f9ba4c5efb2c969c3df815d54995459966"
65
- }
46
+ "_moduleAliases": {
47
+ "~networks": "dist"
48
+ },
49
+ "scripts": {
50
+ "build": "pnpm type-check && tsdown",
51
+ "build:fast": "tsdown",
52
+ "build:watch": "tsdown --watch",
53
+ "clean": "shx rm -rf dist coverage *.log junit.xml && shx mkdir -p dist",
54
+ "type-check": "tsc --noEmit",
55
+ "test": "vitest",
56
+ "test:watch": "vitest --watch",
57
+ "test:ci": "vitest run --coverage --reporter=verbose",
58
+ "coverage": "vitest run --coverage",
59
+ "coverage:show": "live-server coverage",
60
+ "dev": "ts-node -r tsconfig-paths/register src/index.ts",
61
+ "start": "node dist/index.js",
62
+ "lint": "eslint . --ext .ts,.js"
63
+ }
64
+ }
@@ -1,6 +0,0 @@
1
- import type { ChainInfo } from './types.js';
2
- export declare const INJ_DENOM = "inj";
3
- export declare const getMainnetChainInfo: () => ChainInfo;
4
- export declare const getTestnetChainInfo: () => ChainInfo;
5
- export declare const getDevnetChainInfo: () => ChainInfo;
6
- export declare const getLocalChainInfo: () => ChainInfo;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLocalChainInfo = exports.getDevnetChainInfo = exports.getTestnetChainInfo = exports.getMainnetChainInfo = exports.INJ_DENOM = void 0;
4
- const ts_types_1 = require("@injectivelabs/ts-types");
5
- exports.INJ_DENOM = 'inj';
6
- const getMainnetChainInfo = () => ({
7
- feeDenom: exports.INJ_DENOM,
8
- chainId: ts_types_1.ChainId.Mainnet,
9
- evmChainId: ts_types_1.EvmChainId.Mainnet,
10
- env: 'mainnet',
11
- });
12
- exports.getMainnetChainInfo = getMainnetChainInfo;
13
- const getTestnetChainInfo = () => ({
14
- feeDenom: exports.INJ_DENOM,
15
- chainId: ts_types_1.ChainId.Testnet,
16
- evmChainId: ts_types_1.EvmChainId.Sepolia,
17
- env: 'testnet',
18
- });
19
- exports.getTestnetChainInfo = getTestnetChainInfo;
20
- const getDevnetChainInfo = () => ({
21
- feeDenom: exports.INJ_DENOM,
22
- chainId: ts_types_1.ChainId.Devnet,
23
- evmChainId: ts_types_1.EvmChainId.Sepolia,
24
- env: 'devnet',
25
- });
26
- exports.getDevnetChainInfo = getDevnetChainInfo;
27
- const getLocalChainInfo = () => ({
28
- feeDenom: exports.INJ_DENOM,
29
- chainId: ts_types_1.ChainId.Mainnet,
30
- evmChainId: ts_types_1.EvmChainId.Sepolia,
31
- env: 'local',
32
- });
33
- exports.getLocalChainInfo = getLocalChainInfo;
@@ -1,30 +0,0 @@
1
- import type { NetworkEndpoints } from './types.js';
2
- export declare const getEndpointsMainnetSentry: () => NetworkEndpoints;
3
- export declare const getEndpointsStaging: () => NetworkEndpoints;
4
- export declare const getEndpointsInternal: () => NetworkEndpoints;
5
- export declare const getEndpointsTestnetSentry: () => NetworkEndpoints;
6
- export declare const getEndpointsDevnet: () => NetworkEndpoints;
7
- export declare const getEndpointsDevnet1: () => NetworkEndpoints;
8
- export declare const getEndpointsDevnet2: () => NetworkEndpoints;
9
- export declare const getEndpointsDevnet3: () => NetworkEndpoints;
10
- export declare const getEndpointsLocal: () => NetworkEndpoints;
11
- /**
12
- * @deprecated use TestnetSentry instead
13
- */
14
- export declare const getEndpointsTestnetOld: () => NetworkEndpoints;
15
- /**
16
- * @deprecated use TestnetSentry instead
17
- */
18
- export declare const getEndpointsTestnetK8s: () => NetworkEndpoints;
19
- /**
20
- * @deprecated use MainnetSentry instead
21
- */
22
- export declare const getEndpointsMainnetLB: () => NetworkEndpoints;
23
- /**
24
- * @deprecated use MainnetSentry instead
25
- */
26
- export declare const getEndpointsMainnetOld: () => NetworkEndpoints;
27
- /**
28
- * @deprecated use MainnetSentry instead
29
- */
30
- export declare const getEndpointsMainnetK8s: () => NetworkEndpoints;