@pendle/sdk-boros 1.0.12-cross-deposit-2 → 1.0.12
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 +1 -11
- package/dist/addresses.js +1 -23
- package/dist/addresses.js.map +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +21 -257
- package/dist/backend/secrettune/BorosCoreSDK.js +7 -125
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +4 -10
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
- package/dist/backend/secrettune/module.d.ts +0 -6
- package/dist/backend/secrettune/module.js +0 -25
- package/dist/backend/secrettune/module.js.map +1 -1
- package/dist/contracts/contracts.factory.d.ts +3 -9
- package/dist/contracts/contracts.factory.js +4 -16
- package/dist/contracts/contracts.factory.js.map +1 -1
- package/dist/entities/index.d.ts +0 -2
- package/dist/entities/index.js +0 -2
- package/dist/entities/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/common.d.ts +0 -24
- package/dist/utils/signing/index.d.ts +1 -1
- package/dist/utils/signing/index.js +1 -2
- package/dist/utils/signing/index.js.map +1 -1
- package/dist/utils/signing/sensitive.d.ts +1 -2
- package/dist/utils/signing/sensitive.js +0 -29
- package/dist/utils/signing/sensitive.js.map +1 -1
- package/package.json +1 -1
- package/dist/backend/secrettune/PendleV2SDK.d.ts +0 -2281
- package/dist/backend/secrettune/PendleV2SDK.js +0 -970
- package/dist/backend/secrettune/PendleV2SDK.js.map +0 -1
- package/dist/common/chainId.d.ts +0 -12
- package/dist/common/chainId.js +0 -17
- package/dist/common/chainId.js.map +0 -1
- package/dist/contracts/abis/viemAbiDepositBoxFactory.d.ts +0 -75
- package/dist/contracts/abis/viemAbiDepositBoxFactory.js +0 -103
- package/dist/contracts/abis/viemAbiDepositBoxFactory.js.map +0 -1
- package/dist/contracts/abis/viemAbiRouter.d.ts +0 -1983
- package/dist/contracts/abis/viemAbiRouter.js +0 -2549
- package/dist/contracts/abis/viemAbiRouter.js.map +0 -1
- package/dist/contracts/deposit-box-factory.d.ts +0 -86
- package/dist/contracts/deposit-box-factory.js +0 -16
- package/dist/contracts/deposit-box-factory.js.map +0 -1
- package/dist/contracts/erc20.d.ts +0 -158
- package/dist/contracts/erc20.js +0 -52
- package/dist/contracts/erc20.js.map +0 -1
- package/dist/contracts/router.d.ts +0 -1987
- package/dist/contracts/router.js +0 -12
- package/dist/contracts/router.js.map +0 -1
- package/dist/entities/crossChainDeposit/AggregatorHelper.d.ts +0 -119
- package/dist/entities/crossChainDeposit/AggregatorHelper.js +0 -26
- package/dist/entities/crossChainDeposit/AggregatorHelper.js.map +0 -1
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.d.ts +0 -83
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.js +0 -116
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.js.map +0 -1
- package/dist/entities/crossChainDeposit/Depositor.d.ts +0 -31
- package/dist/entities/crossChainDeposit/Depositor.js +0 -64
- package/dist/entities/crossChainDeposit/Depositor.js.map +0 -1
- package/dist/entities/crossChainDeposit/Withdrawer.d.ts +0 -28
- package/dist/entities/crossChainDeposit/Withdrawer.js +0 -59
- package/dist/entities/crossChainDeposit/Withdrawer.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.d.ts +0 -53
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.js +0 -272
- package/dist/entities/crossChainDeposit/aggregators/Boros/BorosHelper.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Boros/index.d.ts +0 -2
- package/dist/entities/crossChainDeposit/aggregators/Boros/index.js +0 -19
- package/dist/entities/crossChainDeposit/aggregators/Boros/index.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Boros/types.d.ts +0 -10
- package/dist/entities/crossChainDeposit/aggregators/Boros/types.js +0 -3
- package/dist/entities/crossChainDeposit/aggregators/Boros/types.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.d.ts +0 -56
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js +0 -244
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/types.d.ts +0 -186
- package/dist/entities/crossChainDeposit/aggregators/Lifi/types.js +0 -28
- package/dist/entities/crossChainDeposit/aggregators/Lifi/types.js.map +0 -1
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.d.ts +0 -54
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.js +0 -250
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.js.map +0 -1
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.d.ts +0 -28
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js +0 -97
- package/dist/entities/crossChainDeposit/helpers/TokenHelper.js.map +0 -1
- package/dist/entities/crossChainDeposit/helpers/utils.d.ts +0 -4
- package/dist/entities/crossChainDeposit/helpers/utils.js +0 -25
- package/dist/entities/crossChainDeposit/helpers/utils.js.map +0 -1
- package/dist/entities/crossChainDeposit/index.d.ts +0 -3
- package/dist/entities/crossChainDeposit/index.js +0 -20
- package/dist/entities/crossChainDeposit/index.js.map +0 -1
- package/dist/entities/token/Token.d.ts +0 -32
- package/dist/entities/token/Token.js +0 -63
- package/dist/entities/token/Token.js.map +0 -1
- package/dist/entities/token/index.d.ts +0 -1
- package/dist/entities/token/index.js +0 -18
- package/dist/entities/token/index.js.map +0 -1
- package/dist/errors/PendleSdkError.d.ts +0 -7
- package/dist/errors/PendleSdkError.js +0 -15
- package/dist/errors/PendleSdkError.js.map +0 -1
package/dist/addresses.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address
|
|
1
|
+
import { Address } from 'viem';
|
|
2
2
|
export type Environment = 'production' | 'development';
|
|
3
3
|
export declare let env: Environment;
|
|
4
4
|
export declare function setEnv(environment: Environment): void;
|
|
@@ -10,11 +10,7 @@ export declare const getExplorerContractAddress: () => Address;
|
|
|
10
10
|
export declare const getReferralMerkleDistributorAddress: () => Address;
|
|
11
11
|
export declare const getMakerIncentiveMerkleDistributorAddress: () => Address;
|
|
12
12
|
export declare const getLpRewardsMerkleDistributorAddress: () => Address;
|
|
13
|
-
export declare const getDepositBoxFactoryAddress: () => Address;
|
|
14
|
-
export declare const getSwapExecutorAddress: () => Address;
|
|
15
|
-
export declare const getDepositBoxCodeHash: () => Hex;
|
|
16
13
|
export declare const getChainId: () => number;
|
|
17
|
-
export declare function toAddress(rawAddress: string): Address;
|
|
18
14
|
export declare const getAddressesForEnvironment: () => {
|
|
19
15
|
ROUTER_ADDRESS: `0x${string}`;
|
|
20
16
|
MARKET_HUB_ADDRESS: `0x${string}`;
|
|
@@ -41,13 +37,10 @@ export declare const PROD_ADDRESSES_CONFIG: {
|
|
|
41
37
|
readonly EXPLORER_ADDRESS: "0x40808080804111c374C8F1dc78b13FB57Df93197";
|
|
42
38
|
readonly MARKET_FACTORY_ADDRESS: "0x3080808080Ee6a795c1a6Ff388195Aa5F11ECeE0";
|
|
43
39
|
readonly EXPLORER_CONTRACT_ADDRESS: "0x40808080804111c374C8F1dc78b13FB57Df93197";
|
|
44
|
-
readonly DEPOSIT_BOX_FACTORY_ADDRESS: "0xDEB0FAC888C33E3E7394c095FE3c4E3de760E12c";
|
|
45
40
|
readonly CHAIN_ID: 42161;
|
|
46
41
|
readonly REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: "0xD2808080809a71248620a7ddc25b721d3DBe1058";
|
|
47
42
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xD0808080803c59dBF8825290bca8979786C2d65B";
|
|
48
43
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0xD180808080402FE41711Db560B8db5C41e21Df71";
|
|
49
|
-
readonly SWAP_EXECUTOR_ADDRESS: "0xd8d82d566F251E0280F3B5C91c58C8A7bB7A1780";
|
|
50
|
-
readonly DEPOSIT_BOX_CODE_HASH: "0x44fbd2278daf4176957107c6ec3a53e6e0f2fe9a6499154e63101d500acbe6af";
|
|
51
44
|
};
|
|
52
45
|
export declare const DEV_ADDRESSES_CONFIG: {
|
|
53
46
|
readonly ROUTER_ADDRESS: "0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3";
|
|
@@ -55,11 +48,8 @@ export declare const DEV_ADDRESSES_CONFIG: {
|
|
|
55
48
|
readonly EXPLORER_ADDRESS: "0x0CcB40176E133E5A011130D6BF6665005C29839E";
|
|
56
49
|
readonly MARKET_FACTORY_ADDRESS: "0xD3FC4B3fDA95597caAB5ea781337e0cD94d6850A";
|
|
57
50
|
readonly EXPLORER_CONTRACT_ADDRESS: "0x0CcB40176E133E5A011130D6BF6665005C29839E";
|
|
58
|
-
readonly DEPOSIT_BOX_FACTORY_ADDRESS: "0x9ad051bF278E66f1973deADa579f6586E2c9B752";
|
|
59
51
|
readonly CHAIN_ID: 42161;
|
|
60
52
|
readonly REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: "0x8Ba866001EbCf7b81a2B7CBdD3D4242e6e94262E";
|
|
61
53
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A";
|
|
62
54
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf";
|
|
63
|
-
readonly SWAP_EXECUTOR_ADDRESS: "0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98";
|
|
64
|
-
readonly DEPOSIT_BOX_CODE_HASH: "0x50c3a57a6207df4e2f809e270419e0adc0cb12692c2f05b29572e42fee411159";
|
|
65
55
|
};
|
package/dist/addresses.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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.
|
|
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.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
|
-
exports.toAddress = toAddress;
|
|
6
5
|
exports.env = 'production';
|
|
7
6
|
function setEnv(environment) {
|
|
8
7
|
exports.env = environment;
|
|
@@ -13,13 +12,10 @@ const PROD_ADDRESSES = {
|
|
|
13
12
|
EXPLORER_ADDRESS: '0x40808080804111c374C8F1dc78b13FB57Df93197',
|
|
14
13
|
MARKET_FACTORY_ADDRESS: '0x3080808080Ee6a795c1a6Ff388195Aa5F11ECeE0',
|
|
15
14
|
EXPLORER_CONTRACT_ADDRESS: '0x40808080804111c374C8F1dc78b13FB57Df93197',
|
|
16
|
-
DEPOSIT_BOX_FACTORY_ADDRESS: '0xDEB0FAC888C33E3E7394c095FE3c4E3de760E12c',
|
|
17
15
|
CHAIN_ID: 42161,
|
|
18
16
|
REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: '0xD2808080809a71248620a7ddc25b721d3DBe1058',
|
|
19
17
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xD0808080803c59dBF8825290bca8979786C2d65B',
|
|
20
18
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0xD180808080402FE41711Db560B8db5C41e21Df71',
|
|
21
|
-
SWAP_EXECUTOR_ADDRESS: '0xd8d82d566F251E0280F3B5C91c58C8A7bB7A1780',
|
|
22
|
-
DEPOSIT_BOX_CODE_HASH: '0x44fbd2278daf4176957107c6ec3a53e6e0f2fe9a6499154e63101d500acbe6af',
|
|
23
19
|
};
|
|
24
20
|
const DEV_ADDRESSES = {
|
|
25
21
|
ROUTER_ADDRESS: '0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3',
|
|
@@ -27,13 +23,10 @@ const DEV_ADDRESSES = {
|
|
|
27
23
|
EXPLORER_ADDRESS: '0x0CcB40176E133E5A011130D6BF6665005C29839E',
|
|
28
24
|
MARKET_FACTORY_ADDRESS: '0xD3FC4B3fDA95597caAB5ea781337e0cD94d6850A',
|
|
29
25
|
EXPLORER_CONTRACT_ADDRESS: '0x0CcB40176E133E5A011130D6BF6665005C29839E',
|
|
30
|
-
DEPOSIT_BOX_FACTORY_ADDRESS: '0x9ad051bF278E66f1973deADa579f6586E2c9B752',
|
|
31
26
|
CHAIN_ID: 42161,
|
|
32
27
|
REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: '0x8Ba866001EbCf7b81a2B7CBdD3D4242e6e94262E',
|
|
33
28
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A',
|
|
34
29
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf',
|
|
35
|
-
SWAP_EXECUTOR_ADDRESS: '0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98',
|
|
36
|
-
DEPOSIT_BOX_CODE_HASH: '0x50c3a57a6207df4e2f809e270419e0adc0cb12692c2f05b29572e42fee411159',
|
|
37
30
|
};
|
|
38
31
|
const getRouterAddress = () => {
|
|
39
32
|
return exports.env === 'production' ? PROD_ADDRESSES.ROUTER_ADDRESS : DEV_ADDRESSES.ROUTER_ADDRESS;
|
|
@@ -73,25 +66,10 @@ const getLpRewardsMerkleDistributorAddress = () => {
|
|
|
73
66
|
: DEV_ADDRESSES.LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS;
|
|
74
67
|
};
|
|
75
68
|
exports.getLpRewardsMerkleDistributorAddress = getLpRewardsMerkleDistributorAddress;
|
|
76
|
-
const getDepositBoxFactoryAddress = () => {
|
|
77
|
-
return exports.env === 'production' ? PROD_ADDRESSES.DEPOSIT_BOX_FACTORY_ADDRESS : DEV_ADDRESSES.DEPOSIT_BOX_FACTORY_ADDRESS;
|
|
78
|
-
};
|
|
79
|
-
exports.getDepositBoxFactoryAddress = getDepositBoxFactoryAddress;
|
|
80
|
-
const getSwapExecutorAddress = () => {
|
|
81
|
-
return exports.env === 'production' ? PROD_ADDRESSES.SWAP_EXECUTOR_ADDRESS : DEV_ADDRESSES.SWAP_EXECUTOR_ADDRESS;
|
|
82
|
-
};
|
|
83
|
-
exports.getSwapExecutorAddress = getSwapExecutorAddress;
|
|
84
|
-
const getDepositBoxCodeHash = () => {
|
|
85
|
-
return exports.env === 'production' ? PROD_ADDRESSES.DEPOSIT_BOX_CODE_HASH : DEV_ADDRESSES.DEPOSIT_BOX_CODE_HASH;
|
|
86
|
-
};
|
|
87
|
-
exports.getDepositBoxCodeHash = getDepositBoxCodeHash;
|
|
88
69
|
const getChainId = () => {
|
|
89
70
|
return exports.env === 'production' ? PROD_ADDRESSES.CHAIN_ID : DEV_ADDRESSES.CHAIN_ID;
|
|
90
71
|
};
|
|
91
72
|
exports.getChainId = getChainId;
|
|
92
|
-
function toAddress(rawAddress) {
|
|
93
|
-
return rawAddress.toLowerCase();
|
|
94
|
-
}
|
|
95
73
|
const getAddressesForEnvironment = () => ({
|
|
96
74
|
ROUTER_ADDRESS: (0, exports.getRouterAddress)(),
|
|
97
75
|
MARKET_HUB_ADDRESS: (0, exports.getMarketHubAddress)(),
|
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":"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"}
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
export interface IndicatorsMetadata {
|
|
2
|
-
requested: string[];
|
|
3
|
-
available: string[];
|
|
4
|
-
firstDataTimestamp?: object;
|
|
5
|
-
}
|
|
6
|
-
export interface FGIData {
|
|
7
|
-
v: number;
|
|
8
|
-
vc: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IndicatorDataPoint {
|
|
11
|
-
ts: number;
|
|
12
|
-
u?: number;
|
|
13
|
-
fp?: number;
|
|
14
|
-
fgi?: FGIData;
|
|
15
|
-
udma?: object;
|
|
16
|
-
}
|
|
17
|
-
export interface IndicatorsResponse {
|
|
18
|
-
metadata: IndicatorsMetadata;
|
|
19
|
-
results: IndicatorDataPoint[];
|
|
20
|
-
}
|
|
21
|
-
export interface FundingRateHistoryResponse {
|
|
22
|
-
startTimestamp: number;
|
|
23
|
-
data: Record<string, (number | null)[]>;
|
|
24
|
-
}
|
|
25
1
|
export interface MarketIMDataResponse {
|
|
26
2
|
name: string;
|
|
27
3
|
symbol: string;
|
|
@@ -152,20 +128,6 @@ export interface CandleResponse {
|
|
|
152
128
|
export interface ChartResponse {
|
|
153
129
|
results: CandleResponse[];
|
|
154
130
|
}
|
|
155
|
-
export interface CandleResponseV2 {
|
|
156
|
-
ts: number;
|
|
157
|
-
o: number;
|
|
158
|
-
h: number;
|
|
159
|
-
l: number;
|
|
160
|
-
c: number;
|
|
161
|
-
v: number;
|
|
162
|
-
u: number;
|
|
163
|
-
mr: number;
|
|
164
|
-
ofr: number;
|
|
165
|
-
}
|
|
166
|
-
export interface ChartResponseV2 {
|
|
167
|
-
results: CandleResponseV2[];
|
|
168
|
-
}
|
|
169
131
|
export interface HistoricalDataResponse {
|
|
170
132
|
ts: number;
|
|
171
133
|
u: number;
|
|
@@ -735,7 +697,6 @@ export interface DepositBoxAssetResponse {
|
|
|
735
697
|
metadata: AssetMetadataResponse;
|
|
736
698
|
isCollateral: boolean;
|
|
737
699
|
chainId: number;
|
|
738
|
-
dstTokenId?: number;
|
|
739
700
|
}
|
|
740
701
|
export interface DepositBoxAssetsResponse {
|
|
741
702
|
assets: DepositBoxAssetResponse[];
|
|
@@ -754,33 +715,17 @@ export interface AssetBalanceResponse {
|
|
|
754
715
|
export interface GetDepositBoxBalancesResponse {
|
|
755
716
|
assets: AssetBalanceResponse[];
|
|
756
717
|
}
|
|
757
|
-
export interface PrepareDepositFromBoxDto {
|
|
758
|
-
root: string;
|
|
759
|
-
accountId: number;
|
|
760
|
-
tokenId: number;
|
|
761
|
-
marketId: number;
|
|
762
|
-
tokenSpent: string;
|
|
763
|
-
amountSpent: string;
|
|
764
|
-
depositAmount: string;
|
|
765
|
-
minDepositAmount: string;
|
|
766
|
-
extRouter?: string;
|
|
767
|
-
extCalldata?: string;
|
|
768
|
-
}
|
|
769
718
|
export interface PrepareDepositFromBoxMessage {
|
|
770
719
|
root: string;
|
|
771
720
|
boxId: number;
|
|
772
721
|
tokenSpent: string;
|
|
773
|
-
|
|
722
|
+
amountSpent: string;
|
|
774
723
|
accountId: number;
|
|
775
724
|
tokenId: number;
|
|
776
725
|
marketId: number;
|
|
777
726
|
minDepositAmount: string;
|
|
778
727
|
payTreasuryAmount: string;
|
|
779
|
-
|
|
780
|
-
swapApprove: string;
|
|
781
|
-
swapCalldata: string;
|
|
782
|
-
expiry: string;
|
|
783
|
-
salt: string;
|
|
728
|
+
nonce: string;
|
|
784
729
|
}
|
|
785
730
|
export interface PrepareDepositFromBoxMessageResponse {
|
|
786
731
|
message: PrepareDepositFromBoxMessage;
|
|
@@ -823,167 +768,10 @@ export interface QuoteBscBridgeResponse {
|
|
|
823
768
|
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
824
769
|
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
825
770
|
}
|
|
826
|
-
export interface
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
root: string;
|
|
831
|
-
boxId: number;
|
|
832
|
-
tokenSpent: string;
|
|
833
|
-
maxAmountSpent: string;
|
|
834
|
-
accountId: number;
|
|
835
|
-
tokenId: number;
|
|
836
|
-
marketId: number;
|
|
837
|
-
minDepositAmount: string;
|
|
838
|
-
payTreasuryAmount: string;
|
|
839
|
-
swapApprove: string;
|
|
840
|
-
swapExtRouter: string;
|
|
841
|
-
swapCalldata: string;
|
|
842
|
-
expiry: string;
|
|
843
|
-
salt: string;
|
|
844
|
-
}
|
|
845
|
-
export interface DepositBoxIntentRouteDataDto {
|
|
846
|
-
tool: string;
|
|
847
|
-
tags: ('cheapest' | 'fastest')[];
|
|
848
|
-
estimatedDuration: number;
|
|
849
|
-
gasFeeUsd: number;
|
|
850
|
-
logoUrl: string;
|
|
851
|
-
}
|
|
852
|
-
export interface CreateDepositBoxIntentDto {
|
|
853
|
-
account: string;
|
|
854
|
-
signature: string;
|
|
855
|
-
agent: string;
|
|
856
|
-
timestamp: number;
|
|
857
|
-
fromChainId: number;
|
|
858
|
-
fromToken: string;
|
|
859
|
-
fromAmount: string;
|
|
860
|
-
depositAmount: string;
|
|
861
|
-
minAmountSpent: string;
|
|
862
|
-
message: DepositFromBoxMessageDto;
|
|
863
|
-
depositFromBoxSignature: string;
|
|
864
|
-
extraData?: DepositBoxIntentRouteDataDto;
|
|
865
|
-
}
|
|
866
|
-
export interface CreateDepositBoxIntentResponse {
|
|
867
|
-
id: string;
|
|
868
|
-
}
|
|
869
|
-
export interface DepositBoxIntentExtraDataResponse {
|
|
870
|
-
tool: string;
|
|
871
|
-
tags: ('cheapest' | 'fastest')[];
|
|
872
|
-
estimatedDuration: number;
|
|
873
|
-
gasFeeUsd: number;
|
|
874
|
-
logoUrl: string;
|
|
875
|
-
}
|
|
876
|
-
export interface GetDepositBoxIntentResponse {
|
|
877
|
-
id: string;
|
|
878
|
-
root: string;
|
|
879
|
-
accountId: number;
|
|
880
|
-
marketId: number;
|
|
881
|
-
boxId: number;
|
|
882
|
-
fromChainId: number;
|
|
883
|
-
fromToken: string;
|
|
884
|
-
fromAmount: string;
|
|
885
|
-
tokenId: number;
|
|
886
|
-
depositAmount: string;
|
|
887
|
-
minDepositAmount: string;
|
|
888
|
-
payTreasuryAmount: string;
|
|
889
|
-
expiry: string;
|
|
890
|
-
status: 'pending' | 'bridging' | 'arrived' | 'done' | 'failed' | 'expired';
|
|
891
|
-
extraData?: DepositBoxIntentExtraDataResponse;
|
|
892
|
-
}
|
|
893
|
-
export interface GetDepositBoxIntentsResponse {
|
|
894
|
-
intents: GetDepositBoxIntentResponse[];
|
|
895
|
-
}
|
|
896
|
-
export interface CreateWithdrawIntentDto {
|
|
897
|
-
root: string;
|
|
898
|
-
tokenId: number;
|
|
899
|
-
amount: string;
|
|
900
|
-
dstToken: string;
|
|
901
|
-
dstChainId: number;
|
|
902
|
-
agent: string;
|
|
903
|
-
signature: string;
|
|
904
|
-
timestamp: number;
|
|
905
|
-
}
|
|
906
|
-
export interface PatchWithdrawIntentBridgedDto {
|
|
907
|
-
bridgeTxHash: string;
|
|
908
|
-
root: string;
|
|
909
|
-
agent: string;
|
|
910
|
-
signature: string;
|
|
911
|
-
}
|
|
912
|
-
export interface PatchWithdrawIntentResponse {
|
|
913
|
-
message: string;
|
|
914
|
-
}
|
|
915
|
-
export interface PatchWithdrawIntentDoneDto {
|
|
916
|
-
root: string;
|
|
917
|
-
agent: string;
|
|
918
|
-
signature: string;
|
|
919
|
-
}
|
|
920
|
-
export interface PatchWithdrawIntentCanceledDto {
|
|
921
|
-
root: string;
|
|
922
|
-
agent: string;
|
|
923
|
-
signature: string;
|
|
924
|
-
}
|
|
925
|
-
export interface GetWithdrawIntentResponse {
|
|
926
|
-
id: string;
|
|
927
|
-
root: string;
|
|
928
|
-
tokenId: number;
|
|
929
|
-
amount: string;
|
|
930
|
-
dstToken: string;
|
|
931
|
-
dstChainId: number;
|
|
932
|
-
status: 'pending' | 'requested' | 'finalized' | 'bridging' | 'done' | 'canceled';
|
|
933
|
-
timestamp: number;
|
|
934
|
-
}
|
|
935
|
-
export interface GetWithdrawIntentsResponse {
|
|
936
|
-
intents: GetWithdrawIntentResponse[];
|
|
937
|
-
}
|
|
938
|
-
export interface PrepareTransferToBoxDto {
|
|
939
|
-
chainId: number;
|
|
940
|
-
token: string;
|
|
941
|
-
amount: string;
|
|
942
|
-
root: string;
|
|
943
|
-
boxId: number;
|
|
944
|
-
}
|
|
945
|
-
export interface PrepareTransferToBoxResponse {
|
|
946
|
-
from: string;
|
|
947
|
-
to: string;
|
|
948
|
-
value: string;
|
|
949
|
-
calldata: string;
|
|
950
|
-
}
|
|
951
|
-
export interface PrepareDepositFromBoxV2Dto {
|
|
952
|
-
root: string;
|
|
953
|
-
boxId: number;
|
|
954
|
-
accountId: number;
|
|
955
|
-
tokenId: number;
|
|
956
|
-
marketId: number;
|
|
957
|
-
tokenSpent: string;
|
|
958
|
-
amountSpent: string;
|
|
959
|
-
depositAmount: string;
|
|
960
|
-
minDepositAmount: string;
|
|
961
|
-
estimatedDuration: number;
|
|
962
|
-
extRouter?: string;
|
|
963
|
-
extCalldata?: string;
|
|
964
|
-
}
|
|
965
|
-
export interface QuoteBscBridgeV2Dto {
|
|
966
|
-
fromToken: string;
|
|
967
|
-
toToken: string;
|
|
968
|
-
amount: string;
|
|
969
|
-
fromAddress: string;
|
|
970
|
-
boxId: number;
|
|
971
|
-
}
|
|
972
|
-
export interface QuoteWithdrawBscDto {
|
|
973
|
-
fromAddress: string;
|
|
974
|
-
tokenId: number;
|
|
975
|
-
amount: string;
|
|
976
|
-
toAddress: string;
|
|
977
|
-
}
|
|
978
|
-
export interface QuoteWithdrawBscResponse {
|
|
979
|
-
tx: QuoteBscTransactionDto;
|
|
980
|
-
fromToken: string;
|
|
981
|
-
fromAmount: string;
|
|
982
|
-
toToken: string;
|
|
983
|
-
toAmount: string;
|
|
984
|
-
minToAmount: string;
|
|
985
|
-
feeCosts: QuoteBscBridgeFeeResponse[];
|
|
986
|
-
gasCosts: QuoteBscBridgeFeeResponse[];
|
|
771
|
+
export interface BscBridgeStatusResponse {
|
|
772
|
+
txHash: string;
|
|
773
|
+
status: 'PENDING' | 'DONE' | 'NOT_FOUND' | 'FAILED' | 'INVALID';
|
|
774
|
+
bridgeTxHash?: string;
|
|
987
775
|
}
|
|
988
776
|
export interface BalanceResponse {
|
|
989
777
|
b: string;
|
|
@@ -1163,8 +951,8 @@ export interface MarketMakingScoreResponse {
|
|
|
1163
951
|
makerValue: number;
|
|
1164
952
|
netBalanceBefore: number;
|
|
1165
953
|
netBalanceAfter: number;
|
|
1166
|
-
adjustedNetBalanceAfter: number;
|
|
1167
954
|
score: number;
|
|
955
|
+
normalizedScore: number;
|
|
1168
956
|
}
|
|
1169
957
|
export interface OnChainEventItem {
|
|
1170
958
|
eventName: string;
|
|
@@ -1209,7 +997,6 @@ export interface OtcTermDto {
|
|
|
1209
997
|
maturity: string;
|
|
1210
998
|
collateral: string;
|
|
1211
999
|
side: 0 | 1;
|
|
1212
|
-
notionalSize: number;
|
|
1213
1000
|
impliedRate: number;
|
|
1214
1001
|
goodUntilDate: string;
|
|
1215
1002
|
}
|
|
@@ -1232,7 +1019,6 @@ export interface OtcTermResponseDto {
|
|
|
1232
1019
|
maturity: string;
|
|
1233
1020
|
collateral: string;
|
|
1234
1021
|
side: 0 | 1;
|
|
1235
|
-
notionalSize: number;
|
|
1236
1022
|
impliedRate: number;
|
|
1237
1023
|
goodUntilDate: string;
|
|
1238
1024
|
submittedAt: string;
|
|
@@ -1282,14 +1068,6 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1282
1068
|
}
|
|
1283
1069
|
export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
1284
1070
|
markets: {
|
|
1285
|
-
indicatorsControllerGetIndicators: (query: {
|
|
1286
|
-
marketId: number;
|
|
1287
|
-
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
1288
|
-
startTimestamp?: number;
|
|
1289
|
-
endTimestamp?: number;
|
|
1290
|
-
select: string[];
|
|
1291
|
-
}, params?: RequestParams) => Promise<AxiosResponse<IndicatorsResponse, any>>;
|
|
1292
|
-
indicatorsControllerGetFundingRateHistory: (params?: RequestParams) => Promise<AxiosResponse<FundingRateHistoryResponse, any>>;
|
|
1293
1071
|
marketsControllerGetMarkets: (query?: {
|
|
1294
1072
|
skip?: number;
|
|
1295
1073
|
limit?: number;
|
|
@@ -1306,12 +1084,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1306
1084
|
startTimestamp?: number;
|
|
1307
1085
|
endTimestamp?: number;
|
|
1308
1086
|
}, params?: RequestParams) => Promise<AxiosResponse<ChartResponse, any>>;
|
|
1309
|
-
marketsControllerGetChartDataV2: (query: {
|
|
1310
|
-
marketId: number;
|
|
1311
|
-
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
1312
|
-
startTimestamp?: number;
|
|
1313
|
-
endTimestamp?: number;
|
|
1314
|
-
}, params?: RequestParams) => Promise<AxiosResponse<ChartResponseV2, any>>;
|
|
1315
1087
|
marketsControllerGetHistoricalData: (query: {
|
|
1316
1088
|
marketId: number;
|
|
1317
1089
|
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
@@ -1646,28 +1418,20 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1646
1418
|
depositBoxControllerGetDepositBoxBalances: (query: {
|
|
1647
1419
|
root: string;
|
|
1648
1420
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxBalancesResponse, any>>;
|
|
1649
|
-
depositBoxControllerPrepareDepositFromBox: (
|
|
1650
|
-
depositBoxControllerQuoteBscBridge: (data: QuoteBscBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any>>;
|
|
1651
|
-
depositBoxControllerGetAvailableDepositBoxId: (query: {
|
|
1652
|
-
root: string;
|
|
1653
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIdResponse, any>>;
|
|
1654
|
-
depositBoxControllerCreateDepositBoxIntent: (data: CreateDepositBoxIntentDto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any>>;
|
|
1655
|
-
depositBoxControllerGetDepositBoxIntents: (query: {
|
|
1656
|
-
root: string;
|
|
1657
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentsResponse, any>>;
|
|
1658
|
-
depositBoxControllerCreateWithdrawIntent: (data: CreateWithdrawIntentDto, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
1659
|
-
depositBoxControllerPatchWithdrawIntentBridged: (id: string, data: PatchWithdrawIntentBridgedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1660
|
-
depositBoxControllerPatchWithdrawIntentDone: (id: string, data: PatchWithdrawIntentDoneDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1661
|
-
depositBoxControllerPatchWithdrawIntentCanceled: (id: string, data: PatchWithdrawIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any>>;
|
|
1662
|
-
depositBoxControllerGetWithdrawIntents: (query: {
|
|
1421
|
+
depositBoxControllerPrepareDepositFromBox: (query: {
|
|
1663
1422
|
root: string;
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1423
|
+
accountId: number;
|
|
1424
|
+
tokenId: number;
|
|
1425
|
+
marketId: number;
|
|
1426
|
+
tokenSpent: string;
|
|
1427
|
+
amountSpent: string;
|
|
1428
|
+
depositAmount: string;
|
|
1429
|
+
minDepositAmount: string;
|
|
1430
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any>>;
|
|
1431
|
+
depositBoxControllerQuoteBscBridge: (data: QuoteBscBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any>>;
|
|
1432
|
+
depositBoxControllerGetBscBridgeStatus: (query: {
|
|
1433
|
+
txHash: string;
|
|
1434
|
+
}, params?: RequestParams) => Promise<AxiosResponse<BscBridgeStatusResponse, any>>;
|
|
1671
1435
|
};
|
|
1672
1436
|
portfolio: {
|
|
1673
1437
|
portfolioControllerGetBalanceChart: (query: {
|
|
@@ -1739,7 +1503,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1739
1503
|
}, params?: RequestParams) => Promise<AxiosResponse<UserSearchResponse, any>>;
|
|
1740
1504
|
};
|
|
1741
1505
|
marketMaker: {
|
|
1742
|
-
|
|
1506
|
+
marketMakingScoreControllerGetScore: (query: {
|
|
1743
1507
|
user: string;
|
|
1744
1508
|
accountId?: number;
|
|
1745
1509
|
tokenId?: number;
|
|
@@ -22,7 +22,7 @@ class HttpClient {
|
|
|
22
22
|
constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
|
|
23
23
|
this.instance = axios_1.default.create({
|
|
24
24
|
...axiosConfig,
|
|
25
|
-
baseURL: axiosConfig.baseURL || '
|
|
25
|
+
baseURL: axiosConfig.baseURL || 'https://staging-api.boros.finance/core',
|
|
26
26
|
});
|
|
27
27
|
this.secure = secure;
|
|
28
28
|
this.format = format;
|
|
@@ -95,19 +95,6 @@ class HttpClient {
|
|
|
95
95
|
exports.HttpClient = HttpClient;
|
|
96
96
|
class Sdk extends HttpClient {
|
|
97
97
|
markets = {
|
|
98
|
-
indicatorsControllerGetIndicators: (query, params = {}) => this.request({
|
|
99
|
-
path: `/v1/markets/indicators`,
|
|
100
|
-
method: 'GET',
|
|
101
|
-
query: query,
|
|
102
|
-
format: 'json',
|
|
103
|
-
...params,
|
|
104
|
-
}),
|
|
105
|
-
indicatorsControllerGetFundingRateHistory: (params = {}) => this.request({
|
|
106
|
-
path: `/v1/markets/funding-rate-history`,
|
|
107
|
-
method: 'GET',
|
|
108
|
-
format: 'json',
|
|
109
|
-
...params,
|
|
110
|
-
}),
|
|
111
98
|
marketsControllerGetMarkets: (query, params = {}) => this.request({
|
|
112
99
|
path: `/v1/markets`,
|
|
113
100
|
method: 'GET',
|
|
@@ -129,13 +116,6 @@ class Sdk extends HttpClient {
|
|
|
129
116
|
format: 'json',
|
|
130
117
|
...params,
|
|
131
118
|
}),
|
|
132
|
-
marketsControllerGetChartDataV2: (query, params = {}) => this.request({
|
|
133
|
-
path: `/v2/markets/chart`,
|
|
134
|
-
method: 'GET',
|
|
135
|
-
query: query,
|
|
136
|
-
format: 'json',
|
|
137
|
-
...params,
|
|
138
|
-
}),
|
|
139
119
|
marketsControllerGetHistoricalData: (query, params = {}) => this.request({
|
|
140
120
|
path: `/v1/markets/historical-data`,
|
|
141
121
|
method: 'GET',
|
|
@@ -584,126 +564,28 @@ class Sdk extends HttpClient {
|
|
|
584
564
|
format: 'json',
|
|
585
565
|
...params,
|
|
586
566
|
}),
|
|
587
|
-
depositBoxControllerPrepareDepositFromBox: (
|
|
567
|
+
depositBoxControllerPrepareDepositFromBox: (query, params = {}) => this.request({
|
|
588
568
|
path: `/v1/deposit-box/prepare/deposit`,
|
|
589
|
-
method: 'POST',
|
|
590
|
-
body: data,
|
|
591
|
-
type: ContentType.Json,
|
|
592
|
-
format: 'json',
|
|
593
|
-
...params,
|
|
594
|
-
}),
|
|
595
|
-
depositBoxControllerQuoteBscBridge: (data, params = {}) => this.request({
|
|
596
|
-
path: `/v1/deposit-box/bridge/bsc/quote`,
|
|
597
|
-
method: 'POST',
|
|
598
|
-
body: data,
|
|
599
|
-
type: ContentType.Json,
|
|
600
|
-
format: 'json',
|
|
601
|
-
...params,
|
|
602
|
-
}),
|
|
603
|
-
depositBoxControllerGetAvailableDepositBoxId: (query, params = {}) => this.request({
|
|
604
|
-
path: `/v1/deposit-box/box-id`,
|
|
605
569
|
method: 'GET',
|
|
606
570
|
query: query,
|
|
607
571
|
format: 'json',
|
|
608
572
|
...params,
|
|
609
573
|
}),
|
|
610
|
-
|
|
611
|
-
path: `/v1/deposit-box/
|
|
574
|
+
depositBoxControllerQuoteBscBridge: (data, params = {}) => this.request({
|
|
575
|
+
path: `/v1/deposit-box/bridge/bsc/quote`,
|
|
612
576
|
method: 'POST',
|
|
613
577
|
body: data,
|
|
614
578
|
type: ContentType.Json,
|
|
615
579
|
format: 'json',
|
|
616
580
|
...params,
|
|
617
581
|
}),
|
|
618
|
-
|
|
619
|
-
path: `/v1/deposit-box/
|
|
582
|
+
depositBoxControllerGetBscBridgeStatus: (query, params = {}) => this.request({
|
|
583
|
+
path: `/v1/deposit-box/bridge/bsc/status`,
|
|
620
584
|
method: 'GET',
|
|
621
585
|
query: query,
|
|
622
586
|
format: 'json',
|
|
623
587
|
...params,
|
|
624
588
|
}),
|
|
625
|
-
depositBoxControllerCreateWithdrawIntent: (data, params = {}) => this.request({
|
|
626
|
-
path: `/v1/deposit-box/withdraw/intent`,
|
|
627
|
-
method: 'POST',
|
|
628
|
-
body: data,
|
|
629
|
-
type: ContentType.Json,
|
|
630
|
-
...params,
|
|
631
|
-
}),
|
|
632
|
-
depositBoxControllerPatchWithdrawIntentBridged: (id, data, params = {}) => this.request({
|
|
633
|
-
path: `/v1/deposit-box/withdraw/intent/${id}/bridged`,
|
|
634
|
-
method: 'PATCH',
|
|
635
|
-
body: data,
|
|
636
|
-
type: ContentType.Json,
|
|
637
|
-
format: 'json',
|
|
638
|
-
...params,
|
|
639
|
-
}),
|
|
640
|
-
depositBoxControllerPatchWithdrawIntentDone: (id, data, params = {}) => this.request({
|
|
641
|
-
path: `/v1/deposit-box/withdraw/intent/${id}/done`,
|
|
642
|
-
method: 'PATCH',
|
|
643
|
-
body: data,
|
|
644
|
-
type: ContentType.Json,
|
|
645
|
-
format: 'json',
|
|
646
|
-
...params,
|
|
647
|
-
}),
|
|
648
|
-
depositBoxControllerPatchWithdrawIntentCanceled: (id, data, params = {}) => this.request({
|
|
649
|
-
path: `/v1/deposit-box/withdraw/intent/${id}/canceled`,
|
|
650
|
-
method: 'PATCH',
|
|
651
|
-
body: data,
|
|
652
|
-
type: ContentType.Json,
|
|
653
|
-
format: 'json',
|
|
654
|
-
...params,
|
|
655
|
-
}),
|
|
656
|
-
depositBoxControllerGetWithdrawIntents: (query, params = {}) => this.request({
|
|
657
|
-
path: `/v1/deposit-box/withdraw/intents`,
|
|
658
|
-
method: 'GET',
|
|
659
|
-
query: query,
|
|
660
|
-
format: 'json',
|
|
661
|
-
...params,
|
|
662
|
-
}),
|
|
663
|
-
depositBoxControllerGetWithdrawIntent: (id, params = {}) => this.request({
|
|
664
|
-
path: `/v1/deposit-box/withdraw/intent/${id}`,
|
|
665
|
-
method: 'GET',
|
|
666
|
-
format: 'json',
|
|
667
|
-
...params,
|
|
668
|
-
}),
|
|
669
|
-
depositBoxControllerGetDepositBoxIntent: (id, params = {}) => this.request({
|
|
670
|
-
path: `/v1/deposit-box/intent/${id}`,
|
|
671
|
-
method: 'GET',
|
|
672
|
-
format: 'json',
|
|
673
|
-
...params,
|
|
674
|
-
}),
|
|
675
|
-
depositBoxControllerPrepareTransferToBox: (data, params = {}) => this.request({
|
|
676
|
-
path: `/v1/deposit-box/prepare/transfer-to-box`,
|
|
677
|
-
method: 'POST',
|
|
678
|
-
body: data,
|
|
679
|
-
type: ContentType.Json,
|
|
680
|
-
format: 'json',
|
|
681
|
-
...params,
|
|
682
|
-
}),
|
|
683
|
-
depositBoxControllerPrepareDepositFromBoxV2: (data, params = {}) => this.request({
|
|
684
|
-
path: `/v2/deposit-box/prepare/deposit`,
|
|
685
|
-
method: 'POST',
|
|
686
|
-
body: data,
|
|
687
|
-
type: ContentType.Json,
|
|
688
|
-
format: 'json',
|
|
689
|
-
...params,
|
|
690
|
-
}),
|
|
691
|
-
depositBoxControllerQuoteBscBridgeV2: (data, params = {}) => this.request({
|
|
692
|
-
path: `/v2/deposit-box/bridge/bsc/quote`,
|
|
693
|
-
method: 'POST',
|
|
694
|
-
body: data,
|
|
695
|
-
type: ContentType.Json,
|
|
696
|
-
format: 'json',
|
|
697
|
-
...params,
|
|
698
|
-
}),
|
|
699
|
-
depositBoxControllerQuoteWithdrawBsc: (data, params = {}) => this.request({
|
|
700
|
-
path: `/v1/deposit-box/withdraw/bsc/quote`,
|
|
701
|
-
method: 'POST',
|
|
702
|
-
body: data,
|
|
703
|
-
type: ContentType.Json,
|
|
704
|
-
format: 'json',
|
|
705
|
-
...params,
|
|
706
|
-
}),
|
|
707
589
|
};
|
|
708
590
|
portfolio = {
|
|
709
591
|
portfolioControllerGetBalanceChart: (query, params = {}) => this.request({
|
|
@@ -848,7 +730,7 @@ class Sdk extends HttpClient {
|
|
|
848
730
|
}),
|
|
849
731
|
};
|
|
850
732
|
marketMaker = {
|
|
851
|
-
|
|
733
|
+
marketMakingScoreControllerGetScore: (query, params = {}) => this.request({
|
|
852
734
|
path: `/v1/market-maker/market-making-score`,
|
|
853
735
|
method: 'GET',
|
|
854
736
|
query: query,
|