@injectivelabs/networks 1.16.32 → 1.16.33

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.
@@ -1,6 +1,5 @@
1
1
  import type { ChainInfo } from './types.js';
2
2
  export declare const INJ_DENOM = "inj";
3
- export declare const WINJ_ADDRESS = "0x0000000088827d2d103ee2d9A6b781773AE03FfB";
4
3
  export declare const getMainnetChainInfo: () => ChainInfo;
5
4
  export declare const getTestnetChainInfo: () => ChainInfo;
6
5
  export declare const getDevnetChainInfo: () => ChainInfo;
@@ -1,24 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLocalChainInfo = exports.getDevnetChainInfo = exports.getTestnetChainInfo = exports.getMainnetChainInfo = exports.WINJ_ADDRESS = exports.INJ_DENOM = void 0;
3
+ exports.getLocalChainInfo = exports.getDevnetChainInfo = exports.getTestnetChainInfo = exports.getMainnetChainInfo = exports.INJ_DENOM = void 0;
4
4
  const ts_types_1 = require("@injectivelabs/ts-types");
5
5
  exports.INJ_DENOM = 'inj';
6
- exports.WINJ_ADDRESS = '0x0000000088827d2d103ee2d9A6b781773AE03FfB';
7
6
  const getMainnetChainInfo = () => ({
8
7
  feeDenom: exports.INJ_DENOM,
9
8
  chainId: ts_types_1.ChainId.Mainnet,
10
9
  evmChainId: ts_types_1.EvmChainId.Mainnet,
11
10
  env: 'mainnet',
12
- injectiveEvmNetworkParams: {
13
- wInjAddress: exports.WINJ_ADDRESS,
14
- chainName: 'Injective EVM',
15
- chainId: `0x${ts_types_1.EvmChainId.MainnetEvm.toString(16)}`,
16
- nativeCurrency: {
17
- name: 'Injective',
18
- symbol: 'INJ',
19
- decimals: 18,
20
- },
21
- },
22
11
  });
23
12
  exports.getMainnetChainInfo = getMainnetChainInfo;
24
13
  const getTestnetChainInfo = () => ({
@@ -26,16 +15,6 @@ const getTestnetChainInfo = () => ({
26
15
  chainId: ts_types_1.ChainId.Testnet,
27
16
  evmChainId: ts_types_1.EvmChainId.Sepolia,
28
17
  env: 'testnet',
29
- injectiveEvmNetworkParams: {
30
- wInjAddress: exports.WINJ_ADDRESS,
31
- chainName: 'Injective EVM Testnet',
32
- chainId: `0x${ts_types_1.EvmChainId.MainnetEvm.toString(16)}`,
33
- nativeCurrency: {
34
- name: 'Injective',
35
- symbol: 'INJ',
36
- decimals: 18,
37
- },
38
- },
39
18
  });
40
19
  exports.getTestnetChainInfo = getTestnetChainInfo;
41
20
  const getDevnetChainInfo = () => ({
@@ -43,16 +22,6 @@ const getDevnetChainInfo = () => ({
43
22
  chainId: ts_types_1.ChainId.Devnet,
44
23
  evmChainId: ts_types_1.EvmChainId.Sepolia,
45
24
  env: 'devnet',
46
- injectiveEvmNetworkParams: {
47
- wInjAddress: exports.WINJ_ADDRESS,
48
- chainName: 'Injective EVM Devnet',
49
- chainId: `0x${ts_types_1.EvmChainId.DevnetEvm.toString(16)}`,
50
- nativeCurrency: {
51
- name: 'Injective',
52
- symbol: 'INJ',
53
- decimals: 18,
54
- },
55
- },
56
25
  });
57
26
  exports.getDevnetChainInfo = getDevnetChainInfo;
58
27
  const getLocalChainInfo = () => ({
@@ -60,15 +29,5 @@ const getLocalChainInfo = () => ({
60
29
  chainId: ts_types_1.ChainId.Mainnet,
61
30
  evmChainId: ts_types_1.EvmChainId.Sepolia,
62
31
  env: 'local',
63
- injectiveEvmNetworkParams: {
64
- wInjAddress: exports.WINJ_ADDRESS,
65
- chainName: 'Localhost',
66
- chainId: `0x${ts_types_1.EvmChainId.MainnetEvm.toString(16)}`,
67
- nativeCurrency: {
68
- name: 'Injective',
69
- symbol: 'INJ',
70
- decimals: 18,
71
- },
72
- },
73
32
  });
74
33
  exports.getLocalChainInfo = getLocalChainInfo;
@@ -31,20 +31,9 @@ export type NetworkEndpoints = {
31
31
  chart?: string;
32
32
  };
33
33
  export type UrlEndpoints = NetworkEndpoints; /** Deprecated */
34
- export type InjectiveEvmNetworkParams = {
35
- wInjAddress: string;
36
- chainName: string;
37
- chainId: string;
38
- nativeCurrency: {
39
- name: string;
40
- symbol: string;
41
- decimals: number;
42
- };
43
- };
44
34
  export type ChainInfo = {
45
35
  feeDenom: string;
46
36
  chainId: ChainId;
47
37
  env: string;
48
38
  evmChainId?: EvmChainId;
49
- injectiveEvmNetworkParams: InjectiveEvmNetworkParams;
50
39
  };
@@ -1,5 +1,4 @@
1
1
  import { Network } from './types.js';
2
- import { WINJ_ADDRESS } from './chainInfos.js';
3
2
  export declare const CW20_CODE_IDS_BY_NETWORK: (network?: Network) => string[];
4
3
  export declare const getCw20AdapterContractForNetwork: (network?: Network) => "inj1uukt3kqela4vsllvrqnrgllkna5wn3cm588w6k" | "inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6" | "inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk";
5
4
  export declare const getCw20SwapContractForNetwork: (network?: Network) => "inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h" | "inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43" | "inj12yj3mtjarujkhcp6lg3klxjjfrx2v7v8yswgp9" | "inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx";
@@ -8,4 +7,3 @@ export declare const getInjNameRegistryContractForNetwork: (network?: Network) =
8
7
  export declare const getInjNameReverseResolverContractForNetwork: (network?: Network) => "inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v" | "inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu";
9
8
  export declare const getPeggyGraphQlEndpointForNetwork: (network: Network) => string;
10
9
  export declare const getAssetPriceServiceForNetwork: (network: Network) => string;
11
- export { WINJ_ADDRESS };
package/dist/cjs/utils.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WINJ_ADDRESS = exports.getAssetPriceServiceForNetwork = exports.getPeggyGraphQlEndpointForNetwork = exports.getInjNameReverseResolverContractForNetwork = exports.getInjNameRegistryContractForNetwork = exports.getIncentivesContractForNetwork = exports.getCw20SwapContractForNetwork = exports.getCw20AdapterContractForNetwork = exports.CW20_CODE_IDS_BY_NETWORK = void 0;
3
+ exports.getAssetPriceServiceForNetwork = exports.getPeggyGraphQlEndpointForNetwork = exports.getInjNameReverseResolverContractForNetwork = exports.getInjNameRegistryContractForNetwork = exports.getIncentivesContractForNetwork = exports.getCw20SwapContractForNetwork = exports.getCw20AdapterContractForNetwork = exports.CW20_CODE_IDS_BY_NETWORK = void 0;
4
4
  const types_js_1 = require("./types.js");
5
- const chainInfos_js_1 = require("./chainInfos.js");
6
- Object.defineProperty(exports, "WINJ_ADDRESS", { enumerable: true, get: function () { return chainInfos_js_1.WINJ_ADDRESS; } });
7
5
  const network_js_1 = require("./network.js");
8
6
  const CW20_CODE_IDS_BY_NETWORK = (network = types_js_1.Network.Mainnet) => {
9
7
  if ((0, network_js_1.isTestnet)(network)) {
@@ -1,6 +1,5 @@
1
1
  import type { ChainInfo } from './types.js';
2
2
  export declare const INJ_DENOM = "inj";
3
- export declare const WINJ_ADDRESS = "0x0000000088827d2d103ee2d9A6b781773AE03FfB";
4
3
  export declare const getMainnetChainInfo: () => ChainInfo;
5
4
  export declare const getTestnetChainInfo: () => ChainInfo;
6
5
  export declare const getDevnetChainInfo: () => ChainInfo;
@@ -1,67 +1,26 @@
1
1
  import { ChainId, EvmChainId } from '@injectivelabs/ts-types';
2
2
  export const INJ_DENOM = 'inj';
3
- export const WINJ_ADDRESS = '0x0000000088827d2d103ee2d9A6b781773AE03FfB';
4
3
  export const getMainnetChainInfo = () => ({
5
4
  feeDenom: INJ_DENOM,
6
5
  chainId: ChainId.Mainnet,
7
6
  evmChainId: EvmChainId.Mainnet,
8
7
  env: 'mainnet',
9
- injectiveEvmNetworkParams: {
10
- wInjAddress: WINJ_ADDRESS,
11
- chainName: 'Injective EVM',
12
- chainId: `0x${EvmChainId.MainnetEvm.toString(16)}`,
13
- nativeCurrency: {
14
- name: 'Injective',
15
- symbol: 'INJ',
16
- decimals: 18,
17
- },
18
- },
19
8
  });
20
9
  export const getTestnetChainInfo = () => ({
21
10
  feeDenom: INJ_DENOM,
22
11
  chainId: ChainId.Testnet,
23
12
  evmChainId: EvmChainId.Sepolia,
24
13
  env: 'testnet',
25
- injectiveEvmNetworkParams: {
26
- wInjAddress: WINJ_ADDRESS,
27
- chainName: 'Injective EVM Testnet',
28
- chainId: `0x${EvmChainId.MainnetEvm.toString(16)}`,
29
- nativeCurrency: {
30
- name: 'Injective',
31
- symbol: 'INJ',
32
- decimals: 18,
33
- },
34
- },
35
14
  });
36
15
  export const getDevnetChainInfo = () => ({
37
16
  feeDenom: INJ_DENOM,
38
17
  chainId: ChainId.Devnet,
39
18
  evmChainId: EvmChainId.Sepolia,
40
19
  env: 'devnet',
41
- injectiveEvmNetworkParams: {
42
- wInjAddress: WINJ_ADDRESS,
43
- chainName: 'Injective EVM Devnet',
44
- chainId: `0x${EvmChainId.DevnetEvm.toString(16)}`,
45
- nativeCurrency: {
46
- name: 'Injective',
47
- symbol: 'INJ',
48
- decimals: 18,
49
- },
50
- },
51
20
  });
52
21
  export const getLocalChainInfo = () => ({
53
22
  feeDenom: INJ_DENOM,
54
23
  chainId: ChainId.Mainnet,
55
24
  evmChainId: EvmChainId.Sepolia,
56
25
  env: 'local',
57
- injectiveEvmNetworkParams: {
58
- wInjAddress: WINJ_ADDRESS,
59
- chainName: 'Localhost',
60
- chainId: `0x${EvmChainId.MainnetEvm.toString(16)}`,
61
- nativeCurrency: {
62
- name: 'Injective',
63
- symbol: 'INJ',
64
- decimals: 18,
65
- },
66
- },
67
26
  });
@@ -31,20 +31,9 @@ export type NetworkEndpoints = {
31
31
  chart?: string;
32
32
  };
33
33
  export type UrlEndpoints = NetworkEndpoints; /** Deprecated */
34
- export type InjectiveEvmNetworkParams = {
35
- wInjAddress: string;
36
- chainName: string;
37
- chainId: string;
38
- nativeCurrency: {
39
- name: string;
40
- symbol: string;
41
- decimals: number;
42
- };
43
- };
44
34
  export type ChainInfo = {
45
35
  feeDenom: string;
46
36
  chainId: ChainId;
47
37
  env: string;
48
38
  evmChainId?: EvmChainId;
49
- injectiveEvmNetworkParams: InjectiveEvmNetworkParams;
50
39
  };
@@ -1,5 +1,4 @@
1
1
  import { Network } from './types.js';
2
- import { WINJ_ADDRESS } from './chainInfos.js';
3
2
  export declare const CW20_CODE_IDS_BY_NETWORK: (network?: Network) => string[];
4
3
  export declare const getCw20AdapterContractForNetwork: (network?: Network) => "inj1uukt3kqela4vsllvrqnrgllkna5wn3cm588w6k" | "inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6" | "inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk";
5
4
  export declare const getCw20SwapContractForNetwork: (network?: Network) => "inj177yh38g3ctu7cemxpa3c2kvwh2yslfxfmfa66h" | "inj14d7h5j6ddq6pqppl65z24w7xrtmpcrqjxj8d43" | "inj12yj3mtjarujkhcp6lg3klxjjfrx2v7v8yswgp9" | "inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx";
@@ -8,4 +7,3 @@ export declare const getInjNameRegistryContractForNetwork: (network?: Network) =
8
7
  export declare const getInjNameReverseResolverContractForNetwork: (network?: Network) => "inj1knf6puyscuuqqhgqglskfc0k99d4885qw5uv7v" | "inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu";
9
8
  export declare const getPeggyGraphQlEndpointForNetwork: (network: Network) => string;
10
9
  export declare const getAssetPriceServiceForNetwork: (network: Network) => string;
11
- export { WINJ_ADDRESS };
package/dist/esm/utils.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Network } from './types.js';
2
- import { WINJ_ADDRESS } from './chainInfos.js';
3
2
  import { isTestnet, isDevnet } from './network.js';
4
3
  export const CW20_CODE_IDS_BY_NETWORK = (network = Network.Mainnet) => {
5
4
  if (isTestnet(network)) {
@@ -79,4 +78,3 @@ export const getAssetPriceServiceForNetwork = (network) => {
79
78
  // mainnet
80
79
  return 'https://k8s.mainnet.asset.injective.network/asset-price/v1';
81
80
  };
82
- export { WINJ_ADDRESS };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/networks",
3
3
  "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.",
4
- "version": "1.16.32",
4
+ "version": "1.16.33",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
@@ -56,10 +56,10 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/ts-types": "1.16.32"
59
+ "@injectivelabs/ts-types": "1.16.33"
60
60
  },
61
61
  "devDependencies": {
62
62
  "shx": "^0.3.4"
63
63
  },
64
- "gitHead": "e4461cec60f6f1255f5cb63194ce855520cbeb2e"
64
+ "gitHead": "7e822b65b56c486c03bede8c0eb024fd34a7657b"
65
65
  }