@eco-foundation/api-schemas 0.6.0 → 0.8.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 +175 -7
- package/dist/fixtures/index.js +4 -0
- package/dist/fixtures/index.js.map +1 -1
- package/dist/fixtures/v1/intents-submit-permit2.request.quote-target.json +26 -0
- package/dist/fixtures/v1/intents-submit-permit3.request.quote-target.json +32 -0
- package/dist/fixtures/v1/quotes-create.response.all-quotes.json +6 -3
- package/dist/fixtures/v1/quotes-create.response.private-swap.json +2 -1
- package/dist/fixtures/v1/quotes-create.response.public-swap.json +2 -1
- package/dist/fixtures/v1/tokens-list.response.default.json +1 -1
- package/dist/generated/build-digest.json +1 -1
- package/dist/v1/endpoints/quotes.d.ts +6 -1
- package/dist/v1/endpoints/quotes.js +10 -1
- package/dist/v1/endpoints/quotes.js.map +1 -1
- package/dist/v1/endpoints/registry.d.ts +5 -1
- package/dist/v1/endpoints/registry.js +2 -0
- package/dist/v1/endpoints/registry.js.map +1 -1
- package/dist/v1/endpoints/submit.d.ts +108 -0
- package/dist/v1/endpoints/submit.js +44 -1
- package/dist/v1/endpoints/submit.js.map +1 -1
- package/dist/v1/enums.d.ts +1 -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 +1 -0
- package/dist/v1/errors/catalog.js.map +1 -1
- package/dist/v1/primitives.d.ts +3 -0
- package/dist/v1/primitives.js +3 -1
- package/dist/v1/primitives.js.map +1 -1
- package/dist/v1/types.d.ts +2 -1
- package/errors/catalog.lock.json +5 -0
- package/openapi/v1.json +540 -1
- package/package.json +1 -1
package/openapi/v1.json
CHANGED
|
@@ -236,7 +236,8 @@
|
|
|
236
236
|
},
|
|
237
237
|
"required": [
|
|
238
238
|
"chainId",
|
|
239
|
-
"token"
|
|
239
|
+
"token",
|
|
240
|
+
"recipient"
|
|
240
241
|
],
|
|
241
242
|
"additionalProperties": false
|
|
242
243
|
},
|
|
@@ -1369,6 +1370,38 @@
|
|
|
1369
1370
|
"type": "null"
|
|
1370
1371
|
}
|
|
1371
1372
|
]
|
|
1373
|
+
},
|
|
1374
|
+
"vault": {
|
|
1375
|
+
"description": "This quote's intent vault: the CREATE2 address the source-chain Portal funds the intent through, derived from the quoted intent (route.salt included) — it changes whenever the salt does. It is the value to sign as erc-3009 authorization.to, permit2 spender and every permit3 leg account; a submit whose signed counterparty differs is rejected with vault-mismatch. Not case-normalized: compare it case-insensitively (isSameEvmAddress), never with ===, since a producer may publish EIP-55 checksummed while a signer sends lowercase. EVM source chains only: null or absent where the producer does not derive it (an SVM source, where the vault is a PDA).",
|
|
1376
|
+
"anyOf": [
|
|
1377
|
+
{
|
|
1378
|
+
"anyOf": [
|
|
1379
|
+
{
|
|
1380
|
+
"type": "string",
|
|
1381
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"anyOf": [
|
|
1385
|
+
{
|
|
1386
|
+
"type": "string",
|
|
1387
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"type": "string",
|
|
1391
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
1392
|
+
}
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"type": "string",
|
|
1397
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
1398
|
+
}
|
|
1399
|
+
]
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"type": "null"
|
|
1403
|
+
}
|
|
1404
|
+
]
|
|
1372
1405
|
}
|
|
1373
1406
|
},
|
|
1374
1407
|
"required": [
|
|
@@ -2430,6 +2463,38 @@
|
|
|
2430
2463
|
"type": "null"
|
|
2431
2464
|
}
|
|
2432
2465
|
]
|
|
2466
|
+
},
|
|
2467
|
+
"vault": {
|
|
2468
|
+
"description": "This quote's intent vault: the CREATE2 address the source-chain Portal funds the intent through, derived from the quoted intent (route.salt included) — it changes whenever the salt does. It is the value to sign as erc-3009 authorization.to, permit2 spender and every permit3 leg account; a submit whose signed counterparty differs is rejected with vault-mismatch. Not case-normalized: compare it case-insensitively (isSameEvmAddress), never with ===, since a producer may publish EIP-55 checksummed while a signer sends lowercase. EVM source chains only: null or absent where the producer does not derive it (an SVM source, where the vault is a PDA).",
|
|
2469
|
+
"anyOf": [
|
|
2470
|
+
{
|
|
2471
|
+
"anyOf": [
|
|
2472
|
+
{
|
|
2473
|
+
"type": "string",
|
|
2474
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"anyOf": [
|
|
2478
|
+
{
|
|
2479
|
+
"type": "string",
|
|
2480
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
2481
|
+
},
|
|
2482
|
+
{
|
|
2483
|
+
"type": "string",
|
|
2484
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
2485
|
+
}
|
|
2486
|
+
]
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"type": "string",
|
|
2490
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
2491
|
+
}
|
|
2492
|
+
]
|
|
2493
|
+
},
|
|
2494
|
+
{
|
|
2495
|
+
"type": "null"
|
|
2496
|
+
}
|
|
2497
|
+
]
|
|
2433
2498
|
}
|
|
2434
2499
|
},
|
|
2435
2500
|
"required": [
|
|
@@ -2725,6 +2790,472 @@
|
|
|
2725
2790
|
}
|
|
2726
2791
|
}
|
|
2727
2792
|
},
|
|
2793
|
+
"/v1/intents/submit/permit2": {
|
|
2794
|
+
"post": {
|
|
2795
|
+
"operationId": "intents.submit.permit2",
|
|
2796
|
+
"summary": "Submit a signed permit2 funding authorization. 202 with a gasless job on first sight; a duplicate signature returns the existing job with 200.",
|
|
2797
|
+
"tags": [
|
|
2798
|
+
"intents",
|
|
2799
|
+
"stable"
|
|
2800
|
+
],
|
|
2801
|
+
"requestBody": {
|
|
2802
|
+
"required": true,
|
|
2803
|
+
"content": {
|
|
2804
|
+
"application/json": {
|
|
2805
|
+
"schema": {
|
|
2806
|
+
"type": "object",
|
|
2807
|
+
"properties": {
|
|
2808
|
+
"chainId": {
|
|
2809
|
+
"type": "integer",
|
|
2810
|
+
"exclusiveMinimum": 0,
|
|
2811
|
+
"maximum": 9007199254740991
|
|
2812
|
+
},
|
|
2813
|
+
"target": {
|
|
2814
|
+
"type": "object",
|
|
2815
|
+
"properties": {
|
|
2816
|
+
"quoteId": {
|
|
2817
|
+
"type": "string",
|
|
2818
|
+
"pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": [
|
|
2822
|
+
"quoteId"
|
|
2823
|
+
],
|
|
2824
|
+
"additionalProperties": false
|
|
2825
|
+
},
|
|
2826
|
+
"permit2": {
|
|
2827
|
+
"type": "object",
|
|
2828
|
+
"properties": {
|
|
2829
|
+
"details": {
|
|
2830
|
+
"type": "object",
|
|
2831
|
+
"properties": {
|
|
2832
|
+
"token": {
|
|
2833
|
+
"type": "string",
|
|
2834
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
2835
|
+
},
|
|
2836
|
+
"amount": {
|
|
2837
|
+
"type": "string",
|
|
2838
|
+
"maxLength": 78,
|
|
2839
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
2840
|
+
},
|
|
2841
|
+
"expiration": {
|
|
2842
|
+
"type": "integer",
|
|
2843
|
+
"minimum": 0,
|
|
2844
|
+
"maximum": 281474976710655,
|
|
2845
|
+
"description": "Permit2 allowance expiration (uint48, Unix seconds)"
|
|
2846
|
+
},
|
|
2847
|
+
"nonce": {
|
|
2848
|
+
"type": "integer",
|
|
2849
|
+
"minimum": 0,
|
|
2850
|
+
"maximum": 281474976710655
|
|
2851
|
+
}
|
|
2852
|
+
},
|
|
2853
|
+
"required": [
|
|
2854
|
+
"token",
|
|
2855
|
+
"amount",
|
|
2856
|
+
"expiration",
|
|
2857
|
+
"nonce"
|
|
2858
|
+
]
|
|
2859
|
+
},
|
|
2860
|
+
"spender": {
|
|
2861
|
+
"type": "string",
|
|
2862
|
+
"pattern": "^0x[0-9a-fA-F]{40}$",
|
|
2863
|
+
"description": "The Permit2 spender — on a quote target, the quote's execution.vault"
|
|
2864
|
+
},
|
|
2865
|
+
"sigDeadline": {
|
|
2866
|
+
"type": "string",
|
|
2867
|
+
"maxLength": 78,
|
|
2868
|
+
"pattern": "^(0|[1-9]\\d*)$",
|
|
2869
|
+
"description": "Signature deadline (uint256 Unix seconds, decimal string; max-uint = no expiry)"
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
"required": [
|
|
2873
|
+
"details",
|
|
2874
|
+
"spender",
|
|
2875
|
+
"sigDeadline"
|
|
2876
|
+
]
|
|
2877
|
+
},
|
|
2878
|
+
"signature": {
|
|
2879
|
+
"type": "string",
|
|
2880
|
+
"minLength": 130,
|
|
2881
|
+
"maxLength": 132,
|
|
2882
|
+
"pattern": "^0x(?:[0-9a-fA-F]{2})*$"
|
|
2883
|
+
}
|
|
2884
|
+
},
|
|
2885
|
+
"required": [
|
|
2886
|
+
"chainId",
|
|
2887
|
+
"target",
|
|
2888
|
+
"permit2",
|
|
2889
|
+
"signature"
|
|
2890
|
+
]
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
},
|
|
2895
|
+
"responses": {
|
|
2896
|
+
"202": {
|
|
2897
|
+
"description": "Success",
|
|
2898
|
+
"content": {
|
|
2899
|
+
"application/json": {
|
|
2900
|
+
"schema": {
|
|
2901
|
+
"type": "object",
|
|
2902
|
+
"properties": {
|
|
2903
|
+
"id": {
|
|
2904
|
+
"type": "string",
|
|
2905
|
+
"pattern": "^gasless:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{24})$"
|
|
2906
|
+
},
|
|
2907
|
+
"status": {
|
|
2908
|
+
"type": "string",
|
|
2909
|
+
"enum": [
|
|
2910
|
+
"pending",
|
|
2911
|
+
"processing",
|
|
2912
|
+
"published",
|
|
2913
|
+
"partial",
|
|
2914
|
+
"failed",
|
|
2915
|
+
"unknown"
|
|
2916
|
+
]
|
|
2917
|
+
},
|
|
2918
|
+
"signatureHash": {
|
|
2919
|
+
"type": "string",
|
|
2920
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
2921
|
+
},
|
|
2922
|
+
"subStatuses": {
|
|
2923
|
+
"type": "array",
|
|
2924
|
+
"items": {
|
|
2925
|
+
"type": "object",
|
|
2926
|
+
"properties": {
|
|
2927
|
+
"chainId": {
|
|
2928
|
+
"type": "integer",
|
|
2929
|
+
"exclusiveMinimum": 0,
|
|
2930
|
+
"maximum": 9007199254740991
|
|
2931
|
+
},
|
|
2932
|
+
"quoteIds": {
|
|
2933
|
+
"type": "array",
|
|
2934
|
+
"items": {
|
|
2935
|
+
"type": "string",
|
|
2936
|
+
"pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
2937
|
+
}
|
|
2938
|
+
},
|
|
2939
|
+
"txHash": {
|
|
2940
|
+
"anyOf": [
|
|
2941
|
+
{
|
|
2942
|
+
"type": "string"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"type": "null"
|
|
2946
|
+
}
|
|
2947
|
+
]
|
|
2948
|
+
},
|
|
2949
|
+
"intentHashes": {
|
|
2950
|
+
"type": "array",
|
|
2951
|
+
"items": {
|
|
2952
|
+
"type": "string",
|
|
2953
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
2954
|
+
}
|
|
2955
|
+
},
|
|
2956
|
+
"state": {
|
|
2957
|
+
"type": "string",
|
|
2958
|
+
"enum": [
|
|
2959
|
+
"pending",
|
|
2960
|
+
"submitted",
|
|
2961
|
+
"published",
|
|
2962
|
+
"failed"
|
|
2963
|
+
]
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"required": [
|
|
2967
|
+
"chainId",
|
|
2968
|
+
"quoteIds",
|
|
2969
|
+
"txHash",
|
|
2970
|
+
"intentHashes",
|
|
2971
|
+
"state"
|
|
2972
|
+
],
|
|
2973
|
+
"additionalProperties": {}
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
"createdAt": {
|
|
2977
|
+
"type": "integer",
|
|
2978
|
+
"minimum": 0,
|
|
2979
|
+
"maximum": 4102444800
|
|
2980
|
+
},
|
|
2981
|
+
"updatedAt": {
|
|
2982
|
+
"type": "integer",
|
|
2983
|
+
"minimum": 0,
|
|
2984
|
+
"maximum": 4102444800
|
|
2985
|
+
}
|
|
2986
|
+
},
|
|
2987
|
+
"required": [
|
|
2988
|
+
"id",
|
|
2989
|
+
"status",
|
|
2990
|
+
"signatureHash",
|
|
2991
|
+
"subStatuses",
|
|
2992
|
+
"createdAt",
|
|
2993
|
+
"updatedAt"
|
|
2994
|
+
],
|
|
2995
|
+
"additionalProperties": {}
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
},
|
|
3000
|
+
"default": {
|
|
3001
|
+
"description": "Error (RFC 9457 problem+json; see x-error-catalog)",
|
|
3002
|
+
"content": {
|
|
3003
|
+
"application/problem+json": {
|
|
3004
|
+
"schema": {
|
|
3005
|
+
"$ref": "#/components/schemas/Problem"
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
"/v1/intents/submit/permit3": {
|
|
3014
|
+
"post": {
|
|
3015
|
+
"operationId": "intents.submit.permit3",
|
|
3016
|
+
"summary": "Submit a signed permit3 funding authorization. 202 with a gasless job on first sight; a duplicate signature returns the existing job with 200.",
|
|
3017
|
+
"tags": [
|
|
3018
|
+
"intents",
|
|
3019
|
+
"stable"
|
|
3020
|
+
],
|
|
3021
|
+
"requestBody": {
|
|
3022
|
+
"required": true,
|
|
3023
|
+
"content": {
|
|
3024
|
+
"application/json": {
|
|
3025
|
+
"schema": {
|
|
3026
|
+
"type": "object",
|
|
3027
|
+
"properties": {
|
|
3028
|
+
"target": {
|
|
3029
|
+
"type": "object",
|
|
3030
|
+
"properties": {
|
|
3031
|
+
"quoteId": {
|
|
3032
|
+
"type": "string",
|
|
3033
|
+
"pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
"required": [
|
|
3037
|
+
"quoteId"
|
|
3038
|
+
],
|
|
3039
|
+
"additionalProperties": false
|
|
3040
|
+
},
|
|
3041
|
+
"permit3": {
|
|
3042
|
+
"type": "object",
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"owner": {
|
|
3045
|
+
"type": "string",
|
|
3046
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
3047
|
+
},
|
|
3048
|
+
"permitContract": {
|
|
3049
|
+
"type": "string",
|
|
3050
|
+
"pattern": "^0x[0-9a-fA-F]{40}$",
|
|
3051
|
+
"description": "The Permit3 contract the legs were signed against (the EIP-712 verifyingContract)"
|
|
3052
|
+
},
|
|
3053
|
+
"salt": {
|
|
3054
|
+
"type": "string",
|
|
3055
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
3056
|
+
},
|
|
3057
|
+
"deadline": {
|
|
3058
|
+
"type": "integer",
|
|
3059
|
+
"minimum": 0,
|
|
3060
|
+
"maximum": 4102444800
|
|
3061
|
+
},
|
|
3062
|
+
"timestamp": {
|
|
3063
|
+
"type": "integer",
|
|
3064
|
+
"minimum": 0,
|
|
3065
|
+
"maximum": 281474976710655,
|
|
3066
|
+
"description": "Permit3 ordering timestamp (uint48, Unix seconds)"
|
|
3067
|
+
},
|
|
3068
|
+
"merkleRoot": {
|
|
3069
|
+
"type": "string",
|
|
3070
|
+
"pattern": "^0x[0-9a-fA-F]{64}$",
|
|
3071
|
+
"description": "Merkle root over the legs, as signed"
|
|
3072
|
+
},
|
|
3073
|
+
"permits": {
|
|
3074
|
+
"minItems": 1,
|
|
3075
|
+
"type": "array",
|
|
3076
|
+
"items": {
|
|
3077
|
+
"type": "object",
|
|
3078
|
+
"properties": {
|
|
3079
|
+
"chainId": {
|
|
3080
|
+
"type": "integer",
|
|
3081
|
+
"exclusiveMinimum": 0,
|
|
3082
|
+
"maximum": 9007199254740991
|
|
3083
|
+
},
|
|
3084
|
+
"token": {
|
|
3085
|
+
"type": "string",
|
|
3086
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
3087
|
+
},
|
|
3088
|
+
"amount": {
|
|
3089
|
+
"type": "string",
|
|
3090
|
+
"maxLength": 78,
|
|
3091
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
3092
|
+
},
|
|
3093
|
+
"account": {
|
|
3094
|
+
"type": "string",
|
|
3095
|
+
"pattern": "^0x[0-9a-fA-F]{40}$",
|
|
3096
|
+
"description": "Recipient (transfer mode) or spender (allowance mode) — on a quote target, the quote's execution.vault"
|
|
3097
|
+
},
|
|
3098
|
+
"modeOrExpiration": {
|
|
3099
|
+
"type": "integer",
|
|
3100
|
+
"minimum": 0,
|
|
3101
|
+
"maximum": 281474976710655,
|
|
3102
|
+
"description": "0 = transfer mode (funds pushed to account); any other value = allowance mode with this expiration, Unix seconds"
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
"required": [
|
|
3106
|
+
"chainId",
|
|
3107
|
+
"token",
|
|
3108
|
+
"amount",
|
|
3109
|
+
"account",
|
|
3110
|
+
"modeOrExpiration"
|
|
3111
|
+
]
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
},
|
|
3115
|
+
"required": [
|
|
3116
|
+
"owner",
|
|
3117
|
+
"permitContract",
|
|
3118
|
+
"salt",
|
|
3119
|
+
"deadline",
|
|
3120
|
+
"timestamp",
|
|
3121
|
+
"merkleRoot",
|
|
3122
|
+
"permits"
|
|
3123
|
+
]
|
|
3124
|
+
},
|
|
3125
|
+
"signature": {
|
|
3126
|
+
"type": "string",
|
|
3127
|
+
"minLength": 130,
|
|
3128
|
+
"maxLength": 132,
|
|
3129
|
+
"pattern": "^0x(?:[0-9a-fA-F]{2})*$"
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
"required": [
|
|
3133
|
+
"target",
|
|
3134
|
+
"permit3",
|
|
3135
|
+
"signature"
|
|
3136
|
+
]
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
3141
|
+
"responses": {
|
|
3142
|
+
"202": {
|
|
3143
|
+
"description": "Success",
|
|
3144
|
+
"content": {
|
|
3145
|
+
"application/json": {
|
|
3146
|
+
"schema": {
|
|
3147
|
+
"type": "object",
|
|
3148
|
+
"properties": {
|
|
3149
|
+
"id": {
|
|
3150
|
+
"type": "string",
|
|
3151
|
+
"pattern": "^gasless:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{24})$"
|
|
3152
|
+
},
|
|
3153
|
+
"status": {
|
|
3154
|
+
"type": "string",
|
|
3155
|
+
"enum": [
|
|
3156
|
+
"pending",
|
|
3157
|
+
"processing",
|
|
3158
|
+
"published",
|
|
3159
|
+
"partial",
|
|
3160
|
+
"failed",
|
|
3161
|
+
"unknown"
|
|
3162
|
+
]
|
|
3163
|
+
},
|
|
3164
|
+
"signatureHash": {
|
|
3165
|
+
"type": "string",
|
|
3166
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
3167
|
+
},
|
|
3168
|
+
"subStatuses": {
|
|
3169
|
+
"type": "array",
|
|
3170
|
+
"items": {
|
|
3171
|
+
"type": "object",
|
|
3172
|
+
"properties": {
|
|
3173
|
+
"chainId": {
|
|
3174
|
+
"type": "integer",
|
|
3175
|
+
"exclusiveMinimum": 0,
|
|
3176
|
+
"maximum": 9007199254740991
|
|
3177
|
+
},
|
|
3178
|
+
"quoteIds": {
|
|
3179
|
+
"type": "array",
|
|
3180
|
+
"items": {
|
|
3181
|
+
"type": "string",
|
|
3182
|
+
"pattern": "^quote:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3183
|
+
}
|
|
3184
|
+
},
|
|
3185
|
+
"txHash": {
|
|
3186
|
+
"anyOf": [
|
|
3187
|
+
{
|
|
3188
|
+
"type": "string"
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
"type": "null"
|
|
3192
|
+
}
|
|
3193
|
+
]
|
|
3194
|
+
},
|
|
3195
|
+
"intentHashes": {
|
|
3196
|
+
"type": "array",
|
|
3197
|
+
"items": {
|
|
3198
|
+
"type": "string",
|
|
3199
|
+
"pattern": "^0x[0-9a-fA-F]{64}$"
|
|
3200
|
+
}
|
|
3201
|
+
},
|
|
3202
|
+
"state": {
|
|
3203
|
+
"type": "string",
|
|
3204
|
+
"enum": [
|
|
3205
|
+
"pending",
|
|
3206
|
+
"submitted",
|
|
3207
|
+
"published",
|
|
3208
|
+
"failed"
|
|
3209
|
+
]
|
|
3210
|
+
}
|
|
3211
|
+
},
|
|
3212
|
+
"required": [
|
|
3213
|
+
"chainId",
|
|
3214
|
+
"quoteIds",
|
|
3215
|
+
"txHash",
|
|
3216
|
+
"intentHashes",
|
|
3217
|
+
"state"
|
|
3218
|
+
],
|
|
3219
|
+
"additionalProperties": {}
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
"createdAt": {
|
|
3223
|
+
"type": "integer",
|
|
3224
|
+
"minimum": 0,
|
|
3225
|
+
"maximum": 4102444800
|
|
3226
|
+
},
|
|
3227
|
+
"updatedAt": {
|
|
3228
|
+
"type": "integer",
|
|
3229
|
+
"minimum": 0,
|
|
3230
|
+
"maximum": 4102444800
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
"required": [
|
|
3234
|
+
"id",
|
|
3235
|
+
"status",
|
|
3236
|
+
"signatureHash",
|
|
3237
|
+
"subStatuses",
|
|
3238
|
+
"createdAt",
|
|
3239
|
+
"updatedAt"
|
|
3240
|
+
],
|
|
3241
|
+
"additionalProperties": {}
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
"default": {
|
|
3247
|
+
"description": "Error (RFC 9457 problem+json; see x-error-catalog)",
|
|
3248
|
+
"content": {
|
|
3249
|
+
"application/problem+json": {
|
|
3250
|
+
"schema": {
|
|
3251
|
+
"$ref": "#/components/schemas/Problem"
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
},
|
|
2728
3259
|
"/v1/deposit-addresses/submit/erc-3009": {
|
|
2729
3260
|
"post": {
|
|
2730
3261
|
"operationId": "deposit-addresses.submit.erc-3009",
|
|
@@ -5167,6 +5698,14 @@
|
|
|
5167
5698
|
"audience": "write",
|
|
5168
5699
|
"legacyCodes": []
|
|
5169
5700
|
},
|
|
5701
|
+
{
|
|
5702
|
+
"code": "vault-mismatch",
|
|
5703
|
+
"status": 400,
|
|
5704
|
+
"title": "The signed counterparty does not equal the quote's intent vault (execution.vault)",
|
|
5705
|
+
"type": "https://api.eco.com/v1/errors/vault-mismatch",
|
|
5706
|
+
"audience": "write",
|
|
5707
|
+
"legacyCodes": []
|
|
5708
|
+
},
|
|
5170
5709
|
{
|
|
5171
5710
|
"code": "invalid-signature",
|
|
5172
5711
|
"status": 401,
|
package/package.json
CHANGED