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