@optimex-xyz/market-maker-sdk 0.9.0-dev-d10444f → 0.9.0-dev-896c690
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -5
- package/dist/index.mjs +16 -5
- package/package.json +1 -1
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
|
@@ -84,7 +84,8 @@ var environments = {
|
|
|
84
84
|
},
|
|
85
85
|
liquidationAddressMap: {
|
|
86
86
|
ethereum_sepolia: "0x2AEDAF2470EfFD35B295D710fB2e5FDAdE642B0A"
|
|
87
|
-
}
|
|
87
|
+
},
|
|
88
|
+
isTestnet: true
|
|
88
89
|
},
|
|
89
90
|
staging: {
|
|
90
91
|
backendUrl: "https://api-stg.bitdex.xyz",
|
|
@@ -94,8 +95,9 @@ var environments = {
|
|
|
94
95
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
95
96
|
},
|
|
96
97
|
liquidationAddressMap: {
|
|
97
|
-
ethereum_sepolia: "
|
|
98
|
-
}
|
|
98
|
+
ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
|
|
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
|
@@ -15,7 +15,8 @@ var environments = {
|
|
|
15
15
|
},
|
|
16
16
|
liquidationAddressMap: {
|
|
17
17
|
ethereum_sepolia: "0x2AEDAF2470EfFD35B295D710fB2e5FDAdE642B0A"
|
|
18
|
-
}
|
|
18
|
+
},
|
|
19
|
+
isTestnet: true
|
|
19
20
|
},
|
|
20
21
|
staging: {
|
|
21
22
|
backendUrl: "https://api-stg.bitdex.xyz",
|
|
@@ -25,8 +26,9 @@ var environments = {
|
|
|
25
26
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
26
27
|
},
|
|
27
28
|
liquidationAddressMap: {
|
|
28
|
-
ethereum_sepolia: "
|
|
29
|
-
}
|
|
29
|
+
ethereum_sepolia: "0x1CcD45Be1508E70d760b11b32ccd5Ac288756b1a"
|
|
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
|
|