@pendle/sdk-boros 1.0.9-cross-deposit-4 → 1.0.9-cross-deposit-6
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 +4 -0
- package/dist/addresses.js +11 -1
- package/dist/addresses.js.map +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +207 -6
- package/dist/backend/secrettune/BorosCoreSDK.js +84 -3
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +29 -10
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js +4 -4
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
- package/dist/backend/secrettune/PendleV2SDK.d.ts +2238 -0
- package/dist/backend/secrettune/PendleV2SDK.js +945 -0
- package/dist/backend/secrettune/PendleV2SDK.js.map +1 -0
- package/dist/backend/secrettune/module.d.ts +6 -0
- package/dist/backend/secrettune/module.js +26 -0
- package/dist/backend/secrettune/module.js.map +1 -1
- package/dist/entities/crossChainDeposit/AggregatorHelper.d.ts +16 -7
- package/dist/entities/crossChainDeposit/AggregatorHelper.js +10 -1
- package/dist/entities/crossChainDeposit/AggregatorHelper.js.map +1 -1
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.d.ts +12 -2
- package/dist/entities/crossChainDeposit/AggregatorHelperErrors.js.map +1 -1
- package/dist/entities/crossChainDeposit/CrossChainDeposit.d.ts +8 -2
- package/dist/entities/crossChainDeposit/CrossChainDeposit.js +20 -5
- package/dist/entities/crossChainDeposit/CrossChainDeposit.js.map +1 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.d.ts +8 -4
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js +15 -4
- package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js.map +1 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/types.d.ts +23 -1
- package/dist/entities/crossChainDeposit/aggregators/Lifi/types.js.map +1 -1
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.d.ts +27 -0
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.js +144 -0
- package/dist/entities/crossChainDeposit/aggregators/Pendle/index.js.map +1 -0
- package/dist/entities/token/Token.d.ts +4 -0
- package/dist/entities/token/Token.js +12 -0
- package/dist/entities/token/Token.js.map +1 -1
- package/dist/types/common.d.ts +12 -0
- package/dist/utils/signing/index.d.ts +1 -1
- package/dist/utils/signing/index.js +3 -2
- package/dist/utils/signing/index.js.map +1 -1
- package/dist/utils/signing/sensitive.d.ts +2 -1
- package/dist/utils/signing/sensitive.js +25 -0
- package/dist/utils/signing/sensitive.js.map +1 -1
- package/package.json +1 -1
package/dist/addresses.d.ts
CHANGED
|
@@ -10,7 +10,9 @@ 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 getSwapExecutorAddress: () => Address;
|
|
13
14
|
export declare const getChainId: () => number;
|
|
15
|
+
export declare function toAddress(rawAddress: string): Address;
|
|
14
16
|
export declare const getAddressesForEnvironment: () => {
|
|
15
17
|
ROUTER_ADDRESS: `0x${string}`;
|
|
16
18
|
MARKET_HUB_ADDRESS: `0x${string}`;
|
|
@@ -41,6 +43,7 @@ export declare const PROD_ADDRESSES_CONFIG: {
|
|
|
41
43
|
readonly REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: "0xD2808080809a71248620a7ddc25b721d3DBe1058";
|
|
42
44
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xD0808080803c59dBF8825290bca8979786C2d65B";
|
|
43
45
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0xD180808080402FE41711Db560B8db5C41e21Df71";
|
|
46
|
+
readonly SWAP_EXECUTOR_ADDRESS: "0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98";
|
|
44
47
|
};
|
|
45
48
|
export declare const DEV_ADDRESSES_CONFIG: {
|
|
46
49
|
readonly ROUTER_ADDRESS: "0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3";
|
|
@@ -52,4 +55,5 @@ export declare const DEV_ADDRESSES_CONFIG: {
|
|
|
52
55
|
readonly REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: "0x8Ba866001EbCf7b81a2B7CBdD3D4242e6e94262E";
|
|
53
56
|
readonly MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: "0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A";
|
|
54
57
|
readonly LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: "0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf";
|
|
58
|
+
readonly SWAP_EXECUTOR_ADDRESS: "0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98";
|
|
55
59
|
};
|
package/dist/addresses.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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.getLpRewardsMerkleDistributorAddress = exports.getMakerIncentiveMerkleDistributorAddress = exports.getReferralMerkleDistributorAddress = exports.getExplorerContractAddress = exports.getMarketFactoryAddress = exports.getExplorerAddress = exports.getMarketHubAddress = exports.getRouterAddress = exports.env = void 0;
|
|
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.getSwapExecutorAddress = 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;
|
|
5
6
|
exports.env = 'production';
|
|
6
7
|
function setEnv(environment) {
|
|
7
8
|
exports.env = environment;
|
|
@@ -16,6 +17,7 @@ const PROD_ADDRESSES = {
|
|
|
16
17
|
REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: '0xD2808080809a71248620a7ddc25b721d3DBe1058',
|
|
17
18
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xD0808080803c59dBF8825290bca8979786C2d65B',
|
|
18
19
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0xD180808080402FE41711Db560B8db5C41e21Df71',
|
|
20
|
+
SWAP_EXECUTOR_ADDRESS: '0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98',
|
|
19
21
|
};
|
|
20
22
|
const DEV_ADDRESSES = {
|
|
21
23
|
ROUTER_ADDRESS: '0x17386DF702Cc9ec208669aB3ca5b49abE5a26dF3',
|
|
@@ -27,6 +29,7 @@ const DEV_ADDRESSES = {
|
|
|
27
29
|
REFERRAL_MERKLE_DISTRIBUTOR_ADDRESS: '0x8Ba866001EbCf7b81a2B7CBdD3D4242e6e94262E',
|
|
28
30
|
MAKER_INCENTIVE_MERKLE_DISTRIBUTOR_ADDRESS: '0xAe94ccf0Cc9E6A783bc5ec3515f745bFaF68960A',
|
|
29
31
|
LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS: '0x5fa1be763d5eb2cb4df90f557468421bd7f27fbf',
|
|
32
|
+
SWAP_EXECUTOR_ADDRESS: '0x2Ef46CA0ae57f424d5aAD1d3972B3bd6b7dabB98',
|
|
30
33
|
};
|
|
31
34
|
const getRouterAddress = () => {
|
|
32
35
|
return exports.env === 'production' ? PROD_ADDRESSES.ROUTER_ADDRESS : DEV_ADDRESSES.ROUTER_ADDRESS;
|
|
@@ -66,10 +69,17 @@ const getLpRewardsMerkleDistributorAddress = () => {
|
|
|
66
69
|
: DEV_ADDRESSES.LP_REWARDS_MERKLE_DISTRIBUTOR_ADDRESS;
|
|
67
70
|
};
|
|
68
71
|
exports.getLpRewardsMerkleDistributorAddress = getLpRewardsMerkleDistributorAddress;
|
|
72
|
+
const getSwapExecutorAddress = () => {
|
|
73
|
+
return exports.env === 'production' ? PROD_ADDRESSES.SWAP_EXECUTOR_ADDRESS : DEV_ADDRESSES.SWAP_EXECUTOR_ADDRESS;
|
|
74
|
+
};
|
|
75
|
+
exports.getSwapExecutorAddress = getSwapExecutorAddress;
|
|
69
76
|
const getChainId = () => {
|
|
70
77
|
return exports.env === 'production' ? PROD_ADDRESSES.CHAIN_ID : DEV_ADDRESSES.CHAIN_ID;
|
|
71
78
|
};
|
|
72
79
|
exports.getChainId = getChainId;
|
|
80
|
+
function toAddress(rawAddress) {
|
|
81
|
+
return rawAddress.toLowerCase();
|
|
82
|
+
}
|
|
73
83
|
const getAddressesForEnvironment = () => ({
|
|
74
84
|
ROUTER_ADDRESS: (0, exports.getRouterAddress)(),
|
|
75
85
|
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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"}
|
|
@@ -44,6 +44,7 @@ export interface MarketExtendedConfigResponse {
|
|
|
44
44
|
}
|
|
45
45
|
export interface MarketMetadataResponse {
|
|
46
46
|
name: string;
|
|
47
|
+
assetSymbol: string;
|
|
47
48
|
platformName: string;
|
|
48
49
|
maxLeverage: number;
|
|
49
50
|
defaultLeverage: number;
|
|
@@ -55,7 +56,9 @@ export interface MarketMetadataResponse {
|
|
|
55
56
|
ammAddress?: string;
|
|
56
57
|
ammId?: number;
|
|
57
58
|
isPositiveAMM?: boolean;
|
|
58
|
-
disabledChartIndicators?: ('realtimeUnderlyingApr' | 'oracleUnderlyingApr' | 'underlyingApr7dma' | 'quaterlyFuturePremium' | 'notionalVolume')[];
|
|
59
|
+
disabledChartIndicators?: ('realtimeUnderlyingApr' | 'oracleUnderlyingApr' | 'underlyingApr7dma' | 'quaterlyFuturePremium' | 'notionalVolume' | 'underlyingApr30dma')[];
|
|
60
|
+
accentColor: string;
|
|
61
|
+
marketName?: string;
|
|
59
62
|
}
|
|
60
63
|
export interface MarketDataResponse {
|
|
61
64
|
volume24h: number;
|
|
@@ -63,10 +66,22 @@ export interface MarketDataResponse {
|
|
|
63
66
|
markApr: number;
|
|
64
67
|
lastTradedApr: number;
|
|
65
68
|
midApr: number;
|
|
69
|
+
bestBid?: number;
|
|
70
|
+
bestAsk?: number;
|
|
71
|
+
ammImpliedApr?: number;
|
|
66
72
|
floatingApr: number;
|
|
67
73
|
longYieldApr?: number;
|
|
68
74
|
nextSettlementTime?: number;
|
|
69
75
|
timeToMaturity?: number;
|
|
76
|
+
assetMarkPrice: number;
|
|
77
|
+
b7dmafr?: number;
|
|
78
|
+
b30dmafr?: number;
|
|
79
|
+
}
|
|
80
|
+
export interface MarketPlatformResponse {
|
|
81
|
+
name: string;
|
|
82
|
+
platformId: string;
|
|
83
|
+
accentColor: string;
|
|
84
|
+
icon: string;
|
|
70
85
|
}
|
|
71
86
|
export interface MarketResponse {
|
|
72
87
|
marketId: number;
|
|
@@ -77,6 +92,7 @@ export interface MarketResponse {
|
|
|
77
92
|
extConfig: MarketExtendedConfigResponse;
|
|
78
93
|
metadata?: MarketMetadataResponse;
|
|
79
94
|
data?: MarketDataResponse;
|
|
95
|
+
platform?: MarketPlatformResponse;
|
|
80
96
|
state: 'Paused' | 'Capped' | 'Normal' | 'Halted';
|
|
81
97
|
}
|
|
82
98
|
export interface MarketsResponse {
|
|
@@ -106,11 +122,27 @@ export interface CandleResponse {
|
|
|
106
122
|
mr: number;
|
|
107
123
|
ofr: number;
|
|
108
124
|
b7dmafr: number;
|
|
125
|
+
b30dmafr: number;
|
|
109
126
|
fp: number;
|
|
110
127
|
}
|
|
111
128
|
export interface ChartResponse {
|
|
112
129
|
results: CandleResponse[];
|
|
113
130
|
}
|
|
131
|
+
export interface HistoricalDataResponse {
|
|
132
|
+
ts: number;
|
|
133
|
+
u: number;
|
|
134
|
+
fp: number;
|
|
135
|
+
}
|
|
136
|
+
export interface HistoricalDataChartResponse {
|
|
137
|
+
results: HistoricalDataResponse[];
|
|
138
|
+
}
|
|
139
|
+
export interface HistoricalUnderlyingAPRResponse {
|
|
140
|
+
ts: number;
|
|
141
|
+
u: number;
|
|
142
|
+
}
|
|
143
|
+
export interface HistoricalUnderlyingAPRChartResponse {
|
|
144
|
+
results: HistoricalUnderlyingAPRResponse[];
|
|
145
|
+
}
|
|
114
146
|
export interface SideTickResponse {
|
|
115
147
|
ia: number[];
|
|
116
148
|
sz: string[];
|
|
@@ -298,6 +330,8 @@ export interface AssetMetadataResponse {
|
|
|
298
330
|
originProSymbol: string;
|
|
299
331
|
tokenIcon: string;
|
|
300
332
|
zoneIcon: string;
|
|
333
|
+
isDenominationUnit: boolean;
|
|
334
|
+
isDevTest: boolean;
|
|
301
335
|
}
|
|
302
336
|
export interface AssetResponse {
|
|
303
337
|
address: string;
|
|
@@ -307,10 +341,20 @@ export interface AssetResponse {
|
|
|
307
341
|
decimals: number;
|
|
308
342
|
usdPrice: string;
|
|
309
343
|
metadata: AssetMetadataResponse;
|
|
344
|
+
isCollateral: boolean;
|
|
310
345
|
}
|
|
311
346
|
export interface AssetsResponse {
|
|
312
347
|
assets: AssetResponse[];
|
|
313
348
|
}
|
|
349
|
+
export interface PriceData {
|
|
350
|
+
symbol: string;
|
|
351
|
+
price: string;
|
|
352
|
+
timestamp: number;
|
|
353
|
+
}
|
|
354
|
+
export interface HistoricalPriceResponse {
|
|
355
|
+
symbol: string;
|
|
356
|
+
data: PriceData[];
|
|
357
|
+
}
|
|
314
358
|
export interface GetCalldataResponse {
|
|
315
359
|
data: string;
|
|
316
360
|
from: string;
|
|
@@ -466,6 +510,8 @@ export interface LimitOrderResponse {
|
|
|
466
510
|
status: 0 | 1 | 2 | 3 | 4;
|
|
467
511
|
orderType: 0 | 1 | 2 | 3;
|
|
468
512
|
blockTimestamp: number;
|
|
513
|
+
placedEventIndex: number;
|
|
514
|
+
placedTimestamp: number;
|
|
469
515
|
marketAcc: string;
|
|
470
516
|
metadata?: LimitOrderMetadataResponse;
|
|
471
517
|
}
|
|
@@ -492,6 +538,9 @@ export interface LimitOrderResponseV2 {
|
|
|
492
538
|
status: 1 | 2 | 3 | 4 | 0 | 5 | 6 | 7 | 8;
|
|
493
539
|
orderType: 0 | 1 | 2 | 3;
|
|
494
540
|
blockTimestamp: number;
|
|
541
|
+
eventIndex: number;
|
|
542
|
+
placedEventIndex: number;
|
|
543
|
+
placedTimestamp: number;
|
|
495
544
|
marketAcc: string;
|
|
496
545
|
metadata?: LimitOrderMetadataResponseV2;
|
|
497
546
|
}
|
|
@@ -536,6 +585,21 @@ export interface SharePositionPnlResponse {
|
|
|
536
585
|
export interface MarketAccCumulativePnlResponse {
|
|
537
586
|
cumulativeTradePnl: string;
|
|
538
587
|
}
|
|
588
|
+
export interface MaturedPositionResponse {
|
|
589
|
+
marketId: number;
|
|
590
|
+
root: string;
|
|
591
|
+
accountId: number;
|
|
592
|
+
marketAcc: string;
|
|
593
|
+
pnl: string;
|
|
594
|
+
maxCapital: string;
|
|
595
|
+
pnlPercentage: number;
|
|
596
|
+
avgSettlementPaid?: number;
|
|
597
|
+
avgSettlementReceived?: number;
|
|
598
|
+
}
|
|
599
|
+
export interface MaturedPositionsResponse {
|
|
600
|
+
results: MaturedPositionResponse[];
|
|
601
|
+
total: number;
|
|
602
|
+
}
|
|
539
603
|
export interface SettlementResponse {
|
|
540
604
|
id: string;
|
|
541
605
|
timestamp: number;
|
|
@@ -611,6 +675,47 @@ export interface CollateralSummaryResponse {
|
|
|
611
675
|
export interface AllCollateralSummaryResponse {
|
|
612
676
|
collaterals: CollateralSummaryResponse[];
|
|
613
677
|
}
|
|
678
|
+
export interface AssetBalanceResponse {
|
|
679
|
+
balance: string;
|
|
680
|
+
address: string;
|
|
681
|
+
decimals: number;
|
|
682
|
+
symbol: string;
|
|
683
|
+
icon: string;
|
|
684
|
+
tokenId: number;
|
|
685
|
+
}
|
|
686
|
+
export interface GetDepositBoxBalancesResponse {
|
|
687
|
+
assets: AssetBalanceResponse[];
|
|
688
|
+
}
|
|
689
|
+
export interface PrepareDepositFromBoxMessage {
|
|
690
|
+
root: string;
|
|
691
|
+
boxId: number;
|
|
692
|
+
accountId: number;
|
|
693
|
+
tokenId: number;
|
|
694
|
+
marketId: number;
|
|
695
|
+
depositAmount: string;
|
|
696
|
+
payTreasuryAmount: string;
|
|
697
|
+
nonce: string;
|
|
698
|
+
}
|
|
699
|
+
export interface PrepareDepositFromBoxMessageResponse {
|
|
700
|
+
message: PrepareDepositFromBoxMessage;
|
|
701
|
+
feeBreakdown: FeeBreakdownResponse;
|
|
702
|
+
}
|
|
703
|
+
export interface PrepareSwapFromBoxMessage {
|
|
704
|
+
root: string;
|
|
705
|
+
boxId: number;
|
|
706
|
+
tokenIn: string;
|
|
707
|
+
amountIn: string;
|
|
708
|
+
tokenOut: string;
|
|
709
|
+
minOut: string;
|
|
710
|
+
swapExecutor: string;
|
|
711
|
+
swapExtRouter: string;
|
|
712
|
+
swapCalldata: string;
|
|
713
|
+
nonce: string;
|
|
714
|
+
}
|
|
715
|
+
export interface PrepareSwapFromBoxMessageResponse {
|
|
716
|
+
message: PrepareSwapFromBoxMessage;
|
|
717
|
+
feeBreakdown: FeeBreakdownResponse;
|
|
718
|
+
}
|
|
614
719
|
export interface BalanceResponse {
|
|
615
720
|
b: string;
|
|
616
721
|
u: number;
|
|
@@ -673,6 +778,7 @@ export interface GetUserReferralInfoResponse {
|
|
|
673
778
|
referrerCode?: string;
|
|
674
779
|
referralJoinDate?: string;
|
|
675
780
|
totalTradeInUsd: number;
|
|
781
|
+
feeShare: number;
|
|
676
782
|
}
|
|
677
783
|
export interface CheckReferralExistBodyDto {
|
|
678
784
|
code: string;
|
|
@@ -778,6 +884,31 @@ export interface UserSearchResponse {
|
|
|
778
884
|
tradingVolume: string;
|
|
779
885
|
roi?: number;
|
|
780
886
|
}
|
|
887
|
+
export interface OnChainEventItem {
|
|
888
|
+
eventName: string;
|
|
889
|
+
id: string;
|
|
890
|
+
sourceAddress: string;
|
|
891
|
+
blockNumber: number;
|
|
892
|
+
logIndex: number;
|
|
893
|
+
txHash: string;
|
|
894
|
+
blockHash: string;
|
|
895
|
+
blockTimestamp: number;
|
|
896
|
+
eventIndex: number;
|
|
897
|
+
isFinalized?: boolean;
|
|
898
|
+
data?: object;
|
|
899
|
+
}
|
|
900
|
+
export interface OnChainEventsResponse {
|
|
901
|
+
events: OnChainEventItem[];
|
|
902
|
+
total: number;
|
|
903
|
+
}
|
|
904
|
+
export interface FearGreedIndexDataPoint {
|
|
905
|
+
timestamp: number;
|
|
906
|
+
value: number;
|
|
907
|
+
valueClassification: string;
|
|
908
|
+
}
|
|
909
|
+
export interface FearGreedIndexResponse {
|
|
910
|
+
results: FearGreedIndexDataPoint[];
|
|
911
|
+
}
|
|
781
912
|
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
782
913
|
export type QueryParamsType = Record<string | number, any>;
|
|
783
914
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
@@ -832,6 +963,25 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
832
963
|
startTimestamp?: number;
|
|
833
964
|
endTimestamp?: number;
|
|
834
965
|
}, params?: RequestParams) => Promise<AxiosResponse<ChartResponse, any>>;
|
|
966
|
+
marketsControllerGetHistoricalData: (query: {
|
|
967
|
+
marketId: number;
|
|
968
|
+
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
969
|
+
startTimestamp?: number;
|
|
970
|
+
endTimestamp?: number;
|
|
971
|
+
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalDataChartResponse, any>>;
|
|
972
|
+
marketsControllerGetHistoricalUnderlyingApr: (query: {
|
|
973
|
+
marketId: number;
|
|
974
|
+
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
975
|
+
startTimestamp?: number;
|
|
976
|
+
endTimestamp?: number;
|
|
977
|
+
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalUnderlyingAPRChartResponse, any>>;
|
|
978
|
+
marketsControllerGetHistoricalUnderlyingAprv2: (query: {
|
|
979
|
+
assetSymbol: string;
|
|
980
|
+
exchange: string;
|
|
981
|
+
timeFrame: number;
|
|
982
|
+
startTimestamp?: number;
|
|
983
|
+
endTimestamp?: number;
|
|
984
|
+
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalUnderlyingAPRChartResponse, any>>;
|
|
835
985
|
marketsControllerGetMarketInfo: (marketId: number, params?: RequestParams) => Promise<AxiosResponse<MarketResponse, any>>;
|
|
836
986
|
};
|
|
837
987
|
orderBooks: {
|
|
@@ -924,7 +1074,14 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
924
1074
|
}, params?: RequestParams) => Promise<AxiosResponse<RemoveLiquiditySingleCashSimulationResponse, any>>;
|
|
925
1075
|
};
|
|
926
1076
|
assets: {
|
|
1077
|
+
assetsControllerGetAllCollateralAssets: (params?: RequestParams) => Promise<AxiosResponse<AssetsResponse, any>>;
|
|
927
1078
|
assetsControllerGetAllAssets: (params?: RequestParams) => Promise<AxiosResponse<AssetsResponse, any>>;
|
|
1079
|
+
assetsControllerGetHistoricalPrice: (query: {
|
|
1080
|
+
symbol: string;
|
|
1081
|
+
startTimestamp?: number;
|
|
1082
|
+
endTimestamp?: number;
|
|
1083
|
+
timeFrame?: number;
|
|
1084
|
+
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalPriceResponse, any>>;
|
|
928
1085
|
};
|
|
929
1086
|
calldata: {
|
|
930
1087
|
calldataControllerGetDepositCalldataV2: (query: {
|
|
@@ -963,6 +1120,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
963
1120
|
slippage?: number;
|
|
964
1121
|
marketAcc: string;
|
|
965
1122
|
payTreasuryAmount?: string;
|
|
1123
|
+
autoExitMarket?: boolean;
|
|
966
1124
|
}, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponseV2, any>>;
|
|
967
1125
|
calldataControllerGetBulkPlaceOrderCalldataV7: (data: BulkPlaceOrderQueryDtoV5, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponseV2, any>>;
|
|
968
1126
|
calldataControllerGetBulkPlaceOrderCalldataV6: (data: BulkPlaceOrderQueryDtoV4, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponseV2, any>>;
|
|
@@ -983,6 +1141,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
983
1141
|
slippage?: number;
|
|
984
1142
|
marketAcc: string;
|
|
985
1143
|
payTreasuryAmount?: string;
|
|
1144
|
+
autoExitMarket?: boolean;
|
|
986
1145
|
}, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponseV2, any>>;
|
|
987
1146
|
calldataControllerGetAddLiquiditySingleCashToAmmCalldataV3: (query: {
|
|
988
1147
|
payTreasuryAmount?: string;
|
|
@@ -1065,7 +1224,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1065
1224
|
skip?: number;
|
|
1066
1225
|
limit?: number;
|
|
1067
1226
|
isActive?: boolean;
|
|
1068
|
-
orderType?:
|
|
1227
|
+
orderType?: string;
|
|
1069
1228
|
orderBy?: string;
|
|
1070
1229
|
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersResponseV2, any>>;
|
|
1071
1230
|
pnlControllerGetFilledLimitOrders: (query?: {
|
|
@@ -1093,6 +1252,12 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1093
1252
|
marketAcc: string;
|
|
1094
1253
|
marketId: number;
|
|
1095
1254
|
}, params?: RequestParams) => Promise<AxiosResponse<MarketAccCumulativePnlResponse, any>>;
|
|
1255
|
+
pnlControllerGetMaturedPositions: (query: {
|
|
1256
|
+
root: string;
|
|
1257
|
+
tokenId?: number;
|
|
1258
|
+
skip?: number;
|
|
1259
|
+
limit?: number;
|
|
1260
|
+
}, params?: RequestParams) => Promise<AxiosResponse<MaturedPositionsResponse, any>>;
|
|
1096
1261
|
};
|
|
1097
1262
|
settlement: {
|
|
1098
1263
|
settlementControllerGetSettlements: (query: {
|
|
@@ -1114,6 +1279,28 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1114
1279
|
tokenId: number;
|
|
1115
1280
|
}, params?: RequestParams) => Promise<AxiosResponse<CollateralSummaryResponse, any>>;
|
|
1116
1281
|
};
|
|
1282
|
+
depositBox: {
|
|
1283
|
+
depositBoxControllerGetDepositBoxBalances: (query: {
|
|
1284
|
+
root: string;
|
|
1285
|
+
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxBalancesResponse, any>>;
|
|
1286
|
+
depositBoxControllerPrepareDepositFromBox: (query: {
|
|
1287
|
+
root: string;
|
|
1288
|
+
accountId: number;
|
|
1289
|
+
tokenId: number;
|
|
1290
|
+
marketId: number;
|
|
1291
|
+
amount: string;
|
|
1292
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any>>;
|
|
1293
|
+
depositBoxControllerPrepareSwapFromBox: (query: {
|
|
1294
|
+
root: string;
|
|
1295
|
+
tokenIn: string;
|
|
1296
|
+
amountIn: string;
|
|
1297
|
+
tokenOut: string;
|
|
1298
|
+
minOut: string;
|
|
1299
|
+
swapExecutor: string;
|
|
1300
|
+
swapExtRouter: string;
|
|
1301
|
+
swapCalldata: string;
|
|
1302
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PrepareSwapFromBoxMessageResponse, any>>;
|
|
1303
|
+
};
|
|
1117
1304
|
portfolio: {
|
|
1118
1305
|
portfolioControllerGetBalanceChart: (query: {
|
|
1119
1306
|
userAddress: string;
|
|
@@ -1144,10 +1331,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1144
1331
|
}, params?: RequestParams) => Promise<AxiosResponse<MarketMakerIncentiveStatisticsResponse, any>>;
|
|
1145
1332
|
};
|
|
1146
1333
|
volume: {
|
|
1147
|
-
volumeControllerGetVolume: (
|
|
1148
|
-
user: string;
|
|
1149
|
-
toTimestamp?: number;
|
|
1150
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetVolumeResponse, any>>;
|
|
1334
|
+
volumeControllerGetVolume: (params?: RequestParams) => Promise<AxiosResponse<GetVolumeResponse, any>>;
|
|
1151
1335
|
};
|
|
1152
1336
|
referral: {
|
|
1153
1337
|
referralControllerGetUserReferralInfo: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<GetUserReferralInfoResponse, any>>;
|
|
@@ -1184,4 +1368,21 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1184
1368
|
tokenId: number;
|
|
1185
1369
|
}, params?: RequestParams) => Promise<AxiosResponse<UserSearchResponse, any>>;
|
|
1186
1370
|
};
|
|
1371
|
+
onChainEvents: {
|
|
1372
|
+
onChainEventsControllerGetEvents: (query?: {
|
|
1373
|
+
skip?: number;
|
|
1374
|
+
limit?: number;
|
|
1375
|
+
eventName?: string;
|
|
1376
|
+
sourceAddress?: string;
|
|
1377
|
+
fromBlockNumber?: number;
|
|
1378
|
+
toBlockNumber?: number;
|
|
1379
|
+
}, params?: RequestParams) => Promise<AxiosResponse<OnChainEventsResponse, any>>;
|
|
1380
|
+
};
|
|
1381
|
+
charts: {
|
|
1382
|
+
chartsControllerGetChartData: (query: {
|
|
1383
|
+
timeFrame: "5m" | "1h" | "1d" | "1w";
|
|
1384
|
+
startTimestamp?: number;
|
|
1385
|
+
endTimestamp?: number;
|
|
1386
|
+
}, params?: RequestParams) => Promise<AxiosResponse<FearGreedIndexResponse, any>>;
|
|
1387
|
+
};
|
|
1187
1388
|
}
|
|
@@ -116,6 +116,27 @@ class Sdk extends HttpClient {
|
|
|
116
116
|
format: 'json',
|
|
117
117
|
...params,
|
|
118
118
|
}),
|
|
119
|
+
marketsControllerGetHistoricalData: (query, params = {}) => this.request({
|
|
120
|
+
path: `/v1/markets/historical-data`,
|
|
121
|
+
method: 'GET',
|
|
122
|
+
query: query,
|
|
123
|
+
format: 'json',
|
|
124
|
+
...params,
|
|
125
|
+
}),
|
|
126
|
+
marketsControllerGetHistoricalUnderlyingApr: (query, params = {}) => this.request({
|
|
127
|
+
path: `/v1/markets/historical-underlying-apr`,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
query: query,
|
|
130
|
+
format: 'json',
|
|
131
|
+
...params,
|
|
132
|
+
}),
|
|
133
|
+
marketsControllerGetHistoricalUnderlyingAprv2: (query, params = {}) => this.request({
|
|
134
|
+
path: `/v2/markets/historical-underlying-apr`,
|
|
135
|
+
method: 'GET',
|
|
136
|
+
query: query,
|
|
137
|
+
format: 'json',
|
|
138
|
+
...params,
|
|
139
|
+
}),
|
|
119
140
|
marketsControllerGetMarketInfo: (marketId, params = {}) => this.request({
|
|
120
141
|
path: `/v1/markets/${marketId}`,
|
|
121
142
|
method: 'GET',
|
|
@@ -242,12 +263,25 @@ class Sdk extends HttpClient {
|
|
|
242
263
|
}),
|
|
243
264
|
};
|
|
244
265
|
assets = {
|
|
245
|
-
|
|
266
|
+
assetsControllerGetAllCollateralAssets: (params = {}) => this.request({
|
|
246
267
|
path: `/v1/assets/all`,
|
|
247
268
|
method: 'GET',
|
|
248
269
|
format: 'json',
|
|
249
270
|
...params,
|
|
250
271
|
}),
|
|
272
|
+
assetsControllerGetAllAssets: (params = {}) => this.request({
|
|
273
|
+
path: `/v2/assets/all`,
|
|
274
|
+
method: 'GET',
|
|
275
|
+
format: 'json',
|
|
276
|
+
...params,
|
|
277
|
+
}),
|
|
278
|
+
assetsControllerGetHistoricalPrice: (query, params = {}) => this.request({
|
|
279
|
+
path: `/v1/assets/historical-price`,
|
|
280
|
+
method: 'GET',
|
|
281
|
+
query: query,
|
|
282
|
+
format: 'json',
|
|
283
|
+
...params,
|
|
284
|
+
}),
|
|
251
285
|
};
|
|
252
286
|
calldata = {
|
|
253
287
|
calldataControllerGetDepositCalldataV2: (query, params = {}) => this.request({
|
|
@@ -469,6 +503,13 @@ class Sdk extends HttpClient {
|
|
|
469
503
|
format: 'json',
|
|
470
504
|
...params,
|
|
471
505
|
}),
|
|
506
|
+
pnlControllerGetMaturedPositions: (query, params = {}) => this.request({
|
|
507
|
+
path: `/v1/pnl/matured-positions`,
|
|
508
|
+
method: 'GET',
|
|
509
|
+
query: query,
|
|
510
|
+
format: 'json',
|
|
511
|
+
...params,
|
|
512
|
+
}),
|
|
472
513
|
};
|
|
473
514
|
settlement = {
|
|
474
515
|
settlementControllerGetSettlements: (query, params = {}) => this.request({
|
|
@@ -495,6 +536,29 @@ class Sdk extends HttpClient {
|
|
|
495
536
|
...params,
|
|
496
537
|
}),
|
|
497
538
|
};
|
|
539
|
+
depositBox = {
|
|
540
|
+
depositBoxControllerGetDepositBoxBalances: (query, params = {}) => this.request({
|
|
541
|
+
path: `/v1/deposit-box/balances`,
|
|
542
|
+
method: 'GET',
|
|
543
|
+
query: query,
|
|
544
|
+
format: 'json',
|
|
545
|
+
...params,
|
|
546
|
+
}),
|
|
547
|
+
depositBoxControllerPrepareDepositFromBox: (query, params = {}) => this.request({
|
|
548
|
+
path: `/v1/deposit-box/prepare/deposit`,
|
|
549
|
+
method: 'GET',
|
|
550
|
+
query: query,
|
|
551
|
+
format: 'json',
|
|
552
|
+
...params,
|
|
553
|
+
}),
|
|
554
|
+
depositBoxControllerPrepareSwapFromBox: (query, params = {}) => this.request({
|
|
555
|
+
path: `/v1/deposit-box/prepare/swap`,
|
|
556
|
+
method: 'GET',
|
|
557
|
+
query: query,
|
|
558
|
+
format: 'json',
|
|
559
|
+
...params,
|
|
560
|
+
}),
|
|
561
|
+
};
|
|
498
562
|
portfolio = {
|
|
499
563
|
portfolioControllerGetBalanceChart: (query, params = {}) => this.request({
|
|
500
564
|
path: `/v1/portfolios/balance-chart`,
|
|
@@ -550,10 +614,9 @@ class Sdk extends HttpClient {
|
|
|
550
614
|
}),
|
|
551
615
|
};
|
|
552
616
|
volume = {
|
|
553
|
-
volumeControllerGetVolume: (
|
|
617
|
+
volumeControllerGetVolume: (params = {}) => this.request({
|
|
554
618
|
path: `/v1/volume`,
|
|
555
619
|
method: 'GET',
|
|
556
|
-
query: query,
|
|
557
620
|
format: 'json',
|
|
558
621
|
...params,
|
|
559
622
|
}),
|
|
@@ -637,6 +700,24 @@ class Sdk extends HttpClient {
|
|
|
637
700
|
...params,
|
|
638
701
|
}),
|
|
639
702
|
};
|
|
703
|
+
onChainEvents = {
|
|
704
|
+
onChainEventsControllerGetEvents: (query, params = {}) => this.request({
|
|
705
|
+
path: `/v1/on-chain-events`,
|
|
706
|
+
method: 'GET',
|
|
707
|
+
query: query,
|
|
708
|
+
format: 'json',
|
|
709
|
+
...params,
|
|
710
|
+
}),
|
|
711
|
+
};
|
|
712
|
+
charts = {
|
|
713
|
+
chartsControllerGetChartData: (query, params = {}) => this.request({
|
|
714
|
+
path: `/v1/charts/fear-greed-index`,
|
|
715
|
+
method: 'GET',
|
|
716
|
+
query: query,
|
|
717
|
+
format: 'json',
|
|
718
|
+
...params,
|
|
719
|
+
}),
|
|
720
|
+
};
|
|
640
721
|
}
|
|
641
722
|
exports.Sdk = Sdk;
|
|
642
723
|
//# sourceMappingURL=BorosCoreSDK.js.map
|