@optimex-xyz/market-maker-sdk 0.9.0-dev-cb35949 → 0.9.0-dev-b4f27ea
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,7 +37,8 @@ declare class Config {
|
|
|
37
37
|
get(): AppConfig;
|
|
38
38
|
getBackendUrl(): string;
|
|
39
39
|
getRpcUrl(): string;
|
|
40
|
-
getPaymentAddress(networkId: string): string
|
|
40
|
+
getPaymentAddress(networkId: string): string;
|
|
41
|
+
getLiquidationAddress(networkId: string): string;
|
|
41
42
|
getProtocolFetcherAddress(): string;
|
|
42
43
|
}
|
|
43
44
|
declare const config: Config;
|
|
@@ -6199,6 +6200,7 @@ declare class RouterService implements ConfigObserver {
|
|
|
6199
6200
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
6200
6201
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
6201
6202
|
getManagement(): Promise<string>;
|
|
6203
|
+
getAffiliateInfo(tradeId: BytesLike): Promise<ITypes.AffiliateStructOutput>;
|
|
6202
6204
|
}
|
|
6203
6205
|
declare const routerService: RouterService;
|
|
6204
6206
|
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ declare class Config {
|
|
|
37
37
|
get(): AppConfig;
|
|
38
38
|
getBackendUrl(): string;
|
|
39
39
|
getRpcUrl(): string;
|
|
40
|
-
getPaymentAddress(networkId: string): string
|
|
40
|
+
getPaymentAddress(networkId: string): string;
|
|
41
|
+
getLiquidationAddress(networkId: string): string;
|
|
41
42
|
getProtocolFetcherAddress(): string;
|
|
42
43
|
}
|
|
43
44
|
declare const config: Config;
|
|
@@ -6199,6 +6200,7 @@ declare class RouterService implements ConfigObserver {
|
|
|
6199
6200
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
6200
6201
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
6201
6202
|
getManagement(): Promise<string>;
|
|
6203
|
+
getAffiliateInfo(tradeId: BytesLike): Promise<ITypes.AffiliateStructOutput>;
|
|
6202
6204
|
}
|
|
6203
6205
|
declare const routerService: RouterService;
|
|
6204
6206
|
|
package/dist/index.js
CHANGED
|
@@ -166,6 +166,9 @@ var Config = class {
|
|
|
166
166
|
getPaymentAddress(networkId) {
|
|
167
167
|
return this.config.paymentAddressMap[networkId];
|
|
168
168
|
}
|
|
169
|
+
getLiquidationAddress(networkId) {
|
|
170
|
+
return this.config.liquidationAddressMap[networkId];
|
|
171
|
+
}
|
|
169
172
|
getProtocolFetcherAddress() {
|
|
170
173
|
return this.config.protocolFetcherProxyAddress;
|
|
171
174
|
}
|
|
@@ -4751,6 +4754,10 @@ var RouterService = class {
|
|
|
4751
4754
|
const contract = await this.getContract();
|
|
4752
4755
|
return await contract.management();
|
|
4753
4756
|
}
|
|
4757
|
+
async getAffiliateInfo(tradeId) {
|
|
4758
|
+
const contract = await this.getContract();
|
|
4759
|
+
return await contract.getAffiliateInfo(tradeId);
|
|
4760
|
+
}
|
|
4754
4761
|
};
|
|
4755
4762
|
var routerService = new RouterService();
|
|
4756
4763
|
|
package/dist/index.mjs
CHANGED
|
@@ -97,6 +97,9 @@ var Config = class {
|
|
|
97
97
|
getPaymentAddress(networkId) {
|
|
98
98
|
return this.config.paymentAddressMap[networkId];
|
|
99
99
|
}
|
|
100
|
+
getLiquidationAddress(networkId) {
|
|
101
|
+
return this.config.liquidationAddressMap[networkId];
|
|
102
|
+
}
|
|
100
103
|
getProtocolFetcherAddress() {
|
|
101
104
|
return this.config.protocolFetcherProxyAddress;
|
|
102
105
|
}
|
|
@@ -4682,6 +4685,10 @@ var RouterService = class {
|
|
|
4682
4685
|
const contract = await this.getContract();
|
|
4683
4686
|
return await contract.management();
|
|
4684
4687
|
}
|
|
4688
|
+
async getAffiliateInfo(tradeId) {
|
|
4689
|
+
const contract = await this.getContract();
|
|
4690
|
+
return await contract.getAffiliateInfo(tradeId);
|
|
4691
|
+
}
|
|
4685
4692
|
};
|
|
4686
4693
|
var routerService = new RouterService();
|
|
4687
4694
|
|