@optimex-xyz/market-maker-sdk 0.9.0-dev-3e9bb0c → 0.9.0-dev-aaad824
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 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
type Environment = '
|
|
4
|
+
type Environment = 'development' | 'prelive' | 'production' | 'staging';
|
|
5
5
|
interface EnvironmentConfig {
|
|
6
6
|
backendUrl: string;
|
|
7
7
|
rpcUrl: string;
|
|
@@ -6200,6 +6200,7 @@ declare class RouterService implements ConfigObserver {
|
|
|
6200
6200
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
6201
6201
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
6202
6202
|
getManagement(): Promise<string>;
|
|
6203
|
+
getAffiliateInfo(tradeId: BytesLike): Promise<ITypes.AffiliateStructOutput>;
|
|
6203
6204
|
}
|
|
6204
6205
|
declare const routerService: RouterService;
|
|
6205
6206
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
type Environment = '
|
|
4
|
+
type Environment = 'development' | 'prelive' | 'production' | 'staging';
|
|
5
5
|
interface EnvironmentConfig {
|
|
6
6
|
backendUrl: string;
|
|
7
7
|
rpcUrl: string;
|
|
@@ -6200,6 +6200,7 @@ declare class RouterService implements ConfigObserver {
|
|
|
6200
6200
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
6201
6201
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
6202
6202
|
getManagement(): Promise<string>;
|
|
6203
|
+
getAffiliateInfo(tradeId: BytesLike): Promise<ITypes.AffiliateStructOutput>;
|
|
6203
6204
|
}
|
|
6204
6205
|
declare const routerService: RouterService;
|
|
6205
6206
|
|
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
75
75
|
|
|
76
76
|
// src/config/config.ts
|
|
77
77
|
var environments = {
|
|
78
|
-
|
|
78
|
+
development: {
|
|
79
79
|
backendUrl: "https://api-dev.bitdex.xyz",
|
|
80
80
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
81
81
|
protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
|
|
@@ -4754,6 +4754,10 @@ var RouterService = class {
|
|
|
4754
4754
|
const contract = await this.getContract();
|
|
4755
4755
|
return await contract.management();
|
|
4756
4756
|
}
|
|
4757
|
+
async getAffiliateInfo(tradeId) {
|
|
4758
|
+
const contract = await this.getContract();
|
|
4759
|
+
return await contract.getAffiliateInfo(tradeId);
|
|
4760
|
+
}
|
|
4757
4761
|
};
|
|
4758
4762
|
var routerService = new RouterService();
|
|
4759
4763
|
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/config/config.ts
|
|
8
8
|
var environments = {
|
|
9
|
-
|
|
9
|
+
development: {
|
|
10
10
|
backendUrl: "https://api-dev.bitdex.xyz",
|
|
11
11
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
12
12
|
protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
|
|
@@ -4685,6 +4685,10 @@ var RouterService = class {
|
|
|
4685
4685
|
const contract = await this.getContract();
|
|
4686
4686
|
return await contract.management();
|
|
4687
4687
|
}
|
|
4688
|
+
async getAffiliateInfo(tradeId) {
|
|
4689
|
+
const contract = await this.getContract();
|
|
4690
|
+
return await contract.getAffiliateInfo(tradeId);
|
|
4691
|
+
}
|
|
4688
4692
|
};
|
|
4689
4693
|
var routerService = new RouterService();
|
|
4690
4694
|
|