@optimex-xyz/market-maker-sdk 0.9.0-dev-5372aed → 0.9.0-dev-f1b970c

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/index.d.mts CHANGED
@@ -8,6 +8,7 @@ interface EnvironmentConfig {
8
8
  paymentAddressMap: Record<string, string>;
9
9
  liquidationAddressMap: Record<string, string>;
10
10
  protocolFetcherProxyAddress: string;
11
+ isTestnet: boolean;
11
12
  }
12
13
  interface AppConfig extends EnvironmentConfig {
13
14
  env: Environment;
@@ -40,6 +41,7 @@ declare class Config {
40
41
  getPaymentAddress(networkId: string): string;
41
42
  getLiquidationAddress(networkId: string): string;
42
43
  getProtocolFetcherAddress(): string;
44
+ isTestnet(): boolean;
43
45
  }
44
46
  declare const config: Config;
45
47
 
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ interface EnvironmentConfig {
8
8
  paymentAddressMap: Record<string, string>;
9
9
  liquidationAddressMap: Record<string, string>;
10
10
  protocolFetcherProxyAddress: string;
11
+ isTestnet: boolean;
11
12
  }
12
13
  interface AppConfig extends EnvironmentConfig {
13
14
  env: Environment;
@@ -40,6 +41,7 @@ declare class Config {
40
41
  getPaymentAddress(networkId: string): string;
41
42
  getLiquidationAddress(networkId: string): string;
42
43
  getProtocolFetcherAddress(): string;
44
+ isTestnet(): boolean;
43
45
  }
44
46
  declare const config: Config;
45
47
 
package/dist/index.js CHANGED
@@ -83,8 +83,9 @@ var environments = {
83
83
  ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
84
84
  },
85
85
  liquidationAddressMap: {
86
- ethereum_sepolia: "0x2AEDAF2470EfFD35B295D710fB2e5FDAdE642B0A"
87
- }
86
+ ethereum_sepolia: "0x1A0a58aF331Cc792Db92CFD9fE5E3124639E2a80"
87
+ },
88
+ isTestnet: true
88
89
  },
89
90
  staging: {
90
91
  backendUrl: "https://api-stg.bitdex.xyz",
@@ -95,7 +96,8 @@ var environments = {
95
96
  },
96
97
  liquidationAddressMap: {
97
98
  ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
98
- }
99
+ },
100
+ isTestnet: true
99
101
  },
100
102
  prelive: {
101
103
  backendUrl: "https://pre-api.optimex.xyz",
@@ -104,7 +106,10 @@ var environments = {
104
106
  paymentAddressMap: {
105
107
  ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
106
108
  },
107
- liquidationAddressMap: {}
109
+ liquidationAddressMap: {
110
+ ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
111
+ },
112
+ isTestnet: false
108
113
  },
109
114
  production: {
110
115
  backendUrl: "https://api.optimex.xyz",
@@ -113,7 +118,10 @@ var environments = {
113
118
  paymentAddressMap: {
114
119
  ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
115
120
  },
116
- liquidationAddressMap: {}
121
+ liquidationAddressMap: {
122
+ ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
123
+ },
124
+ isTestnet: false
117
125
  }
118
126
  };
119
127
  var Config = class {
@@ -174,6 +182,9 @@ var Config = class {
174
182
  getProtocolFetcherAddress() {
175
183
  return this.config.protocolFetcherProxyAddress;
176
184
  }
185
+ isTestnet() {
186
+ return this.config.isTestnet;
187
+ }
177
188
  };
178
189
  var config = new Config();
179
190
 
package/dist/index.mjs CHANGED
@@ -14,8 +14,9 @@ var environments = {
14
14
  ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
15
15
  },
16
16
  liquidationAddressMap: {
17
- ethereum_sepolia: "0x2AEDAF2470EfFD35B295D710fB2e5FDAdE642B0A"
18
- }
17
+ ethereum_sepolia: "0x1A0a58aF331Cc792Db92CFD9fE5E3124639E2a80"
18
+ },
19
+ isTestnet: true
19
20
  },
20
21
  staging: {
21
22
  backendUrl: "https://api-stg.bitdex.xyz",
@@ -26,7 +27,8 @@ var environments = {
26
27
  },
27
28
  liquidationAddressMap: {
28
29
  ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
29
- }
30
+ },
31
+ isTestnet: true
30
32
  },
31
33
  prelive: {
32
34
  backendUrl: "https://pre-api.optimex.xyz",
@@ -35,7 +37,10 @@ var environments = {
35
37
  paymentAddressMap: {
36
38
  ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
37
39
  },
38
- liquidationAddressMap: {}
40
+ liquidationAddressMap: {
41
+ ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
42
+ },
43
+ isTestnet: false
39
44
  },
40
45
  production: {
41
46
  backendUrl: "https://api.optimex.xyz",
@@ -44,7 +49,10 @@ var environments = {
44
49
  paymentAddressMap: {
45
50
  ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
46
51
  },
47
- liquidationAddressMap: {}
52
+ liquidationAddressMap: {
53
+ ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
54
+ },
55
+ isTestnet: false
48
56
  }
49
57
  };
50
58
  var Config = class {
@@ -105,6 +113,9 @@ var Config = class {
105
113
  getProtocolFetcherAddress() {
106
114
  return this.config.protocolFetcherProxyAddress;
107
115
  }
116
+ isTestnet() {
117
+ return this.config.isTestnet;
118
+ }
108
119
  };
109
120
  var config = new Config();
110
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimex-xyz/market-maker-sdk",
3
- "version": "0.9.0-dev-5372aed",
3
+ "version": "0.9.0-dev-f1b970c",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"