@eco-foundation/api-schemas 0.4.1 → 0.6.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 +241 -12
- package/dist/fixtures/index.js +0 -4
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/tokens-list.response.default.json +1 -1
- package/dist/generated/build-digest.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/v1/endpoints/chains.d.ts +7 -0
- package/dist/v1/endpoints/chains.js +5 -1
- package/dist/v1/endpoints/chains.js.map +1 -1
- package/dist/v1/endpoints/deposit-addresses.js +1 -1
- package/dist/v1/endpoints/deposit-addresses.js.map +1 -1
- package/dist/v1/endpoints/quotes.d.ts +2 -1
- package/dist/v1/endpoints/quotes.js +33 -6
- package/dist/v1/endpoints/quotes.js.map +1 -1
- package/dist/v1/endpoints/registry.d.ts +110 -21
- package/dist/v1/endpoints/registry.js +2 -2
- package/dist/v1/endpoints/registry.js.map +1 -1
- package/dist/v1/endpoints/status.d.ts +211 -26
- package/dist/v1/endpoints/status.js +39 -7
- package/dist/v1/endpoints/status.js.map +1 -1
- package/dist/v1/endpoints/submit.d.ts +2 -91
- package/dist/v1/endpoints/submit.js +1 -37
- package/dist/v1/endpoints/submit.js.map +1 -1
- package/dist/v1/endpoints/tokens.d.ts +7 -0
- package/dist/v1/endpoints/tokens.js +5 -1
- package/dist/v1/endpoints/tokens.js.map +1 -1
- package/dist/v1/enums.d.ts +2 -1
- package/dist/v1/enums.js +1 -1
- package/dist/v1/enums.js.map +1 -1
- package/dist/v1/errors/catalog.d.ts +7 -0
- package/dist/v1/errors/catalog.js +2 -1
- package/dist/v1/errors/catalog.js.map +1 -1
- package/dist/v1/errors/problem.d.ts +10 -0
- package/dist/v1/errors/problem.js +20 -10
- package/dist/v1/errors/problem.js.map +1 -1
- package/dist/v1/primitives.d.ts +7 -1
- package/dist/v1/primitives.js +14 -1
- package/dist/v1/primitives.js.map +1 -1
- package/dist/v1/types.d.ts +35 -1
- package/errors/catalog.lock.json +5 -0
- package/openapi/v1.json +601 -594
- package/package.json +19 -16
- package/dist/fixtures/v1/intents-submit-permit2.request.quote-target.json +0 -25
- package/dist/fixtures/v1/intents-submit-permit3.request.quote-target.json +0 -27
|
@@ -53,7 +53,6 @@ export declare const V1_ENDPOINTS: {
|
|
|
53
53
|
public: "public";
|
|
54
54
|
private: "private";
|
|
55
55
|
}>>;
|
|
56
|
-
maxCallDataSize: z.ZodOptional<z.ZodNumber>;
|
|
57
56
|
allQuotes: z.ZodOptional<z.ZodBoolean>;
|
|
58
57
|
}, z.core.$strict>>;
|
|
59
58
|
}, z.core.$strict>;
|
|
@@ -370,8 +369,6 @@ export declare const V1_ENDPOINTS: {
|
|
|
370
369
|
}, z.core.$loose>>>;
|
|
371
370
|
}, z.core.$loose>;
|
|
372
371
|
};
|
|
373
|
-
readonly 'intents.submit.permit3': V1EndpointDefinition;
|
|
374
|
-
readonly 'intents.submit.permit2': V1EndpointDefinition;
|
|
375
372
|
readonly 'intents.submit.erc-3009': V1EndpointDefinition;
|
|
376
373
|
readonly 'deposit-addresses.submit.erc-3009': V1EndpointDefinition;
|
|
377
374
|
readonly 'deposit-addresses.submit.erc-2612': V1EndpointDefinition;
|
|
@@ -404,15 +401,6 @@ export declare const V1_ENDPOINTS: {
|
|
|
404
401
|
};
|
|
405
402
|
readonly response: z.ZodObject<{
|
|
406
403
|
results: z.ZodArray<z.ZodObject<{
|
|
407
|
-
id: z.ZodString;
|
|
408
|
-
type: z.ZodEnum<{
|
|
409
|
-
quote: "quote";
|
|
410
|
-
intent: "intent";
|
|
411
|
-
gasless: "gasless";
|
|
412
|
-
"deposit-address": "deposit-address";
|
|
413
|
-
}>;
|
|
414
|
-
status: z.ZodString;
|
|
415
|
-
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
416
404
|
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
417
405
|
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
418
406
|
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -427,6 +415,58 @@ export declare const V1_ENDPOINTS: {
|
|
|
427
415
|
submitted: "submitted";
|
|
428
416
|
}>;
|
|
429
417
|
}, z.core.$loose>>>;
|
|
418
|
+
sourceTx: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
chainId: z.ZodNumber;
|
|
420
|
+
txHash: z.ZodString;
|
|
421
|
+
token: z.ZodString;
|
|
422
|
+
amount: z.ZodString;
|
|
423
|
+
}, z.core.$loose>>;
|
|
424
|
+
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
chainId: z.ZodNumber;
|
|
426
|
+
txHash: z.ZodString;
|
|
427
|
+
token: z.ZodString;
|
|
428
|
+
amount: z.ZodString;
|
|
429
|
+
}, z.core.$loose>>;
|
|
430
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
431
|
+
type: z.ZodEnum<{
|
|
432
|
+
SWAP: "SWAP";
|
|
433
|
+
BRIDGE: "BRIDGE";
|
|
434
|
+
}>;
|
|
435
|
+
status: z.ZodString;
|
|
436
|
+
from: z.ZodObject<{
|
|
437
|
+
token: z.ZodString;
|
|
438
|
+
amount: z.ZodString;
|
|
439
|
+
chainId: z.ZodNumber;
|
|
440
|
+
}, z.core.$loose>;
|
|
441
|
+
to: z.ZodObject<{
|
|
442
|
+
token: z.ZodString;
|
|
443
|
+
amount: z.ZodString;
|
|
444
|
+
chainId: z.ZodNumber;
|
|
445
|
+
}, z.core.$loose>;
|
|
446
|
+
transactions: z.ZodObject<{
|
|
447
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
448
|
+
chainId: z.ZodNumber;
|
|
449
|
+
txHash: z.ZodString;
|
|
450
|
+
}, z.core.$loose>>;
|
|
451
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
452
|
+
chainId: z.ZodNumber;
|
|
453
|
+
txHash: z.ZodString;
|
|
454
|
+
}, z.core.$loose>>;
|
|
455
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
chainId: z.ZodNumber;
|
|
457
|
+
txHash: z.ZodString;
|
|
458
|
+
}, z.core.$loose>>;
|
|
459
|
+
}, z.core.$loose>;
|
|
460
|
+
}, z.core.$loose>>>;
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
type: z.ZodEnum<{
|
|
463
|
+
quote: "quote";
|
|
464
|
+
intent: "intent";
|
|
465
|
+
gasless: "gasless";
|
|
466
|
+
"deposit-address": "deposit-address";
|
|
467
|
+
}>;
|
|
468
|
+
status: z.ZodString;
|
|
469
|
+
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
430
470
|
}, z.core.$loose>>;
|
|
431
471
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
432
472
|
}, z.core.$loose>;
|
|
@@ -446,15 +486,6 @@ export declare const V1_ENDPOINTS: {
|
|
|
446
486
|
};
|
|
447
487
|
readonly response: z.ZodObject<{
|
|
448
488
|
results: z.ZodArray<z.ZodObject<{
|
|
449
|
-
id: z.ZodString;
|
|
450
|
-
type: z.ZodEnum<{
|
|
451
|
-
quote: "quote";
|
|
452
|
-
intent: "intent";
|
|
453
|
-
gasless: "gasless";
|
|
454
|
-
"deposit-address": "deposit-address";
|
|
455
|
-
}>;
|
|
456
|
-
status: z.ZodString;
|
|
457
|
-
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
458
489
|
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
459
490
|
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
491
|
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -469,6 +500,58 @@ export declare const V1_ENDPOINTS: {
|
|
|
469
500
|
submitted: "submitted";
|
|
470
501
|
}>;
|
|
471
502
|
}, z.core.$loose>>>;
|
|
503
|
+
sourceTx: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
chainId: z.ZodNumber;
|
|
505
|
+
txHash: z.ZodString;
|
|
506
|
+
token: z.ZodString;
|
|
507
|
+
amount: z.ZodString;
|
|
508
|
+
}, z.core.$loose>>;
|
|
509
|
+
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
chainId: z.ZodNumber;
|
|
511
|
+
txHash: z.ZodString;
|
|
512
|
+
token: z.ZodString;
|
|
513
|
+
amount: z.ZodString;
|
|
514
|
+
}, z.core.$loose>>;
|
|
515
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
516
|
+
type: z.ZodEnum<{
|
|
517
|
+
SWAP: "SWAP";
|
|
518
|
+
BRIDGE: "BRIDGE";
|
|
519
|
+
}>;
|
|
520
|
+
status: z.ZodString;
|
|
521
|
+
from: z.ZodObject<{
|
|
522
|
+
token: z.ZodString;
|
|
523
|
+
amount: z.ZodString;
|
|
524
|
+
chainId: z.ZodNumber;
|
|
525
|
+
}, z.core.$loose>;
|
|
526
|
+
to: z.ZodObject<{
|
|
527
|
+
token: z.ZodString;
|
|
528
|
+
amount: z.ZodString;
|
|
529
|
+
chainId: z.ZodNumber;
|
|
530
|
+
}, z.core.$loose>;
|
|
531
|
+
transactions: z.ZodObject<{
|
|
532
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
chainId: z.ZodNumber;
|
|
534
|
+
txHash: z.ZodString;
|
|
535
|
+
}, z.core.$loose>>;
|
|
536
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
chainId: z.ZodNumber;
|
|
538
|
+
txHash: z.ZodString;
|
|
539
|
+
}, z.core.$loose>>;
|
|
540
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
chainId: z.ZodNumber;
|
|
542
|
+
txHash: z.ZodString;
|
|
543
|
+
}, z.core.$loose>>;
|
|
544
|
+
}, z.core.$loose>;
|
|
545
|
+
}, z.core.$loose>>>;
|
|
546
|
+
id: z.ZodString;
|
|
547
|
+
type: z.ZodEnum<{
|
|
548
|
+
quote: "quote";
|
|
549
|
+
intent: "intent";
|
|
550
|
+
gasless: "gasless";
|
|
551
|
+
"deposit-address": "deposit-address";
|
|
552
|
+
}>;
|
|
553
|
+
status: z.ZodString;
|
|
554
|
+
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
472
555
|
}, z.core.$loose>>;
|
|
473
556
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
474
557
|
}, z.core.$loose>;
|
|
@@ -480,6 +563,9 @@ export declare const V1_ENDPOINTS: {
|
|
|
480
563
|
readonly tag: "discovery";
|
|
481
564
|
readonly stability: "stable";
|
|
482
565
|
readonly successStatus: 200;
|
|
566
|
+
readonly query: {
|
|
567
|
+
chainId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
568
|
+
};
|
|
483
569
|
readonly response: z.ZodObject<{
|
|
484
570
|
chains: z.ZodArray<z.ZodObject<{
|
|
485
571
|
chainId: z.ZodNumber;
|
|
@@ -518,6 +604,9 @@ export declare const V1_ENDPOINTS: {
|
|
|
518
604
|
readonly tag: "discovery";
|
|
519
605
|
readonly stability: "stable";
|
|
520
606
|
readonly successStatus: 200;
|
|
607
|
+
readonly query: {
|
|
608
|
+
chainId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
609
|
+
};
|
|
521
610
|
readonly response: z.ZodObject<{
|
|
522
611
|
tokens: z.ZodArray<z.ZodObject<{
|
|
523
612
|
chainId: z.ZodNumber;
|
|
@@ -31,8 +31,6 @@ exports.V1_ENDPOINTS = {
|
|
|
31
31
|
request: quotes_1.QuoteRequestSchema,
|
|
32
32
|
response: quotes_1.QuoteResponseSchema,
|
|
33
33
|
},
|
|
34
|
-
'intents.submit.permit3': submitEndpoint('intents', 'permit3', submit_1.Permit3SubmitSchema),
|
|
35
|
-
'intents.submit.permit2': submitEndpoint('intents', 'permit2', submit_1.Permit2SubmitSchema),
|
|
36
34
|
'intents.submit.erc-3009': submitEndpoint('intents', 'erc-3009', submit_1.Erc3009IntentsSubmitSchema),
|
|
37
35
|
'deposit-addresses.submit.erc-3009': submitEndpoint('deposit-addresses', 'erc-3009', submit_1.Erc3009DepositAddressSubmitSchema),
|
|
38
36
|
'deposit-addresses.submit.erc-2612': submitEndpoint('deposit-addresses', 'erc-2612', submit_1.Erc2612SubmitSchema),
|
|
@@ -63,6 +61,7 @@ exports.V1_ENDPOINTS = {
|
|
|
63
61
|
tag: 'discovery',
|
|
64
62
|
stability: 'stable',
|
|
65
63
|
successStatus: 200,
|
|
64
|
+
query: chains_1.CHAINS_LIST_QUERY_SHAPE,
|
|
66
65
|
response: chains_1.ChainsResponseSchema,
|
|
67
66
|
},
|
|
68
67
|
'tokens.list': {
|
|
@@ -72,6 +71,7 @@ exports.V1_ENDPOINTS = {
|
|
|
72
71
|
tag: 'discovery',
|
|
73
72
|
stability: 'stable',
|
|
74
73
|
successStatus: 200,
|
|
74
|
+
query: tokens_1.TOKENS_LIST_QUERY_SHAPE,
|
|
75
75
|
response: tokens_1.TokensResponseSchema,
|
|
76
76
|
},
|
|
77
77
|
'routes.list': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/v1/endpoints/registry.ts"],"names":[],"mappings":";;;AAEA,+CAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/v1/endpoints/registry.ts"],"names":[],"mappings":";;;AAEA,+CAAoD;AACpD,qCAAyE;AACzE,2DAK6B;AAC7B,qCAAmE;AACnE,qCAAgD;AAChD,qCAIkB;AAClB,qCAKkB;AAClB,qCAAyE;AAmDzE,MAAM,cAAc,GAAG,CACrB,OAAwC,EACxC,QAAgB,EAChB,OAAkB,EACI,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,OAAO,OAAO,WAAW,QAAQ,EAAE;IACzC,OAAO,EACL,mBAAmB,QAAQ,0DAA0D;QACrF,iEAAiE;IACnE,GAAG,EAAE,OAAO;IACZ,SAAS,EAAE,QAAQ;I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;IACD,aAAa,EAAE;QACb,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,0DAA0D;QACnE,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;QACnB,aAAa,EAAE,GAAG;QAClB,KAAK,EAAE,gCAAuB;QAC9B,QAAQ,EAAE,6BAAoB;KAC/B;IACD,aAAa,EAAE;QACb,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,sEAAsE;QAC/E,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,GAAG;QAClB,QAAQ,EAAE,6BAAoB;KAC/B;IACD,0BAA0B,EAAE;QAC1B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,sDAAsD;QAC/D,GAAG,EAAE,mBAAmB;QACxB,SAAS,EAAE,QAAQ;QACnB,aAAa,EAAE,GAAG;QAClB,OAAO,EAAE,qDAAiC;QAC1C,QAAQ,EAAE,sDAAkC;KAC7C;IACD,0BAA0B,EAAE;QAC1B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,yEAAyE;QAClF,GAAG,EAAE,mBAAmB;QACxB,SAAS,EAAE,QAAQ;QACnB,aAAa,EAAE,GAAG;QAKlB,KAAK,EAAE,sDAAkC;QACzC,QAAQ,EAAE,sDAAkC;KAC7C;CACsD,CAAC;AAK7C,QAAA,wBAAwB,GAAG,yBAAe,CAAC"}
|
|
@@ -2,7 +2,120 @@ import { z } from 'zod';
|
|
|
2
2
|
import { StatusType } from '../enums';
|
|
3
3
|
export declare const STATUS_PAGE_MAX_LIMIT = 50;
|
|
4
4
|
export declare const STATUS_PAGE_DEFAULT_LIMIT = 20;
|
|
5
|
+
export declare const StatusTxRefSchema: z.ZodObject<{
|
|
6
|
+
chainId: z.ZodNumber;
|
|
7
|
+
txHash: z.ZodString;
|
|
8
|
+
}, z.core.$loose>;
|
|
9
|
+
export type StatusTxRef = z.input<typeof StatusTxRefSchema>;
|
|
10
|
+
export declare const StatusTokenAmountSchema: z.ZodObject<{
|
|
11
|
+
token: z.ZodString;
|
|
12
|
+
amount: z.ZodString;
|
|
13
|
+
chainId: z.ZodNumber;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
export type StatusTokenAmount = z.input<typeof StatusTokenAmountSchema>;
|
|
16
|
+
export declare const StatusTxDetailSchema: z.ZodObject<{
|
|
17
|
+
chainId: z.ZodNumber;
|
|
18
|
+
txHash: z.ZodString;
|
|
19
|
+
token: z.ZodString;
|
|
20
|
+
amount: z.ZodString;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
export type StatusTxDetail = z.input<typeof StatusTxDetailSchema>;
|
|
23
|
+
export declare const STATUS_STEP_TYPES: readonly ["SWAP", "BRIDGE"];
|
|
24
|
+
export declare const StatusStepType: z.ZodEnum<{
|
|
25
|
+
SWAP: "SWAP";
|
|
26
|
+
BRIDGE: "BRIDGE";
|
|
27
|
+
}>;
|
|
28
|
+
export type StatusStepType = z.infer<typeof StatusStepType>;
|
|
29
|
+
export declare const StatusStepSchema: z.ZodObject<{
|
|
30
|
+
type: z.ZodEnum<{
|
|
31
|
+
SWAP: "SWAP";
|
|
32
|
+
BRIDGE: "BRIDGE";
|
|
33
|
+
}>;
|
|
34
|
+
status: z.ZodString;
|
|
35
|
+
from: z.ZodObject<{
|
|
36
|
+
token: z.ZodString;
|
|
37
|
+
amount: z.ZodString;
|
|
38
|
+
chainId: z.ZodNumber;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
to: z.ZodObject<{
|
|
41
|
+
token: z.ZodString;
|
|
42
|
+
amount: z.ZodString;
|
|
43
|
+
chainId: z.ZodNumber;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
transactions: z.ZodObject<{
|
|
46
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
chainId: z.ZodNumber;
|
|
48
|
+
txHash: z.ZodString;
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
chainId: z.ZodNumber;
|
|
52
|
+
txHash: z.ZodString;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
chainId: z.ZodNumber;
|
|
56
|
+
txHash: z.ZodString;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
export type StatusStep = z.input<typeof StatusStepSchema>;
|
|
5
61
|
export declare const StatusEntrySchema: z.ZodObject<{
|
|
62
|
+
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
+
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
chainId: z.ZodNumber;
|
|
66
|
+
quoteIds: z.ZodArray<z.ZodString>;
|
|
67
|
+
txHash: z.ZodNullable<z.ZodString>;
|
|
68
|
+
intentHashes: z.ZodArray<z.ZodString>;
|
|
69
|
+
state: z.ZodEnum<{
|
|
70
|
+
pending: "pending";
|
|
71
|
+
published: "published";
|
|
72
|
+
failed: "failed";
|
|
73
|
+
submitted: "submitted";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$loose>>>;
|
|
76
|
+
sourceTx: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
chainId: z.ZodNumber;
|
|
78
|
+
txHash: z.ZodString;
|
|
79
|
+
token: z.ZodString;
|
|
80
|
+
amount: z.ZodString;
|
|
81
|
+
}, z.core.$loose>>;
|
|
82
|
+
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
chainId: z.ZodNumber;
|
|
84
|
+
txHash: z.ZodString;
|
|
85
|
+
token: z.ZodString;
|
|
86
|
+
amount: z.ZodString;
|
|
87
|
+
}, z.core.$loose>>;
|
|
88
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
type: z.ZodEnum<{
|
|
90
|
+
SWAP: "SWAP";
|
|
91
|
+
BRIDGE: "BRIDGE";
|
|
92
|
+
}>;
|
|
93
|
+
status: z.ZodString;
|
|
94
|
+
from: z.ZodObject<{
|
|
95
|
+
token: z.ZodString;
|
|
96
|
+
amount: z.ZodString;
|
|
97
|
+
chainId: z.ZodNumber;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
|
+
to: z.ZodObject<{
|
|
100
|
+
token: z.ZodString;
|
|
101
|
+
amount: z.ZodString;
|
|
102
|
+
chainId: z.ZodNumber;
|
|
103
|
+
}, z.core.$loose>;
|
|
104
|
+
transactions: z.ZodObject<{
|
|
105
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
chainId: z.ZodNumber;
|
|
107
|
+
txHash: z.ZodString;
|
|
108
|
+
}, z.core.$loose>>;
|
|
109
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
chainId: z.ZodNumber;
|
|
111
|
+
txHash: z.ZodString;
|
|
112
|
+
}, z.core.$loose>>;
|
|
113
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
chainId: z.ZodNumber;
|
|
115
|
+
txHash: z.ZodString;
|
|
116
|
+
}, z.core.$loose>>;
|
|
117
|
+
}, z.core.$loose>;
|
|
118
|
+
}, z.core.$loose>>>;
|
|
6
119
|
id: z.ZodString;
|
|
7
120
|
type: z.ZodEnum<{
|
|
8
121
|
quote: "quote";
|
|
@@ -12,6 +125,9 @@ export declare const StatusEntrySchema: z.ZodObject<{
|
|
|
12
125
|
}>;
|
|
13
126
|
status: z.ZodString;
|
|
14
127
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
}, z.core.$loose>;
|
|
129
|
+
export type StatusEntry = z.input<typeof StatusEntrySchema>;
|
|
130
|
+
export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
|
|
15
131
|
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
132
|
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
133
|
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -26,9 +142,49 @@ export declare const StatusEntrySchema: z.ZodObject<{
|
|
|
26
142
|
submitted: "submitted";
|
|
27
143
|
}>;
|
|
28
144
|
}, z.core.$loose>>>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
145
|
+
sourceTx: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
chainId: z.ZodNumber;
|
|
147
|
+
txHash: z.ZodString;
|
|
148
|
+
token: z.ZodString;
|
|
149
|
+
amount: z.ZodString;
|
|
150
|
+
}, z.core.$loose>>;
|
|
151
|
+
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
chainId: z.ZodNumber;
|
|
153
|
+
txHash: z.ZodString;
|
|
154
|
+
token: z.ZodString;
|
|
155
|
+
amount: z.ZodString;
|
|
156
|
+
}, z.core.$loose>>;
|
|
157
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
|
+
type: z.ZodEnum<{
|
|
159
|
+
SWAP: "SWAP";
|
|
160
|
+
BRIDGE: "BRIDGE";
|
|
161
|
+
}>;
|
|
162
|
+
status: z.ZodString;
|
|
163
|
+
from: z.ZodObject<{
|
|
164
|
+
token: z.ZodString;
|
|
165
|
+
amount: z.ZodString;
|
|
166
|
+
chainId: z.ZodNumber;
|
|
167
|
+
}, z.core.$loose>;
|
|
168
|
+
to: z.ZodObject<{
|
|
169
|
+
token: z.ZodString;
|
|
170
|
+
amount: z.ZodString;
|
|
171
|
+
chainId: z.ZodNumber;
|
|
172
|
+
}, z.core.$loose>;
|
|
173
|
+
transactions: z.ZodObject<{
|
|
174
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
chainId: z.ZodNumber;
|
|
176
|
+
txHash: z.ZodString;
|
|
177
|
+
}, z.core.$loose>>;
|
|
178
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
chainId: z.ZodNumber;
|
|
180
|
+
txHash: z.ZodString;
|
|
181
|
+
}, z.core.$loose>>;
|
|
182
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
chainId: z.ZodNumber;
|
|
184
|
+
txHash: z.ZodString;
|
|
185
|
+
}, z.core.$loose>>;
|
|
186
|
+
}, z.core.$loose>;
|
|
187
|
+
}, z.core.$loose>>>;
|
|
32
188
|
id: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
33
189
|
type: z.ZodLiteral<"quote" | "intent" | "gasless" | "deposit-address">;
|
|
34
190
|
status: z.ZodEnum<{
|
|
@@ -47,20 +203,6 @@ export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
|
|
|
47
203
|
active: "active";
|
|
48
204
|
}>;
|
|
49
205
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
50
|
-
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
-
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
-
chainId: z.ZodNumber;
|
|
54
|
-
quoteIds: z.ZodArray<z.ZodString>;
|
|
55
|
-
txHash: z.ZodNullable<z.ZodString>;
|
|
56
|
-
intentHashes: z.ZodArray<z.ZodString>;
|
|
57
|
-
state: z.ZodEnum<{
|
|
58
|
-
pending: "pending";
|
|
59
|
-
published: "published";
|
|
60
|
-
failed: "failed";
|
|
61
|
-
submitted: "submitted";
|
|
62
|
-
}>;
|
|
63
|
-
}, z.core.$loose>>>;
|
|
64
206
|
}, z.core.$loose>;
|
|
65
207
|
export declare const PagingFields: {
|
|
66
208
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -126,15 +268,6 @@ export declare const DepositAddressStatusQuerySchema: z.ZodObject<{
|
|
|
126
268
|
}, z.core.$strip>;
|
|
127
269
|
export declare const StatusListResponseSchema: z.ZodObject<{
|
|
128
270
|
results: z.ZodArray<z.ZodObject<{
|
|
129
|
-
id: z.ZodString;
|
|
130
|
-
type: z.ZodEnum<{
|
|
131
|
-
quote: "quote";
|
|
132
|
-
intent: "intent";
|
|
133
|
-
gasless: "gasless";
|
|
134
|
-
"deposit-address": "deposit-address";
|
|
135
|
-
}>;
|
|
136
|
-
status: z.ZodString;
|
|
137
|
-
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
138
271
|
intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
272
|
txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
273
|
subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -149,6 +282,58 @@ export declare const StatusListResponseSchema: z.ZodObject<{
|
|
|
149
282
|
submitted: "submitted";
|
|
150
283
|
}>;
|
|
151
284
|
}, z.core.$loose>>>;
|
|
285
|
+
sourceTx: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
chainId: z.ZodNumber;
|
|
287
|
+
txHash: z.ZodString;
|
|
288
|
+
token: z.ZodString;
|
|
289
|
+
amount: z.ZodString;
|
|
290
|
+
}, z.core.$loose>>;
|
|
291
|
+
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
chainId: z.ZodNumber;
|
|
293
|
+
txHash: z.ZodString;
|
|
294
|
+
token: z.ZodString;
|
|
295
|
+
amount: z.ZodString;
|
|
296
|
+
}, z.core.$loose>>;
|
|
297
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
type: z.ZodEnum<{
|
|
299
|
+
SWAP: "SWAP";
|
|
300
|
+
BRIDGE: "BRIDGE";
|
|
301
|
+
}>;
|
|
302
|
+
status: z.ZodString;
|
|
303
|
+
from: z.ZodObject<{
|
|
304
|
+
token: z.ZodString;
|
|
305
|
+
amount: z.ZodString;
|
|
306
|
+
chainId: z.ZodNumber;
|
|
307
|
+
}, z.core.$loose>;
|
|
308
|
+
to: z.ZodObject<{
|
|
309
|
+
token: z.ZodString;
|
|
310
|
+
amount: z.ZodString;
|
|
311
|
+
chainId: z.ZodNumber;
|
|
312
|
+
}, z.core.$loose>;
|
|
313
|
+
transactions: z.ZodObject<{
|
|
314
|
+
created: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
chainId: z.ZodNumber;
|
|
316
|
+
txHash: z.ZodString;
|
|
317
|
+
}, z.core.$loose>>;
|
|
318
|
+
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
chainId: z.ZodNumber;
|
|
320
|
+
txHash: z.ZodString;
|
|
321
|
+
}, z.core.$loose>>;
|
|
322
|
+
refunded: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
chainId: z.ZodNumber;
|
|
324
|
+
txHash: z.ZodString;
|
|
325
|
+
}, z.core.$loose>>;
|
|
326
|
+
}, z.core.$loose>;
|
|
327
|
+
}, z.core.$loose>>>;
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
type: z.ZodEnum<{
|
|
330
|
+
quote: "quote";
|
|
331
|
+
intent: "intent";
|
|
332
|
+
gasless: "gasless";
|
|
333
|
+
"deposit-address": "deposit-address";
|
|
334
|
+
}>;
|
|
335
|
+
status: z.ZodString;
|
|
336
|
+
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
152
337
|
}, z.core.$loose>>;
|
|
153
338
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
154
339
|
}, z.core.$loose>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusListResponseSchema = exports.DepositAddressStatusQuerySchema = exports.DEPOSIT_ADDRESS_STATUS_QUERY_SHAPE = exports.IntentStatusQuerySchema = exports.INTENT_STATUS_QUERY_SHAPE = exports.PagingBoundsSchema = exports.PagingFields = exports.StatusEntrySchema = exports.STATUS_PAGE_DEFAULT_LIMIT = exports.STATUS_PAGE_MAX_LIMIT = void 0;
|
|
3
|
+
exports.StatusListResponseSchema = exports.DepositAddressStatusQuerySchema = exports.DEPOSIT_ADDRESS_STATUS_QUERY_SHAPE = exports.IntentStatusQuerySchema = exports.INTENT_STATUS_QUERY_SHAPE = exports.PagingBoundsSchema = exports.PagingFields = exports.StatusEntrySchema = exports.StatusStepSchema = exports.StatusStepType = exports.STATUS_STEP_TYPES = exports.StatusTxDetailSchema = exports.StatusTokenAmountSchema = exports.StatusTxRefSchema = exports.STATUS_PAGE_DEFAULT_LIMIT = exports.STATUS_PAGE_MAX_LIMIT = void 0;
|
|
4
4
|
exports.statusEntrySchemaFor = statusEntrySchemaFor;
|
|
5
5
|
exports.requireAtLeastOneFilter = requireAtLeastOneFilter;
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -15,15 +15,49 @@ const ID_SCHEMA_BY_TYPE = {
|
|
|
15
15
|
gasless: primitives_1.GaslessId,
|
|
16
16
|
'deposit-address': primitives_1.DepositAddressId,
|
|
17
17
|
};
|
|
18
|
+
exports.StatusTxRefSchema = zod_1.z.looseObject({
|
|
19
|
+
chainId: primitives_1.ChainId,
|
|
20
|
+
txHash: zod_1.z.string().min(1),
|
|
21
|
+
});
|
|
22
|
+
exports.StatusTokenAmountSchema = zod_1.z.looseObject({
|
|
23
|
+
token: zod_1.z.string().min(1),
|
|
24
|
+
amount: primitives_1.UintString,
|
|
25
|
+
chainId: primitives_1.ChainId,
|
|
26
|
+
});
|
|
27
|
+
exports.StatusTxDetailSchema = zod_1.z.looseObject({
|
|
28
|
+
chainId: primitives_1.ChainId,
|
|
29
|
+
txHash: zod_1.z.string().min(1),
|
|
30
|
+
token: zod_1.z.string().min(1),
|
|
31
|
+
amount: primitives_1.UintString,
|
|
32
|
+
});
|
|
33
|
+
exports.STATUS_STEP_TYPES = ['SWAP', 'BRIDGE'];
|
|
34
|
+
exports.StatusStepType = zod_1.z.enum(exports.STATUS_STEP_TYPES);
|
|
35
|
+
exports.StatusStepSchema = zod_1.z.looseObject({
|
|
36
|
+
type: exports.StatusStepType,
|
|
37
|
+
status: zod_1.z.string().min(1),
|
|
38
|
+
from: exports.StatusTokenAmountSchema,
|
|
39
|
+
to: exports.StatusTokenAmountSchema,
|
|
40
|
+
transactions: zod_1.z.looseObject({
|
|
41
|
+
created: exports.StatusTxRefSchema.optional(),
|
|
42
|
+
fulfilled: exports.StatusTxRefSchema.optional(),
|
|
43
|
+
refunded: exports.StatusTxRefSchema.optional(),
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
const STATUS_ENTRY_OPTIONAL_FIELDS = {
|
|
47
|
+
intentHashes: zod_1.z.array(primitives_1.Bytes32).optional(),
|
|
48
|
+
txHash: zod_1.z.string().nullable().optional(),
|
|
49
|
+
subStatuses: zod_1.z.array(submit_1.GaslessSubStatusSchema).optional(),
|
|
50
|
+
sourceTx: exports.StatusTxDetailSchema.optional(),
|
|
51
|
+
destinationTx: exports.StatusTxDetailSchema.optional(),
|
|
52
|
+
steps: zod_1.z.array(exports.StatusStepSchema).optional(),
|
|
53
|
+
};
|
|
18
54
|
exports.StatusEntrySchema = zod_1.z
|
|
19
55
|
.looseObject({
|
|
20
56
|
id: zod_1.z.string().min(1),
|
|
21
57
|
type: zod_1.z.enum(enums_1.STATUS_TYPES),
|
|
22
58
|
status: zod_1.z.string().min(1),
|
|
23
59
|
updatedAt: primitives_1.UnixSeconds.nullable(),
|
|
24
|
-
|
|
25
|
-
txHash: zod_1.z.string().nullable().optional(),
|
|
26
|
-
subStatuses: zod_1.z.array(submit_1.GaslessSubStatusSchema).optional(),
|
|
60
|
+
...STATUS_ENTRY_OPTIONAL_FIELDS,
|
|
27
61
|
})
|
|
28
62
|
.superRefine((entry, ctx) => {
|
|
29
63
|
const vocab = enums_1.STATUS_VOCABULARY[entry.type];
|
|
@@ -48,9 +82,7 @@ function statusEntrySchemaFor(type) {
|
|
|
48
82
|
type: zod_1.z.literal(type),
|
|
49
83
|
status: zod_1.z.enum(enums_1.STATUS_VOCABULARY[type]),
|
|
50
84
|
updatedAt: primitives_1.UnixSeconds.nullable(),
|
|
51
|
-
|
|
52
|
-
txHash: zod_1.z.string().nullable().optional(),
|
|
53
|
-
subStatuses: zod_1.z.array(submit_1.GaslessSubStatusSchema).optional(),
|
|
85
|
+
...STATUS_ENTRY_OPTIONAL_FIELDS,
|
|
54
86
|
});
|
|
55
87
|
}
|
|
56
88
|
exports.PagingFields = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/endpoints/status.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/endpoints/status.ts"],"names":[],"mappings":";;;AA4JA,oDAQC;AAyFD,0DAWC;AAxQD,6BAAwB;AAExB,oCAAuE;AACvE,8CAWuB;AACvB,qCAAkD;AAErC,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAG5C,MAAM,iBAAiB,GAA0C;IAC/D,MAAM,EAAE,qBAAQ;IAChB,KAAK,EAAE,oBAAO;IACd,OAAO,EAAE,sBAAS;IAClB,iBAAiB,EAAE,6BAAgB;CACpC,CAAC;AAOW,QAAA,iBAAiB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC7C,OAAO,EAAE,oBAAO;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC;AAUU,QAAA,uBAAuB,GAAG,OAAC,CAAC,WAAW,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,uBAAU;IAClB,OAAO,EAAE,oBAAO;CACjB,CAAC,CAAC;AAIU,QAAA,oBAAoB,GAAG,OAAC,CAAC,WAAW,CAAC;IAChD,OAAO,EAAE,oBAAO;I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