@aurora-is-near/intents-connect 7.20.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 +176 -0
- package/dist/api/createIntentsConnectApi.d.ts +31 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/types.d.ts +93 -0
- package/dist/chains.d.ts +27 -0
- package/dist/chunks/recovery-BBQaAcqE.js +1034 -0
- package/dist/chunks/recovery-BBQaAcqE.js.map +1 -0
- package/dist/errors.d.ts +94 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +197 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +7 -0
- package/dist/machine/context.d.ts +39 -0
- package/dist/machine/guards/checks/amountMustExceedFee.d.ts +2 -0
- package/dist/machine/guards/checks/destinationTokenIsTouched.d.ts +12 -0
- package/dist/machine/guards/checks/feeMustBeEstimated.d.ts +9 -0
- package/dist/machine/guards/checks/memoPresentForStellar.d.ts +6 -0
- package/dist/machine/guards/checks/mustBeSignedBeforeDeposit.d.ts +8 -0
- package/dist/machine/guards/checks/mustHaveSigningPayload.d.ts +7 -0
- package/dist/machine/guards/checks/noExecutionInFlight.d.ts +7 -0
- package/dist/machine/guards/checks/originNetworkMatches.d.ts +5 -0
- package/dist/machine/guards/checks/publicKeyMatchesStandard.d.ts +7 -0
- package/dist/machine/guards/checks/quoteMustNotHaveMoved.d.ts +8 -0
- package/dist/machine/guards/checks/recipientOnlyOnOutOperation.d.ts +11 -0
- package/dist/machine/guards/checks/round1MustBeStepless.d.ts +8 -0
- package/dist/machine/guards/checks/stepShapeIsLegal.d.ts +7 -0
- package/dist/machine/guards/checks/stepsRequiredForRealCreate.d.ts +6 -0
- package/dist/machine/guards/checks/strategiesAreExclusive.d.ts +17 -0
- package/dist/machine/guards/index.d.ts +19 -0
- package/dist/machine/index.d.ts +4 -0
- package/dist/machine/machine.d.ts +50 -0
- package/dist/machine/phases.d.ts +48 -0
- package/dist/react/IntentsConnectProvider.d.ts +12 -0
- package/dist/react/context.d.ts +12 -0
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.js +149 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/useExecution.d.ts +42 -0
- package/dist/recovery.d.ts +27 -0
- package/dist/runner/createExecutionRunner.d.ts +2 -0
- package/dist/runner/index.d.ts +2 -0
- package/dist/runner/types.d.ts +146 -0
- package/dist/signers/index.d.ts +2 -0
- package/dist/signers/intentsConnect.d.ts +43 -0
- package/dist/signers/standards/encoding.d.ts +15 -0
- package/dist/signers/standards/erc191.d.ts +18 -0
- package/dist/signers/standards/index.d.ts +12 -0
- package/dist/signers/standards/nep413.d.ts +22 -0
- package/dist/signers/standards/rawEd25519.d.ts +20 -0
- package/dist/signers/standards/sep53.d.ts +22 -0
- package/dist/types/execution.d.ts +133 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/providers.d.ts +63 -0
- package/dist/types/recipe.d.ts +38 -0
- package/dist/types/signing.d.ts +70 -0
- package/dist/types/transfer.d.ts +60 -0
- package/dist/types/wallet.d.ts +53 -0
- package/package.json +54 -0
- package/react/package.json +8 -0
- package/src/api/createIntentsConnectApi.test.ts +146 -0
- package/src/api/createIntentsConnectApi.ts +263 -0
- package/src/api/generated/conformance.ts +233 -0
- package/src/api/generated/openapi.ts +995 -0
- package/src/api/index.ts +17 -0
- package/src/api/types.ts +138 -0
- package/src/chains.ts +103 -0
- package/src/errors.ts +234 -0
- package/src/index.ts +73 -0
- package/src/logger.ts +21 -0
- package/src/machine/context.ts +56 -0
- package/src/machine/guards/checks/amountMustExceedFee.ts +14 -0
- package/src/machine/guards/checks/destinationTokenIsTouched.ts +31 -0
- package/src/machine/guards/checks/feeMustBeEstimated.ts +22 -0
- package/src/machine/guards/checks/memoPresentForStellar.ts +20 -0
- package/src/machine/guards/checks/mustBeSignedBeforeDeposit.ts +17 -0
- package/src/machine/guards/checks/mustHaveSigningPayload.ts +19 -0
- package/src/machine/guards/checks/noExecutionInFlight.ts +19 -0
- package/src/machine/guards/checks/originNetworkMatches.ts +23 -0
- package/src/machine/guards/checks/publicKeyMatchesStandard.ts +28 -0
- package/src/machine/guards/checks/quoteMustNotHaveMoved.ts +20 -0
- package/src/machine/guards/checks/recipientOnlyOnOutOperation.ts +23 -0
- package/src/machine/guards/checks/round1MustBeStepless.ts +17 -0
- package/src/machine/guards/checks/stepShapeIsLegal.ts +79 -0
- package/src/machine/guards/checks/stepsRequiredForRealCreate.ts +12 -0
- package/src/machine/guards/checks/strategiesAreExclusive.ts +35 -0
- package/src/machine/guards/guards.test.ts +317 -0
- package/src/machine/guards/index.ts +22 -0
- package/src/machine/index.ts +15 -0
- package/src/machine/machine.test.ts +131 -0
- package/src/machine/machine.ts +113 -0
- package/src/machine/phases.ts +81 -0
- package/src/react/IntentsConnectProvider.tsx +61 -0
- package/src/react/context.ts +34 -0
- package/src/react/index.ts +14 -0
- package/src/react/useExecution.test.tsx +281 -0
- package/src/react/useExecution.ts +246 -0
- package/src/recovery.test.ts +44 -0
- package/src/recovery.ts +45 -0
- package/src/runner/createExecutionRunner.test.ts +1388 -0
- package/src/runner/createExecutionRunner.ts +1156 -0
- package/src/runner/index.ts +9 -0
- package/src/runner/types.ts +148 -0
- package/src/signers/index.ts +7 -0
- package/src/signers/intentsConnect.ts +210 -0
- package/src/signers/signers.test.ts +415 -0
- package/src/signers/standards/encoding.ts +89 -0
- package/src/signers/standards/erc191.ts +61 -0
- package/src/signers/standards/index.ts +20 -0
- package/src/signers/standards/nep413.ts +84 -0
- package/src/signers/standards/rawEd25519.ts +46 -0
- package/src/signers/standards/sep53.ts +74 -0
- package/src/tests/setup.ts +4 -0
- package/src/types/execution.ts +177 -0
- package/src/types/index.ts +6 -0
- package/src/types/providers.ts +71 -0
- package/src/types/recipe.ts +41 -0
- package/src/types/signing.ts +99 -0
- package/src/types/transfer.ts +90 -0
- package/src/types/wallet.ts +60 -0
|
@@ -0,0 +1,995 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* GENERATED FILE — DO NOT EDIT.
|
|
4
|
+
*
|
|
5
|
+
* Run `yarn generate:api` to refresh from the OpenAPI document:
|
|
6
|
+
* https://intents-connect-alpha-api.aurora.dev/swagger/openapi.json
|
|
7
|
+
*
|
|
8
|
+
* Not part of this package's public API. See ./conformance.ts for how these
|
|
9
|
+
* types are used to detect wire-contract drift.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface paths {
|
|
13
|
+
"/api/v1/executions/deposit/submit": {
|
|
14
|
+
parameters: {
|
|
15
|
+
query?: never;
|
|
16
|
+
header?: never;
|
|
17
|
+
path?: never;
|
|
18
|
+
cookie?: never;
|
|
19
|
+
};
|
|
20
|
+
get?: never;
|
|
21
|
+
put?: never;
|
|
22
|
+
/**
|
|
23
|
+
* Record a deposit transaction hash
|
|
24
|
+
* @description Records the origin-chain deposit transaction hash and notifies 1click. For MEMO deposit-mode chains (e.g. Stellar) the memo is required: it identifies the execution together with the deposit address and is forwarded to 1click. The memo is returned in the create and list responses, and omitting it for a MEMO-mode deposit returns 404. SIMPLE-mode chains (unique deposit address) omit the memo.
|
|
25
|
+
*/
|
|
26
|
+
post: {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/** @description Deposit transaction */
|
|
34
|
+
requestBody: {
|
|
35
|
+
content: {
|
|
36
|
+
"application/json": components["schemas"]["controllers.submitDepositRequestDoc"];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
responses: {
|
|
40
|
+
/** @description OK */
|
|
41
|
+
200: {
|
|
42
|
+
headers: {
|
|
43
|
+
[name: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
content: {
|
|
46
|
+
"application/json": components["schemas"]["controllers.statusResultResponse"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/** @description Bad Request */
|
|
50
|
+
400: {
|
|
51
|
+
headers: {
|
|
52
|
+
[name: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
content: {
|
|
55
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/** @description Not Found */
|
|
59
|
+
404: {
|
|
60
|
+
headers: {
|
|
61
|
+
[name: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
content: {
|
|
64
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** @description Conflict */
|
|
68
|
+
409: {
|
|
69
|
+
headers: {
|
|
70
|
+
[name: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
content: {
|
|
73
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
/** @description Internal Server Error */
|
|
77
|
+
500: {
|
|
78
|
+
headers: {
|
|
79
|
+
[name: string]: unknown;
|
|
80
|
+
};
|
|
81
|
+
content: {
|
|
82
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
delete?: never;
|
|
88
|
+
options?: never;
|
|
89
|
+
head?: never;
|
|
90
|
+
patch?: never;
|
|
91
|
+
trace?: never;
|
|
92
|
+
};
|
|
93
|
+
"/api/v1/executions/{wallet}": {
|
|
94
|
+
parameters: {
|
|
95
|
+
query?: never;
|
|
96
|
+
header?: never;
|
|
97
|
+
path?: never;
|
|
98
|
+
cookie?: never;
|
|
99
|
+
};
|
|
100
|
+
/** List executions for a wallet */
|
|
101
|
+
get: {
|
|
102
|
+
parameters: {
|
|
103
|
+
query?: {
|
|
104
|
+
/** @description Optional execution UUID filter. Accepts a single UUID or comma-separated UUIDs. */
|
|
105
|
+
id?: string;
|
|
106
|
+
/** @description Optional execution status filter. Accepts a single status or comma-separated statuses. */
|
|
107
|
+
status?: "CREATED" | "DEPOSIT_PENDING" | "DEPOSIT_PROCESSING" | "OPERATION_PENDING" | "OPERATION_PROCESSING" | "SUCCESS" | "DEPOSIT_FAILED" | "OPERATION_FAILED" | "EXPIRED";
|
|
108
|
+
};
|
|
109
|
+
header?: never;
|
|
110
|
+
path: {
|
|
111
|
+
/** @description Origin wallet identifier. */
|
|
112
|
+
wallet: string;
|
|
113
|
+
};
|
|
114
|
+
cookie?: never;
|
|
115
|
+
};
|
|
116
|
+
requestBody?: never;
|
|
117
|
+
responses: {
|
|
118
|
+
/** @description OK */
|
|
119
|
+
200: {
|
|
120
|
+
headers: {
|
|
121
|
+
[name: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
content: {
|
|
124
|
+
"application/json": components["schemas"]["controllers.executionListResponse"];
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/** @description Bad Request */
|
|
128
|
+
400: {
|
|
129
|
+
headers: {
|
|
130
|
+
[name: string]: unknown;
|
|
131
|
+
};
|
|
132
|
+
content: {
|
|
133
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
/** @description Internal Server Error */
|
|
137
|
+
500: {
|
|
138
|
+
headers: {
|
|
139
|
+
[name: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
content: {
|
|
142
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
put?: never;
|
|
148
|
+
/**
|
|
149
|
+
* Create a quote-backed execution
|
|
150
|
+
* @description Creates or dry-runs a quote-backed execution. In non-dry mode the response includes the MPC intent payload that the frontend must sign. The destination type selects the step shape - EVM destinations send ExecutionStepEVM objects, Solana destinations (type=solana) send ExecutionStepSolana objects under the same steps key. The type field accepts only evm or solana and defaults to evm when omitted - any other value is rejected with 400. Bridge-in requests execute steps on the destination chain after the 1click deposit succeeds. Out-operation requests execute steps on the origin chain and transfer the resulting tokens to the 1click deposit address. Solana supports bridge-in and out-operation, plus a gasless SPL model where a relayer pays the network fee in the destination token. Step objects accept only their documented fields - a key from the other step shape, a differently cased spelling of a field, the same key twice, or any field not listed is rejected with 400. Anything else a client needs to carry belongs in the step metadata object, which the backend passes through untouched. Step payloads nested more than 15 containers deep are also rejected with 400, counting the steps array itself as the first level - the metadata object is exempt. A step functionSignature may nest tuples or arrays at most 6 levels deep and may be at most 1024 bytes. An EVM steps array may hold at most 30 steps and a Solana one at most 50. Request bodies are limited to 256 KB. For Stellar origins the response includes quote.depositMemo and the deposit transfer must include that memo or the bridge will not settle.
|
|
151
|
+
*/
|
|
152
|
+
post: {
|
|
153
|
+
parameters: {
|
|
154
|
+
query?: never;
|
|
155
|
+
header: {
|
|
156
|
+
/** @description API key generated at https://studio.aurora.dev */
|
|
157
|
+
"x-api-key": string;
|
|
158
|
+
};
|
|
159
|
+
path: {
|
|
160
|
+
/** @description Origin wallet identifier. Supports EVM addresses, NEAR accounts, NEAR implicit accounts, Solana base58 public keys, Stellar G-addresses, TON user-friendly addresses (TON requires body.publicKey), and Tron base58 (T...) addresses. */
|
|
161
|
+
wallet: string;
|
|
162
|
+
};
|
|
163
|
+
cookie?: never;
|
|
164
|
+
};
|
|
165
|
+
/** @description Execution request. For type=solana, each step is an executionStepSolanaDoc under the same steps key. */
|
|
166
|
+
requestBody: {
|
|
167
|
+
content: {
|
|
168
|
+
"application/json": components["schemas"]["controllers.createExecutionRequestDoc"];
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
responses: {
|
|
172
|
+
/** @description Dry-run execution quote. */
|
|
173
|
+
200: {
|
|
174
|
+
headers: {
|
|
175
|
+
[name: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
content: {
|
|
178
|
+
"application/json": components["schemas"]["controllers.executionObjectResponse"];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
/** @description Execution created and paired transaction prepared. */
|
|
182
|
+
201: {
|
|
183
|
+
headers: {
|
|
184
|
+
[name: string]: unknown;
|
|
185
|
+
};
|
|
186
|
+
content: {
|
|
187
|
+
"application/json": components["schemas"]["controllers.executionObjectResponse"];
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/** @description Bad Request */
|
|
191
|
+
400: {
|
|
192
|
+
headers: {
|
|
193
|
+
[name: string]: unknown;
|
|
194
|
+
};
|
|
195
|
+
content: {
|
|
196
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/** @description Missing or invalid api token */
|
|
200
|
+
401: {
|
|
201
|
+
headers: {
|
|
202
|
+
[name: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
content: {
|
|
205
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/** @description Conflict */
|
|
209
|
+
409: {
|
|
210
|
+
headers: {
|
|
211
|
+
[name: string]: unknown;
|
|
212
|
+
};
|
|
213
|
+
content: {
|
|
214
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
/** @description Request body exceeds the configured size limit. */
|
|
218
|
+
413: {
|
|
219
|
+
headers: {
|
|
220
|
+
[name: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
content: {
|
|
223
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
/** @description Internal Server Error */
|
|
227
|
+
500: {
|
|
228
|
+
headers: {
|
|
229
|
+
[name: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
content: {
|
|
232
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
/** @description Bad Gateway */
|
|
236
|
+
502: {
|
|
237
|
+
headers: {
|
|
238
|
+
[name: string]: unknown;
|
|
239
|
+
};
|
|
240
|
+
content: {
|
|
241
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
/** @description No Solana durable nonce account available (bridge-in / out-op). Retry shortly. */
|
|
245
|
+
503: {
|
|
246
|
+
headers: {
|
|
247
|
+
[name: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
content: {
|
|
250
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
delete?: never;
|
|
256
|
+
options?: never;
|
|
257
|
+
head?: never;
|
|
258
|
+
patch?: never;
|
|
259
|
+
trace?: never;
|
|
260
|
+
};
|
|
261
|
+
"/api/v1/executions/{wallet}/intermediary": {
|
|
262
|
+
parameters: {
|
|
263
|
+
query?: never;
|
|
264
|
+
header?: never;
|
|
265
|
+
path?: never;
|
|
266
|
+
cookie?: never;
|
|
267
|
+
};
|
|
268
|
+
/** Derive intermediary addresses (EVM + Solana) */
|
|
269
|
+
get: {
|
|
270
|
+
parameters: {
|
|
271
|
+
query?: {
|
|
272
|
+
/** @description Origin wallet ed25519 public key (ed25519:<base58>). Required for TON wallets and must be the wallet's owner key (the address must re-derive from it). Ignored otherwise. */
|
|
273
|
+
publicKey?: string;
|
|
274
|
+
};
|
|
275
|
+
header?: never;
|
|
276
|
+
path: {
|
|
277
|
+
/** @description Origin wallet identifier. Supports EVM addresses, NEAR accounts, NEAR implicit accounts, Solana base58 public keys, Stellar G-addresses, TON user-friendly addresses, and Tron base58 (T...) addresses. */
|
|
278
|
+
wallet: string;
|
|
279
|
+
};
|
|
280
|
+
cookie?: never;
|
|
281
|
+
};
|
|
282
|
+
requestBody?: never;
|
|
283
|
+
responses: {
|
|
284
|
+
/** @description OK */
|
|
285
|
+
200: {
|
|
286
|
+
headers: {
|
|
287
|
+
[name: string]: unknown;
|
|
288
|
+
};
|
|
289
|
+
content: {
|
|
290
|
+
"application/json": components["schemas"]["controllers.intermediaryResponse"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/** @description Bad Request */
|
|
294
|
+
400: {
|
|
295
|
+
headers: {
|
|
296
|
+
[name: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
content: {
|
|
299
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
/** @description Bad Gateway */
|
|
303
|
+
502: {
|
|
304
|
+
headers: {
|
|
305
|
+
[name: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
content: {
|
|
308
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
put?: never;
|
|
314
|
+
post?: never;
|
|
315
|
+
delete?: never;
|
|
316
|
+
options?: never;
|
|
317
|
+
head?: never;
|
|
318
|
+
patch?: never;
|
|
319
|
+
trace?: never;
|
|
320
|
+
};
|
|
321
|
+
"/api/v1/executions/{wallet}/steps": {
|
|
322
|
+
parameters: {
|
|
323
|
+
query?: never;
|
|
324
|
+
header?: never;
|
|
325
|
+
path?: never;
|
|
326
|
+
cookie?: never;
|
|
327
|
+
};
|
|
328
|
+
get?: never;
|
|
329
|
+
put?: never;
|
|
330
|
+
/**
|
|
331
|
+
* Create a steps-only execution
|
|
332
|
+
* @description Creates or dry-runs an execution without a 1click quote. The intermediary is expected to already hold the destination token. Non-dry requests include a signing payload in result.details. The destination type selects the step shape - EVM destinations send ExecutionStepEVM objects, Solana destinations (type=solana) send ExecutionStepSolana objects under the same steps key. The type field accepts only evm or solana and defaults to evm when omitted - any other value is rejected with 400. Solana steps-only supports native SOL and SPL destinations, where the SPL path uses the gasless relayer model. Step objects accept only their documented fields - a key from the other step shape, a differently cased spelling of a field, the same key twice, or any field not listed is rejected with 400. Anything else a client needs to carry belongs in the step metadata object, which the backend passes through untouched. Step payloads nested more than 15 containers deep are also rejected with 400, counting the steps array itself as the first level - the metadata object is exempt. A step functionSignature may nest tuples or arrays at most 6 levels deep and may be at most 1024 bytes. An EVM steps array may hold at most 30 steps and a Solana one at most 50. Request bodies are limited to 256 KB.
|
|
333
|
+
*/
|
|
334
|
+
post: {
|
|
335
|
+
parameters: {
|
|
336
|
+
query?: never;
|
|
337
|
+
header?: never;
|
|
338
|
+
path: {
|
|
339
|
+
/** @description Origin wallet identifier. Supports EVM addresses, NEAR accounts, NEAR implicit accounts, Solana base58 public keys, Stellar G-addresses, TON user-friendly addresses, and Tron base58 (T...) addresses. */
|
|
340
|
+
wallet: string;
|
|
341
|
+
};
|
|
342
|
+
cookie?: never;
|
|
343
|
+
};
|
|
344
|
+
/** @description Steps-only execution request. Steps items follow the destination type - executionStepEVMDoc for EVM, executionStepSolanaDoc for Solana (shown). */
|
|
345
|
+
requestBody: {
|
|
346
|
+
content: {
|
|
347
|
+
"application/json": components["schemas"]["controllers.createStepsExecutionRequestDoc"];
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
responses: {
|
|
351
|
+
/** @description Dry-run steps-only execution estimate. */
|
|
352
|
+
200: {
|
|
353
|
+
headers: {
|
|
354
|
+
[name: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
content: {
|
|
357
|
+
"application/json": components["schemas"]["controllers.executionObjectResponse"];
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
/** @description Steps-only execution created and paired transaction prepared. */
|
|
361
|
+
201: {
|
|
362
|
+
headers: {
|
|
363
|
+
[name: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
content: {
|
|
366
|
+
"application/json": components["schemas"]["controllers.executionObjectResponse"];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
/** @description Bad Request */
|
|
370
|
+
400: {
|
|
371
|
+
headers: {
|
|
372
|
+
[name: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
content: {
|
|
375
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
/** @description An execution for this wallet is already in progress. */
|
|
379
|
+
409: {
|
|
380
|
+
headers: {
|
|
381
|
+
[name: string]: unknown;
|
|
382
|
+
};
|
|
383
|
+
content: {
|
|
384
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/** @description Request body exceeds the configured size limit. */
|
|
388
|
+
413: {
|
|
389
|
+
headers: {
|
|
390
|
+
[name: string]: unknown;
|
|
391
|
+
};
|
|
392
|
+
content: {
|
|
393
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
/** @description Internal Server Error */
|
|
397
|
+
500: {
|
|
398
|
+
headers: {
|
|
399
|
+
[name: string]: unknown;
|
|
400
|
+
};
|
|
401
|
+
content: {
|
|
402
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
/** @description Bad Gateway */
|
|
406
|
+
502: {
|
|
407
|
+
headers: {
|
|
408
|
+
[name: string]: unknown;
|
|
409
|
+
};
|
|
410
|
+
content: {
|
|
411
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
/** @description No Solana durable nonce account available (steps-only). Retry shortly. */
|
|
415
|
+
503: {
|
|
416
|
+
headers: {
|
|
417
|
+
[name: string]: unknown;
|
|
418
|
+
};
|
|
419
|
+
content: {
|
|
420
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
delete?: never;
|
|
426
|
+
options?: never;
|
|
427
|
+
head?: never;
|
|
428
|
+
patch?: never;
|
|
429
|
+
trace?: never;
|
|
430
|
+
};
|
|
431
|
+
"/api/v1/executions/{wallet}/submit": {
|
|
432
|
+
parameters: {
|
|
433
|
+
query?: never;
|
|
434
|
+
header?: never;
|
|
435
|
+
path?: never;
|
|
436
|
+
cookie?: never;
|
|
437
|
+
};
|
|
438
|
+
get?: never;
|
|
439
|
+
put?: never;
|
|
440
|
+
/**
|
|
441
|
+
* Submit signed intent payload
|
|
442
|
+
* @description Verifies the frontend signature and stores the signed payload. If the execution is already OPERATION_PENDING, the transaction moves to SIGNING. Otherwise it remains prepared until the deposit completes.
|
|
443
|
+
*/
|
|
444
|
+
post: {
|
|
445
|
+
parameters: {
|
|
446
|
+
query?: never;
|
|
447
|
+
header?: never;
|
|
448
|
+
path: {
|
|
449
|
+
/** @description Origin wallet identifier. */
|
|
450
|
+
wallet: string;
|
|
451
|
+
};
|
|
452
|
+
cookie?: never;
|
|
453
|
+
};
|
|
454
|
+
/** @description Signed intent payload */
|
|
455
|
+
requestBody: {
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": components["schemas"]["controllers.submitSignatureRequestDoc"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
responses: {
|
|
461
|
+
/** @description OK */
|
|
462
|
+
200: {
|
|
463
|
+
headers: {
|
|
464
|
+
[name: string]: unknown;
|
|
465
|
+
};
|
|
466
|
+
content: {
|
|
467
|
+
"application/json": components["schemas"]["controllers.statusResultResponse"];
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
/** @description Bad Request */
|
|
471
|
+
400: {
|
|
472
|
+
headers: {
|
|
473
|
+
[name: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
content: {
|
|
476
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
/** @description Not Found */
|
|
480
|
+
404: {
|
|
481
|
+
headers: {
|
|
482
|
+
[name: string]: unknown;
|
|
483
|
+
};
|
|
484
|
+
content: {
|
|
485
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
/** @description Conflict */
|
|
489
|
+
409: {
|
|
490
|
+
headers: {
|
|
491
|
+
[name: string]: unknown;
|
|
492
|
+
};
|
|
493
|
+
content: {
|
|
494
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
/** @description Internal Server Error */
|
|
498
|
+
500: {
|
|
499
|
+
headers: {
|
|
500
|
+
[name: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
content: {
|
|
503
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
delete?: never;
|
|
509
|
+
options?: never;
|
|
510
|
+
head?: never;
|
|
511
|
+
patch?: never;
|
|
512
|
+
trace?: never;
|
|
513
|
+
};
|
|
514
|
+
"/api/v1/executions/{wallet}/{executionId}": {
|
|
515
|
+
parameters: {
|
|
516
|
+
query?: never;
|
|
517
|
+
header?: never;
|
|
518
|
+
path?: never;
|
|
519
|
+
cookie?: never;
|
|
520
|
+
};
|
|
521
|
+
get?: never;
|
|
522
|
+
put?: never;
|
|
523
|
+
post?: never;
|
|
524
|
+
/**
|
|
525
|
+
* Delete an execution
|
|
526
|
+
* @description Removes an execution and its transactions. Allowed only for the wallet that owns the row, only in deletable statuses (CREATED, DEPOSIT_PENDING, OPERATION_PENDING, EXPIRED, DEPOSIT_FAILED, OPERATION_FAILED). SUCCESS rows cannot be deleted. Requires a signature over "delete_execution:<executionId>" valid for the route wallet.
|
|
527
|
+
*/
|
|
528
|
+
delete: {
|
|
529
|
+
parameters: {
|
|
530
|
+
query?: never;
|
|
531
|
+
header?: never;
|
|
532
|
+
path: {
|
|
533
|
+
/** @description Origin wallet identifier. */
|
|
534
|
+
wallet: string;
|
|
535
|
+
/** @description Execution UUID. */
|
|
536
|
+
executionId: string;
|
|
537
|
+
};
|
|
538
|
+
cookie?: never;
|
|
539
|
+
};
|
|
540
|
+
/** @description Signed delete request */
|
|
541
|
+
requestBody: {
|
|
542
|
+
content: {
|
|
543
|
+
"application/json": components["schemas"]["controllers.deleteExecutionRequestDoc"];
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
responses: {
|
|
547
|
+
/** @description OK */
|
|
548
|
+
200: {
|
|
549
|
+
headers: {
|
|
550
|
+
[name: string]: unknown;
|
|
551
|
+
};
|
|
552
|
+
content: {
|
|
553
|
+
"application/json": components["schemas"]["controllers.statusResultResponse"];
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/** @description Bad Request */
|
|
557
|
+
400: {
|
|
558
|
+
headers: {
|
|
559
|
+
[name: string]: unknown;
|
|
560
|
+
};
|
|
561
|
+
content: {
|
|
562
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
/** @description Not Found */
|
|
566
|
+
404: {
|
|
567
|
+
headers: {
|
|
568
|
+
[name: string]: unknown;
|
|
569
|
+
};
|
|
570
|
+
content: {
|
|
571
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
/** @description Conflict */
|
|
575
|
+
409: {
|
|
576
|
+
headers: {
|
|
577
|
+
[name: string]: unknown;
|
|
578
|
+
};
|
|
579
|
+
content: {
|
|
580
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
/** @description Internal Server Error */
|
|
584
|
+
500: {
|
|
585
|
+
headers: {
|
|
586
|
+
[name: string]: unknown;
|
|
587
|
+
};
|
|
588
|
+
content: {
|
|
589
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
options?: never;
|
|
595
|
+
head?: never;
|
|
596
|
+
patch?: never;
|
|
597
|
+
trace?: never;
|
|
598
|
+
};
|
|
599
|
+
"/api/v1/supported_tokens": {
|
|
600
|
+
parameters: {
|
|
601
|
+
query?: never;
|
|
602
|
+
header?: never;
|
|
603
|
+
path?: never;
|
|
604
|
+
cookie?: never;
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* List supported tokens
|
|
608
|
+
* @description Returns filtered input and output token lists fetched from 1click and cached by the API.
|
|
609
|
+
*/
|
|
610
|
+
get: {
|
|
611
|
+
parameters: {
|
|
612
|
+
query?: {
|
|
613
|
+
/** @description Optional flow filter. Use outOperation to swap supported input/output token lists for EVM-origin out-operation flows. */
|
|
614
|
+
flow?: "inOperation" | "outOperation";
|
|
615
|
+
};
|
|
616
|
+
header?: never;
|
|
617
|
+
path?: never;
|
|
618
|
+
cookie?: never;
|
|
619
|
+
};
|
|
620
|
+
requestBody?: never;
|
|
621
|
+
responses: {
|
|
622
|
+
/** @description OK */
|
|
623
|
+
200: {
|
|
624
|
+
headers: {
|
|
625
|
+
[name: string]: unknown;
|
|
626
|
+
};
|
|
627
|
+
content: {
|
|
628
|
+
"application/json": components["schemas"]["controllers.tokenResponse"];
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
/** @description Bad Request */
|
|
632
|
+
400: {
|
|
633
|
+
headers: {
|
|
634
|
+
[name: string]: unknown;
|
|
635
|
+
};
|
|
636
|
+
content: {
|
|
637
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
/** @description Bad Gateway */
|
|
641
|
+
502: {
|
|
642
|
+
headers: {
|
|
643
|
+
[name: string]: unknown;
|
|
644
|
+
};
|
|
645
|
+
content: {
|
|
646
|
+
"application/json": components["schemas"]["controllers.errorResponse"];
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
put?: never;
|
|
652
|
+
post?: never;
|
|
653
|
+
delete?: never;
|
|
654
|
+
options?: never;
|
|
655
|
+
head?: never;
|
|
656
|
+
patch?: never;
|
|
657
|
+
trace?: never;
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
export type webhooks = Record<string, never>;
|
|
661
|
+
export interface components {
|
|
662
|
+
schemas: {
|
|
663
|
+
"controllers.createExecutionQuoteDoc": {
|
|
664
|
+
/** @example 1000000 */
|
|
665
|
+
amount?: string;
|
|
666
|
+
/** @example 2026-05-20T15:30:00Z */
|
|
667
|
+
deadline?: string;
|
|
668
|
+
/** @example nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near */
|
|
669
|
+
destinationAsset?: string;
|
|
670
|
+
/** @example nep141:wrap.near */
|
|
671
|
+
originAsset?: string;
|
|
672
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
673
|
+
recipient?: string;
|
|
674
|
+
/** @example 100 */
|
|
675
|
+
slippageTolerance?: number;
|
|
676
|
+
/**
|
|
677
|
+
* @example EXACT_INPUT
|
|
678
|
+
* @enum {string}
|
|
679
|
+
*/
|
|
680
|
+
swapType?: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
681
|
+
};
|
|
682
|
+
"controllers.createExecutionRequestDoc": {
|
|
683
|
+
/**
|
|
684
|
+
* @description AddressLookupTables are base58 Address Lookup Table account addresses
|
|
685
|
+
* (Solana destinations only). When set, the backend compresses matching step
|
|
686
|
+
* accounts into lookup indices and emits a v0 transaction so many-account
|
|
687
|
+
* actions fit under the packet size limit. Additive and ignored for EVM.
|
|
688
|
+
*/
|
|
689
|
+
addressLookupTables?: string[];
|
|
690
|
+
/** @example false */
|
|
691
|
+
dry?: boolean;
|
|
692
|
+
metadata?: {
|
|
693
|
+
[key: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
/** @example false */
|
|
696
|
+
outOperation?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* @description PublicKey is the origin wallet's ed25519 key (ed25519:<base58>). Required for
|
|
699
|
+
* TON (address can't yield the pubkey) and must be the wallet's owner key. Ignored otherwise.
|
|
700
|
+
* @example ed25519:...
|
|
701
|
+
*/
|
|
702
|
+
publicKey?: string;
|
|
703
|
+
quote?: components["schemas"]["controllers.createExecutionQuoteDoc"];
|
|
704
|
+
/**
|
|
705
|
+
* @description Steps are ExecutionStepEVM objects for EVM destinations. For Solana
|
|
706
|
+
* destinations (type=solana) each step is an executionStepSolanaDoc instead,
|
|
707
|
+
* sent under this same steps key.
|
|
708
|
+
*/
|
|
709
|
+
steps?: components["schemas"]["controllers.executionStepEVMDoc"][];
|
|
710
|
+
/**
|
|
711
|
+
* @description Type selects the step shape. Must be evm or solana, defaults to evm when omitted, any other value is rejected with 400.
|
|
712
|
+
* @example evm
|
|
713
|
+
* @enum {string}
|
|
714
|
+
*/
|
|
715
|
+
type?: "evm" | "solana";
|
|
716
|
+
/** @example 1.0 */
|
|
717
|
+
version?: string;
|
|
718
|
+
};
|
|
719
|
+
"controllers.createStepsExecutionRequestDoc": {
|
|
720
|
+
/**
|
|
721
|
+
* @description AddressLookupTables are base58 Address Lookup Table account addresses for
|
|
722
|
+
* Solana destinations only (see createExecutionRequestDoc.AddressLookupTables).
|
|
723
|
+
* Additive and ignored for EVM.
|
|
724
|
+
*/
|
|
725
|
+
addressLookupTables?: string[];
|
|
726
|
+
/** @example nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near */
|
|
727
|
+
destinationAsset?: string;
|
|
728
|
+
/** @example false */
|
|
729
|
+
dry?: boolean;
|
|
730
|
+
metadata?: {
|
|
731
|
+
[key: string]: unknown;
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* @description PublicKey is the origin wallet's ed25519 key. Required for TON and ignored otherwise.
|
|
735
|
+
* @example ed25519:...
|
|
736
|
+
*/
|
|
737
|
+
publicKey?: string;
|
|
738
|
+
/**
|
|
739
|
+
* @description Steps items follow the destination type. For Solana destinations
|
|
740
|
+
* (type=solana) each step is an executionStepSolanaDoc (shown here). For EVM
|
|
741
|
+
* destinations each step is an executionStepEVMDoc, sent under this same steps
|
|
742
|
+
* key.
|
|
743
|
+
*/
|
|
744
|
+
steps?: components["schemas"]["controllers.executionStepSolanaDoc"][];
|
|
745
|
+
/**
|
|
746
|
+
* @description Type selects the step shape. Must be evm or solana, defaults to evm when omitted, any other value is rejected with 400.
|
|
747
|
+
* @example evm
|
|
748
|
+
* @enum {string}
|
|
749
|
+
*/
|
|
750
|
+
type?: "evm" | "solana";
|
|
751
|
+
/** @example 1.0 */
|
|
752
|
+
version?: string;
|
|
753
|
+
};
|
|
754
|
+
"controllers.deleteExecutionNEP413Doc": {
|
|
755
|
+
/** @example base64-encoded 32 bytes */
|
|
756
|
+
nonce?: string;
|
|
757
|
+
/** @example last-mile.intents.near */
|
|
758
|
+
recipient?: string;
|
|
759
|
+
};
|
|
760
|
+
"controllers.deleteExecutionRequestDoc": {
|
|
761
|
+
nep413?: components["schemas"]["controllers.deleteExecutionNEP413Doc"];
|
|
762
|
+
/** @example ed25519:... */
|
|
763
|
+
publicKey?: string;
|
|
764
|
+
/** @example ed25519:... or secp256k1:... */
|
|
765
|
+
signature?: string;
|
|
766
|
+
tonConnect?: components["schemas"]["controllers.tonConnectEnvelopeDoc"];
|
|
767
|
+
};
|
|
768
|
+
"controllers.errorResponse": {
|
|
769
|
+
/** @example invalid request body */
|
|
770
|
+
error?: string;
|
|
771
|
+
};
|
|
772
|
+
"controllers.executionDetailsDoc": {
|
|
773
|
+
/** @example 60 */
|
|
774
|
+
estimatedTime?: string;
|
|
775
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
776
|
+
intermediaryAddress?: string;
|
|
777
|
+
/** @example false */
|
|
778
|
+
messageSigned?: boolean;
|
|
779
|
+
messageToSign?: string;
|
|
780
|
+
/** @example 1000 */
|
|
781
|
+
networkFee?: string;
|
|
782
|
+
payload?: components["schemas"]["controllers.signingPayloadDoc"];
|
|
783
|
+
/** @enum {string} */
|
|
784
|
+
signingStandard?: "raw_ed25519" | "nep413" | "erc191" | "tip191" | "sep53" | "ton_connect";
|
|
785
|
+
};
|
|
786
|
+
"controllers.executionDoc": {
|
|
787
|
+
/** @example 2026-04-28T09:00:00Z */
|
|
788
|
+
createdAt?: string;
|
|
789
|
+
details?: components["schemas"]["controllers.executionDetailsDoc"];
|
|
790
|
+
/**
|
|
791
|
+
* @example quote_with_steps
|
|
792
|
+
* @enum {string}
|
|
793
|
+
*/
|
|
794
|
+
executionMode?: "quote_with_steps" | "steps_only";
|
|
795
|
+
/** @example 6f9619ff-8b86-d011-b42d-00cf4fc964ff */
|
|
796
|
+
id?: string;
|
|
797
|
+
metadata?: {
|
|
798
|
+
[key: string]: unknown;
|
|
799
|
+
};
|
|
800
|
+
quote?: components["schemas"]["controllers.executionQuoteDoc"];
|
|
801
|
+
/**
|
|
802
|
+
* @example CREATED
|
|
803
|
+
* @enum {string}
|
|
804
|
+
*/
|
|
805
|
+
status?: "CREATED" | "DEPOSIT_PENDING" | "DEPOSIT_PROCESSING" | "OPERATION_PENDING" | "OPERATION_PROCESSING" | "SUCCESS" | "DEPOSIT_FAILED" | "OPERATION_FAILED" | "EXPIRED";
|
|
806
|
+
/**
|
|
807
|
+
* @description Steps are ExecutionStepEVM objects for EVM executions. For Solana executions
|
|
808
|
+
* (type=solana) each item is an executionStepSolanaDoc instead, echoed under this
|
|
809
|
+
* same steps key.
|
|
810
|
+
*/
|
|
811
|
+
steps?: components["schemas"]["controllers.executionStepEVMDoc"][];
|
|
812
|
+
/**
|
|
813
|
+
* @example evm
|
|
814
|
+
* @enum {string}
|
|
815
|
+
*/
|
|
816
|
+
type?: "evm" | "solana";
|
|
817
|
+
/** @example 1.0 */
|
|
818
|
+
version?: string;
|
|
819
|
+
};
|
|
820
|
+
"controllers.executionListResponse": {
|
|
821
|
+
result?: components["schemas"]["controllers.executionDoc"][];
|
|
822
|
+
};
|
|
823
|
+
"controllers.executionObjectResponse": {
|
|
824
|
+
result?: components["schemas"]["controllers.executionDoc"];
|
|
825
|
+
};
|
|
826
|
+
"controllers.executionQuoteDoc": {
|
|
827
|
+
/** @example 1000000 */
|
|
828
|
+
amount?: string;
|
|
829
|
+
amountIn?: string;
|
|
830
|
+
amountInUsd?: string;
|
|
831
|
+
amountOut?: string;
|
|
832
|
+
amountOutUsd?: string;
|
|
833
|
+
/** @example 2026-04-28T09:10:00Z */
|
|
834
|
+
deadline?: string;
|
|
835
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
836
|
+
depositAddress?: string;
|
|
837
|
+
/** @example 86825672 */
|
|
838
|
+
depositMemo?: string;
|
|
839
|
+
destinationAsset?: string;
|
|
840
|
+
minAmountIn?: string;
|
|
841
|
+
minAmountOut?: string;
|
|
842
|
+
originAsset?: string;
|
|
843
|
+
recipient?: string;
|
|
844
|
+
/** @enum {string} */
|
|
845
|
+
swapType?: "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
846
|
+
};
|
|
847
|
+
"controllers.executionStepEVMDoc": {
|
|
848
|
+
/** @example transfer(address,uint256) */
|
|
849
|
+
functionSignature?: string;
|
|
850
|
+
metadata?: {
|
|
851
|
+
[key: string]: unknown;
|
|
852
|
+
};
|
|
853
|
+
parameters?: Record<string, never>[];
|
|
854
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
855
|
+
to?: string;
|
|
856
|
+
/** @example 0 */
|
|
857
|
+
value?: string;
|
|
858
|
+
};
|
|
859
|
+
"controllers.executionStepSolanaDoc": {
|
|
860
|
+
accounts?: components["schemas"]["controllers.solanaAccountMetaDoc"][];
|
|
861
|
+
args?: components["schemas"]["controllers.solanaArgDoc"][];
|
|
862
|
+
/**
|
|
863
|
+
* @description Discriminator is the hex-encoded instruction prefix: 8-byte Anchor
|
|
864
|
+
* discriminator or a 1-byte opcode. Omitted when the program takes none.
|
|
865
|
+
* @example 03
|
|
866
|
+
*/
|
|
867
|
+
discriminator?: string;
|
|
868
|
+
metadata?: {
|
|
869
|
+
[key: string]: unknown;
|
|
870
|
+
};
|
|
871
|
+
/** @example TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA */
|
|
872
|
+
programId?: string;
|
|
873
|
+
};
|
|
874
|
+
"controllers.intermediaryResponse": {
|
|
875
|
+
result?: components["schemas"]["controllers.intermediaryResult"];
|
|
876
|
+
};
|
|
877
|
+
"controllers.intermediaryResult": {
|
|
878
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
879
|
+
evm?: string;
|
|
880
|
+
/** @example example.near */
|
|
881
|
+
originAccount?: string;
|
|
882
|
+
/**
|
|
883
|
+
* @example near
|
|
884
|
+
* @enum {string}
|
|
885
|
+
*/
|
|
886
|
+
originType?: "evm" | "near" | "solana" | "stellar" | "ton" | "tron";
|
|
887
|
+
/**
|
|
888
|
+
* @description Solana is the MPC-derived ed25519 Solana intermediary account. Null when
|
|
889
|
+
* Solana is disabled or the derivation failed.
|
|
890
|
+
* @example 4nn959rPTCxboxXKUxZwMq4knJMKPURA4WciuJyrDAvQ
|
|
891
|
+
*/
|
|
892
|
+
solana?: string;
|
|
893
|
+
};
|
|
894
|
+
"controllers.signingPayloadDoc": {
|
|
895
|
+
payload_bytes_base64?: string;
|
|
896
|
+
payload_json?: string;
|
|
897
|
+
/**
|
|
898
|
+
* @example erc191
|
|
899
|
+
* @enum {string}
|
|
900
|
+
*/
|
|
901
|
+
standard?: "raw_ed25519" | "nep413" | "erc191" | "tip191" | "sep53" | "ton_connect";
|
|
902
|
+
};
|
|
903
|
+
"controllers.solanaAccountMetaDoc": {
|
|
904
|
+
/** @example true */
|
|
905
|
+
isSigner?: boolean;
|
|
906
|
+
/** @example true */
|
|
907
|
+
isWritable?: boolean;
|
|
908
|
+
/**
|
|
909
|
+
* @description Pubkey is a base58 account address or a placeholder sentinel
|
|
910
|
+
* ({INTERMEDIARY}, {DEPOSIT_ADDRESS}) resolved before encoding.
|
|
911
|
+
* @example {INTERMEDIARY}
|
|
912
|
+
*/
|
|
913
|
+
pubkey?: string;
|
|
914
|
+
};
|
|
915
|
+
"controllers.solanaArgDoc": {
|
|
916
|
+
/** @example amount */
|
|
917
|
+
name?: string;
|
|
918
|
+
/**
|
|
919
|
+
* @example u64
|
|
920
|
+
* @enum {string}
|
|
921
|
+
*/
|
|
922
|
+
type?: "u8" | "u16" | "u32" | "u64" | "u128" | "i8" | "i16" | "i32" | "i64" | "bool" | "pubkey" | "bytes" | "string";
|
|
923
|
+
/**
|
|
924
|
+
* @description Value is the JSON literal for the arg (number, string, bool) or a
|
|
925
|
+
* placeholder sentinel such as "{INTERMEDIARY}".
|
|
926
|
+
*/
|
|
927
|
+
value?: Record<string, never>;
|
|
928
|
+
};
|
|
929
|
+
"controllers.statusResult": {
|
|
930
|
+
/** @example SIGNING */
|
|
931
|
+
status?: string;
|
|
932
|
+
};
|
|
933
|
+
"controllers.statusResultResponse": {
|
|
934
|
+
result?: components["schemas"]["controllers.statusResult"];
|
|
935
|
+
};
|
|
936
|
+
"controllers.submitDepositRequestDoc": {
|
|
937
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
938
|
+
depositAddress?: string;
|
|
939
|
+
/**
|
|
940
|
+
* @description Memo identifies the execution together with depositAddress for MEMO deposit-mode chains (e.g. Stellar)
|
|
941
|
+
* @example 86825672
|
|
942
|
+
*/
|
|
943
|
+
memo?: string;
|
|
944
|
+
/** @example 0x... */
|
|
945
|
+
txHash?: string;
|
|
946
|
+
};
|
|
947
|
+
"controllers.submitSignatureRequestDoc": {
|
|
948
|
+
/** @example 6f9619ff-8b86-d011-b42d-00cf4fc964ff */
|
|
949
|
+
executionId?: string;
|
|
950
|
+
/** @example ed25519:... */
|
|
951
|
+
publicKey?: string;
|
|
952
|
+
/** @example 0x... */
|
|
953
|
+
signature?: string;
|
|
954
|
+
tonConnect?: components["schemas"]["controllers.tonConnectEnvelopeDoc"];
|
|
955
|
+
};
|
|
956
|
+
"controllers.supportedTokensResult": {
|
|
957
|
+
in?: components["schemas"]["controllers.token"][];
|
|
958
|
+
out?: components["schemas"]["controllers.token"][];
|
|
959
|
+
};
|
|
960
|
+
"controllers.token": {
|
|
961
|
+
/** @example nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near */
|
|
962
|
+
assetId?: string;
|
|
963
|
+
/** @example base */
|
|
964
|
+
blockchain?: string;
|
|
965
|
+
/** @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 */
|
|
966
|
+
contractAddress?: string;
|
|
967
|
+
/** @example 6 */
|
|
968
|
+
decimals?: number;
|
|
969
|
+
/** @example 1 */
|
|
970
|
+
price?: number;
|
|
971
|
+
/** @example 2026-04-28T09:00:00Z */
|
|
972
|
+
priceUpdatedAt?: string;
|
|
973
|
+
/** @example USDC */
|
|
974
|
+
symbol?: string;
|
|
975
|
+
};
|
|
976
|
+
"controllers.tokenResponse": {
|
|
977
|
+
result?: components["schemas"]["controllers.supportedTokensResult"];
|
|
978
|
+
};
|
|
979
|
+
"controllers.tonConnectEnvelopeDoc": {
|
|
980
|
+
/** @example UQCmSKo4hxB429jCnRhycAnMFrGKIthLovG1U-JS6EBVIaqi */
|
|
981
|
+
address?: string;
|
|
982
|
+
/** @example app.example.com */
|
|
983
|
+
domain?: string;
|
|
984
|
+
/** @example 1747759882 */
|
|
985
|
+
timestamp?: number;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
responses: never;
|
|
989
|
+
parameters: never;
|
|
990
|
+
requestBodies: never;
|
|
991
|
+
headers: never;
|
|
992
|
+
pathItems: never;
|
|
993
|
+
}
|
|
994
|
+
export type $defs = Record<string, never>;
|
|
995
|
+
export type operations = Record<string, never>;
|