@nadohq/indexer-client 0.15.0 → 0.17.0
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/CandlestickPeriod-1DtcEiOb.d.ts +15 -0
- package/dist/CandlestickPeriod-1DtcEiOb.d.ts.map +1 -0
- package/dist/CandlestickPeriod-D3_IoSev.d.cts +15 -0
- package/dist/CandlestickPeriod-D3_IoSev.d.cts.map +1 -0
- package/dist/IndexerBaseClient-3KfzA2ph.cjs +639 -0
- package/dist/IndexerBaseClient-3KfzA2ph.cjs.map +1 -0
- package/dist/IndexerBaseClient.cjs +3 -788
- package/dist/IndexerBaseClient.d.cts +223 -229
- package/dist/IndexerBaseClient.d.cts.map +1 -0
- package/dist/IndexerBaseClient.d.ts +223 -229
- package/dist/IndexerBaseClient.d.ts.map +1 -0
- package/dist/IndexerBaseClient.js +601 -783
- package/dist/IndexerBaseClient.js.map +1 -1
- package/dist/IndexerClient.cjs +275 -381
- package/dist/IndexerClient.cjs.map +1 -1
- package/dist/IndexerClient.d.cts +32 -43
- package/dist/IndexerClient.d.cts.map +1 -0
- package/dist/IndexerClient.d.ts +32 -43
- package/dist/IndexerClient.d.ts.map +1 -0
- package/dist/IndexerClient.js +273 -362
- package/dist/IndexerClient.js.map +1 -1
- package/dist/IndexerEventType-B-uXsf-a.d.cts +5 -0
- package/dist/IndexerEventType-B-uXsf-a.d.cts.map +1 -0
- package/dist/IndexerEventType-DCLkSlgR.d.ts +5 -0
- package/dist/IndexerEventType-DCLkSlgR.d.ts.map +1 -0
- package/dist/IndexerLeaderboardType-Ck12QVWR.d.cts +13 -0
- package/dist/IndexerLeaderboardType-Ck12QVWR.d.cts.map +1 -0
- package/dist/IndexerLeaderboardType-DAKw2tfI.d.ts +13 -0
- package/dist/IndexerLeaderboardType-DAKw2tfI.d.ts.map +1 -0
- package/dist/NadoTx-CWCklgY4.d.ts +50 -0
- package/dist/NadoTx-CWCklgY4.d.ts.map +1 -0
- package/dist/NadoTx-MYNIlXyq.d.cts +50 -0
- package/dist/NadoTx-MYNIlXyq.d.cts.map +1 -0
- package/dist/clientTypes-BpxOUu1q.d.ts +709 -0
- package/dist/clientTypes-BpxOUu1q.d.ts.map +1 -0
- package/dist/clientTypes-BsJ2yIC4.d.cts +709 -0
- package/dist/clientTypes-BsJ2yIC4.d.cts.map +1 -0
- package/dist/collateralEventType-CzH_2iTV.d.ts +5 -0
- package/dist/collateralEventType-CzH_2iTV.d.ts.map +1 -0
- package/dist/collateralEventType-DIm6Te7F.d.cts +5 -0
- package/dist/collateralEventType-DIm6Te7F.d.cts.map +1 -0
- package/dist/dataMappers.cjs +269 -346
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +7 -12
- package/dist/dataMappers.d.cts.map +1 -0
- package/dist/dataMappers.d.ts +7 -12
- package/dist/dataMappers.d.ts.map +1 -0
- package/dist/dataMappers.js +248 -314
- package/dist/dataMappers.js.map +1 -1
- package/dist/endpoints.cjs +8 -32
- package/dist/endpoints.cjs.map +1 -1
- package/dist/endpoints.d.cts +4 -2
- package/dist/endpoints.d.cts.map +1 -0
- package/dist/endpoints.d.ts +4 -2
- package/dist/endpoints.d.ts.map +1 -0
- package/dist/endpoints.js +8 -8
- package/dist/endpoints.js.map +1 -1
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DhI2LvVQ.d.ts +1 -0
- package/dist/index.cjs +15 -33
- package/dist/index.d.cts +14 -18
- package/dist/index.d.ts +14 -18
- package/dist/index.js +8 -7
- package/dist/indexerBalanceValue-4AuNuTAc.d.cts +32 -0
- package/dist/indexerBalanceValue-4AuNuTAc.d.cts.map +1 -0
- package/dist/indexerBalanceValue-B0OggI67.d.ts +32 -0
- package/dist/indexerBalanceValue-B0OggI67.d.ts.map +1 -0
- package/dist/paginatedEventsTypes-DtGDU-kI.d.cts +110 -0
- package/dist/paginatedEventsTypes-DtGDU-kI.d.cts.map +1 -0
- package/dist/paginatedEventsTypes-RwXoQrEa.d.ts +110 -0
- package/dist/paginatedEventsTypes-RwXoQrEa.d.ts.map +1 -0
- package/dist/serverModelTypes-CM2g040o.d.cts +262 -0
- package/dist/serverModelTypes-CM2g040o.d.cts.map +1 -0
- package/dist/serverModelTypes-DPHMUSZe.d.ts +262 -0
- package/dist/serverModelTypes-DPHMUSZe.d.ts.map +1 -0
- package/dist/serverTypes-BMSNh2GK.d.cts +452 -0
- package/dist/serverTypes-BMSNh2GK.d.cts.map +1 -0
- package/dist/serverTypes-c8IABU73.d.ts +452 -0
- package/dist/serverTypes-c8IABU73.d.ts.map +1 -0
- package/dist/types/CandlestickPeriod.cjs +16 -40
- package/dist/types/CandlestickPeriod.cjs.map +1 -1
- package/dist/types/CandlestickPeriod.d.cts +2 -13
- package/dist/types/CandlestickPeriod.d.ts +2 -13
- package/dist/types/CandlestickPeriod.js +16 -16
- package/dist/types/CandlestickPeriod.js.map +1 -1
- package/dist/types/IndexerEventType.cjs +0 -19
- package/dist/types/IndexerEventType.d.cts +2 -3
- package/dist/types/IndexerEventType.d.ts +2 -3
- package/dist/types/IndexerEventType.js +1 -1
- package/dist/types/IndexerLeaderboardType.cjs +0 -19
- package/dist/types/IndexerLeaderboardType.d.cts +2 -11
- package/dist/types/IndexerLeaderboardType.d.ts +2 -11
- package/dist/types/IndexerLeaderboardType.js +1 -1
- package/dist/types/NadoTx.cjs +0 -19
- package/dist/types/NadoTx.d.cts +2 -48
- package/dist/types/NadoTx.d.ts +2 -48
- package/dist/types/NadoTx.js +1 -1
- package/dist/types/clientTypes.cjs +0 -19
- package/dist/types/clientTypes.d.cts +2 -709
- package/dist/types/clientTypes.d.ts +2 -709
- package/dist/types/clientTypes.js +1 -1
- package/dist/types/collateralEventType.cjs +0 -19
- package/dist/types/collateralEventType.d.cts +2 -3
- package/dist/types/collateralEventType.d.ts +2 -3
- package/dist/types/collateralEventType.js +1 -1
- package/dist/types/index.cjs +3 -41
- package/dist/types/index.d.cts +10 -13
- package/dist/types/index.d.ts +10 -13
- package/dist/types/index.js +2 -11
- package/dist/types/paginatedEventsTypes.cjs +0 -19
- package/dist/types/paginatedEventsTypes.d.cts +2 -115
- package/dist/types/paginatedEventsTypes.d.ts +2 -115
- package/dist/types/paginatedEventsTypes.js +1 -1
- package/dist/types/serverModelTypes.cjs +0 -19
- package/dist/types/serverModelTypes.d.cts +2 -260
- package/dist/types/serverModelTypes.d.ts +2 -260
- package/dist/types/serverModelTypes.js +1 -1
- package/dist/types/serverTypes.cjs +0 -19
- package/dist/types/serverTypes.d.cts +2 -451
- package/dist/types/serverTypes.d.ts +2 -451
- package/dist/types/serverTypes.js +1 -1
- package/dist/utils/index.cjs +5 -25
- package/dist/utils/index.d.cts +2 -12
- package/dist/utils/index.d.ts +2 -12
- package/dist/utils/index.js +2 -3
- package/dist/utils/indexerBalanceValue.cjs +32 -36
- package/dist/utils/indexerBalanceValue.cjs.map +1 -1
- package/dist/utils/indexerBalanceValue.d.cts +2 -39
- package/dist/utils/indexerBalanceValue.d.ts +2 -39
- package/dist/utils/indexerBalanceValue.js +29 -9
- package/dist/utils/indexerBalanceValue.js.map +1 -1
- package/package.json +10 -10
- package/dist/IndexerBaseClient.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/IndexerEventType.cjs.map +0 -1
- package/dist/types/IndexerEventType.js.map +0 -1
- package/dist/types/IndexerLeaderboardType.cjs.map +0 -1
- package/dist/types/IndexerLeaderboardType.js.map +0 -1
- package/dist/types/NadoTx.cjs.map +0 -1
- package/dist/types/NadoTx.js.map +0 -1
- package/dist/types/clientTypes.cjs.map +0 -1
- package/dist/types/clientTypes.js.map +0 -1
- package/dist/types/collateralEventType.cjs.map +0 -1
- package/dist/types/collateralEventType.js.map +0 -1
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/paginatedEventsTypes.cjs.map +0 -1
- package/dist/types/paginatedEventsTypes.js.map +0 -1
- package/dist/types/serverModelTypes.cjs.map +0 -1
- package/dist/types/serverModelTypes.js.map +0 -1
- package/dist/types/serverTypes.cjs.map +0 -1
- package/dist/types/serverTypes.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,237 +1,231 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import 'bignumber.js';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import './types/CandlestickPeriod.cjs';
|
|
8
|
-
import './types/IndexerEventType.cjs';
|
|
9
|
-
import './types/IndexerLeaderboardType.cjs';
|
|
10
|
-
import './types/NadoTx.cjs';
|
|
11
|
-
import './types/serverModelTypes.cjs';
|
|
12
|
-
import '@nadohq/engine-client';
|
|
1
|
+
import { dt as IndexerServerQueryRequestByType, ft as IndexerServerQueryRequestType, pt as IndexerServerQueryResponseByType } from "./serverTypes-BMSNh2GK.cjs";
|
|
2
|
+
import { $ as GetIndexerPointsResponse, $t as RegisterLeaderboardResponse, A as GetIndexerMakerStatisticsParams, B as GetIndexerMultiProductSnapshotsParams, C as GetIndexerLeaderboardParticipantParams, D as GetIndexerLeaderboardResponse, E as GetIndexerLeaderboardRegistrationsResponse, F as GetIndexerMatchEventsResponse, G as GetIndexerNlpSnapshotsResponse, H as GetIndexerMultiSubaccountSnapshotsParams, I as GetIndexerMultiProductFundingRatesParams, J as GetIndexerOrdersParams, Jt as ListIndexerSocialAccountsParams, K as GetIndexerOraclePricesParams, L as GetIndexerMultiProductFundingRatesResponse, M as GetIndexerMarketSnapshotsParams, N as GetIndexerMarketSnapshotsResponse, O as GetIndexerLinkedSignerParams, P as GetIndexerMatchEventsParams, Q as GetIndexerPointsParams, Qt as RegisterLeaderboardParams, R as GetIndexerMultiProductPerpPricesParams, S as GetIndexerLeaderboardParams, T as GetIndexerLeaderboardRegistrationsParams, U as GetIndexerMultiSubaccountSnapshotsResponse, V as GetIndexerMultiProductSnapshotsResponse, W as GetIndexerNlpSnapshotsParams, X as GetIndexerPerpPricesParams, Xt as ListIndexerSubaccountsParams, Y as GetIndexerOrdersResponse, Yt as ListIndexerSocialAccountsResponse, Z as GetIndexerPerpPricesResponse, Zt as ListIndexerSubaccountsResponse, _ as GetIndexerFundingRateResponse, a as GetIndexerCandlesticksParams, at as GetIndexerReferralCodeParams, b as GetIndexerLeaderboardContestsParams, c as GetIndexerEdgeCandlesticksResponse, ct as GetIndexerSubaccountDDAResponse, dt as GetIndexerV2TickersParams, en as RevokeSocialAccountParams, et as GetIndexerPrivateAlphaChoiceParams, f as GetIndexerEventsParams, ft as GetIndexerV2TickersResponse, g as GetIndexerFundingRateParams, h as GetIndexerFastWithdrawalSignatureResponse, i as GetIndexerBacklogResponse, it as GetIndexerQuotePriceResponse, j as GetIndexerMakerStatisticsResponse, k as GetIndexerLinkedSignerResponse, l as GetIndexerEdgeMarketSnapshotResponse, lt as GetIndexerV2SymbolsParams, m as GetIndexerFastWithdrawalSignatureParams, n as ConnectSocialAccountParams, nt as GetIndexerProductSnapshotsParams, o as GetIndexerCandlesticksResponse, ot as GetIndexerReferralCodeResponse, p as GetIndexerEventsResponse, q as GetIndexerOraclePricesResponse, r as ConnectSocialAccountResponse, rt as GetIndexerProductSnapshotsResponse, s as GetIndexerEdgeCandlesticksParams, st as GetIndexerSubaccountDDAParams, tn as RevokeSocialAccountResponse, tt as GetIndexerPrivateAlphaChoiceResponse, u as GetIndexerEdgeMarketSnapshotsParams, ut as GetIndexerV2SymbolsResponse, v as GetIndexerInterestFundingPaymentsParams, w as GetIndexerLeaderboardParticipantResponse, x as GetIndexerLeaderboardContestsResponse, y as GetIndexerInterestFundingPaymentsResponse, z as GetIndexerMultiProductPerpPricesResponse } from "./clientTypes-BsJ2yIC4.cjs";
|
|
3
|
+
import { SignableRequestType, SignableRequestTypeToParams, WalletClientWithAccount } from "@nadohq/shared";
|
|
4
|
+
import { AxiosInstance } from "axios";
|
|
13
5
|
|
|
6
|
+
//#region src/IndexerBaseClient.d.ts
|
|
14
7
|
interface IndexerClientOpts {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
url: string;
|
|
9
|
+
v2Url?: string;
|
|
10
|
+
walletClient?: WalletClientWithAccount;
|
|
11
|
+
linkedSignerWalletClient?: WalletClientWithAccount;
|
|
19
12
|
}
|
|
20
13
|
/**
|
|
21
14
|
* Base client for all indexer requests
|
|
22
15
|
*/
|
|
23
16
|
declare class IndexerBaseClient {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
17
|
+
readonly opts: IndexerClientOpts;
|
|
18
|
+
readonly v2Url: string;
|
|
19
|
+
readonly axiosInstance: AxiosInstance;
|
|
20
|
+
constructor(opts: IndexerClientOpts);
|
|
21
|
+
/**
|
|
22
|
+
* Sets the linked signer for execute requests
|
|
23
|
+
*
|
|
24
|
+
* @param linkedSignerWalletClient The linkedSigner to use for all signatures. Set to null to revert to the chain signer
|
|
25
|
+
*/
|
|
26
|
+
setLinkedSigner(linkedSignerWalletClient: WalletClientWithAccount | null): void;
|
|
27
|
+
/**
|
|
28
|
+
* List all subaccounts
|
|
29
|
+
*
|
|
30
|
+
* @param params
|
|
31
|
+
*/
|
|
32
|
+
listSubaccounts(params: ListIndexerSubaccountsParams): Promise<ListIndexerSubaccountsResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve snapshots of multiple subaccounts at multiple points in time.
|
|
35
|
+
* Each snapshot is a view of the subaccount's balances at this point in time, with tracked variables for interest, funding, etc.
|
|
36
|
+
*
|
|
37
|
+
* @param params
|
|
38
|
+
*/
|
|
39
|
+
getMultiSubaccountSnapshots(params: GetIndexerMultiSubaccountSnapshotsParams): Promise<GetIndexerMultiSubaccountSnapshotsResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves referral code for an address
|
|
42
|
+
*
|
|
43
|
+
* @param params
|
|
44
|
+
*/
|
|
45
|
+
getReferralCode(params: GetIndexerReferralCodeParams): Promise<GetIndexerReferralCodeResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves funding rate for a product, where 1 = 100%
|
|
48
|
+
* @param params
|
|
49
|
+
*/
|
|
50
|
+
getFundingRate(params: GetIndexerFundingRateParams): Promise<GetIndexerFundingRateResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves funding rate for multiple products, where 1 = 100%
|
|
53
|
+
* @param params
|
|
54
|
+
*/
|
|
55
|
+
getMultiProductFundingRates(params: GetIndexerMultiProductFundingRatesParams): Promise<GetIndexerMultiProductFundingRatesResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves latest mark/index price for a perp product
|
|
58
|
+
* @param params
|
|
59
|
+
*/
|
|
60
|
+
getPerpPrices(params: GetIndexerPerpPricesParams): Promise<GetIndexerPerpPricesResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves latest mark/index price for multiple perp products
|
|
63
|
+
* @param params
|
|
64
|
+
*/
|
|
65
|
+
getMultiProductPerpPrices(params: GetIndexerMultiProductPerpPricesParams): Promise<GetIndexerMultiProductPerpPricesResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves latest oracle prices for provided products
|
|
68
|
+
* @param params
|
|
69
|
+
*/
|
|
70
|
+
getOraclePrices(params: GetIndexerOraclePricesParams): Promise<GetIndexerOraclePricesResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves candlesticks for a product
|
|
73
|
+
* @param params
|
|
74
|
+
*/
|
|
75
|
+
getCandlesticks(params: GetIndexerCandlesticksParams): Promise<GetIndexerCandlesticksResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves candlesticks for a product from Edge
|
|
78
|
+
* @param params
|
|
79
|
+
*/
|
|
80
|
+
getEdgeCandlesticks(params: GetIndexerEdgeCandlesticksParams): Promise<GetIndexerEdgeCandlesticksResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves historical snapshots for a product
|
|
83
|
+
* @param params
|
|
84
|
+
*/
|
|
85
|
+
getProductSnapshots(params: GetIndexerProductSnapshotsParams): Promise<GetIndexerProductSnapshotsResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves historical snapshots for multiple products
|
|
88
|
+
* @param params
|
|
89
|
+
*/
|
|
90
|
+
getMultiProductSnapshots(params: GetIndexerMultiProductSnapshotsParams): Promise<GetIndexerMultiProductSnapshotsResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves historical events
|
|
93
|
+
*
|
|
94
|
+
* @param params
|
|
95
|
+
*/
|
|
96
|
+
getEvents(params: GetIndexerEventsParams): Promise<GetIndexerEventsResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves historical orders
|
|
99
|
+
* @param params
|
|
100
|
+
*/
|
|
101
|
+
getOrders(params: GetIndexerOrdersParams): Promise<GetIndexerOrdersResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Gets match order events, this will return the same events as the events query, but with additional information
|
|
104
|
+
* to identify the order that was matched
|
|
105
|
+
*
|
|
106
|
+
* @param params
|
|
107
|
+
*/
|
|
108
|
+
getMatchEvents(params: GetIndexerMatchEventsParams): Promise<GetIndexerMatchEventsResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves historical funding & interest payments.
|
|
111
|
+
* NOTE: `limit` is an upperbound. If a user changes position size such that his position is 0 during each funding/interest tick,
|
|
112
|
+
* then the indexer will return fewer than `limit` results per page. However, more events can be present. This means that
|
|
113
|
+
* there isn't a reliable way to determine whether there is a next page. We just need to keep paginating until the next cursor is null.
|
|
114
|
+
*
|
|
115
|
+
* @param params
|
|
116
|
+
*/
|
|
117
|
+
getInterestFundingPayments(params: GetIndexerInterestFundingPaymentsParams): Promise<GetIndexerInterestFundingPaymentsResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Gets quote (USDT) price in terms of USD
|
|
120
|
+
*/
|
|
121
|
+
getQuotePrice(): Promise<GetIndexerQuotePriceResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* Fetches currently registered linked signer with the remaining txs allowed for the subaccount
|
|
124
|
+
*/
|
|
125
|
+
getLinkedSignerWithRateLimit(params: GetIndexerLinkedSignerParams): Promise<GetIndexerLinkedSignerResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Retrieve historical market snapshots
|
|
128
|
+
* @param params
|
|
129
|
+
*/
|
|
130
|
+
getMarketSnapshots(params: GetIndexerMarketSnapshotsParams): Promise<GetIndexerMarketSnapshotsResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Retrieve historical market snapshots from Edge
|
|
133
|
+
* @param params
|
|
134
|
+
*/
|
|
135
|
+
getEdgeMarketSnapshots(params: GetIndexerEdgeMarketSnapshotsParams): Promise<GetIndexerEdgeMarketSnapshotResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Retrieve maker statistics for a given epoch
|
|
138
|
+
*
|
|
139
|
+
* @param params
|
|
140
|
+
*/
|
|
141
|
+
getMakerStatistics(params: GetIndexerMakerStatisticsParams): Promise<GetIndexerMakerStatisticsResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieve leaderboard stats for a given contest
|
|
144
|
+
*
|
|
145
|
+
* @param params
|
|
146
|
+
*/
|
|
147
|
+
getLeaderboard(params: GetIndexerLeaderboardParams): Promise<GetIndexerLeaderboardResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Retrieve leaderboard ranking of a subaccount on a given contest
|
|
150
|
+
*
|
|
151
|
+
* @param params
|
|
152
|
+
*/
|
|
153
|
+
getLeaderboardParticipant(params: GetIndexerLeaderboardParticipantParams): Promise<GetIndexerLeaderboardParticipantResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Registers a subaccount for one or more contests. Requires EIP-712 signing.
|
|
156
|
+
*
|
|
157
|
+
* @param params - Registration parameters including contest IDs and signing config.
|
|
158
|
+
*/
|
|
159
|
+
registerLeaderboard(params: RegisterLeaderboardParams): Promise<RegisterLeaderboardResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Retrieves contest registrations for a subaccount. Supports batch lookup
|
|
162
|
+
* across multiple contests with an optional active filter.
|
|
163
|
+
*
|
|
164
|
+
* @param params - Query parameters including subaccount and contest IDs.
|
|
165
|
+
*/
|
|
166
|
+
getLeaderboardRegistrations(params: GetIndexerLeaderboardRegistrationsParams): Promise<GetIndexerLeaderboardRegistrationsResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Retrieve metadata of provided leaderboard contests
|
|
169
|
+
*
|
|
170
|
+
* @param params
|
|
171
|
+
*/
|
|
172
|
+
getLeaderboardContests(params: GetIndexerLeaderboardContestsParams): Promise<GetIndexerLeaderboardContestsResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Retrieve signature and tx to submit a fast withdrawal
|
|
175
|
+
*
|
|
176
|
+
* @param params
|
|
177
|
+
*/
|
|
178
|
+
getFastWithdrawalSignature(params: GetIndexerFastWithdrawalSignatureParams): Promise<GetIndexerFastWithdrawalSignatureResponse>;
|
|
179
|
+
getNlpSnapshots(params: GetIndexerNlpSnapshotsParams): Promise<GetIndexerNlpSnapshotsResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Retrieves the subaccount's DDA (Direct Deposit Address)
|
|
182
|
+
* @param params
|
|
183
|
+
*/
|
|
184
|
+
getSubaccountDDA(params: GetIndexerSubaccountDDAParams): Promise<GetIndexerSubaccountDDAResponse>;
|
|
185
|
+
getSequencerBacklog(): Promise<GetIndexerBacklogResponse>;
|
|
186
|
+
/**
|
|
187
|
+
* Retrieves private alpha choice information for a given address
|
|
188
|
+
* @param params
|
|
189
|
+
*/
|
|
190
|
+
getPrivateAlphaChoice(params: GetIndexerPrivateAlphaChoiceParams): Promise<GetIndexerPrivateAlphaChoiceResponse>;
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves points information for a given address, including points per epoch and all-time points
|
|
193
|
+
* @param params
|
|
194
|
+
*/
|
|
195
|
+
getPoints(params: GetIndexerPointsParams): Promise<GetIndexerPointsResponse>;
|
|
196
|
+
/**
|
|
197
|
+
* Initiates a social account connection flow. Returns a URL the user must visit to complete the OAuth flow.
|
|
198
|
+
* Requires EIP-712 signing.
|
|
199
|
+
*
|
|
200
|
+
* @param params - Connection parameters including provider and signing config.
|
|
201
|
+
*/
|
|
202
|
+
connectSocialAccount(params: ConnectSocialAccountParams): Promise<ConnectSocialAccountResponse>;
|
|
203
|
+
/**
|
|
204
|
+
* Lists linked social accounts for a given address.
|
|
205
|
+
*
|
|
206
|
+
* @param params - Query parameters including the wallet address.
|
|
207
|
+
*/
|
|
208
|
+
listSocialAccounts(params: ListIndexerSocialAccountsParams): Promise<ListIndexerSocialAccountsResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* Revokes a linked social account. Requires EIP-712 signing.
|
|
211
|
+
*
|
|
212
|
+
* @param params - Revocation parameters including provider and signing config.
|
|
213
|
+
*/
|
|
214
|
+
revokeSocialAccount(params: RevokeSocialAccountParams): Promise<RevokeSocialAccountResponse>;
|
|
215
|
+
/**
|
|
216
|
+
* Get tickers from the v2 indexer endpoint
|
|
217
|
+
* @param params
|
|
218
|
+
*/
|
|
219
|
+
getV2Tickers(params: GetIndexerV2TickersParams): Promise<GetIndexerV2TickersResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* Get symbols with market hours from the v2 indexer endpoint
|
|
222
|
+
* @param params
|
|
223
|
+
*/
|
|
224
|
+
getV2Symbols(params?: GetIndexerV2SymbolsParams): Promise<GetIndexerV2SymbolsResponse>;
|
|
225
|
+
protected query<TRequestType extends IndexerServerQueryRequestType>(requestType: TRequestType, params: IndexerServerQueryRequestByType[TRequestType]): Promise<IndexerServerQueryResponseByType[TRequestType]>;
|
|
226
|
+
protected sign<T extends SignableRequestType>(requestType: T, verifyingContract: string, chainId: number, params: SignableRequestTypeToParams[T]): Promise<`0x${string}`>;
|
|
227
|
+
private checkResponseStatus;
|
|
235
228
|
}
|
|
236
|
-
|
|
237
|
-
export { IndexerBaseClient,
|
|
229
|
+
//#endregion
|
|
230
|
+
export { IndexerBaseClient, I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