@injectivelabs/networks 1.15.0 → 1.15.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/cjs/chainInfos.d.ts +5 -0
- package/dist/cjs/chainInfos.js +29 -0
- package/dist/cjs/constants.d.ts +126 -0
- package/dist/cjs/constants.js +130 -0
- package/dist/cjs/endpoints.d.ts +32 -0
- package/dist/cjs/endpoints.js +182 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/network.d.ts +16 -0
- package/dist/cjs/network.js +79 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/types.d.ts +38 -0
- package/dist/cjs/types.js +22 -0
- package/dist/cjs/utils.d.ts +9 -0
- package/dist/cjs/utils.js +55 -0
- package/dist/esm/chainInfos.d.ts +5 -0
- package/dist/esm/chainInfos.js +26 -0
- package/dist/esm/constants.d.ts +126 -0
- package/dist/esm/constants.js +127 -0
- package/dist/esm/endpoints.d.ts +32 -0
- package/dist/esm/endpoints.js +179 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/network.d.ts +16 -0
- package/dist/esm/network.js +68 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/types.d.ts +38 -0
- package/dist/esm/types.js +19 -0
- package/dist/esm/utils.d.ts +9 -0
- package/dist/esm/utils.js +44 -0
- package/package.json +3 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChainId, EthereumChainId } from '@injectivelabs/ts-types';
|
|
2
|
+
export declare enum Network {
|
|
3
|
+
MainnetK8s = "mainnetK8s",
|
|
4
|
+
MainnetLB = "mainnetLB",
|
|
5
|
+
Mainnet = "mainnet",
|
|
6
|
+
MainnetSentry = "mainnetSentry",
|
|
7
|
+
MainnetOld = "mainnetOld",
|
|
8
|
+
Staging = "staging",
|
|
9
|
+
Internal = "internal",// @deprecated
|
|
10
|
+
TestnetK8s = "testnetK8s",
|
|
11
|
+
TestnetOld = "testnetOld",
|
|
12
|
+
TestnetSentry = "testnetSentry",
|
|
13
|
+
Testnet = "testnet",
|
|
14
|
+
Devnet1 = "devnet1",
|
|
15
|
+
Devnet2 = "devnet2",
|
|
16
|
+
Devnet3 = "devnet3",
|
|
17
|
+
Devnet = "devnet",
|
|
18
|
+
Local = "local"
|
|
19
|
+
}
|
|
20
|
+
export type NetworkEndpoints = {
|
|
21
|
+
indexer: string;
|
|
22
|
+
grpc: string;
|
|
23
|
+
rest: string;
|
|
24
|
+
rpc?: string;
|
|
25
|
+
cacheGrpc?: string;
|
|
26
|
+
cacheRest?: string;
|
|
27
|
+
chronos?: string;
|
|
28
|
+
web3gw?: string;
|
|
29
|
+
explorer?: string;
|
|
30
|
+
chart?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UrlEndpoints = NetworkEndpoints; /** Deprecated */
|
|
33
|
+
export type ChainInfo = {
|
|
34
|
+
feeDenom: string;
|
|
35
|
+
chainId: ChainId;
|
|
36
|
+
env: string;
|
|
37
|
+
ethereumChainId?: EthereumChainId;
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Network = void 0;
|
|
4
|
+
var Network;
|
|
5
|
+
(function (Network) {
|
|
6
|
+
Network["MainnetK8s"] = "mainnetK8s";
|
|
7
|
+
Network["MainnetLB"] = "mainnetLB";
|
|
8
|
+
Network["Mainnet"] = "mainnet";
|
|
9
|
+
Network["MainnetSentry"] = "mainnetSentry";
|
|
10
|
+
Network["MainnetOld"] = "mainnetOld";
|
|
11
|
+
Network["Staging"] = "staging";
|
|
12
|
+
Network["Internal"] = "internal";
|
|
13
|
+
Network["TestnetK8s"] = "testnetK8s";
|
|
14
|
+
Network["TestnetOld"] = "testnetOld";
|
|
15
|
+
Network["TestnetSentry"] = "testnetSentry";
|
|
16
|
+
Network["Testnet"] = "testnet";
|
|
17
|
+
Network["Devnet1"] = "devnet1";
|
|
18
|
+
Network["Devnet2"] = "devnet2";
|
|
19
|
+
Network["Devnet3"] = "devnet3";
|
|
20
|
+
Network["Devnet"] = "devnet";
|
|
21
|
+
Network["Local"] = "local";
|
|
22
|
+
})(Network || (exports.Network = Network = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Network } from './types.js';
|
|
2
|
+
export declare const CW20_CODE_IDS_BY_NETWORK: (network?: Network) => string[];
|
|
3
|
+
export declare const getCw20AdapterContractForNetwork: (network?: Network) => string;
|
|
4
|
+
export declare const getCw20SwapContractForNetwork: (network?: Network) => string;
|
|
5
|
+
export declare const getIncentivesContractForNetwork: (network?: Network) => string;
|
|
6
|
+
export declare const getInjNameRegistryContractForNetwork: (network?: Network) => string;
|
|
7
|
+
export declare const getInjNameReverseResolverContractForNetwork: (network?: Network) => string;
|
|
8
|
+
export declare const getPeggyGraphQlEndpointForNetwork: (network: Network) => string;
|
|
9
|
+
export declare const getAssetPriceServiceForNetwork: (network: Network) => string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAssetPriceServiceForNetwork = exports.getPeggyGraphQlEndpointForNetwork = exports.getInjNameReverseResolverContractForNetwork = exports.getInjNameRegistryContractForNetwork = exports.getIncentivesContractForNetwork = exports.getCw20SwapContractForNetwork = exports.getCw20AdapterContractForNetwork = exports.CW20_CODE_IDS_BY_NETWORK = void 0;
|
|
4
|
+
const constants_js_1 = require("./constants.js");
|
|
5
|
+
const network_js_1 = require("./network.js");
|
|
6
|
+
const types_js_1 = require("./types.js");
|
|
7
|
+
const CW20_CODE_IDS_BY_NETWORK = (network = types_js_1.Network.Mainnet) => {
|
|
8
|
+
if ((0, network_js_1.isTestnet)(network)) {
|
|
9
|
+
return ['25'];
|
|
10
|
+
}
|
|
11
|
+
return ['28', '5', '42'];
|
|
12
|
+
};
|
|
13
|
+
exports.CW20_CODE_IDS_BY_NETWORK = CW20_CODE_IDS_BY_NETWORK;
|
|
14
|
+
const getCw20AdapterContractForNetwork = (network = types_js_1.Network.Mainnet) => {
|
|
15
|
+
return constants_js_1.CW20_ADAPTER_CONTRACT_BY_NETWORK[network] !== undefined
|
|
16
|
+
? constants_js_1.CW20_ADAPTER_CONTRACT_BY_NETWORK[network]
|
|
17
|
+
: constants_js_1.CW20_ADAPTER_CONTRACT_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
18
|
+
};
|
|
19
|
+
exports.getCw20AdapterContractForNetwork = getCw20AdapterContractForNetwork;
|
|
20
|
+
const getCw20SwapContractForNetwork = (network = types_js_1.Network.Mainnet) => {
|
|
21
|
+
return constants_js_1.CW20_SWAP_CONTRACT_BY_NETWORK[network] !== undefined
|
|
22
|
+
? constants_js_1.CW20_SWAP_CONTRACT_BY_NETWORK[network]
|
|
23
|
+
: constants_js_1.CW20_SWAP_CONTRACT_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
24
|
+
};
|
|
25
|
+
exports.getCw20SwapContractForNetwork = getCw20SwapContractForNetwork;
|
|
26
|
+
const getIncentivesContractForNetwork = (network = types_js_1.Network.Mainnet) => {
|
|
27
|
+
return constants_js_1.INCENTIVES_CONTRACT_BY_NETWORK[network] !== undefined
|
|
28
|
+
? constants_js_1.INCENTIVES_CONTRACT_BY_NETWORK[network]
|
|
29
|
+
: constants_js_1.INCENTIVES_CONTRACT_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
30
|
+
};
|
|
31
|
+
exports.getIncentivesContractForNetwork = getIncentivesContractForNetwork;
|
|
32
|
+
const getInjNameRegistryContractForNetwork = (network = types_js_1.Network.Mainnet) => {
|
|
33
|
+
return constants_js_1.INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK[network] !== undefined
|
|
34
|
+
? constants_js_1.INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK[network]
|
|
35
|
+
: constants_js_1.INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
36
|
+
};
|
|
37
|
+
exports.getInjNameRegistryContractForNetwork = getInjNameRegistryContractForNetwork;
|
|
38
|
+
const getInjNameReverseResolverContractForNetwork = (network = types_js_1.Network.Mainnet) => {
|
|
39
|
+
return constants_js_1.INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK[network] !== undefined
|
|
40
|
+
? constants_js_1.INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK[network]
|
|
41
|
+
: constants_js_1.INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
42
|
+
};
|
|
43
|
+
exports.getInjNameReverseResolverContractForNetwork = getInjNameReverseResolverContractForNetwork;
|
|
44
|
+
const getPeggyGraphQlEndpointForNetwork = (network) => {
|
|
45
|
+
return constants_js_1.PEGGY_GRAPH_URL_BY_NETWORK[network] !== undefined
|
|
46
|
+
? constants_js_1.PEGGY_GRAPH_URL_BY_NETWORK[network]
|
|
47
|
+
: constants_js_1.PEGGY_GRAPH_URL_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
48
|
+
};
|
|
49
|
+
exports.getPeggyGraphQlEndpointForNetwork = getPeggyGraphQlEndpointForNetwork;
|
|
50
|
+
const getAssetPriceServiceForNetwork = (network) => {
|
|
51
|
+
return constants_js_1.ASSET_PRICE_URL_BY_NETWORK[network] !== undefined
|
|
52
|
+
? constants_js_1.ASSET_PRICE_URL_BY_NETWORK[network]
|
|
53
|
+
: constants_js_1.ASSET_PRICE_URL_BY_NETWORK[types_js_1.Network.Mainnet];
|
|
54
|
+
};
|
|
55
|
+
exports.getAssetPriceServiceForNetwork = getAssetPriceServiceForNetwork;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChainId, EthereumChainId } from '@injectivelabs/ts-types';
|
|
2
|
+
const INJ_DENOM = 'inj';
|
|
3
|
+
export const mainnetChainInfo = {
|
|
4
|
+
feeDenom: INJ_DENOM,
|
|
5
|
+
chainId: ChainId.Mainnet,
|
|
6
|
+
ethereumChainId: EthereumChainId.Mainnet,
|
|
7
|
+
env: 'mainnet',
|
|
8
|
+
};
|
|
9
|
+
export const testnetChainInfo = {
|
|
10
|
+
feeDenom: INJ_DENOM,
|
|
11
|
+
chainId: ChainId.Testnet,
|
|
12
|
+
ethereumChainId: EthereumChainId.Sepolia,
|
|
13
|
+
env: 'testnet',
|
|
14
|
+
};
|
|
15
|
+
export const devnetChainInfo = {
|
|
16
|
+
feeDenom: INJ_DENOM,
|
|
17
|
+
chainId: ChainId.Devnet,
|
|
18
|
+
ethereumChainId: EthereumChainId.Sepolia,
|
|
19
|
+
env: 'devnet',
|
|
20
|
+
};
|
|
21
|
+
export const localChainInfo = {
|
|
22
|
+
feeDenom: INJ_DENOM,
|
|
23
|
+
chainId: ChainId.Mainnet,
|
|
24
|
+
ethereumChainId: EthereumChainId.Mainnet,
|
|
25
|
+
env: 'local',
|
|
26
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare const CW20_ADAPTER_CONTRACT_BY_NETWORK: {
|
|
2
|
+
mainnet: string;
|
|
3
|
+
mainnetLB: string;
|
|
4
|
+
mainnetOld: string;
|
|
5
|
+
mainnetK8s: string;
|
|
6
|
+
mainnetSentry: string;
|
|
7
|
+
staging: string;
|
|
8
|
+
internal: string;
|
|
9
|
+
testnet: string;
|
|
10
|
+
testnetK8s: string;
|
|
11
|
+
testnetSentry: string;
|
|
12
|
+
testnetOld: string;
|
|
13
|
+
devnet: string;
|
|
14
|
+
devnet1: string;
|
|
15
|
+
devnet2: string;
|
|
16
|
+
devnet3: string;
|
|
17
|
+
local: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const CW20_SWAP_CONTRACT_BY_NETWORK: {
|
|
20
|
+
mainnet: string;
|
|
21
|
+
mainnetLB: string;
|
|
22
|
+
mainnetOld: string;
|
|
23
|
+
mainnetK8s: string;
|
|
24
|
+
mainnetSentry: string;
|
|
25
|
+
staging: string;
|
|
26
|
+
internal: string;
|
|
27
|
+
testnet: string;
|
|
28
|
+
testnetK8s: string;
|
|
29
|
+
testnetSentry: string;
|
|
30
|
+
testnetOld: string;
|
|
31
|
+
devnet: string;
|
|
32
|
+
devnet1: string;
|
|
33
|
+
devnet2: string;
|
|
34
|
+
devnet3: string;
|
|
35
|
+
local: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const INCENTIVES_CONTRACT_BY_NETWORK: {
|
|
38
|
+
mainnet: string;
|
|
39
|
+
mainnetLB: string;
|
|
40
|
+
mainnetOld: string;
|
|
41
|
+
mainnetK8s: string;
|
|
42
|
+
mainnetSentry: string;
|
|
43
|
+
staging: string;
|
|
44
|
+
internal: string;
|
|
45
|
+
testnet: string;
|
|
46
|
+
testnetK8s: string;
|
|
47
|
+
testnetSentry: string;
|
|
48
|
+
testnetOld: string;
|
|
49
|
+
devnet: string;
|
|
50
|
+
devnet1: string;
|
|
51
|
+
devnet2: string;
|
|
52
|
+
devnet3: string;
|
|
53
|
+
local: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK: {
|
|
56
|
+
mainnet: string;
|
|
57
|
+
mainnetLB: string;
|
|
58
|
+
mainnetK8s: string;
|
|
59
|
+
mainnetSentry: string;
|
|
60
|
+
mainnetOld: string;
|
|
61
|
+
staging: string;
|
|
62
|
+
internal: string;
|
|
63
|
+
testnet: string;
|
|
64
|
+
testnetK8s: string;
|
|
65
|
+
testnetSentry: string;
|
|
66
|
+
testnetOld: string;
|
|
67
|
+
devnet: string;
|
|
68
|
+
devnet1: string;
|
|
69
|
+
devnet2: string;
|
|
70
|
+
devnet3: string;
|
|
71
|
+
local: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK: {
|
|
74
|
+
mainnet: string;
|
|
75
|
+
mainnetLB: string;
|
|
76
|
+
mainnetK8s: string;
|
|
77
|
+
mainnetSentry: string;
|
|
78
|
+
mainnetOld: string;
|
|
79
|
+
staging: string;
|
|
80
|
+
internal: string;
|
|
81
|
+
testnet: string;
|
|
82
|
+
testnetK8s: string;
|
|
83
|
+
testnetSentry: string;
|
|
84
|
+
testnetOld: string;
|
|
85
|
+
devnet: string;
|
|
86
|
+
devnet1: string;
|
|
87
|
+
devnet2: string;
|
|
88
|
+
devnet3: string;
|
|
89
|
+
local: string;
|
|
90
|
+
};
|
|
91
|
+
export declare const PEGGY_GRAPH_URL_BY_NETWORK: {
|
|
92
|
+
mainnet: string;
|
|
93
|
+
mainnetLB: string;
|
|
94
|
+
mainnetK8s: string;
|
|
95
|
+
mainnetSentry: string;
|
|
96
|
+
mainnetOld: string;
|
|
97
|
+
staging: string;
|
|
98
|
+
internal: string;
|
|
99
|
+
testnet: string;
|
|
100
|
+
testnetK8s: string;
|
|
101
|
+
testnetSentry: string;
|
|
102
|
+
testnetOld: string;
|
|
103
|
+
devnet: string;
|
|
104
|
+
devnet1: string;
|
|
105
|
+
devnet2: string;
|
|
106
|
+
devnet3: string;
|
|
107
|
+
local: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const ASSET_PRICE_URL_BY_NETWORK: {
|
|
110
|
+
mainnet: string;
|
|
111
|
+
mainnetLB: string;
|
|
112
|
+
mainnetK8s: string;
|
|
113
|
+
mainnetSentry: string;
|
|
114
|
+
mainnetOld: string;
|
|
115
|
+
staging: string;
|
|
116
|
+
internal: string;
|
|
117
|
+
testnet: string;
|
|
118
|
+
testnetK8s: string;
|
|
119
|
+
testnetSentry: string;
|
|
120
|
+
testnetOld: string;
|
|
121
|
+
devnet: string;
|
|
122
|
+
devnet1: string;
|
|
123
|
+
devnet2: string;
|
|
124
|
+
devnet3: string;
|
|
125
|
+
local: string;
|
|
126
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Network } from './types.js';
|
|
2
|
+
export const CW20_ADAPTER_CONTRACT_BY_NETWORK = {
|
|
3
|
+
[Network.Mainnet]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
4
|
+
[Network.MainnetLB]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
5
|
+
[Network.MainnetOld]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
6
|
+
[Network.MainnetK8s]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
7
|
+
[Network.MainnetSentry]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
8
|
+
[Network.Staging]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
9
|
+
[Network.Internal]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk',
|
|
10
|
+
[Network.Testnet]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
11
|
+
[Network.TestnetK8s]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
12
|
+
[Network.TestnetSentry]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
13
|
+
[Network.TestnetOld]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
14
|
+
[Network.Devnet]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
15
|
+
[Network.Devnet1]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
16
|
+
[Network.Devnet2]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
17
|
+
[Network.Devnet3]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
18
|
+
[Network.Local]: 'inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6',
|
|
19
|
+
};
|
|
20
|
+
export const CW20_SWAP_CONTRACT_BY_NETWORK = {
|
|
21
|
+
[Network.Mainnet]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
22
|
+
[Network.MainnetLB]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
23
|
+
[Network.MainnetOld]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
24
|
+
[Network.MainnetK8s]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
25
|
+
[Network.MainnetSentry]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
26
|
+
[Network.Staging]: 'inj12yj3mtjarujkhcp6lg3klxjjfrx2v7v8yswgp9',
|
|
27
|
+
[Network.Internal]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx',
|
|
28
|
+
[Network.Testnet]: 'inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43',
|
|
29
|
+
[Network.TestnetK8s]: 'inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43',
|
|
30
|
+
[Network.TestnetSentry]: 'inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43',
|
|
31
|
+
[Network.TestnetOld]: 'inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43',
|
|
32
|
+
[Network.Devnet]: 'inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h',
|
|
33
|
+
[Network.Devnet1]: 'inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h',
|
|
34
|
+
[Network.Devnet2]: 'inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h',
|
|
35
|
+
[Network.Devnet3]: 'inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h',
|
|
36
|
+
[Network.Local]: 'inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h',
|
|
37
|
+
};
|
|
38
|
+
export const INCENTIVES_CONTRACT_BY_NETWORK = {
|
|
39
|
+
[Network.Mainnet]: '',
|
|
40
|
+
[Network.MainnetLB]: '',
|
|
41
|
+
[Network.MainnetOld]: '',
|
|
42
|
+
[Network.MainnetK8s]: '',
|
|
43
|
+
[Network.MainnetSentry]: '',
|
|
44
|
+
[Network.Staging]: '',
|
|
45
|
+
[Network.Internal]: '',
|
|
46
|
+
[Network.Testnet]: 'inj16twru668nsl7tqzahxd9q033swhr6a5xuslpkt',
|
|
47
|
+
[Network.TestnetK8s]: 'inj16twru668nsl7tqzahxd9q033swhr6a5xuslpkt',
|
|
48
|
+
[Network.TestnetSentry]: 'inj16twru668nsl7tqzahxd9q033swhr6a5xuslpkt',
|
|
49
|
+
[Network.TestnetOld]: 'inj16twru668nsl7tqzahxd9q033swhr6a5xuslpkt',
|
|
50
|
+
[Network.Devnet]: '',
|
|
51
|
+
[Network.Devnet1]: '',
|
|
52
|
+
[Network.Devnet2]: '',
|
|
53
|
+
[Network.Devnet3]: '',
|
|
54
|
+
[Network.Local]: '',
|
|
55
|
+
};
|
|
56
|
+
export const INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK = {
|
|
57
|
+
[Network.Mainnet]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
58
|
+
[Network.MainnetLB]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
59
|
+
[Network.MainnetK8s]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
60
|
+
[Network.MainnetSentry]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
61
|
+
[Network.MainnetOld]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
62
|
+
[Network.Staging]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
63
|
+
[Network.Internal]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275',
|
|
64
|
+
[Network.Testnet]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
65
|
+
[Network.TestnetK8s]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
66
|
+
[Network.TestnetSentry]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
67
|
+
[Network.TestnetOld]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
68
|
+
[Network.Devnet]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
69
|
+
[Network.Devnet1]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
70
|
+
[Network.Devnet2]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
71
|
+
[Network.Devnet3]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
72
|
+
[Network.Local]: 'inj1aw59rkpd9afp2ws6rx23nz5mrvq8dlckeslwfa',
|
|
73
|
+
};
|
|
74
|
+
export const INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK = {
|
|
75
|
+
[Network.Mainnet]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
76
|
+
[Network.MainnetLB]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
77
|
+
[Network.MainnetK8s]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
78
|
+
[Network.MainnetSentry]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
79
|
+
[Network.MainnetOld]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
80
|
+
[Network.Staging]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
81
|
+
[Network.Internal]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu',
|
|
82
|
+
[Network.Testnet]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
83
|
+
[Network.TestnetK8s]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
84
|
+
[Network.TestnetSentry]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
85
|
+
[Network.TestnetOld]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
86
|
+
[Network.Devnet]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
87
|
+
[Network.Devnet1]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
88
|
+
[Network.Devnet2]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
89
|
+
[Network.Devnet3]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
90
|
+
[Network.Local]: 'inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v',
|
|
91
|
+
};
|
|
92
|
+
export const PEGGY_GRAPH_URL_BY_NETWORK = {
|
|
93
|
+
[Network.Mainnet]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
94
|
+
[Network.MainnetLB]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
95
|
+
[Network.MainnetK8s]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
96
|
+
[Network.MainnetSentry]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
97
|
+
[Network.MainnetOld]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
98
|
+
[Network.Staging]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
99
|
+
[Network.Internal]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-mainnet',
|
|
100
|
+
[Network.Testnet]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-goerli',
|
|
101
|
+
[Network.TestnetK8s]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-goerli',
|
|
102
|
+
[Network.TestnetSentry]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-goerli',
|
|
103
|
+
[Network.TestnetOld]: 'https://api.thegraph.com/subgraphs/name/injectivelabs/injective-peggo-goerli',
|
|
104
|
+
[Network.Devnet]: 'https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet',
|
|
105
|
+
[Network.Devnet1]: 'https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet',
|
|
106
|
+
[Network.Devnet2]: 'https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet',
|
|
107
|
+
[Network.Devnet3]: 'https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet',
|
|
108
|
+
[Network.Local]: 'https://api.thegraph.com/subgraphs/name/injectivelabsdev/injective-peggo-devnet',
|
|
109
|
+
};
|
|
110
|
+
export const ASSET_PRICE_URL_BY_NETWORK = {
|
|
111
|
+
[Network.Mainnet]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
112
|
+
[Network.MainnetLB]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
113
|
+
[Network.MainnetK8s]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
114
|
+
[Network.MainnetSentry]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
115
|
+
[Network.MainnetOld]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
116
|
+
[Network.Staging]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
117
|
+
[Network.Internal]: 'https://k8s.mainnet.asset.injective.network/asset-price/v1',
|
|
118
|
+
[Network.Testnet]: 'https://k8s.testnet.asset.injective.network/asset-price/v1',
|
|
119
|
+
[Network.TestnetK8s]: 'https://k8s.testnet.asset.injective.network/asset-price/v1',
|
|
120
|
+
[Network.TestnetSentry]: 'https://k8s.testnet.asset.injective.network/asset-price/v1',
|
|
121
|
+
[Network.TestnetOld]: 'https://k8s.testnet.asset.injective.network/asset-price/v1',
|
|
122
|
+
[Network.Devnet]: 'https://devnet.asset.injective.dev/asset-price/v1',
|
|
123
|
+
[Network.Devnet1]: 'https://devnet.api.injective.dev/asset-price/v1',
|
|
124
|
+
[Network.Devnet2]: 'https://devnet.api.injective.dev/asset-price/v1',
|
|
125
|
+
[Network.Devnet3]: 'https://devnet.api.injective.dev/asset-price/v1',
|
|
126
|
+
[Network.Local]: 'https://devnet.api.injective.dev/asset-price/v1',
|
|
127
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NetworkEndpoints } from './types.js';
|
|
2
|
+
export declare const endpointsMainnetSentry: NetworkEndpoints;
|
|
3
|
+
export declare const endpointsMainnet: NetworkEndpoints;
|
|
4
|
+
export declare const endpointsStaging: NetworkEndpoints;
|
|
5
|
+
export declare const endpointsInternal: NetworkEndpoints;
|
|
6
|
+
export declare const endpointsTestnetSentry: NetworkEndpoints;
|
|
7
|
+
export declare const endpointsTestnet: NetworkEndpoints;
|
|
8
|
+
export declare const endpointsDevnet: NetworkEndpoints;
|
|
9
|
+
export declare const endpointsDevnet1: NetworkEndpoints;
|
|
10
|
+
export declare const endpointsDevnet2: NetworkEndpoints;
|
|
11
|
+
export declare const endpointsDevnet3: NetworkEndpoints;
|
|
12
|
+
export declare const endpointsLocal: NetworkEndpoints;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use TestnetSentry instead
|
|
15
|
+
*/
|
|
16
|
+
export declare const endpointsTestnetOld: NetworkEndpoints;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated use TestnetSentry instead
|
|
19
|
+
*/
|
|
20
|
+
export declare const endpointsTestnetK8s: NetworkEndpoints;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use MainnetSentry instead
|
|
23
|
+
*/
|
|
24
|
+
export declare const endpointsMainnetLB: NetworkEndpoints;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated use MainnetSentry instead
|
|
27
|
+
*/
|
|
28
|
+
export declare const endpointsMainnetOld: NetworkEndpoints;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated use MainnetSentry instead
|
|
31
|
+
*/
|
|
32
|
+
export declare const endpointsMainnetK8s: NetworkEndpoints;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export const endpointsMainnetSentry = {
|
|
2
|
+
indexer: 'https://sentry.exchange.grpc-web.injective.network',
|
|
3
|
+
grpc: 'https://sentry.chain.grpc-web.injective.network',
|
|
4
|
+
rpc: 'https://sentry.tm.injective.network',
|
|
5
|
+
rest: 'https://sentry.lcd.injective.network',
|
|
6
|
+
chronos: 'https://sentry.exchange.grpc-web.injective.network',
|
|
7
|
+
explorer: 'https://sentry.explorer.grpc-web.injective.network',
|
|
8
|
+
cacheGrpc: 'https://sentry.chain.grpc-web.injective.network',
|
|
9
|
+
cacheRest: 'https://staging.gateway.grpc-web.injective.network',
|
|
10
|
+
web3gw: 'https://sentry.exchange.grpc-web.injective.network',
|
|
11
|
+
chart: 'https://sentry.exchange.grpc-web.injective.network',
|
|
12
|
+
};
|
|
13
|
+
export const endpointsMainnet = {
|
|
14
|
+
...endpointsMainnetSentry,
|
|
15
|
+
};
|
|
16
|
+
export const endpointsStaging = {
|
|
17
|
+
indexer: 'https://staging.api.injective.network',
|
|
18
|
+
grpc: 'https://staging.grpc.injective.network',
|
|
19
|
+
rpc: 'https://staging.tm.injective.network',
|
|
20
|
+
rest: 'https://staging.lcd.injective.network',
|
|
21
|
+
chronos: 'https://staging.api.injective.network',
|
|
22
|
+
explorer: 'https://staging.api.injective.network',
|
|
23
|
+
cacheGrpc: 'https://staging.grpc.injective.network',
|
|
24
|
+
cacheRest: 'https://staging.gateway.grpc-web.injective.network',
|
|
25
|
+
web3gw: 'https://staging.api.injective.network',
|
|
26
|
+
chart: 'https://k8s.mainnet.staging.chart.grpc-web.injective.network',
|
|
27
|
+
};
|
|
28
|
+
export const endpointsInternal = {
|
|
29
|
+
indexer: 'https://products.exchange.grpc-web.injective.network',
|
|
30
|
+
grpc: 'https://products.chain.grpc-web.injective.network',
|
|
31
|
+
rpc: 'https://products.tm.injective.network',
|
|
32
|
+
rest: 'https://products.lcd.injective.network',
|
|
33
|
+
chronos: 'https://products.chronos.grpc-web.injective.network',
|
|
34
|
+
explorer: 'https://products.explorer.grpc-web.injective.network',
|
|
35
|
+
cacheGrpc: 'https://products.chain.grpc-web.injective.network',
|
|
36
|
+
cacheRest: 'https://staging.gateway.grpc-web.injective.network',
|
|
37
|
+
web3gw: 'https://products.web3-gateway.injective.network',
|
|
38
|
+
chart: 'https://products.exchange.grpc-web.injective.network',
|
|
39
|
+
};
|
|
40
|
+
export const endpointsTestnetSentry = {
|
|
41
|
+
indexer: 'https://testnet.sentry.exchange.grpc-web.injective.network',
|
|
42
|
+
grpc: 'https://testnet.sentry.chain.grpc-web.injective.network',
|
|
43
|
+
rpc: 'https://testnet.sentry.tm.injective.network',
|
|
44
|
+
rest: 'https://testnet.sentry.lcd.injective.network',
|
|
45
|
+
chronos: 'https://testnet.sentry.exchange.grpc-web.injective.network',
|
|
46
|
+
explorer: 'https://testnet.sentry.exchange.grpc-web.injective.network',
|
|
47
|
+
cacheGrpc: 'https://testnet.sentry.chain.grpc-web.injective.network',
|
|
48
|
+
cacheRest: 'https://testnet.sentry.exchange.grpc-web.injective.network',
|
|
49
|
+
web3gw: 'https://testnet.sentry.exchange.grpc-web.injective.network',
|
|
50
|
+
};
|
|
51
|
+
export const endpointsTestnet = {
|
|
52
|
+
...endpointsTestnetSentry,
|
|
53
|
+
};
|
|
54
|
+
export const endpointsDevnet = {
|
|
55
|
+
indexer: 'https://devnet.api.injective.dev',
|
|
56
|
+
grpc: 'https://devnet.grpc.injective.dev',
|
|
57
|
+
rpc: 'https://devnet.tm.injective.dev',
|
|
58
|
+
rest: 'https://devnet.lcd.injective.dev',
|
|
59
|
+
chronos: 'https://devnet.api.injective.dev',
|
|
60
|
+
explorer: 'https://devnet.api.injective.dev',
|
|
61
|
+
cacheGrpc: 'https://devnet.grpc.injective.dev',
|
|
62
|
+
cacheRest: 'https://devnet.api.injective.dev',
|
|
63
|
+
web3gw: 'https://devnet.api.injective.dev',
|
|
64
|
+
};
|
|
65
|
+
export const endpointsDevnet1 = {
|
|
66
|
+
indexer: 'https://devnet-1.api.injective.dev',
|
|
67
|
+
grpc: 'https://devnet-1.grpc.injective.dev',
|
|
68
|
+
rpc: 'https://devnet-1.tm.injective.dev',
|
|
69
|
+
rest: 'https://devnet-1.lcd.injective.dev',
|
|
70
|
+
chronos: 'https://devnet-1.api.injective.dev',
|
|
71
|
+
explorer: 'https://devnet-1.api.injective.dev',
|
|
72
|
+
cacheGrpc: 'https://devnet-1.grpc.injective.dev',
|
|
73
|
+
cacheRest: 'https://devnet-1.api.injective.dev',
|
|
74
|
+
web3gw: 'https://devnet-1.api.injective.dev',
|
|
75
|
+
};
|
|
76
|
+
export const endpointsDevnet2 = {
|
|
77
|
+
indexer: 'https://devnet-2.api.injective.dev',
|
|
78
|
+
grpc: 'https://devnet-2.grpc.injective.dev',
|
|
79
|
+
rpc: 'https://devnet-2.tm.injective.dev',
|
|
80
|
+
rest: 'https://devnet-2.lcd.injective.dev',
|
|
81
|
+
chronos: 'https://devnet-2.api.injective.dev',
|
|
82
|
+
explorer: 'https://devnet-2.api.injective.dev',
|
|
83
|
+
cacheGrpc: 'https://devnet-2.grpc.injective.dev',
|
|
84
|
+
cacheRest: 'https://devnet-2.api.injective.dev',
|
|
85
|
+
web3gw: 'https://devnet-2.api.injective.dev',
|
|
86
|
+
};
|
|
87
|
+
export const endpointsDevnet3 = {
|
|
88
|
+
indexer: 'https://devnet-3.api.injective.dev',
|
|
89
|
+
grpc: 'https://devnet-3.grpc.injective.dev',
|
|
90
|
+
rpc: 'https://devnet-3.tm.injective.dev',
|
|
91
|
+
rest: 'https://devnet-3.lcd.injective.dev',
|
|
92
|
+
chronos: 'https://devnet-3.api.injective.dev',
|
|
93
|
+
explorer: 'https://devnet-3.api.injective.dev',
|
|
94
|
+
cacheGrpc: 'https://devnet-3.grpc.injective.dev',
|
|
95
|
+
cacheRest: 'https://devnet-3.api.injective.dev',
|
|
96
|
+
web3gw: 'https://devnet-3.api.injective.dev',
|
|
97
|
+
};
|
|
98
|
+
export const endpointsLocal = {
|
|
99
|
+
indexer: 'https://localhost:4444',
|
|
100
|
+
grpc: 'http://localhost:10337',
|
|
101
|
+
rpc: 'http://localhost:9092',
|
|
102
|
+
rest: 'http://localhost:10337',
|
|
103
|
+
chronos: 'https://localhost:4442',
|
|
104
|
+
explorer: 'http://localhost:4443',
|
|
105
|
+
cacheGrpc: 'http://localhost:10337',
|
|
106
|
+
cacheRest: 'https://localhost:4444',
|
|
107
|
+
web3gw: 'https://localhost:4444',
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated use TestnetSentry instead
|
|
111
|
+
*/
|
|
112
|
+
export const endpointsTestnetOld = {
|
|
113
|
+
indexer: 'https://testnet.exchange.grpc-web.injective.network',
|
|
114
|
+
grpc: 'https://testnet.chain.grpc-web.injective.network',
|
|
115
|
+
rpc: 'https://testnet.tm.injective.network',
|
|
116
|
+
rest: 'https://testnet.lcd.injective.network',
|
|
117
|
+
chronos: 'https://testnet.exchange.grpc-web.injective.network',
|
|
118
|
+
explorer: 'https://testnet.exchange.grpc-web.injective.network',
|
|
119
|
+
web3gw: 'https://testnet.exchange.grpc-web.injective.network',
|
|
120
|
+
cacheGrpc: 'https://testnet.exchange.grpc-web.injective.network/',
|
|
121
|
+
cacheRest: 'https://testnet.exchange.grpc-web.injective.network',
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated use TestnetSentry instead
|
|
125
|
+
*/
|
|
126
|
+
export const endpointsTestnetK8s = {
|
|
127
|
+
indexer: 'https://k8s.testnet.exchange.grpc-web.injective.network',
|
|
128
|
+
grpc: 'https://k8s.testnet.chain.grpc-web.injective.network',
|
|
129
|
+
rpc: 'https://k8s.testnet.tm.injective.network',
|
|
130
|
+
rest: 'https://k8s.testnet.lcd.injective.network',
|
|
131
|
+
chronos: 'https://k8s.testnet.exchange.grpc-web.injective.network',
|
|
132
|
+
explorer: 'https://k8s.testnet.explorer.grpc-web.injective.network',
|
|
133
|
+
cacheGrpc: 'https://k8s.testnet.gateway.grpc.injective.network',
|
|
134
|
+
cacheRest: 'https://k8s.testnet.gateway.grpc-web.injective.network',
|
|
135
|
+
web3gw: 'https://k8s.testnet.exchange.grpc-web.injective.network',
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated use MainnetSentry instead
|
|
139
|
+
*/
|
|
140
|
+
export const endpointsMainnetLB = {
|
|
141
|
+
indexer: 'https://k8s.global.mainnet.exchange.grpc-web.injective.network',
|
|
142
|
+
grpc: 'https://k8s.global.mainnet.chain.grpc-web.injective.network',
|
|
143
|
+
rpc: 'https://k8s.global.mainnet.tm.injective.network',
|
|
144
|
+
rest: 'https://k8s.global.mainnet.lcd.injective.network',
|
|
145
|
+
chronos: 'https://k8s.global.mainnet.exchange.grpc-web.injective.network',
|
|
146
|
+
explorer: 'https://k8s.global.mainnet.exchange.grpc-web.injective.network',
|
|
147
|
+
cacheGrpc: 'https://k8s.global.mainnet.chain.grpc-web.injective.network',
|
|
148
|
+
cacheRest: 'https://k8s.global.mainnet.exchange.grpc-web.injective.network',
|
|
149
|
+
web3gw: 'https://k8s.global.mainnet.exchange.grpc-web.injective.network',
|
|
150
|
+
chart: 'https://k8s.global.mainnet.chart.grpc-web.injective.network',
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated use MainnetSentry instead
|
|
154
|
+
*/
|
|
155
|
+
export const endpointsMainnetOld = {
|
|
156
|
+
indexer: 'https://api.injective.network',
|
|
157
|
+
grpc: 'https://grpc.injective.network',
|
|
158
|
+
cacheGrpc: 'https://grpc.injective.network',
|
|
159
|
+
rpc: 'https://tm.injective.network',
|
|
160
|
+
rest: 'https://lcd.injective.network',
|
|
161
|
+
cacheRest: 'https://api.injective.network',
|
|
162
|
+
chronos: 'https://api.injective.network',
|
|
163
|
+
explorer: 'https://api.injective.network',
|
|
164
|
+
web3gw: 'https://api.injective.network',
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated use MainnetSentry instead
|
|
168
|
+
*/
|
|
169
|
+
export const endpointsMainnetK8s = {
|
|
170
|
+
indexer: 'https://k8s.mainnet.exchange.grpc-web.injective.network',
|
|
171
|
+
grpc: 'https://k8s.mainnet.chain.grpc-web.injective.network',
|
|
172
|
+
rpc: 'https://k8s.mainnet.tm.injective.network',
|
|
173
|
+
rest: 'https://k8s.mainnet.lcd.injective.network',
|
|
174
|
+
chronos: 'https://k8s.mainnet.exchange.grpc-web.injective.network',
|
|
175
|
+
explorer: 'https://k8s.mainnet.exchange.grpc-web.injective.network',
|
|
176
|
+
cacheGrpc: 'https://k8s.mainnet.chain.grpc-web.injective.network',
|
|
177
|
+
cacheRest: 'https://k8s.mainnet.exchange.grpc-web.injective.network',
|
|
178
|
+
web3gw: 'https://k8s.mainnet.exchange.grpc-web.injective.network',
|
|
179
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Network, ChainInfo, NetworkEndpoints } from './types.js';
|
|
2
|
+
export declare const networkEndpoints: Record<Network, NetworkEndpoints>;
|
|
3
|
+
export declare const chainInfos: Record<Network, ChainInfo>;
|
|
4
|
+
export declare const getNetworkEndpoints: (network: Network) => NetworkEndpoints;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated - use getNetworkChainInfo instead
|
|
7
|
+
* @param network de
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const getChainInfoForNetwork: (network: Network) => ChainInfo;
|
|
11
|
+
export declare const getNetworkChainInfo: (network: Network) => ChainInfo;
|
|
12
|
+
export declare const getNetworkInfo: (network: Network) => ChainInfo & NetworkEndpoints;
|
|
13
|
+
export declare const isMainnet: (network: Network) => boolean;
|
|
14
|
+
export declare const isDevnet: (network: Network) => boolean;
|
|
15
|
+
export declare const isTestnet: (network: Network) => boolean;
|
|
16
|
+
export declare const isTestnetOrDevnet: (network: Network) => boolean;
|