@eco-foundation/api-schemas 0.15.0 → 0.16.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/README.md +11 -34
- package/dist/fixtures/index.js +12 -10
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/intents-status.response.gasless-handoff.json +30 -0
- package/dist/fixtures/v1/intents-status.response.intent-filled.json +21 -0
- package/dist/fixtures/v1/intents-status.response.quote-enriched.json +63 -0
- package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
- package/dist/fixtures/v1/intents-status.response.unknown.json +20 -0
- package/dist/fixtures/v1/intents-status.response.wallet-page.json +27 -0
- package/dist/generated/build-digest.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/v1/endpoints/registry.d.ts +113 -123
- package/dist/v1/endpoints/registry.js +3 -4
- package/dist/v1/endpoints/registry.js.map +1 -1
- package/dist/v1/endpoints/status.d.ts +70 -2
- package/dist/v1/endpoints/status.js +11 -1
- package/dist/v1/endpoints/status.js.map +1 -1
- package/dist/v1/index.d.ts +0 -1
- package/dist/v1/index.js +0 -1
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/types.d.ts +8 -87
- package/openapi/v1.json +477 -705
- package/package.json +2 -1
- package/dist/fixtures/v1/intents-status.response.completed-fulfilled.json +0 -117
- package/dist/fixtures/v1/intents-status.response.completed-refunded.json +0 -101
- package/dist/fixtures/v1/intents-status.response.empty.json +0 -13
- package/dist/fixtures/v1/intents-status.response.pending-fulfillment.json +0 -101
- package/dist/fixtures/v1/intents-status.response.unlinked-intent.json +0 -81
- package/dist/v1/endpoints/transfer-status.d.ts +0 -488
- package/dist/v1/endpoints/transfer-status.js +0 -197
- package/dist/v1/endpoints/transfer-status.js.map +0 -1
package/dist/v1/types.d.ts
CHANGED
|
@@ -208,6 +208,9 @@ export type V1StatusStepType = 'SWAP' | 'BRIDGE';
|
|
|
208
208
|
export type V1StatusTxRef = {
|
|
209
209
|
chainId: number;
|
|
210
210
|
txHash: string;
|
|
211
|
+
timestamp?: number;
|
|
212
|
+
token?: string;
|
|
213
|
+
amount?: string;
|
|
211
214
|
[extension: string]: unknown;
|
|
212
215
|
};
|
|
213
216
|
export type V1StatusTokenAmount = {
|
|
@@ -221,6 +224,9 @@ export type V1StatusTxDetail = {
|
|
|
221
224
|
txHash: string;
|
|
222
225
|
token: string;
|
|
223
226
|
amount: string;
|
|
227
|
+
timestamp?: number;
|
|
228
|
+
symbol?: string;
|
|
229
|
+
decimals?: number;
|
|
224
230
|
[extension: string]: unknown;
|
|
225
231
|
};
|
|
226
232
|
export type V1StatusStep = {
|
|
@@ -248,95 +254,10 @@ export type V1StatusEntry = {
|
|
|
248
254
|
sourceTx?: V1StatusTxDetail;
|
|
249
255
|
destinationTx?: V1StatusTxDetail;
|
|
250
256
|
steps?: V1StatusStep[];
|
|
257
|
+
createdAt?: number;
|
|
258
|
+
refundAddress?: string;
|
|
251
259
|
[extension: string]: unknown;
|
|
252
260
|
};
|
|
253
|
-
export type V1TransferStatus = 'pending' | 'completed';
|
|
254
|
-
export type V1TransferSubstatus = 'waiting_for_funding' | 'waiting_for_fulfillment' | 'waiting_for_refund' | 'fulfilled' | 'refunded';
|
|
255
|
-
export type V1TransferTokenType = 'native' | 'token' | 'hypercore_perps' | 'hypercore_spot';
|
|
256
|
-
export type V1TransferStepType = 'swap' | 'bridge' | 'transfer' | 'call' | 'refund';
|
|
257
|
-
export type V1TransferTxType = 'funding' | 'burn' | 'mint' | 'execution' | 'refund';
|
|
258
|
-
export type V1TransferToken = {
|
|
259
|
-
type: V1TransferTokenType;
|
|
260
|
-
address: string | null;
|
|
261
|
-
symbol: string | null;
|
|
262
|
-
decimals: number | null;
|
|
263
|
-
[extension: string]: unknown;
|
|
264
|
-
};
|
|
265
|
-
export type V1TransferSource = {
|
|
266
|
-
status: V1TransferStatus;
|
|
267
|
-
chainId: number | null;
|
|
268
|
-
txHash: string | null;
|
|
269
|
-
timestamp: number | null;
|
|
270
|
-
token: V1TransferToken | null;
|
|
271
|
-
amount: string | null;
|
|
272
|
-
sender: string | null;
|
|
273
|
-
[extension: string]: unknown;
|
|
274
|
-
};
|
|
275
|
-
export type V1TransferDestination = {
|
|
276
|
-
status: V1TransferStatus;
|
|
277
|
-
chainId: number | null;
|
|
278
|
-
txHash: string | null;
|
|
279
|
-
timestamp: number | null;
|
|
280
|
-
token: V1TransferToken | null;
|
|
281
|
-
amount: string | null;
|
|
282
|
-
recipient: string | null;
|
|
283
|
-
[extension: string]: unknown;
|
|
284
|
-
};
|
|
285
|
-
export type V1TransferTransaction = {
|
|
286
|
-
chainId: number;
|
|
287
|
-
txHash: string;
|
|
288
|
-
txLink: string | null;
|
|
289
|
-
timestamp: number | null;
|
|
290
|
-
type: V1TransferTxType;
|
|
291
|
-
sender: string | null;
|
|
292
|
-
recipient: string | null;
|
|
293
|
-
token: V1TransferToken | null;
|
|
294
|
-
amount: string | null;
|
|
295
|
-
[extension: string]: unknown;
|
|
296
|
-
};
|
|
297
|
-
export type V1TransferRelatedIntent = {
|
|
298
|
-
chainId: number;
|
|
299
|
-
intentHash: string;
|
|
300
|
-
status: V1TransferStatus;
|
|
301
|
-
substatus: V1TransferSubstatus;
|
|
302
|
-
[extension: string]: unknown;
|
|
303
|
-
};
|
|
304
|
-
export type V1TransferStep = {
|
|
305
|
-
id: string;
|
|
306
|
-
type: V1TransferStepType;
|
|
307
|
-
provider: string | null;
|
|
308
|
-
relatedIntents: V1TransferRelatedIntent[];
|
|
309
|
-
status: V1TransferStatus;
|
|
310
|
-
substatus: V1TransferSubstatus;
|
|
311
|
-
transactions: V1TransferTransaction[];
|
|
312
|
-
[extension: string]: unknown;
|
|
313
|
-
};
|
|
314
|
-
export type V1TransferStatusEntry = {
|
|
315
|
-
id: string | null;
|
|
316
|
-
status: V1TransferStatus;
|
|
317
|
-
substatus: V1TransferSubstatus;
|
|
318
|
-
createdAt: number | null;
|
|
319
|
-
updatedAt: number | null;
|
|
320
|
-
refundAddress: string | null;
|
|
321
|
-
source: V1TransferSource;
|
|
322
|
-
destination: V1TransferDestination;
|
|
323
|
-
steps: V1TransferStep[];
|
|
324
|
-
[extension: string]: unknown;
|
|
325
|
-
};
|
|
326
|
-
export type V1TransferStatusResponse = {
|
|
327
|
-
results: V1TransferStatusEntry[];
|
|
328
|
-
nextPage: number | null;
|
|
329
|
-
[extension: string]: unknown;
|
|
330
|
-
};
|
|
331
|
-
export type V1TransferStatusQuery = {
|
|
332
|
-
txHash?: string;
|
|
333
|
-
intentHash?: string;
|
|
334
|
-
quoteId?: string;
|
|
335
|
-
jobId?: string;
|
|
336
|
-
wallet?: string;
|
|
337
|
-
page?: number;
|
|
338
|
-
limit?: number;
|
|
339
|
-
};
|
|
340
261
|
export type V1Chain = {
|
|
341
262
|
chainId: number;
|
|
342
263
|
name: string;
|