@pendle/sdk-boros 1.1.18 → 1.1.19-strategies
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/addresses.d.ts +0 -6
- package/dist/addresses.js +1 -13
- package/dist/addresses.js.map +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +45 -169
- package/dist/backend/secrettune/BorosCoreSDK.js +8 -44
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/PendleV2SDK.d.ts +0 -1
- package/dist/backend/secrettune/PendleV2SDK.js.map +1 -1
- package/dist/entities/Calculator/exchangeFees.d.ts +47 -0
- package/dist/entities/Calculator/exchangeFees.js +93 -0
- package/dist/entities/Calculator/exchangeFees.js.map +1 -0
- package/dist/entities/Calculator/index.d.ts +7 -0
- package/dist/{ui-support → entities/Calculator}/index.js +7 -1
- package/dist/entities/Calculator/index.js.map +1 -0
- package/dist/entities/Calculator/marginCalculator.d.ts +10 -0
- package/dist/entities/Calculator/marginCalculator.js +64 -0
- package/dist/entities/Calculator/marginCalculator.js.map +1 -0
- package/dist/entities/Calculator/strategyApr.d.ts +30 -0
- package/dist/entities/Calculator/strategyApr.js +97 -0
- package/dist/entities/Calculator/strategyApr.js.map +1 -0
- package/dist/entities/Calculator/strategyExecution.d.ts +28 -0
- package/dist/entities/Calculator/strategyExecution.js +137 -0
- package/dist/entities/Calculator/strategyExecution.js.map +1 -0
- package/dist/entities/Calculator/strategyFinder.d.ts +13 -0
- package/dist/entities/Calculator/strategyFinder.js +201 -0
- package/dist/entities/Calculator/strategyFinder.js.map +1 -0
- package/dist/entities/Calculator/strategyUtils.d.ts +18 -0
- package/dist/entities/Calculator/strategyUtils.js +68 -0
- package/dist/entities/Calculator/strategyUtils.js.map +1 -0
- package/dist/entities/Calculator/types.d.ts +69 -0
- package/dist/entities/Calculator/types.js +3 -0
- package/dist/entities/Calculator/types.js.map +1 -0
- package/dist/entities/accManager/accManager.d.ts +1 -1
- package/dist/entities/accManager/accManager.js +5 -4
- package/dist/entities/accManager/accManager.js.map +1 -1
- package/dist/entities/agent/agent.d.ts +1 -1
- package/dist/entities/agent/agent.js +5 -4
- package/dist/entities/agent/agent.js.map +1 -1
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.d.ts +2 -2
- package/dist/entities/crossChainDeposit/Depositor.js +4 -18
- package/dist/entities/crossChainDeposit/Depositor.js.map +1 -1
- package/dist/entities/crossChainDeposit/Withdrawer.js +4 -18
- package/dist/entities/crossChainDeposit/Withdrawer.js.map +1 -1
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.d.ts +6 -7
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.js +6 -18
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.js.map +1 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js +6 -4
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js.map +1 -1
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js +15 -18
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js.map +1 -1
- package/dist/entities/crossChainDeposit/helpers/utils.js +1 -2
- package/dist/entities/crossChainDeposit/helpers/utils.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +9 -1622
- package/dist/entities/exchange/exchange.js +37 -39
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/dist/entities/exchange/types.d.ts +0 -8
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/multiTokenMerkleDistributor/multiTokenMerkleDistributorContract.js +1 -1
- package/dist/errors/ErrorCodes.d.ts +0 -139
- package/dist/errors/ErrorCodes.js +1 -18
- package/dist/errors/ErrorCodes.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/types/common.d.ts +0 -1
- package/dist/utils/signing/agent.d.ts +0 -3
- package/dist/utils/signing/agent.js +7 -13
- package/dist/utils/signing/agent.js.map +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -15
- package/dist/ui-support/incentive.d.ts +0 -8
- package/dist/ui-support/incentive.js +0 -16
- package/dist/ui-support/incentive.js.map +0 -1
- package/dist/ui-support/index.d.ts +0 -1
- package/dist/ui-support/index.js.map +0 -1
package/dist/addresses.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export declare const getMakerIncentiveMerkleDistributorAddress: () => Address;
|
|
|
12
12
|
export declare const getLpRewardsMerkleDistributorAddress: () => Address;
|
|
13
13
|
export declare const getDepositBoxFactoryAddress: () => Address;
|
|
14
14
|
export declare const getSwapExecutorAddress: () => Address;
|
|
15
|
-
export declare const getBnbOftAddress: () => Address;
|
|
16
|
-
export declare const getHypeOftAddress: () => Address;
|
|
17
15
|
export declare const getDepositBoxCodeHash: () => Hex;
|
|
18
16
|
export declare const getChainId: () => number;
|
|
19
17
|
export declare function toAddress(rawAddress: string): Address;
|
|
@@ -49,8 +47,6 @@ export declare const PROD_ADDRESSES_CONFIG: {
|
|
|
49
47
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xD0808080803c59dBF8825290bca8979786C2d65B";
|
|
50
48
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0xD180808080402FE41711Db560B8db5C41e21Df71";
|
|
51
49
|
readonly SWAP_EXECUTOR_ADDRESS: "0xd8d82d566F251E0280F3B5C91c58C8A7bB7A1780";
|
|
52
|
-
readonly BNB_OFT_ADDRESS: "0x74d9d3c04d69fbd0a1278a902d656412b8af9005";
|
|
53
|
-
readonly HYPE_OFT_ADDRESS: "0x007C26Ed5C33Fe6fEF62223d4c363A01F1b1dDc1";
|
|
54
50
|
readonly DEPOSIT_BOX_CODE_HASH: "0x44fbd2278daf4176957107c6ec3a53e6e0f2fe9a6499154e63101d500acbe6af";
|
|
55
51
|
};
|
|
56
52
|
export declare const DEV_ADDRESSES_CONFIG: {
|
|
@@ -65,7 +61,5 @@ export declare const DEV_ADDRESSES_CONFIG: {
|
|
|
65
61
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A";
|
|
66
62
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf";
|
|
67
63
|
readonly SWAP_EXECUTOR_ADDRESS: "0x930C98c95962Af1fA1d55b177370AA8941819c81";
|
|
68
|
-
readonly BNB_OFT_ADDRESS: "0xeda4bc3263aede0bd3c9459b4c0734656c562cb7";
|
|
69
|
-
readonly HYPE_OFT_ADDRESS: "0x007C26Ed5C33Fe6fEF62223d4c363A01F1b1dDc1";
|
|
70
64
|
readonly DEPOSIT_BOX_CODE_HASH: "0x50c3a57a6207df4e2f809e270419e0adc0cb12692c2f05b29572e42fee411159";
|
|
71
65
|
};
|
package/dist/addresses.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEV_ADDRESSES_CONFIG = exports.PROD_ADDRESSES_CONFIG = exports.LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS = exports.MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS = exports.MULTI_TOKEN_MERKLE_DISTRIBUTOR_ADDRESS = exports.EXPLORER_CONTRACT_ADDRESS = exports.CHAIN_ID = exports.MARKET_FACTORY_ADDRESS = exports.EXPLORER_ADDRESS = exports.MARKET_HUB_ADDRESS = exports.ROUTER_ADDRESS = exports.getAddressesForEnvironment = exports.getChainId = exports.getDepositBoxCodeHash = exports.
|
|
3
|
+
exports.DEV_ADDRESSES_CONFIG = exports.PROD_ADDRESSES_CONFIG = exports.LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS = exports.MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS = exports.MULTI_TOKEN_MERKLE_DISTRIBUTOR_ADDRESS = exports.EXPLORER_CONTRACT_ADDRESS = exports.CHAIN_ID = exports.MARKET_FACTORY_ADDRESS = exports.EXPLORER_ADDRESS = exports.MARKET_HUB_ADDRESS = exports.ROUTER_ADDRESS = exports.getAddressesForEnvironment = exports.getChainId = exports.getDepositBoxCodeHash = exports.getSwapExecutorAddress = exports.getDepositBoxFactoryAddress = exports.getLpRewardsMerkleDistributorAddress = exports.getMakerIncentiveMerkleDistributorAddress = exports.getReferralMerkleDistributorAddress = exports.getExplorerContractAddress = exports.getMarketFactoryAddress = exports.getExplorerAddress = exports.getMarketHubAddress = exports.getRouterAddress = exports.env = void 0;
|
|
4
4
|
exports.setEnv = setEnv;
|
|
5
5
|
exports.toAddress = toAddress;
|
|
6
6
|
exports.env = 'production';
|
|
@@ -19,8 +19,6 @@ const PROD_ADDRESSES = {
|
|
|
19
19
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xD0808080803c59dBF8825290bca8979786C2d65B',
|
|
20
20
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0xD180808080402FE41711Db560B8db5C41e21Df71',
|
|
21
21
|
SWAP_EXECUTOR_ADDRESS: '0xd8d82d566F251E0280F3B5C91c58C8A7bB7A1780',
|
|
22
|
-
BNB_OFT_ADDRESS: '0x74d9d3c04d69fbd0a1278a902d656412b8af9005',
|
|
23
|
-
HYPE_OFT_ADDRESS: '0x007C26Ed5C33Fe6fEF62223d4c363A01F1b1dDc1',
|
|
24
22
|
DEPOSIT_BOX_CODE_HASH: '0x44fbd2278daf4176957107c6ec3a53e6e0f2fe9a6499154e63101d500acbe6af',
|
|
25
23
|
};
|
|
26
24
|
const DEV_ADDRESSES = {
|
|
@@ -35,8 +33,6 @@ const DEV_ADDRESSES = {
|
|
|
35
33
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A',
|
|
36
34
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf',
|
|
37
35
|
SWAP_EXECUTOR_ADDRESS: '0x930C98c95962Af1fA1d55b177370AA8941819c81',
|
|
38
|
-
BNB_OFT_ADDRESS: '0xeda4bc3263aede0bd3c9459b4c0734656c562cb7',
|
|
39
|
-
HYPE_OFT_ADDRESS: '0x007C26Ed5C33Fe6fEF62223d4c363A01F1b1dDc1',
|
|
40
36
|
DEPOSIT_BOX_CODE_HASH: '0x50c3a57a6207df4e2f809e270419e0adc0cb12692c2f05b29572e42fee411159',
|
|
41
37
|
};
|
|
42
38
|
const getRouterAddress = () => {
|
|
@@ -85,14 +81,6 @@ const getSwapExecutorAddress = () => {
|
|
|
85
81
|
return exports.env === 'production' ? PROD_ADDRESSES.SWAP_EXECUTOR_ADDRESS : DEV_ADDRESSES.SWAP_EXECUTOR_ADDRESS;
|
|
86
82
|
};
|
|
87
83
|
exports.getSwapExecutorAddress = getSwapExecutorAddress;
|
|
88
|
-
const getBnbOftAddress = () => {
|
|
89
|
-
return exports.env === 'production' ? PROD_ADDRESSES.BNB_OFT_ADDRESS : DEV_ADDRESSES.BNB_OFT_ADDRESS;
|
|
90
|
-
};
|
|
91
|
-
exports.getBnbOftAddress = getBnbOftAddress;
|
|
92
|
-
const getHypeOftAddress = () => {
|
|
93
|
-
return exports.env === 'production' ? PROD_ADDRESSES.HYPE_OFT_ADDRESS : DEV_ADDRESSES.HYPE_OFT_ADDRESS;
|
|
94
|
-
};
|
|
95
|
-
exports.getHypeOftAddress = getHypeOftAddress;
|
|
96
84
|
const getDepositBoxCodeHash = () => {
|
|
97
85
|
return exports.env === 'production' ? PROD_ADDRESSES.DEPOSIT_BOX_CODE_HASH : DEV_ADDRESSES.DEPOSIT_BOX_CODE_HASH;
|
|
98
86
|
};
|
package/dist/addresses.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAMA,wBAEC;
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAMA,wBAEC;AAyFD,8BAEC;AA/FU,QAAA,GAAG,GAAgB,YAAY,CAAC;AAE3C,SAAgB,MAAM,CAAC,WAAwB;IAC7C,WAAG,GAAG,WAAW,CAAC;AACpB,CAAC;AAED,MAAM,cAAc,GAAG;IACrB,cAAc,EAAE,4CAA4C;IAC5D,kBAAkB,EAAE,4CAA4C;IAChE,gBAAgB,EAAE,4CAA4C;IAC9D,sBAAsB,EAAE,4CAA4C;IACpE,yBAAyB,EAAE,4CAA4C;IACvE,2BAA2B,EAAE,4CAA4C;IACzE,QAAQ,EAAE,KAAK;IAGf,mCAAmC,EAAE,4CAA4C;IACjF,0CAA0C,EAAE,4CAA4C;IACxF,qCAAqC,EAAE,4CAA4C;IACnF,qBAAqB,EAAE,4CAA4C;IAEnE,qBAAqB,EAAE,oEAAoE;CACnF,CAAC;AAEX,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,4CAA4C;IAC5D,kBAAkB,EAAE,4CAA4C;IAChE,gBAAgB,EAAE,4CAA4C;IAC9D,sBAAsB,EAAE,4CAA4C;IACpE,yBAAyB,EAAE,4CAA4C;IACvE,2BAA2B,EAAE,4CAA4C;IACzE,QAAQ,EAAE,KAAK;IACf,mCAAmC,EAAE,4CAA4C;IACjF,0CAA0C,EAAE,4CAA4C;IACxF,qCAAqC,EAAE,4CAA4C;IACnF,qBAAqB,EAAE,4CAA4C;IAEnE,qBAAqB,EAAE,oEAAoE;CACnF,CAAC;AAEJ,MAAM,gBAAgB,GAAG,GAAY,EAAE;IAC5C,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC;AAC7F,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEK,MAAM,mBAAmB,GAAG,GAAY,EAAE;IAC/C,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,aAAa,CAAC,kBAAkB,CAAC;AACrG,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEK,MAAM,kBAAkB,GAAG,GAAY,EAAE;IAC9C,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,aAAa,CAAC,gBAAgB,CAAC;AACjG,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEK,MAAM,uBAAuB,GAAG,GAAY,EAAE;IACnD,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC,aAAa,CAAC,sBAAsB,CAAC;AAC7G,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,0BAA0B,GAAG,GAAY,EAAE;IACtD,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC,CAAC,aAAa,CAAC,yBAAyB,CAAC;AACnH,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC;AAEK,MAAM,mCAAmC,GAAG,GAAY,EAAE;IAC/D,OAAO,WAAG,KAAK,YAAY;QACzB,CAAC,CAAC,cAAc,CAAC,mCAAmC;QACpD,CAAC,CAAC,aAAa,CAAC,mCAAmC,CAAC;AACxD,CAAC,CAAC;AAJW,QAAA,mCAAmC,uCAI9C;AACK,MAAM,yCAAyC,GAAG,GAAY,EAAE;IACrE,OAAO,WAAG,KAAK,YAAY;QACzB,CAAC,CAAC,cAAc,CAAC,0CAA0C;QAC3D,CAAC,CAAC,aAAa,CAAC,0CAA0C,CAAC;AAC/D,CAAC,CAAC;AAJW,QAAA,yCAAyC,6CAIpD;AAEK,MAAM,oCAAoC,GAAG,GAAY,EAAE;IAChE,OAAO,WAAG,KAAK,YAAY;QACzB,CAAC,CAAC,cAAc,CAAC,qCAAqC;QACtD,CAAC,CAAC,aAAa,CAAC,qCAAqC,CAAC;AAC1D,CAAC,CAAC;AAJW,QAAA,oCAAoC,wCAI/C;AAEK,MAAM,2BAA2B,GAAG,GAAY,EAAE;IACvD,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,2BAA2B,CAAC,CAAC,CAAC,aAAa,CAAC,2BAA2B,CAAC;AACvH,CAAC,CAAC;AAFW,QAAA,2BAA2B,+BAEtC;AAEK,MAAM,sBAAsB,GAAG,GAAY,EAAE;IAClD,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC,aAAa,CAAC,qBAAqB,CAAC;AAC3G,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEK,MAAM,qBAAqB,GAAG,GAAQ,EAAE;IAC7C,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC,aAAa,CAAC,qBAAqB,CAAC;AAC3G,CAAC,CAAC;AAFW,QAAA,qBAAqB,yBAEhC;AAEK,MAAM,UAAU,GAAG,GAAW,EAAE;IACrC,OAAO,WAAG,KAAK,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC;AACjF,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF,SAAgB,SAAS,CAAC,UAAkB;IAC1C,OAAO,UAAU,CAAC,WAAW,EAAa,CAAC;AAC7C,CAAC;AAEM,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,CAAC;IAC/C,cAAc,EAAE,IAAA,wBAAgB,GAAE;IAClC,kBAAkB,EAAE,IAAA,2BAAmB,GAAE;IACzC,gBAAgB,EAAE,IAAA,0BAAkB,GAAE;IACtC,sBAAsB,EAAE,IAAA,+BAAuB,GAAE;IACjD,yBAAyB,EAAE,IAAA,kCAA0B,GAAE;IACvD,QAAQ,EAAE,IAAA,kBAAU,GAAE;IACtB,mCAAmC,EAAE,IAAA,2CAAmC,GAAE;IAC1E,0CAA0C,EAAE,IAAA,iDAAyC,GAAE;IACvF,qCAAqC,EAAE,IAAA,4CAAoC,GAAE;CAC9E,CAAC,CAAC;AAVU,QAAA,0BAA0B,8BAUpC;AAEU,QAAA,cAAc,GAAG,IAAA,wBAAgB,GAAE,CAAC;AACpC,QAAA,kBAAkB,GAAG,IAAA,2BAAmB,GAAE,CAAC;AAC3C,QAAA,gBAAgB,GAAG,IAAA,0BAAkB,GAAE,CAAC;AACxC,QAAA,sBAAsB,GAAG,IAAA,+BAAuB,GAAE,CAAC;AACnD,QAAA,QAAQ,GAAG,IAAA,kBAAU,GAAE,CAAC;AACxB,QAAA,yBAAyB,GAAG,IAAA,kCAA0B,GAAE,CAAC;AACzD,QAAA,sCAAsC,GAAG,IAAA,2CAAmC,GAAE,CAAC;AAC/E,QAAA,0CAA0C,GAAG,IAAA,iDAAyC,GAAE,CAAC;AACzF,QAAA,qCAAqC,GAAG,IAAA,4CAAoC,GAAE,CAAC;AAE/E,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,oBAAoB,GAAG,aAAa,CAAC"}
|
|
@@ -13,7 +13,6 @@ export interface IndicatorDataPoint {
|
|
|
13
13
|
fp?: number;
|
|
14
14
|
fgi?: FGIData;
|
|
15
15
|
udma?: object;
|
|
16
|
-
ap?: number;
|
|
17
16
|
}
|
|
18
17
|
export interface IndicatorsResponse {
|
|
19
18
|
metadata: IndicatorsMetadata;
|
|
@@ -160,6 +159,7 @@ export interface CandleResponseV2 {
|
|
|
160
159
|
l: number;
|
|
161
160
|
c: number;
|
|
162
161
|
v: number;
|
|
162
|
+
u: number;
|
|
163
163
|
mr: number;
|
|
164
164
|
ofr: number;
|
|
165
165
|
}
|
|
@@ -247,7 +247,6 @@ export interface AMMStateResponse {
|
|
|
247
247
|
minAbsRate: string;
|
|
248
248
|
maxAbsRate: string;
|
|
249
249
|
cutOffTimestamp: string;
|
|
250
|
-
isCutOffReached: boolean;
|
|
251
250
|
}
|
|
252
251
|
export type Function = object;
|
|
253
252
|
export interface GetAMMInfoByAmmIdResponse {
|
|
@@ -314,10 +313,6 @@ export interface ContractSwapPositionResponse {
|
|
|
314
313
|
cost: string;
|
|
315
314
|
rate: number;
|
|
316
315
|
}
|
|
317
|
-
export interface MakerIncentiveSimulationResponse {
|
|
318
|
-
filledVolumeIncentiveReward: number;
|
|
319
|
-
provideLiquidityIncentiveReward: number;
|
|
320
|
-
}
|
|
321
316
|
export interface PlaceOrderSimulationResponseV2 {
|
|
322
317
|
preUserInfoActivePositionSize: string;
|
|
323
318
|
matched: ContractSwapPositionResponse;
|
|
@@ -328,10 +323,7 @@ export interface PlaceOrderSimulationResponseV2 {
|
|
|
328
323
|
feeBreakdown: FeeBreakdownResponse;
|
|
329
324
|
actualLeverage: number;
|
|
330
325
|
status: string;
|
|
331
|
-
statusCode: string;
|
|
332
326
|
makerOrderReward: number;
|
|
333
|
-
makerIncentive: MakerIncentiveSimulationResponse;
|
|
334
|
-
closeTradePnl?: number;
|
|
335
327
|
longYieldApr: number;
|
|
336
328
|
}
|
|
337
329
|
export interface CancelOrderSimulationResponse {
|
|
@@ -545,7 +537,6 @@ export interface PnlTransactionResponse {
|
|
|
545
537
|
pnl: string;
|
|
546
538
|
marketAcc: string;
|
|
547
539
|
accountId: number;
|
|
548
|
-
isLimitOrderTrade: boolean;
|
|
549
540
|
}
|
|
550
541
|
export interface PnlTransactionsResponse {
|
|
551
542
|
results: PnlTransactionResponse[];
|
|
@@ -679,16 +670,6 @@ export interface PositionInSyncResponse {
|
|
|
679
670
|
export interface PositionsInSyncResponse {
|
|
680
671
|
results: PositionInSyncResponse[];
|
|
681
672
|
total: number;
|
|
682
|
-
maxEventIndex: number;
|
|
683
|
-
}
|
|
684
|
-
export interface MarketAccCashResponse {
|
|
685
|
-
marketAcc: string;
|
|
686
|
-
cash: string;
|
|
687
|
-
}
|
|
688
|
-
export interface MarketAccCashesResponse {
|
|
689
|
-
results: MarketAccCashResponse[];
|
|
690
|
-
total: number;
|
|
691
|
-
maxEventIndex: number;
|
|
692
673
|
}
|
|
693
674
|
export interface SettlementResponse {
|
|
694
675
|
id: string;
|
|
@@ -702,8 +683,6 @@ export interface SettlementResponse {
|
|
|
702
683
|
yieldReceived: string;
|
|
703
684
|
settlement: string;
|
|
704
685
|
settlementRate: number;
|
|
705
|
-
paidApr: number;
|
|
706
|
-
receivedApr: number;
|
|
707
686
|
}
|
|
708
687
|
export interface SettlementsResponse {
|
|
709
688
|
results: SettlementResponse[];
|
|
@@ -767,21 +746,6 @@ export interface CollateralSummaryResponse {
|
|
|
767
746
|
export interface AllCollateralSummaryResponse {
|
|
768
747
|
collaterals: CollateralSummaryResponse[];
|
|
769
748
|
}
|
|
770
|
-
export interface DepositBoxAssetMetadataResponse {
|
|
771
|
-
proSymbol: string;
|
|
772
|
-
icon: string;
|
|
773
|
-
monoIcon: string;
|
|
774
|
-
avatar: string;
|
|
775
|
-
accentColor: string;
|
|
776
|
-
isWhitelisted: boolean;
|
|
777
|
-
originProSymbol: string;
|
|
778
|
-
tokenIcon: string;
|
|
779
|
-
zoneIcon: string;
|
|
780
|
-
isDenominationUnit: boolean;
|
|
781
|
-
isDevTest: boolean;
|
|
782
|
-
isGeneral: boolean;
|
|
783
|
-
dstTokenId?: number;
|
|
784
|
-
}
|
|
785
749
|
export interface DepositBoxAssetResponse {
|
|
786
750
|
address: string;
|
|
787
751
|
tokenId: number;
|
|
@@ -789,13 +753,13 @@ export interface DepositBoxAssetResponse {
|
|
|
789
753
|
symbol: string;
|
|
790
754
|
decimals: number;
|
|
791
755
|
usdPrice: string;
|
|
792
|
-
metadata:
|
|
756
|
+
metadata: AssetMetadataResponse;
|
|
793
757
|
isCollateral: boolean;
|
|
794
758
|
chainId: number;
|
|
759
|
+
dstTokenId?: number;
|
|
795
760
|
}
|
|
796
761
|
export interface DepositBoxAssetsResponse {
|
|
797
762
|
assets: DepositBoxAssetResponse[];
|
|
798
|
-
restrictedTokenIds: number[];
|
|
799
763
|
}
|
|
800
764
|
export interface AssetBalanceResponse {
|
|
801
765
|
address: string;
|
|
@@ -846,6 +810,40 @@ export interface PrepareDepositFromBoxMessageResponse {
|
|
|
846
810
|
postUserState: DepositStateResponse;
|
|
847
811
|
minReceived: string;
|
|
848
812
|
}
|
|
813
|
+
export interface QuoteBscBridgeDto {
|
|
814
|
+
fromToken: string;
|
|
815
|
+
toToken: string;
|
|
816
|
+
amount: string;
|
|
817
|
+
fromAddress: string;
|
|
818
|
+
}
|
|
819
|
+
export interface QuoteBscTransactionDto {
|
|
820
|
+
from: string;
|
|
821
|
+
to: string;
|
|
822
|
+
value: string;
|
|
823
|
+
calldata: string;
|
|
824
|
+
}
|
|
825
|
+
export interface QuoteBscBridgeTokenAmountResponse {
|
|
826
|
+
token: string;
|
|
827
|
+
amount: string;
|
|
828
|
+
}
|
|
829
|
+
export interface QuoteBscBridgeFeeResponse {
|
|
830
|
+
name: string;
|
|
831
|
+
chainId: number;
|
|
832
|
+
token: string;
|
|
833
|
+
amount: string;
|
|
834
|
+
amountUsd: number;
|
|
835
|
+
}
|
|
836
|
+
export interface QuoteBscBridgeResponse {
|
|
837
|
+
tx: QuoteBscTransactionDto;
|
|
838
|
+
tokenApproval: QuoteBscBridgeTokenAmountResponse;
|
|
839
|
+
fromToken: string;
|
|
840
|
+
fromAmount: string;
|
|
841
|
+
toToken: string;
|
|
842
|
+
toAmount: string;
|
|
843
|
+
minToAmount: string;
|
|
844
|
+
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
845
|
+
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
846
|
+
}
|
|
849
847
|
export interface GetDepositBoxIdResponse {
|
|
850
848
|
boxId: number;
|
|
851
849
|
}
|
|
@@ -867,7 +865,7 @@ export interface DepositFromBoxMessageDto {
|
|
|
867
865
|
}
|
|
868
866
|
export interface DepositBoxIntentRouteDataDto {
|
|
869
867
|
tool: string;
|
|
870
|
-
aggregatorName: 'LIFI' | 'BOROS' | 'PENDLE'
|
|
868
|
+
aggregatorName: 'LIFI' | 'BOROS' | 'PENDLE';
|
|
871
869
|
tags: ('cheapest' | 'fastest')[];
|
|
872
870
|
estimatedDuration: number;
|
|
873
871
|
gasFeeUsd: number;
|
|
@@ -907,15 +905,9 @@ export interface PatchDepositBoxIntentCanceledDto {
|
|
|
907
905
|
agent: string;
|
|
908
906
|
timestamp: number;
|
|
909
907
|
}
|
|
910
|
-
export interface PatchDepositBoxIntentFailedDto {
|
|
911
|
-
account: string;
|
|
912
|
-
signature: string;
|
|
913
|
-
agent: string;
|
|
914
|
-
timestamp: number;
|
|
915
|
-
}
|
|
916
908
|
export interface DepositBoxIntentExtraDataResponse {
|
|
917
909
|
tool: string;
|
|
918
|
-
aggregatorName: 'LIFI' | 'BOROS' | 'PENDLE'
|
|
910
|
+
aggregatorName: 'LIFI' | 'BOROS' | 'PENDLE';
|
|
919
911
|
tags: ('cheapest' | 'fastest')[];
|
|
920
912
|
estimatedDuration: number;
|
|
921
913
|
gasFeeUsd: number;
|
|
@@ -961,7 +953,7 @@ export interface PatchWithdrawIntentBridgedDto {
|
|
|
961
953
|
agent: string;
|
|
962
954
|
timestamp: number;
|
|
963
955
|
bridgeTxHash: string;
|
|
964
|
-
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE'
|
|
956
|
+
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE')[];
|
|
965
957
|
root: string;
|
|
966
958
|
}
|
|
967
959
|
export interface PatchWithdrawIntentDoneDto {
|
|
@@ -1027,70 +1019,6 @@ export interface QuoteBscBridgeV2Dto {
|
|
|
1027
1019
|
fromAddress: string;
|
|
1028
1020
|
boxId: number;
|
|
1029
1021
|
}
|
|
1030
|
-
export interface QuoteBscTransactionDto {
|
|
1031
|
-
from: string;
|
|
1032
|
-
to: string;
|
|
1033
|
-
value: string;
|
|
1034
|
-
calldata: string;
|
|
1035
|
-
}
|
|
1036
|
-
export interface QuoteBscBridgeTokenAmountResponse {
|
|
1037
|
-
token: string;
|
|
1038
|
-
amount: string;
|
|
1039
|
-
}
|
|
1040
|
-
export interface QuoteBscBridgeFeeResponse {
|
|
1041
|
-
name: string;
|
|
1042
|
-
chainId: number;
|
|
1043
|
-
token: string;
|
|
1044
|
-
amount: string;
|
|
1045
|
-
amountUsd: number;
|
|
1046
|
-
}
|
|
1047
|
-
export interface QuoteBscBridgeResponse {
|
|
1048
|
-
tx: QuoteBscTransactionDto;
|
|
1049
|
-
tokenApproval: QuoteBscBridgeTokenAmountResponse;
|
|
1050
|
-
fromToken: string;
|
|
1051
|
-
fromAmount: string;
|
|
1052
|
-
toToken: string;
|
|
1053
|
-
toAmount: string;
|
|
1054
|
-
minToAmount: string;
|
|
1055
|
-
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
1056
|
-
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
1057
|
-
}
|
|
1058
|
-
export interface QuoteBridgeDto {
|
|
1059
|
-
chainId: number;
|
|
1060
|
-
fromToken: string;
|
|
1061
|
-
toToken: string;
|
|
1062
|
-
amount: string;
|
|
1063
|
-
fromAddress: string;
|
|
1064
|
-
boxId: number;
|
|
1065
|
-
}
|
|
1066
|
-
export interface QuoteBridgeTransactionDto {
|
|
1067
|
-
from: string;
|
|
1068
|
-
to: string;
|
|
1069
|
-
value: string;
|
|
1070
|
-
calldata: string;
|
|
1071
|
-
}
|
|
1072
|
-
export interface QuoteBridgeTokenAmountResponse {
|
|
1073
|
-
token: string;
|
|
1074
|
-
amount: string;
|
|
1075
|
-
}
|
|
1076
|
-
export interface QuoteBridgeFeeResponse {
|
|
1077
|
-
name: string;
|
|
1078
|
-
chainId: number;
|
|
1079
|
-
token: string;
|
|
1080
|
-
amount: string;
|
|
1081
|
-
amountUsd: number;
|
|
1082
|
-
}
|
|
1083
|
-
export interface QuoteBridgeResponse {
|
|
1084
|
-
tx: QuoteBridgeTransactionDto;
|
|
1085
|
-
tokenApproval?: QuoteBridgeTokenAmountResponse;
|
|
1086
|
-
fromToken: string;
|
|
1087
|
-
fromAmount: string;
|
|
1088
|
-
toToken: string;
|
|
1089
|
-
toAmount: string;
|
|
1090
|
-
minToAmount: string;
|
|
1091
|
-
feeCosts: QuoteBridgeFeeResponse[];
|
|
1092
|
-
gasCosts: QuoteBridgeFeeResponse[];
|
|
1093
|
-
}
|
|
1094
1022
|
export interface QuoteWithdrawBscDto {
|
|
1095
1023
|
fromAddress: string;
|
|
1096
1024
|
tokenId: number;
|
|
@@ -1107,23 +1035,6 @@ export interface QuoteWithdrawBscResponse {
|
|
|
1107
1035
|
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
1108
1036
|
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
1109
1037
|
}
|
|
1110
|
-
export interface QuoteWithdrawDto {
|
|
1111
|
-
chainId: number;
|
|
1112
|
-
fromAddress: string;
|
|
1113
|
-
tokenId: number;
|
|
1114
|
-
amount: string;
|
|
1115
|
-
toAddress: string;
|
|
1116
|
-
}
|
|
1117
|
-
export interface QuoteWithdrawResponse {
|
|
1118
|
-
tx: QuoteBscTransactionDto;
|
|
1119
|
-
fromToken: string;
|
|
1120
|
-
fromAmount: string;
|
|
1121
|
-
toToken: string;
|
|
1122
|
-
toAmount: string;
|
|
1123
|
-
minToAmount: string;
|
|
1124
|
-
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
1125
|
-
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
1126
|
-
}
|
|
1127
1038
|
export interface BalanceResponse {
|
|
1128
1039
|
b: string;
|
|
1129
1040
|
u: number;
|
|
@@ -1157,8 +1068,6 @@ export interface MarketWeeklyIncentiveResponse {
|
|
|
1157
1068
|
totalMakerVolume: number;
|
|
1158
1069
|
makerVolume: number;
|
|
1159
1070
|
rewardAmount: number;
|
|
1160
|
-
filledVolumeIncentiveReward: number;
|
|
1161
|
-
provideLiquidityIncentiveReward: number;
|
|
1162
1071
|
penaltyMessage?: string;
|
|
1163
1072
|
}
|
|
1164
1073
|
export interface WeeklyIncentiveResponse {
|
|
@@ -1173,22 +1082,12 @@ export interface MakerIncentiveRewardsResponse {
|
|
|
1173
1082
|
accruedAmount: number;
|
|
1174
1083
|
unclaimedAmount: number;
|
|
1175
1084
|
}
|
|
1176
|
-
export interface
|
|
1085
|
+
export interface MarketMakerIncentiveStatisticsResponse {
|
|
1177
1086
|
userMakerVolume: number;
|
|
1178
1087
|
totalMakerVolume: number;
|
|
1179
1088
|
totalEpochReward: number;
|
|
1180
1089
|
avgRewardPerYu: number;
|
|
1181
1090
|
}
|
|
1182
|
-
export interface MakerProvideLiquidityIncentiveResponse {
|
|
1183
|
-
pendlePerHour: number;
|
|
1184
|
-
eligibleShare: number;
|
|
1185
|
-
accumulatedPendle: number;
|
|
1186
|
-
incentiveRange: number;
|
|
1187
|
-
}
|
|
1188
|
-
export interface MarketMakerIncentiveStatisticsV2Response {
|
|
1189
|
-
filledVolumeIncentive: MakerFilledVolumeIncentiveResponse;
|
|
1190
|
-
provideLiquidityIncentive: MakerProvideLiquidityIncentiveResponse;
|
|
1191
|
-
}
|
|
1192
1091
|
export interface GetVolumeResponse {
|
|
1193
1092
|
volume: number;
|
|
1194
1093
|
}
|
|
@@ -1438,15 +1337,8 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1438
1337
|
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
1439
1338
|
startTimestamp?: number;
|
|
1440
1339
|
endTimestamp?: number;
|
|
1441
|
-
select: string;
|
|
1340
|
+
select: string[];
|
|
1442
1341
|
}, params?: RequestParams) => Promise<AxiosResponse<IndicatorsResponse, any>>;
|
|
1443
|
-
indicatorsControllerGetIndicatorsExport: (query: {
|
|
1444
|
-
marketId: number;
|
|
1445
|
-
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
1446
|
-
startTimestamp?: number;
|
|
1447
|
-
endTimestamp?: number;
|
|
1448
|
-
select?: string;
|
|
1449
|
-
}, params?: RequestParams) => Promise<AxiosResponse<File, any>>;
|
|
1450
1342
|
indicatorsControllerGetFundingRateHistory: (params?: RequestParams) => Promise<AxiosResponse<FundingRateHistoryResponse, any>>;
|
|
1451
1343
|
marketsControllerGetMarkets: (query?: {
|
|
1452
1344
|
skip?: number;
|
|
@@ -1557,7 +1449,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1557
1449
|
limitTick?: number;
|
|
1558
1450
|
tif: 0 | 1 | 2 | 3 | 4;
|
|
1559
1451
|
slippage?: number;
|
|
1560
|
-
marketAcc
|
|
1452
|
+
marketAcc?: string;
|
|
1561
1453
|
}, params?: RequestParams) => Promise<AxiosResponse<PlaceOrderSimulationResponseV2, any>>;
|
|
1562
1454
|
simulationsControllerGetCancelOrder: (query: {
|
|
1563
1455
|
marketAcc: string;
|
|
@@ -1726,7 +1618,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1726
1618
|
marketId?: number;
|
|
1727
1619
|
limit?: number;
|
|
1728
1620
|
skip?: number;
|
|
1729
|
-
tokenId?: number;
|
|
1730
1621
|
}, params?: RequestParams) => Promise<AxiosResponse<PnlTransactionsResponse, any>>;
|
|
1731
1622
|
pnlControllerGetLimitOrders: (query: {
|
|
1732
1623
|
userAddress: string;
|
|
@@ -1747,7 +1638,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1747
1638
|
isActive?: boolean;
|
|
1748
1639
|
orderType?: string;
|
|
1749
1640
|
orderBy?: string;
|
|
1750
|
-
tokenId?: number;
|
|
1751
1641
|
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersResponseV2, any>>;
|
|
1752
1642
|
pnlControllerGetFilledLimitOrders: (query?: {
|
|
1753
1643
|
userAddress?: string;
|
|
@@ -1784,16 +1674,9 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1784
1674
|
marketId?: number;
|
|
1785
1675
|
root?: string;
|
|
1786
1676
|
accountId?: number;
|
|
1787
|
-
maxEventIndex?: number;
|
|
1788
1677
|
skip?: number;
|
|
1789
1678
|
limit?: number;
|
|
1790
1679
|
}, params?: RequestParams) => Promise<AxiosResponse<PositionsInSyncResponse, any>>;
|
|
1791
|
-
pnlControllerGetMarketAccCashes: (query?: {
|
|
1792
|
-
marketAccs?: string;
|
|
1793
|
-
maxEventIndex?: number;
|
|
1794
|
-
skip?: number;
|
|
1795
|
-
limit?: number;
|
|
1796
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketAccCashesResponse, any>>;
|
|
1797
1680
|
};
|
|
1798
1681
|
settlement: {
|
|
1799
1682
|
settlementControllerGetSettlements: (query: {
|
|
@@ -1802,7 +1685,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1802
1685
|
userAddress: string;
|
|
1803
1686
|
accountId: number;
|
|
1804
1687
|
marketId?: number;
|
|
1805
|
-
tokenId?: number;
|
|
1806
1688
|
}, params?: RequestParams) => Promise<AxiosResponse<SettlementsResponse, any>>;
|
|
1807
1689
|
};
|
|
1808
1690
|
collaterals: {
|
|
@@ -1823,13 +1705,13 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1823
1705
|
boxId?: number;
|
|
1824
1706
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxBalancesResponse, any>>;
|
|
1825
1707
|
depositBoxControllerPrepareDepositFromBox: (data: PrepareDepositFromBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any>>;
|
|
1708
|
+
depositBoxControllerQuoteBscBridge: (data: QuoteBscBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any>>;
|
|
1826
1709
|
depositBoxControllerGetAvailableDepositBoxId: (query: {
|
|
1827
1710
|
root: string;
|
|
1828
1711
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIdResponse, any>>;
|
|
1829
1712
|
depositBoxControllerCreateDepositBoxIntent: (data: CreateDepositBoxIntentDto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any>>;
|
|
1830
1713
|
depositBoxControllerPatchDepositBoxIntentBridging: (id: string, data: PatchDepositBoxIntentBridgingDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1831
1714
|
depositBoxControllerPatchDepositBoxIntentCanceled: (id: string, data: PatchDepositBoxIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1832
|
-
depositBoxControllerPatchDepositBoxIntentFailed: (id: string, data: PatchDepositBoxIntentFailedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1833
1715
|
depositBoxControllerGetDepositBoxIntents: (query: {
|
|
1834
1716
|
root: string;
|
|
1835
1717
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentsResponse, any>>;
|
|
@@ -1845,9 +1727,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1845
1727
|
depositBoxControllerPrepareTransferToBox: (data: PrepareTransferToBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareTransferToBoxResponse, any>>;
|
|
1846
1728
|
depositBoxControllerPrepareDepositFromBoxV2: (data: PrepareDepositFromBoxV2Dto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any>>;
|
|
1847
1729
|
depositBoxControllerQuoteBscBridgeV2: (data: QuoteBscBridgeV2Dto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any>>;
|
|
1848
|
-
depositBoxControllerQuoteBridge: (data: QuoteBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBridgeResponse, any>>;
|
|
1849
1730
|
depositBoxControllerQuoteWithdrawBsc: (data: QuoteWithdrawBscDto, params?: RequestParams) => Promise<AxiosResponse<QuoteWithdrawBscResponse, any>>;
|
|
1850
|
-
depositBoxControllerQuoteWithdraw: (data: QuoteWithdrawDto, params?: RequestParams) => Promise<AxiosResponse<QuoteWithdrawResponse, any>>;
|
|
1851
1731
|
};
|
|
1852
1732
|
portfolio: {
|
|
1853
1733
|
portfolioControllerGetBalanceChart: (query: {
|
|
@@ -1876,11 +1756,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1876
1756
|
incentivesControllerGetMakerIncentiveStatistics: (query: {
|
|
1877
1757
|
maker: string;
|
|
1878
1758
|
marketId: number;
|
|
1879
|
-
}, params?: RequestParams) => Promise<AxiosResponse<
|
|
1880
|
-
incentivesControllerGetMakerIncentiveStatisticsV2: (query: {
|
|
1881
|
-
maker: string;
|
|
1882
|
-
marketId: number;
|
|
1883
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketMakerIncentiveStatisticsV2Response, any>>;
|
|
1759
|
+
}, params?: RequestParams) => Promise<AxiosResponse<MarketMakerIncentiveStatisticsResponse, any>>;
|
|
1884
1760
|
};
|
|
1885
1761
|
volume: {
|
|
1886
1762
|
volumeControllerGetVolume: (query: {
|
|
@@ -102,12 +102,6 @@ class Sdk extends HttpClient {
|
|
|
102
102
|
format: 'json',
|
|
103
103
|
...params,
|
|
104
104
|
}),
|
|
105
|
-
indicatorsControllerGetIndicatorsExport: (query, params = {}) => this.request({
|
|
106
|
-
path: `/v1/markets/indicators-export`,
|
|
107
|
-
method: 'GET',
|
|
108
|
-
query: query,
|
|
109
|
-
...params,
|
|
110
|
-
}),
|
|
111
105
|
indicatorsControllerGetFundingRateHistory: (params = {}) => this.request({
|
|
112
106
|
path: `/v1/markets/funding-rate-history`,
|
|
113
107
|
method: 'GET',
|
|
@@ -557,13 +551,6 @@ class Sdk extends HttpClient {
|
|
|
557
551
|
format: 'json',
|
|
558
552
|
...params,
|
|
559
553
|
}),
|
|
560
|
-
pnlControllerGetMarketAccCashes: (query, params = {}) => this.request({
|
|
561
|
-
path: `/v1/pnl/market-acc-cashes`,
|
|
562
|
-
method: 'GET',
|
|
563
|
-
query: query,
|
|
564
|
-
format: 'json',
|
|
565
|
-
...params,
|
|
566
|
-
}),
|
|
567
554
|
};
|
|
568
555
|
settlement = {
|
|
569
556
|
settlementControllerGetSettlements: (query, params = {}) => this.request({
|
|
@@ -612,6 +599,14 @@ class Sdk extends HttpClient {
|
|
|
612
599
|
format: 'json',
|
|
613
600
|
...params,
|
|
614
601
|
}),
|
|
602
|
+
depositBoxControllerQuoteBscBridge: (data, params = {}) => this.request({
|
|
603
|
+
path: `/v1/deposit-box/bridge/bsc/quote`,
|
|
604
|
+
method: 'POST',
|
|
605
|
+
body: data,
|
|
606
|
+
type: ContentType.Json,
|
|
607
|
+
format: 'json',
|
|
608
|
+
...params,
|
|
609
|
+
}),
|
|
615
610
|
depositBoxControllerGetAvailableDepositBoxId: (query, params = {}) => this.request({
|
|
616
611
|
path: `/v1/deposit-box/box-id`,
|
|
617
612
|
method: 'GET',
|
|
@@ -643,14 +638,6 @@ class Sdk extends HttpClient {
|
|
|
643
638
|
format: 'json',
|
|
644
639
|
...params,
|
|
645
640
|
}),
|
|
646
|
-
depositBoxControllerPatchDepositBoxIntentFailed: (id, data, params = {}) => this.request({
|
|
647
|
-
path: `/v1/deposit-box/intent/${id}/failed`,
|
|
648
|
-
method: 'PATCH',
|
|
649
|
-
body: data,
|
|
650
|
-
type: ContentType.Json,
|
|
651
|
-
format: 'json',
|
|
652
|
-
...params,
|
|
653
|
-
}),
|
|
654
641
|
depositBoxControllerGetDepositBoxIntents: (query, params = {}) => this.request({
|
|
655
642
|
path: `/v1/deposit-box/intents`,
|
|
656
643
|
method: 'GET',
|
|
@@ -732,14 +719,6 @@ class Sdk extends HttpClient {
|
|
|
732
719
|
format: 'json',
|
|
733
720
|
...params,
|
|
734
721
|
}),
|
|
735
|
-
depositBoxControllerQuoteBridge: (data, params = {}) => this.request({
|
|
736
|
-
path: `/v1/deposit-box/bridge/quote`,
|
|
737
|
-
method: 'POST',
|
|
738
|
-
body: data,
|
|
739
|
-
type: ContentType.Json,
|
|
740
|
-
format: 'json',
|
|
741
|
-
...params,
|
|
742
|
-
}),
|
|
743
722
|
depositBoxControllerQuoteWithdrawBsc: (data, params = {}) => this.request({
|
|
744
723
|
path: `/v1/deposit-box/withdraw/bsc/quote`,
|
|
745
724
|
method: 'POST',
|
|
@@ -748,14 +727,6 @@ class Sdk extends HttpClient {
|
|
|
748
727
|
format: 'json',
|
|
749
728
|
...params,
|
|
750
729
|
}),
|
|
751
|
-
depositBoxControllerQuoteWithdraw: (data, params = {}) => this.request({
|
|
752
|
-
path: `/v1/deposit-box/withdraw/quote`,
|
|
753
|
-
method: 'POST',
|
|
754
|
-
body: data,
|
|
755
|
-
type: ContentType.Json,
|
|
756
|
-
format: 'json',
|
|
757
|
-
...params,
|
|
758
|
-
}),
|
|
759
730
|
};
|
|
760
731
|
portfolio = {
|
|
761
732
|
portfolioControllerGetBalanceChart: (query, params = {}) => this.request({
|
|
@@ -810,13 +781,6 @@ class Sdk extends HttpClient {
|
|
|
810
781
|
format: 'json',
|
|
811
782
|
...params,
|
|
812
783
|
}),
|
|
813
|
-
incentivesControllerGetMakerIncentiveStatisticsV2: (query, params = {}) => this.request({
|
|
814
|
-
path: `/v2/incentives/maker-incentives/statistics`,
|
|
815
|
-
method: 'GET',
|
|
816
|
-
query: query,
|
|
817
|
-
format: 'json',
|
|
818
|
-
...params,
|
|
819
|
-
}),
|
|
820
784
|
};
|
|
821
785
|
volume = {
|
|
822
786
|
volumeControllerGetVolume: (query, params = {}) => this.request({
|