@eco-foundation/api-schemas 0.14.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 +17 -2
- package/dist/fixtures/index.js +2 -0
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/intents-status.response.quote-enriched.json +63 -0
- package/dist/generated/build-digest.json +1 -1
- package/dist/v1/endpoints/registry.d.ts +36 -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/types.d.ts +8 -0
- package/openapi/v1.json +230 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ While the package is 0.x, pin the patch range or the exact version:
|
|
|
14
14
|
```json
|
|
15
15
|
{
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@eco-foundation/api-schemas": "~0.
|
|
17
|
+
"@eco-foundation/api-schemas": "~0.16.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Never write `^0`.** npm resolves `^0.x` as `>=0.0.0 <1.0.0`, so it silently accepts every
|
|
23
|
-
future breaking `0.y` — it is not a pin at all. Use `~0.
|
|
23
|
+
future breaking `0.y` — it is not a pin at all. Use `~0.16.0` or the exact `0.16.0`.
|
|
24
24
|
|
|
25
25
|
A matching version string is not evidence of a matching artifact: also compare
|
|
26
26
|
`V1_SCHEMA_DIGEST` (see [Invariants](#invariants-enforced-in-ci)). Two builds both called
|
|
@@ -30,6 +30,21 @@ A matching version string is not evidence of a matching artifact: also compare
|
|
|
30
30
|
zod-bearing entry point. Which case you are in is decided entirely by your imports; see
|
|
31
31
|
[Consumers](#consumers).
|
|
32
32
|
|
|
33
|
+
## Migrating 0.14.0 or 0.15.0 -> 0.16.0
|
|
34
|
+
|
|
35
|
+
**From 0.14.0: not breaking.** `GET /v1/intents/status` keeps the 0.14 request and response; 0.16.0 only adds optional members, each absent when the server has no source for it:
|
|
36
|
+
|
|
37
|
+
- Query: `txHash` (a creation or fill tx, either side) and `quoteId` as `quote:<uuid>` as well as a bare uuid. `quoteResponse:<uuid>` is still refused.
|
|
38
|
+
- Entry: `createdAt`, `refundAddress`.
|
|
39
|
+
- `sourceTx` / `destinationTx`: `timestamp`, `symbol`, `decimals`.
|
|
40
|
+
- Step `transactions.created` / `.fulfilled` / `.refunded`: `timestamp`; `refunded` also `token` and `amount` (what the refund returned).
|
|
41
|
+
|
|
42
|
+
Every 0.16.0 status fixture parses under the published 0.14.0 schemas (`status-0-14-compat.spec.ts`).
|
|
43
|
+
|
|
44
|
+
**From 0.15.0: BREAKING.** 0.15.0's transfers contract is withdrawn: it broke a production caller of `sourceTxHash` / `destinationTxHash`. The `TransferStatus*` schemas, types and fixtures are gone; `intents.status` is the 0.14 contract above.
|
|
45
|
+
|
|
46
|
+
**`V1_SCHEMA_DIGEST` MOVES** to `d8c618c2c21d1da2173f941c324530c440c3188f93b18f63a11596988ca1bfa7`, because `openapi/v1.json` changed. Every consumer running `assertNoSkew` moves in the same rollout.
|
|
47
|
+
|
|
33
48
|
## Migrating 0.13.0 -> 0.14.0
|
|
34
49
|
|
|
35
50
|
**BREAKING only for consumers of the draft `/v1/routes` schemas.** No stable endpoint changes.
|
package/dist/fixtures/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const deposit_addresses_submit_erc_2612_request_deposit_address_target_json_1 =
|
|
|
12
12
|
const deposit_addresses_submit_erc_3009_request_deposit_address_target_json_1 = __importDefault(require("./v1/deposit-addresses-submit-erc-3009.request.deposit-address-target.json"));
|
|
13
13
|
const intents_status_response_gasless_handoff_json_1 = __importDefault(require("./v1/intents-status.response.gasless-handoff.json"));
|
|
14
14
|
const intents_status_response_intent_filled_json_1 = __importDefault(require("./v1/intents-status.response.intent-filled.json"));
|
|
15
|
+
const intents_status_response_quote_enriched_json_1 = __importDefault(require("./v1/intents-status.response.quote-enriched.json"));
|
|
15
16
|
const intents_status_response_quote_filled_detail_json_1 = __importDefault(require("./v1/intents-status.response.quote-filled-detail.json"));
|
|
16
17
|
const intents_status_response_unknown_json_1 = __importDefault(require("./v1/intents-status.response.unknown.json"));
|
|
17
18
|
const intents_status_response_wallet_page_json_1 = __importDefault(require("./v1/intents-status.response.wallet-page.json"));
|
|
@@ -42,6 +43,7 @@ const FIXTURE_BINDINGS = [
|
|
|
42
43
|
bind('intents.status', 'response', 'gasless-handoff', intents_status_response_gasless_handoff_json_1.default),
|
|
43
44
|
bind('intents.status', 'response', 'wallet-page', intents_status_response_wallet_page_json_1.default),
|
|
44
45
|
bind('intents.status', 'response', 'quote-filled-detail', intents_status_response_quote_filled_detail_json_1.default),
|
|
46
|
+
bind('intents.status', 'response', 'quote-enriched', intents_status_response_quote_enriched_json_1.default),
|
|
45
47
|
bind('chains.list', 'response', 'default', chains_list_response_default_json_1.default),
|
|
46
48
|
bind('tokens.list', 'response', 'default', tokens_list_response_default_json_1.default),
|
|
47
49
|
bind('routes.list', 'response', 'default', routes_list_response_default_json_1.default, { stability: 'draft' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":";;;;;;AACA,+GAAgE;AAChE,mJAAuF;AACvF,qJAAyF;AACzF,yIAA2E;AAC3E,uLAAsG;AACtG,uLAAsG;AACtG,qIAA8E;AAC9E,iIAA2E;AAC3E,6IAAsF;AACtF,qHAAsE;AACtE,6HAAuE;AACvE,+HAA2E;AAC3E,6IAAkF;AAClF,6IAAkF;AAClF,iIAA0F;AAC1F,2GAAiE;AACjE,yHAA0E;AAC1E,mIAA4F;AAC5F,6GAAmE;AACnE,+GAAgE;AAChE,+GAAgE;AA0ChE,MAAM,IAAI,GAAG,CACX,UAAwB,EACxB,SAAiC,EACjC,OAAe,EACf,IAAa,EACb,OAA+E,EAAE,EACjF,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS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,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CACb,kDAAkD;YAChD,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAClE,CAAC;IACJ,CAAC;IACD,OAAO,IAA4B,CAAC;AACtC,CAAC;AAEY,QAAA,WAAW,GAAyB,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"endpointId": "intents.status",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"variant": "quote-enriched",
|
|
5
|
+
"method": "GET",
|
|
6
|
+
"path": "/v1/intents/status?quoteId=quote:7d3f1c2a-5b6e-4f80-9a1b-2c3d4e5f6a7b",
|
|
7
|
+
"expectedStatus": 200,
|
|
8
|
+
"sideEffect": false,
|
|
9
|
+
"payload": {
|
|
10
|
+
"results": [
|
|
11
|
+
{
|
|
12
|
+
"id": "quote:7d3f1c2a-5b6e-4f80-9a1b-2c3d4e5f6a7b",
|
|
13
|
+
"type": "quote",
|
|
14
|
+
"status": "submitted",
|
|
15
|
+
"intentHashes": ["0x6a1f3e9b2c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7"],
|
|
16
|
+
"createdAt": 1792765400,
|
|
17
|
+
"updatedAt": 1792765990,
|
|
18
|
+
"refundAddress": "0x3333333333333333333333333333333333333333",
|
|
19
|
+
"steps": [
|
|
20
|
+
{
|
|
21
|
+
"type": "BRIDGE",
|
|
22
|
+
"intentHash": "0x6a1f3e9b2c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7",
|
|
23
|
+
"status": "REFUNDED",
|
|
24
|
+
"from": {
|
|
25
|
+
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
26
|
+
"amount": "5000000",
|
|
27
|
+
"chainId": 8453
|
|
28
|
+
},
|
|
29
|
+
"to": {
|
|
30
|
+
"token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
31
|
+
"amount": "4995000",
|
|
32
|
+
"chainId": 10
|
|
33
|
+
},
|
|
34
|
+
"transactions": {
|
|
35
|
+
"created": {
|
|
36
|
+
"chainId": 8453,
|
|
37
|
+
"txHash": "0x1f2e3d4c5b6a79881726354453627180f9e8d7c6b5a49382716051f4e3d2c1b0",
|
|
38
|
+
"timestamp": 1792765412
|
|
39
|
+
},
|
|
40
|
+
"refunded": {
|
|
41
|
+
"chainId": 8453,
|
|
42
|
+
"txHash": "0x9a8b7c6d5e4f30211203f4e5d6c7b8a99a8b7c6d5e4f30211203f4e5d6c7b8a9",
|
|
43
|
+
"timestamp": 1792765990,
|
|
44
|
+
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
45
|
+
"amount": "5000000"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"sourceTx": {
|
|
51
|
+
"chainId": 8453,
|
|
52
|
+
"txHash": "0x1f2e3d4c5b6a79881726354453627180f9e8d7c6b5a49382716051f4e3d2c1b0",
|
|
53
|
+
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
54
|
+
"amount": "5000000",
|
|
55
|
+
"timestamp": 1792765412,
|
|
56
|
+
"symbol": "USDC",
|
|
57
|
+
"decimals": 6
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"nextCursor": null
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -432,7 +432,8 @@ export declare const V1_ENDPOINTS: {
|
|
|
432
432
|
intentHash: z.ZodOptional<z.ZodString>;
|
|
433
433
|
sourceTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
434
434
|
destinationTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
435
|
-
|
|
435
|
+
txHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
436
|
+
quoteId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodString]>>;
|
|
436
437
|
jobId: z.ZodOptional<z.ZodUUID>;
|
|
437
438
|
wallet: z.ZodOptional<z.ZodString>;
|
|
438
439
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -467,12 +468,18 @@ export declare const V1_ENDPOINTS: {
|
|
|
467
468
|
txHash: z.ZodString;
|
|
468
469
|
token: z.ZodString;
|
|
469
470
|
amount: z.ZodString;
|
|
471
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
472
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
473
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
470
474
|
}, z.core.$loose>>;
|
|
471
475
|
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
472
476
|
chainId: z.ZodNumber;
|
|
473
477
|
txHash: z.ZodString;
|
|
474
478
|
token: z.ZodString;
|
|
475
479
|
amount: z.ZodString;
|
|
480
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
482
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
476
483
|
}, z.core.$loose>>;
|
|
477
484
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
478
485
|
type: z.ZodEnum<{
|
|
@@ -495,17 +502,28 @@ export declare const V1_ENDPOINTS: {
|
|
|
495
502
|
created: z.ZodOptional<z.ZodObject<{
|
|
496
503
|
chainId: z.ZodNumber;
|
|
497
504
|
txHash: z.ZodString;
|
|
505
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
token: z.ZodOptional<z.ZodString>;
|
|
507
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
498
508
|
}, z.core.$loose>>;
|
|
499
509
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
500
510
|
chainId: z.ZodNumber;
|
|
501
511
|
txHash: z.ZodString;
|
|
512
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
token: z.ZodOptional<z.ZodString>;
|
|
514
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
502
515
|
}, z.core.$loose>>;
|
|
503
516
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
504
517
|
chainId: z.ZodNumber;
|
|
505
518
|
txHash: z.ZodString;
|
|
519
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
token: z.ZodOptional<z.ZodString>;
|
|
521
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
506
522
|
}, z.core.$loose>>;
|
|
507
523
|
}, z.core.$loose>;
|
|
508
524
|
}, z.core.$loose>>>;
|
|
525
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
refundAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
509
527
|
id: z.ZodString;
|
|
510
528
|
type: z.ZodEnum<{
|
|
511
529
|
quote: "quote";
|
|
@@ -553,12 +571,18 @@ export declare const V1_ENDPOINTS: {
|
|
|
553
571
|
txHash: z.ZodString;
|
|
554
572
|
token: z.ZodString;
|
|
555
573
|
amount: z.ZodString;
|
|
574
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
576
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
556
577
|
}, z.core.$loose>>;
|
|
557
578
|
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
558
579
|
chainId: z.ZodNumber;
|
|
559
580
|
txHash: z.ZodString;
|
|
560
581
|
token: z.ZodString;
|
|
561
582
|
amount: z.ZodString;
|
|
583
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
585
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
562
586
|
}, z.core.$loose>>;
|
|
563
587
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
588
|
type: z.ZodEnum<{
|
|
@@ -581,17 +605,28 @@ export declare const V1_ENDPOINTS: {
|
|
|
581
605
|
created: z.ZodOptional<z.ZodObject<{
|
|
582
606
|
chainId: z.ZodNumber;
|
|
583
607
|
txHash: z.ZodString;
|
|
608
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
609
|
+
token: z.ZodOptional<z.ZodString>;
|
|
610
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
584
611
|
}, z.core.$loose>>;
|
|
585
612
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
586
613
|
chainId: z.ZodNumber;
|
|
587
614
|
txHash: z.ZodString;
|
|
615
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
token: z.ZodOptional<z.ZodString>;
|
|
617
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
588
618
|
}, z.core.$loose>>;
|
|
589
619
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
590
620
|
chainId: z.ZodNumber;
|
|
591
621
|
txHash: z.ZodString;
|
|
622
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
token: z.ZodOptional<z.ZodString>;
|
|
624
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
592
625
|
}, z.core.$loose>>;
|
|
593
626
|
}, z.core.$loose>;
|
|
594
627
|
}, z.core.$loose>>>;
|
|
628
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
refundAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
595
630
|
id: z.ZodString;
|
|
596
631
|
type: z.ZodEnum<{
|
|
597
632
|
quote: "quote";
|
|
@@ -5,6 +5,9 @@ export declare const STATUS_PAGE_DEFAULT_LIMIT = 20;
|
|
|
5
5
|
export declare const StatusTxRefSchema: z.ZodObject<{
|
|
6
6
|
chainId: z.ZodNumber;
|
|
7
7
|
txHash: z.ZodString;
|
|
8
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
token: z.ZodOptional<z.ZodString>;
|
|
10
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
8
11
|
}, z.core.$loose>;
|
|
9
12
|
export type StatusTxRef = z.input<typeof StatusTxRefSchema>;
|
|
10
13
|
export declare const StatusTokenAmountSchema: z.ZodObject<{
|
|
@@ -18,6 +21,9 @@ export declare const StatusTxDetailSchema: z.ZodObject<{
|
|
|
18
21
|
txHash: z.ZodString;
|
|
19
22
|
token: z.ZodString;
|
|
20
23
|
amount: z.ZodString;
|
|
24
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
26
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
21
27
|
}, z.core.$loose>;
|
|
22
28
|
export type StatusTxDetail = z.input<typeof StatusTxDetailSchema>;
|
|
23
29
|
export declare const STATUS_STEP_TYPES: readonly ["SWAP", "BRIDGE"];
|
|
@@ -47,14 +53,23 @@ export declare const StatusStepSchema: z.ZodObject<{
|
|
|
47
53
|
created: z.ZodOptional<z.ZodObject<{
|
|
48
54
|
chainId: z.ZodNumber;
|
|
49
55
|
txHash: z.ZodString;
|
|
56
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
token: z.ZodOptional<z.ZodString>;
|
|
58
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
50
59
|
}, z.core.$loose>>;
|
|
51
60
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
52
61
|
chainId: z.ZodNumber;
|
|
53
62
|
txHash: z.ZodString;
|
|
63
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
token: z.ZodOptional<z.ZodString>;
|
|
65
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
54
66
|
}, z.core.$loose>>;
|
|
55
67
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
56
68
|
chainId: z.ZodNumber;
|
|
57
69
|
txHash: z.ZodString;
|
|
70
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
token: z.ZodOptional<z.ZodString>;
|
|
72
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
58
73
|
}, z.core.$loose>>;
|
|
59
74
|
}, z.core.$loose>;
|
|
60
75
|
}, z.core.$loose>;
|
|
@@ -79,12 +94,18 @@ export declare const StatusEntrySchema: z.ZodObject<{
|
|
|
79
94
|
txHash: z.ZodString;
|
|
80
95
|
token: z.ZodString;
|
|
81
96
|
amount: z.ZodString;
|
|
97
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
99
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
82
100
|
}, z.core.$loose>>;
|
|
83
101
|
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
84
102
|
chainId: z.ZodNumber;
|
|
85
103
|
txHash: z.ZodString;
|
|
86
104
|
token: z.ZodString;
|
|
87
105
|
amount: z.ZodString;
|
|
106
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
108
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
88
109
|
}, z.core.$loose>>;
|
|
89
110
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
111
|
type: z.ZodEnum<{
|
|
@@ -107,17 +128,28 @@ export declare const StatusEntrySchema: z.ZodObject<{
|
|
|
107
128
|
created: z.ZodOptional<z.ZodObject<{
|
|
108
129
|
chainId: z.ZodNumber;
|
|
109
130
|
txHash: z.ZodString;
|
|
131
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
token: z.ZodOptional<z.ZodString>;
|
|
133
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
110
134
|
}, z.core.$loose>>;
|
|
111
135
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
112
136
|
chainId: z.ZodNumber;
|
|
113
137
|
txHash: z.ZodString;
|
|
138
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
token: z.ZodOptional<z.ZodString>;
|
|
140
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
114
141
|
}, z.core.$loose>>;
|
|
115
142
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
116
143
|
chainId: z.ZodNumber;
|
|
117
144
|
txHash: z.ZodString;
|
|
145
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
token: z.ZodOptional<z.ZodString>;
|
|
147
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
118
148
|
}, z.core.$loose>>;
|
|
119
149
|
}, z.core.$loose>;
|
|
120
150
|
}, z.core.$loose>>>;
|
|
151
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
refundAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
121
153
|
id: z.ZodString;
|
|
122
154
|
type: z.ZodEnum<{
|
|
123
155
|
quote: "quote";
|
|
@@ -149,12 +181,18 @@ export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
|
|
|
149
181
|
txHash: z.ZodString;
|
|
150
182
|
token: z.ZodString;
|
|
151
183
|
amount: z.ZodString;
|
|
184
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
186
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
152
187
|
}, z.core.$loose>>;
|
|
153
188
|
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
154
189
|
chainId: z.ZodNumber;
|
|
155
190
|
txHash: z.ZodString;
|
|
156
191
|
token: z.ZodString;
|
|
157
192
|
amount: z.ZodString;
|
|
193
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
195
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
158
196
|
}, z.core.$loose>>;
|
|
159
197
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
198
|
type: z.ZodEnum<{
|
|
@@ -177,17 +215,28 @@ export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
|
|
|
177
215
|
created: z.ZodOptional<z.ZodObject<{
|
|
178
216
|
chainId: z.ZodNumber;
|
|
179
217
|
txHash: z.ZodString;
|
|
218
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
token: z.ZodOptional<z.ZodString>;
|
|
220
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
180
221
|
}, z.core.$loose>>;
|
|
181
222
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
182
223
|
chainId: z.ZodNumber;
|
|
183
224
|
txHash: z.ZodString;
|
|
225
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
token: z.ZodOptional<z.ZodString>;
|
|
227
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
184
228
|
}, z.core.$loose>>;
|
|
185
229
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
186
230
|
chainId: z.ZodNumber;
|
|
187
231
|
txHash: z.ZodString;
|
|
232
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
token: z.ZodOptional<z.ZodString>;
|
|
234
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
188
235
|
}, z.core.$loose>>;
|
|
189
236
|
}, z.core.$loose>;
|
|
190
237
|
}, z.core.$loose>>>;
|
|
238
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
refundAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
191
240
|
id: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
192
241
|
type: z.ZodLiteral<"quote" | "intent" | "gasless" | "deposit-address">;
|
|
193
242
|
status: z.ZodEnum<{
|
|
@@ -223,7 +272,8 @@ export declare const INTENT_STATUS_QUERY_SHAPE: {
|
|
|
223
272
|
intentHash: z.ZodOptional<z.ZodString>;
|
|
224
273
|
sourceTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
225
274
|
destinationTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
226
|
-
|
|
275
|
+
txHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
276
|
+
quoteId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodString]>>;
|
|
227
277
|
jobId: z.ZodOptional<z.ZodUUID>;
|
|
228
278
|
wallet: z.ZodOptional<z.ZodString>;
|
|
229
279
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -243,7 +293,8 @@ export declare const IntentStatusQuerySchema: z.ZodObject<{
|
|
|
243
293
|
intentHash: z.ZodOptional<z.ZodString>;
|
|
244
294
|
sourceTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
245
295
|
destinationTxHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
246
|
-
|
|
296
|
+
txHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>;
|
|
297
|
+
quoteId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodString]>>;
|
|
247
298
|
jobId: z.ZodOptional<z.ZodUUID>;
|
|
248
299
|
wallet: z.ZodOptional<z.ZodString>;
|
|
249
300
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -290,12 +341,18 @@ export declare const StatusListResponseSchema: z.ZodObject<{
|
|
|
290
341
|
txHash: z.ZodString;
|
|
291
342
|
token: z.ZodString;
|
|
292
343
|
amount: z.ZodString;
|
|
344
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
346
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
293
347
|
}, z.core.$loose>>;
|
|
294
348
|
destinationTx: z.ZodOptional<z.ZodObject<{
|
|
295
349
|
chainId: z.ZodNumber;
|
|
296
350
|
txHash: z.ZodString;
|
|
297
351
|
token: z.ZodString;
|
|
298
352
|
amount: z.ZodString;
|
|
353
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
355
|
+
decimals: z.ZodOptional<z.ZodNumber>;
|
|
299
356
|
}, z.core.$loose>>;
|
|
300
357
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
358
|
type: z.ZodEnum<{
|
|
@@ -318,17 +375,28 @@ export declare const StatusListResponseSchema: z.ZodObject<{
|
|
|
318
375
|
created: z.ZodOptional<z.ZodObject<{
|
|
319
376
|
chainId: z.ZodNumber;
|
|
320
377
|
txHash: z.ZodString;
|
|
378
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
token: z.ZodOptional<z.ZodString>;
|
|
380
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
321
381
|
}, z.core.$loose>>;
|
|
322
382
|
fulfilled: z.ZodOptional<z.ZodObject<{
|
|
323
383
|
chainId: z.ZodNumber;
|
|
324
384
|
txHash: z.ZodString;
|
|
385
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
token: z.ZodOptional<z.ZodString>;
|
|
387
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
325
388
|
}, z.core.$loose>>;
|
|
326
389
|
refunded: z.ZodOptional<z.ZodObject<{
|
|
327
390
|
chainId: z.ZodNumber;
|
|
328
391
|
txHash: z.ZodString;
|
|
392
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
393
|
+
token: z.ZodOptional<z.ZodString>;
|
|
394
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
329
395
|
}, z.core.$loose>>;
|
|
330
396
|
}, z.core.$loose>;
|
|
331
397
|
}, z.core.$loose>>>;
|
|
398
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
399
|
+
refundAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
|
|
332
400
|
id: z.ZodString;
|
|
333
401
|
type: z.ZodEnum<{
|
|
334
402
|
quote: "quote";
|
|
@@ -18,6 +18,9 @@ const ID_SCHEMA_BY_TYPE = {
|
|
|
18
18
|
exports.StatusTxRefSchema = zod_1.z.looseObject({
|
|
19
19
|
chainId: primitives_1.ChainId,
|
|
20
20
|
txHash: zod_1.z.string().min(1),
|
|
21
|
+
timestamp: primitives_1.UnixSeconds.optional(),
|
|
22
|
+
token: zod_1.z.string().min(1).optional(),
|
|
23
|
+
amount: primitives_1.UintString.optional(),
|
|
21
24
|
});
|
|
22
25
|
exports.StatusTokenAmountSchema = zod_1.z.looseObject({
|
|
23
26
|
token: zod_1.z.string().min(1),
|
|
@@ -29,6 +32,9 @@ exports.StatusTxDetailSchema = zod_1.z.looseObject({
|
|
|
29
32
|
txHash: zod_1.z.string().min(1),
|
|
30
33
|
token: zod_1.z.string().min(1),
|
|
31
34
|
amount: primitives_1.UintString,
|
|
35
|
+
timestamp: primitives_1.UnixSeconds.optional(),
|
|
36
|
+
symbol: zod_1.z.string().min(1).optional(),
|
|
37
|
+
decimals: zod_1.z.number().int().min(0).optional(),
|
|
32
38
|
});
|
|
33
39
|
exports.STATUS_STEP_TYPES = ['SWAP', 'BRIDGE'];
|
|
34
40
|
exports.StatusStepType = zod_1.z.enum(exports.STATUS_STEP_TYPES);
|
|
@@ -51,6 +57,8 @@ const STATUS_ENTRY_OPTIONAL_FIELDS = {
|
|
|
51
57
|
sourceTx: exports.StatusTxDetailSchema.optional(),
|
|
52
58
|
destinationTx: exports.StatusTxDetailSchema.optional(),
|
|
53
59
|
steps: zod_1.z.array(exports.StatusStepSchema).optional(),
|
|
60
|
+
createdAt: primitives_1.UnixSeconds.optional(),
|
|
61
|
+
refundAddress: primitives_1.AnyAddress.optional(),
|
|
54
62
|
};
|
|
55
63
|
exports.StatusEntrySchema = zod_1.z
|
|
56
64
|
.looseObject({
|
|
@@ -124,6 +132,7 @@ const INTENT_STATUS_FILTERS = [
|
|
|
124
132
|
'intentHash',
|
|
125
133
|
'sourceTxHash',
|
|
126
134
|
'destinationTxHash',
|
|
135
|
+
'txHash',
|
|
127
136
|
'quoteId',
|
|
128
137
|
'jobId',
|
|
129
138
|
'wallet',
|
|
@@ -133,7 +142,8 @@ exports.INTENT_STATUS_QUERY_SHAPE = {
|
|
|
133
142
|
intentHash: primitives_1.Bytes32.optional(),
|
|
134
143
|
sourceTxHash: primitives_1.TxHash.optional(),
|
|
135
144
|
destinationTxHash: primitives_1.TxHash.optional(),
|
|
136
|
-
|
|
145
|
+
txHash: primitives_1.TxHash.optional(),
|
|
146
|
+
quoteId: zod_1.z.union([zod_1.z.uuid(), primitives_1.QuoteId]).optional(),
|
|
137
147
|
jobId: zod_1.z.uuid().optional(),
|
|
138
148
|
wallet: zod_1.z.string().min(1).optional(),
|
|
139
149
|
status: zod_1.z.enum(enums_1.STATUS_VOCABULARY.intent).optional(),
|
|
@@ -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":";;;AAwLA,oDAQC;AAyFD,0DAWC;AApSD,6BAAwB;AAExB,oCAAuE;AACvE,8CAauB;AACvB,qCAAkD;AAErC,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAG5C,MAAM,i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,QAAA,+BAA+B,GAAG,OAAC;KAC7C,MAAM,CAAC,0CAAkC,CAAC;KAC1C,WAAW,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAO3D,QAAA,wBAAwB,GAAG,OAAC,CAAC,WAAW,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,GAAG,CAAC,6BAAqB,CAAC;IAC9D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
|
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,6 +254,8 @@ 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
261
|
export type V1Chain = {
|
package/openapi/v1.json
CHANGED
|
@@ -4175,14 +4175,43 @@
|
|
|
4175
4175
|
]
|
|
4176
4176
|
}
|
|
4177
4177
|
},
|
|
4178
|
+
{
|
|
4179
|
+
"name": "txHash",
|
|
4180
|
+
"in": "query",
|
|
4181
|
+
"required": false,
|
|
4182
|
+
"schema": {
|
|
4183
|
+
"anyOf": [
|
|
4184
|
+
{
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
4187
|
+
},
|
|
4188
|
+
{
|
|
4189
|
+
"type": "string",
|
|
4190
|
+
"pattern": "^[0-9a-fA-F]{64}$"
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
"type": "string",
|
|
4194
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{64,88}$"
|
|
4195
|
+
}
|
|
4196
|
+
]
|
|
4197
|
+
}
|
|
4198
|
+
},
|
|
4178
4199
|
{
|
|
4179
4200
|
"name": "quoteId",
|
|
4180
4201
|
"in": "query",
|
|
4181
4202
|
"required": false,
|
|
4182
4203
|
"schema": {
|
|
4183
|
-
"
|
|
4184
|
-
|
|
4185
|
-
|
|
4204
|
+
"anyOf": [
|
|
4205
|
+
{
|
|
4206
|
+
"type": "string",
|
|
4207
|
+
"format": "uuid",
|
|
4208
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
4209
|
+
},
|
|
4210
|
+
{
|
|
4211
|
+
"type": "string",
|
|
4212
|
+
"pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
4213
|
+
}
|
|
4214
|
+
]
|
|
4186
4215
|
}
|
|
4187
4216
|
},
|
|
4188
4217
|
{
|
|
@@ -4376,6 +4405,20 @@
|
|
|
4376
4405
|
"type": "string",
|
|
4377
4406
|
"maxLength": 78,
|
|
4378
4407
|
"pattern": "^(0|[1-9]\\d*)$"
|
|
4408
|
+
},
|
|
4409
|
+
"timestamp": {
|
|
4410
|
+
"type": "integer",
|
|
4411
|
+
"minimum": 0,
|
|
4412
|
+
"maximum": 4102444800
|
|
4413
|
+
},
|
|
4414
|
+
"symbol": {
|
|
4415
|
+
"type": "string",
|
|
4416
|
+
"minLength": 1
|
|
4417
|
+
},
|
|
4418
|
+
"decimals": {
|
|
4419
|
+
"type": "integer",
|
|
4420
|
+
"minimum": 0,
|
|
4421
|
+
"maximum": 9007199254740991
|
|
4379
4422
|
}
|
|
4380
4423
|
},
|
|
4381
4424
|
"required": [
|
|
@@ -4405,6 +4448,20 @@
|
|
|
4405
4448
|
"type": "string",
|
|
4406
4449
|
"maxLength": 78,
|
|
4407
4450
|
"pattern": "^(0|[1-9]\\d*)$"
|
|
4451
|
+
},
|
|
4452
|
+
"timestamp": {
|
|
4453
|
+
"type": "integer",
|
|
4454
|
+
"minimum": 0,
|
|
4455
|
+
"maximum": 4102444800
|
|
4456
|
+
},
|
|
4457
|
+
"symbol": {
|
|
4458
|
+
"type": "string",
|
|
4459
|
+
"minLength": 1
|
|
4460
|
+
},
|
|
4461
|
+
"decimals": {
|
|
4462
|
+
"type": "integer",
|
|
4463
|
+
"minimum": 0,
|
|
4464
|
+
"maximum": 9007199254740991
|
|
4408
4465
|
}
|
|
4409
4466
|
},
|
|
4410
4467
|
"required": [
|
|
@@ -4496,6 +4553,20 @@
|
|
|
4496
4553
|
"txHash": {
|
|
4497
4554
|
"type": "string",
|
|
4498
4555
|
"minLength": 1
|
|
4556
|
+
},
|
|
4557
|
+
"timestamp": {
|
|
4558
|
+
"type": "integer",
|
|
4559
|
+
"minimum": 0,
|
|
4560
|
+
"maximum": 4102444800
|
|
4561
|
+
},
|
|
4562
|
+
"token": {
|
|
4563
|
+
"type": "string",
|
|
4564
|
+
"minLength": 1
|
|
4565
|
+
},
|
|
4566
|
+
"amount": {
|
|
4567
|
+
"type": "string",
|
|
4568
|
+
"maxLength": 78,
|
|
4569
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4499
4570
|
}
|
|
4500
4571
|
},
|
|
4501
4572
|
"required": [
|
|
@@ -4514,6 +4585,20 @@
|
|
|
4514
4585
|
"txHash": {
|
|
4515
4586
|
"type": "string",
|
|
4516
4587
|
"minLength": 1
|
|
4588
|
+
},
|
|
4589
|
+
"timestamp": {
|
|
4590
|
+
"type": "integer",
|
|
4591
|
+
"minimum": 0,
|
|
4592
|
+
"maximum": 4102444800
|
|
4593
|
+
},
|
|
4594
|
+
"token": {
|
|
4595
|
+
"type": "string",
|
|
4596
|
+
"minLength": 1
|
|
4597
|
+
},
|
|
4598
|
+
"amount": {
|
|
4599
|
+
"type": "string",
|
|
4600
|
+
"maxLength": 78,
|
|
4601
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4517
4602
|
}
|
|
4518
4603
|
},
|
|
4519
4604
|
"required": [
|
|
@@ -4532,6 +4617,20 @@
|
|
|
4532
4617
|
"txHash": {
|
|
4533
4618
|
"type": "string",
|
|
4534
4619
|
"minLength": 1
|
|
4620
|
+
},
|
|
4621
|
+
"timestamp": {
|
|
4622
|
+
"type": "integer",
|
|
4623
|
+
"minimum": 0,
|
|
4624
|
+
"maximum": 4102444800
|
|
4625
|
+
},
|
|
4626
|
+
"token": {
|
|
4627
|
+
"type": "string",
|
|
4628
|
+
"minLength": 1
|
|
4629
|
+
},
|
|
4630
|
+
"amount": {
|
|
4631
|
+
"type": "string",
|
|
4632
|
+
"maxLength": 78,
|
|
4633
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4535
4634
|
}
|
|
4536
4635
|
},
|
|
4537
4636
|
"required": [
|
|
@@ -4551,6 +4650,35 @@
|
|
|
4551
4650
|
"transactions"
|
|
4552
4651
|
]
|
|
4553
4652
|
}
|
|
4653
|
+
},
|
|
4654
|
+
"createdAt": {
|
|
4655
|
+
"type": "integer",
|
|
4656
|
+
"minimum": 0,
|
|
4657
|
+
"maximum": 4102444800
|
|
4658
|
+
},
|
|
4659
|
+
"refundAddress": {
|
|
4660
|
+
"anyOf": [
|
|
4661
|
+
{
|
|
4662
|
+
"type": "string",
|
|
4663
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
4664
|
+
},
|
|
4665
|
+
{
|
|
4666
|
+
"anyOf": [
|
|
4667
|
+
{
|
|
4668
|
+
"type": "string",
|
|
4669
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
"type": "string",
|
|
4673
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
4674
|
+
}
|
|
4675
|
+
]
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"type": "string",
|
|
4679
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
4680
|
+
}
|
|
4681
|
+
]
|
|
4554
4682
|
}
|
|
4555
4683
|
},
|
|
4556
4684
|
"required": [
|
|
@@ -4775,6 +4903,20 @@
|
|
|
4775
4903
|
"type": "string",
|
|
4776
4904
|
"maxLength": 78,
|
|
4777
4905
|
"pattern": "^(0|[1-9]\\d*)$"
|
|
4906
|
+
},
|
|
4907
|
+
"timestamp": {
|
|
4908
|
+
"type": "integer",
|
|
4909
|
+
"minimum": 0,
|
|
4910
|
+
"maximum": 4102444800
|
|
4911
|
+
},
|
|
4912
|
+
"symbol": {
|
|
4913
|
+
"type": "string",
|
|
4914
|
+
"minLength": 1
|
|
4915
|
+
},
|
|
4916
|
+
"decimals": {
|
|
4917
|
+
"type": "integer",
|
|
4918
|
+
"minimum": 0,
|
|
4919
|
+
"maximum": 9007199254740991
|
|
4778
4920
|
}
|
|
4779
4921
|
},
|
|
4780
4922
|
"required": [
|
|
@@ -4804,6 +4946,20 @@
|
|
|
4804
4946
|
"type": "string",
|
|
4805
4947
|
"maxLength": 78,
|
|
4806
4948
|
"pattern": "^(0|[1-9]\\d*)$"
|
|
4949
|
+
},
|
|
4950
|
+
"timestamp": {
|
|
4951
|
+
"type": "integer",
|
|
4952
|
+
"minimum": 0,
|
|
4953
|
+
"maximum": 4102444800
|
|
4954
|
+
},
|
|
4955
|
+
"symbol": {
|
|
4956
|
+
"type": "string",
|
|
4957
|
+
"minLength": 1
|
|
4958
|
+
},
|
|
4959
|
+
"decimals": {
|
|
4960
|
+
"type": "integer",
|
|
4961
|
+
"minimum": 0,
|
|
4962
|
+
"maximum": 9007199254740991
|
|
4807
4963
|
}
|
|
4808
4964
|
},
|
|
4809
4965
|
"required": [
|
|
@@ -4895,6 +5051,20 @@
|
|
|
4895
5051
|
"txHash": {
|
|
4896
5052
|
"type": "string",
|
|
4897
5053
|
"minLength": 1
|
|
5054
|
+
},
|
|
5055
|
+
"timestamp": {
|
|
5056
|
+
"type": "integer",
|
|
5057
|
+
"minimum": 0,
|
|
5058
|
+
"maximum": 4102444800
|
|
5059
|
+
},
|
|
5060
|
+
"token": {
|
|
5061
|
+
"type": "string",
|
|
5062
|
+
"minLength": 1
|
|
5063
|
+
},
|
|
5064
|
+
"amount": {
|
|
5065
|
+
"type": "string",
|
|
5066
|
+
"maxLength": 78,
|
|
5067
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4898
5068
|
}
|
|
4899
5069
|
},
|
|
4900
5070
|
"required": [
|
|
@@ -4913,6 +5083,20 @@
|
|
|
4913
5083
|
"txHash": {
|
|
4914
5084
|
"type": "string",
|
|
4915
5085
|
"minLength": 1
|
|
5086
|
+
},
|
|
5087
|
+
"timestamp": {
|
|
5088
|
+
"type": "integer",
|
|
5089
|
+
"minimum": 0,
|
|
5090
|
+
"maximum": 4102444800
|
|
5091
|
+
},
|
|
5092
|
+
"token": {
|
|
5093
|
+
"type": "string",
|
|
5094
|
+
"minLength": 1
|
|
5095
|
+
},
|
|
5096
|
+
"amount": {
|
|
5097
|
+
"type": "string",
|
|
5098
|
+
"maxLength": 78,
|
|
5099
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4916
5100
|
}
|
|
4917
5101
|
},
|
|
4918
5102
|
"required": [
|
|
@@ -4931,6 +5115,20 @@
|
|
|
4931
5115
|
"txHash": {
|
|
4932
5116
|
"type": "string",
|
|
4933
5117
|
"minLength": 1
|
|
5118
|
+
},
|
|
5119
|
+
"timestamp": {
|
|
5120
|
+
"type": "integer",
|
|
5121
|
+
"minimum": 0,
|
|
5122
|
+
"maximum": 4102444800
|
|
5123
|
+
},
|
|
5124
|
+
"token": {
|
|
5125
|
+
"type": "string",
|
|
5126
|
+
"minLength": 1
|
|
5127
|
+
},
|
|
5128
|
+
"amount": {
|
|
5129
|
+
"type": "string",
|
|
5130
|
+
"maxLength": 78,
|
|
5131
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
4934
5132
|
}
|
|
4935
5133
|
},
|
|
4936
5134
|
"required": [
|
|
@@ -4950,6 +5148,35 @@
|
|
|
4950
5148
|
"transactions"
|
|
4951
5149
|
]
|
|
4952
5150
|
}
|
|
5151
|
+
},
|
|
5152
|
+
"createdAt": {
|
|
5153
|
+
"type": "integer",
|
|
5154
|
+
"minimum": 0,
|
|
5155
|
+
"maximum": 4102444800
|
|
5156
|
+
},
|
|
5157
|
+
"refundAddress": {
|
|
5158
|
+
"anyOf": [
|
|
5159
|
+
{
|
|
5160
|
+
"type": "string",
|
|
5161
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
5162
|
+
},
|
|
5163
|
+
{
|
|
5164
|
+
"anyOf": [
|
|
5165
|
+
{
|
|
5166
|
+
"type": "string",
|
|
5167
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
5168
|
+
},
|
|
5169
|
+
{
|
|
5170
|
+
"type": "string",
|
|
5171
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
5172
|
+
}
|
|
5173
|
+
]
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"type": "string",
|
|
5177
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
5178
|
+
}
|
|
5179
|
+
]
|
|
4953
5180
|
}
|
|
4954
5181
|
},
|
|
4955
5182
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eco-foundation/api-schemas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Zod-first schemas, error catalog, golden fixtures, and generated OpenAPI 3.1 for the Eco /v1 API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"@types/node": "22.20.0",
|
|
76
76
|
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
77
77
|
"@typescript-eslint/parser": "^7.9.0",
|
|
78
|
+
"api-schemas-0-14": "npm:@eco-foundation/api-schemas@0.14.0",
|
|
78
79
|
"eslint": "^8.57.0",
|
|
79
80
|
"eslint-config-prettier": "^9.1.0",
|
|
80
81
|
"eslint-plugin-prettier": "^5.1.3",
|