@n8n-dev/n8n-nodes-0x 1.0.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.
Files changed (30) hide show
  1. package/README.md +98 -0
  2. package/dist/credentials/N0xApi.credentials.d.ts +10 -0
  3. package/dist/credentials/N0xApi.credentials.js +56 -0
  4. package/dist/credentials/N0xApi.credentials.js.map +1 -0
  5. package/dist/icons/0x.dark.svg +4 -0
  6. package/dist/icons/0x.svg +4 -0
  7. package/dist/nodes/N0x/0x.dark.svg +4 -0
  8. package/dist/nodes/N0x/0x.svg +4 -0
  9. package/dist/nodes/N0x/N0x.node.d.ts +4 -0
  10. package/dist/nodes/N0x/N0x.node.js +75 -0
  11. package/dist/nodes/N0x/N0x.node.js.map +1 -0
  12. package/dist/nodes/N0x/N0x.node.json +20 -0
  13. package/dist/nodes/N0x/resources/gasless/index.d.ts +2 -0
  14. package/dist/nodes/N0x/resources/gasless/index.js +1364 -0
  15. package/dist/nodes/N0x/resources/gasless/index.js.map +1 -0
  16. package/dist/nodes/N0x/resources/index.d.ts +4 -0
  17. package/dist/nodes/N0x/resources/index.js +12 -0
  18. package/dist/nodes/N0x/resources/index.js.map +1 -0
  19. package/dist/nodes/N0x/resources/sources/index.d.ts +2 -0
  20. package/dist/nodes/N0x/resources/sources/index.js +129 -0
  21. package/dist/nodes/N0x/resources/sources/index.js.map +1 -0
  22. package/dist/nodes/N0x/resources/swap/index.d.ts +2 -0
  23. package/dist/nodes/N0x/resources/swap/index.js +2381 -0
  24. package/dist/nodes/N0x/resources/swap/index.js.map +1 -0
  25. package/dist/nodes/N0x/resources/trade-analytics/index.d.ts +2 -0
  26. package/dist/nodes/N0x/resources/trade-analytics/index.js +334 -0
  27. package/dist/nodes/N0x/resources/trade-analytics/index.js.map +1 -0
  28. package/dist/package.json +62 -0
  29. package/dist/tsconfig.tsbuildinfo +1 -0
  30. package/package.json +62 -0
@@ -0,0 +1,1364 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.gaslessDescription = void 0;
4
+ exports.gaslessDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Gasless"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Gasless Get Price",
20
+ "value": "Gasless Get Price",
21
+ "action": "getPrice",
22
+ "description": "Get the indicative price for a gasless swap",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/gasless/price"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Gasless Get Quote",
32
+ "value": "Gasless Get Quote",
33
+ "action": "getQuote",
34
+ "description": "Get the firm quote for a gasless swap",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/gasless/quote"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Gasless Submit",
44
+ "value": "Gasless Submit",
45
+ "action": "submit",
46
+ "description": "Submit a gasless swap",
47
+ "routing": {
48
+ "request": {
49
+ "method": "POST",
50
+ "url": "=/gasless/submit"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Gasless Get Status",
56
+ "value": "Gasless Get Status",
57
+ "action": "getStatus",
58
+ "description": "Get the status of a gasless swap",
59
+ "routing": {
60
+ "request": {
61
+ "method": "GET",
62
+ "url": "=/gasless/status/{{$parameter[\"tradeHash\"]}}"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Gasless Get Gasless Approval Tokens",
68
+ "value": "Gasless Get Gasless Approval Tokens",
69
+ "action": "getGaslessApprovalTokens",
70
+ "description": "Get token addresses that support gasless approvals",
71
+ "routing": {
72
+ "request": {
73
+ "method": "GET",
74
+ "url": "=/gasless/gasless-approval-tokens"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "Gasless Chains",
80
+ "value": "Gasless Chains",
81
+ "action": "getChains",
82
+ "description": "Get list of supported chains for gasless",
83
+ "routing": {
84
+ "request": {
85
+ "method": "GET",
86
+ "url": "=/gasless/chains"
87
+ }
88
+ }
89
+ }
90
+ ],
91
+ "default": ""
92
+ },
93
+ {
94
+ "displayName": "GET /gasless/price",
95
+ "name": "operation",
96
+ "type": "notice",
97
+ "typeOptions": {
98
+ "theme": "info"
99
+ },
100
+ "default": "",
101
+ "displayOptions": {
102
+ "show": {
103
+ "resource": [
104
+ "Gasless"
105
+ ],
106
+ "operation": [
107
+ "Gasless Get Price"
108
+ ]
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "displayName": "0 X Api Key",
114
+ "name": "0x-api-key",
115
+ "required": true,
116
+ "description": "Visit dashboard.0x.org to get your API Key",
117
+ "default": "",
118
+ "type": "string",
119
+ "routing": {
120
+ "request": {
121
+ "headers": {
122
+ "0x-api-key": "={{ $value }}"
123
+ }
124
+ }
125
+ },
126
+ "displayOptions": {
127
+ "show": {
128
+ "resource": [
129
+ "Gasless"
130
+ ],
131
+ "operation": [
132
+ "Gasless Get Price"
133
+ ]
134
+ }
135
+ }
136
+ },
137
+ {
138
+ "displayName": "0 X Version",
139
+ "name": "0x-version",
140
+ "required": true,
141
+ "description": "API version",
142
+ "default": "v2",
143
+ "type": "string",
144
+ "routing": {
145
+ "request": {
146
+ "headers": {
147
+ "0x-version": "={{ $value }}"
148
+ }
149
+ }
150
+ },
151
+ "displayOptions": {
152
+ "show": {
153
+ "resource": [
154
+ "Gasless"
155
+ ],
156
+ "operation": [
157
+ "Gasless Get Price"
158
+ ]
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "displayName": "Chain Id",
164
+ "name": "chainId",
165
+ "required": true,
166
+ "description": "Chain ID. See [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains",
167
+ "default": 1,
168
+ "type": "number",
169
+ "routing": {
170
+ "send": {
171
+ "type": "query",
172
+ "property": "chainId",
173
+ "value": "={{ $value }}",
174
+ "propertyInDotNotation": false
175
+ }
176
+ },
177
+ "displayOptions": {
178
+ "show": {
179
+ "resource": [
180
+ "Gasless"
181
+ ],
182
+ "operation": [
183
+ "Gasless Get Price"
184
+ ]
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "displayName": "Buy Token",
190
+ "name": "buyToken",
191
+ "required": true,
192
+ "description": "The contract address of the token to buy",
193
+ "default": "0xdac17f958d2ee523a2206206994597c13d831ec7",
194
+ "type": "string",
195
+ "routing": {
196
+ "send": {
197
+ "type": "query",
198
+ "property": "buyToken",
199
+ "value": "={{ $value }}",
200
+ "propertyInDotNotation": false
201
+ }
202
+ },
203
+ "displayOptions": {
204
+ "show": {
205
+ "resource": [
206
+ "Gasless"
207
+ ],
208
+ "operation": [
209
+ "Gasless Get Price"
210
+ ]
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "displayName": "Sell Token",
216
+ "name": "sellToken",
217
+ "required": true,
218
+ "description": "The contract address of the token to sell. Native token is not supported",
219
+ "default": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
220
+ "type": "string",
221
+ "routing": {
222
+ "send": {
223
+ "type": "query",
224
+ "property": "sellToken",
225
+ "value": "={{ $value }}",
226
+ "propertyInDotNotation": false
227
+ }
228
+ },
229
+ "displayOptions": {
230
+ "show": {
231
+ "resource": [
232
+ "Gasless"
233
+ ],
234
+ "operation": [
235
+ "Gasless Get Price"
236
+ ]
237
+ }
238
+ }
239
+ },
240
+ {
241
+ "displayName": "Sell Amount",
242
+ "name": "sellAmount",
243
+ "required": true,
244
+ "description": "The amount of `sellToken` in `sellToken` base units to sell",
245
+ "default": "300000000",
246
+ "type": "string",
247
+ "routing": {
248
+ "send": {
249
+ "type": "query",
250
+ "property": "sellAmount",
251
+ "value": "={{ $value }}",
252
+ "propertyInDotNotation": false
253
+ }
254
+ },
255
+ "displayOptions": {
256
+ "show": {
257
+ "resource": [
258
+ "Gasless"
259
+ ],
260
+ "operation": [
261
+ "Gasless Get Price"
262
+ ]
263
+ }
264
+ }
265
+ },
266
+ {
267
+ "displayName": "Taker",
268
+ "name": "taker",
269
+ "description": "The address which holds the `sellToken` balance and has the allowance set for the swap",
270
+ "default": "0x70a9f34f9b34c64957b9c401a97bfed35b95049e",
271
+ "type": "string",
272
+ "routing": {
273
+ "send": {
274
+ "type": "query",
275
+ "property": "taker",
276
+ "value": "={{ $value }}",
277
+ "propertyInDotNotation": false
278
+ }
279
+ },
280
+ "displayOptions": {
281
+ "show": {
282
+ "resource": [
283
+ "Gasless"
284
+ ],
285
+ "operation": [
286
+ "Gasless Get Price"
287
+ ]
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "displayName": "Recipient",
293
+ "name": "recipient",
294
+ "description": "The address to receive the `buyToken`. If not provided, defaults to the taker address. Not supported for wrap/unwrap operations.",
295
+ "default": "",
296
+ "type": "string",
297
+ "routing": {
298
+ "send": {
299
+ "type": "query",
300
+ "property": "recipient",
301
+ "value": "={{ $value }}",
302
+ "propertyInDotNotation": false
303
+ }
304
+ },
305
+ "displayOptions": {
306
+ "show": {
307
+ "resource": [
308
+ "Gasless"
309
+ ],
310
+ "operation": [
311
+ "Gasless Get Price"
312
+ ]
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "displayName": "Swap Fee Recipient",
318
+ "name": "swapFeeRecipient",
319
+ "description": "The wallet address to receive the specified trading fees (supports single or multiple comma-separated values). You must also specify the `swapFeeBps` in the request to use this feature. When multiple values are provided, must match length of `swapFeeBps`.",
320
+ "default": "",
321
+ "type": "string",
322
+ "routing": {
323
+ "send": {
324
+ "type": "query",
325
+ "property": "swapFeeRecipient",
326
+ "value": "={{ $value }}",
327
+ "propertyInDotNotation": false
328
+ }
329
+ },
330
+ "displayOptions": {
331
+ "show": {
332
+ "resource": [
333
+ "Gasless"
334
+ ],
335
+ "operation": [
336
+ "Gasless Get Price"
337
+ ]
338
+ }
339
+ }
340
+ },
341
+ {
342
+ "displayName": "Swap Fee Bps",
343
+ "name": "swapFeeBps",
344
+ "description": "The amount in Bps of the `swapFeeToken` to charge and deliver to the `swapFeeRecipient` (supports single or multiple comma-separated values). You must also specify the `swapFeeRecipient` in the request to use this feature. For security, this field has a default limit of 1000 Bps. If your application requires a higher value, please reach out to us.",
345
+ "default": "",
346
+ "type": "string",
347
+ "routing": {
348
+ "send": {
349
+ "type": "query",
350
+ "property": "swapFeeBps",
351
+ "value": "={{ $value }}",
352
+ "propertyInDotNotation": false
353
+ }
354
+ },
355
+ "displayOptions": {
356
+ "show": {
357
+ "resource": [
358
+ "Gasless"
359
+ ],
360
+ "operation": [
361
+ "Gasless Get Price"
362
+ ]
363
+ }
364
+ }
365
+ },
366
+ {
367
+ "displayName": "Swap Fee Token",
368
+ "name": "swapFeeToken",
369
+ "description": "The contract address of the token to receive trading fees in (supports single or multiple comma-separated values). Each token must be set to the value of either the `buyToken` or the `sellToken`. If omitted, the fee token will be determined by 0x with preference to stablecoins and highly liquid assets. You must also specify the `swapFeeRecipient` and `swapFeeBps` to charge integrator fees. When multiple values are provided, must match length of `swapFeeBps`.",
370
+ "default": "",
371
+ "type": "string",
372
+ "routing": {
373
+ "send": {
374
+ "type": "query",
375
+ "property": "swapFeeToken",
376
+ "value": "={{ $value }}",
377
+ "propertyInDotNotation": false
378
+ }
379
+ },
380
+ "displayOptions": {
381
+ "show": {
382
+ "resource": [
383
+ "Gasless"
384
+ ],
385
+ "operation": [
386
+ "Gasless Get Price"
387
+ ]
388
+ }
389
+ }
390
+ },
391
+ {
392
+ "displayName": "Trade Surplus Recipient",
393
+ "name": "tradeSurplusRecipient",
394
+ "description": "The address to receive any trade surplus. If specified, this address will receive trade surplus when applicable. Otherwise, the taker will receive the surplus. This feature is only available to selected integrators on a custom pricing plan. In other cases, the surplus will be collected by 0x. For assistance with a custom plan, please contact support.",
395
+ "default": "",
396
+ "type": "string",
397
+ "routing": {
398
+ "send": {
399
+ "type": "query",
400
+ "property": "tradeSurplusRecipient",
401
+ "value": "={{ $value }}",
402
+ "propertyInDotNotation": false
403
+ }
404
+ },
405
+ "displayOptions": {
406
+ "show": {
407
+ "resource": [
408
+ "Gasless"
409
+ ],
410
+ "operation": [
411
+ "Gasless Get Price"
412
+ ]
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "displayName": "Trade Surplus Max Bps",
418
+ "name": "tradeSurplusMaxBps",
419
+ "description": "The maximum trade surplus (positive slippage) that can be collected in Bps of the buy amount. If not provided, defaults to 10000 (100%). Must be used together with `tradeSurplusRecipient`.",
420
+ "default": 0,
421
+ "type": "number",
422
+ "routing": {
423
+ "send": {
424
+ "type": "query",
425
+ "property": "tradeSurplusMaxBps",
426
+ "value": "={{ $value }}",
427
+ "propertyInDotNotation": false
428
+ }
429
+ },
430
+ "displayOptions": {
431
+ "show": {
432
+ "resource": [
433
+ "Gasless"
434
+ ],
435
+ "operation": [
436
+ "Gasless Get Price"
437
+ ]
438
+ }
439
+ }
440
+ },
441
+ {
442
+ "displayName": "Slippage Bps",
443
+ "name": "slippageBps",
444
+ "description": "The maximum acceptable slippage of the `buyToken` in Bps. 0x sets the optimal slippage tolerance per trade by default. To mitigate the risk of MEV attacks, we recommend adjusting this value only when trading low-liquidity tokens.",
445
+ "default": 0,
446
+ "type": "number",
447
+ "routing": {
448
+ "send": {
449
+ "type": "query",
450
+ "property": "slippageBps",
451
+ "value": "={{ $value }}",
452
+ "propertyInDotNotation": false
453
+ }
454
+ },
455
+ "displayOptions": {
456
+ "show": {
457
+ "resource": [
458
+ "Gasless"
459
+ ],
460
+ "operation": [
461
+ "Gasless Get Price"
462
+ ]
463
+ }
464
+ }
465
+ },
466
+ {
467
+ "displayName": "Slippage Ppm",
468
+ "name": "slippagePpm",
469
+ "description": "The maximum acceptable slippage of the `buyToken` in parts-per-million (PPM). Mutually exclusive with `slippageBps`. e.g. 3000 PPM = 30 BPS = 0.30%.",
470
+ "default": 0,
471
+ "type": "number",
472
+ "routing": {
473
+ "send": {
474
+ "type": "query",
475
+ "property": "slippagePpm",
476
+ "value": "={{ $value }}",
477
+ "propertyInDotNotation": false
478
+ }
479
+ },
480
+ "displayOptions": {
481
+ "show": {
482
+ "resource": [
483
+ "Gasless"
484
+ ],
485
+ "operation": [
486
+ "Gasless Get Price"
487
+ ]
488
+ }
489
+ }
490
+ },
491
+ {
492
+ "displayName": "Excluded Sources",
493
+ "name": "excludedSources",
494
+ "description": "Liquidity sources e.g. Uniswap_V3, SushiSwap, 0x_RFQ to exclude from the provided quote. `See https://api.0x.org/sources?chainId=<chain_id>` with the desired chain's ID for a full list of sources. Separate multiple sources with a comma",
495
+ "default": "",
496
+ "type": "string",
497
+ "routing": {
498
+ "send": {
499
+ "type": "query",
500
+ "property": "excludedSources",
501
+ "value": "={{ $value }}",
502
+ "propertyInDotNotation": false
503
+ }
504
+ },
505
+ "displayOptions": {
506
+ "show": {
507
+ "resource": [
508
+ "Gasless"
509
+ ],
510
+ "operation": [
511
+ "Gasless Get Price"
512
+ ]
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "displayName": "GET /gasless/quote",
518
+ "name": "operation",
519
+ "type": "notice",
520
+ "typeOptions": {
521
+ "theme": "info"
522
+ },
523
+ "default": "",
524
+ "displayOptions": {
525
+ "show": {
526
+ "resource": [
527
+ "Gasless"
528
+ ],
529
+ "operation": [
530
+ "Gasless Get Quote"
531
+ ]
532
+ }
533
+ }
534
+ },
535
+ {
536
+ "displayName": "0 X Api Key",
537
+ "name": "0x-api-key",
538
+ "required": true,
539
+ "description": "Visit dashboard.0x.org to get your API Key",
540
+ "default": "",
541
+ "type": "string",
542
+ "routing": {
543
+ "request": {
544
+ "headers": {
545
+ "0x-api-key": "={{ $value }}"
546
+ }
547
+ }
548
+ },
549
+ "displayOptions": {
550
+ "show": {
551
+ "resource": [
552
+ "Gasless"
553
+ ],
554
+ "operation": [
555
+ "Gasless Get Quote"
556
+ ]
557
+ }
558
+ }
559
+ },
560
+ {
561
+ "displayName": "0 X Version",
562
+ "name": "0x-version",
563
+ "required": true,
564
+ "description": "API version",
565
+ "default": "v2",
566
+ "type": "string",
567
+ "routing": {
568
+ "request": {
569
+ "headers": {
570
+ "0x-version": "={{ $value }}"
571
+ }
572
+ }
573
+ },
574
+ "displayOptions": {
575
+ "show": {
576
+ "resource": [
577
+ "Gasless"
578
+ ],
579
+ "operation": [
580
+ "Gasless Get Quote"
581
+ ]
582
+ }
583
+ }
584
+ },
585
+ {
586
+ "displayName": "Chain Id",
587
+ "name": "chainId",
588
+ "required": true,
589
+ "description": "Chain ID. See [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains",
590
+ "default": 1,
591
+ "type": "number",
592
+ "routing": {
593
+ "send": {
594
+ "type": "query",
595
+ "property": "chainId",
596
+ "value": "={{ $value }}",
597
+ "propertyInDotNotation": false
598
+ }
599
+ },
600
+ "displayOptions": {
601
+ "show": {
602
+ "resource": [
603
+ "Gasless"
604
+ ],
605
+ "operation": [
606
+ "Gasless Get Quote"
607
+ ]
608
+ }
609
+ }
610
+ },
611
+ {
612
+ "displayName": "Buy Token",
613
+ "name": "buyToken",
614
+ "required": true,
615
+ "description": "The contract address of the token to buy",
616
+ "default": "0xdac17f958d2ee523a2206206994597c13d831ec7",
617
+ "type": "string",
618
+ "routing": {
619
+ "send": {
620
+ "type": "query",
621
+ "property": "buyToken",
622
+ "value": "={{ $value }}",
623
+ "propertyInDotNotation": false
624
+ }
625
+ },
626
+ "displayOptions": {
627
+ "show": {
628
+ "resource": [
629
+ "Gasless"
630
+ ],
631
+ "operation": [
632
+ "Gasless Get Quote"
633
+ ]
634
+ }
635
+ }
636
+ },
637
+ {
638
+ "displayName": "Sell Token",
639
+ "name": "sellToken",
640
+ "required": true,
641
+ "description": "The contract address of the token to sell. Native token is not supported",
642
+ "default": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
643
+ "type": "string",
644
+ "routing": {
645
+ "send": {
646
+ "type": "query",
647
+ "property": "sellToken",
648
+ "value": "={{ $value }}",
649
+ "propertyInDotNotation": false
650
+ }
651
+ },
652
+ "displayOptions": {
653
+ "show": {
654
+ "resource": [
655
+ "Gasless"
656
+ ],
657
+ "operation": [
658
+ "Gasless Get Quote"
659
+ ]
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "displayName": "Sell Amount",
665
+ "name": "sellAmount",
666
+ "required": true,
667
+ "description": "The amount of `sellToken` in `sellToken` base units to sell",
668
+ "default": "300000000",
669
+ "type": "string",
670
+ "routing": {
671
+ "send": {
672
+ "type": "query",
673
+ "property": "sellAmount",
674
+ "value": "={{ $value }}",
675
+ "propertyInDotNotation": false
676
+ }
677
+ },
678
+ "displayOptions": {
679
+ "show": {
680
+ "resource": [
681
+ "Gasless"
682
+ ],
683
+ "operation": [
684
+ "Gasless Get Quote"
685
+ ]
686
+ }
687
+ }
688
+ },
689
+ {
690
+ "displayName": "Taker",
691
+ "name": "taker",
692
+ "required": true,
693
+ "description": "The address which holds the `sellToken` balance and has the allowance set for the swap",
694
+ "default": "0x70a9f34f9b34c64957b9c401a97bfed35b95049e",
695
+ "type": "string",
696
+ "routing": {
697
+ "send": {
698
+ "type": "query",
699
+ "property": "taker",
700
+ "value": "={{ $value }}",
701
+ "propertyInDotNotation": false
702
+ }
703
+ },
704
+ "displayOptions": {
705
+ "show": {
706
+ "resource": [
707
+ "Gasless"
708
+ ],
709
+ "operation": [
710
+ "Gasless Get Quote"
711
+ ]
712
+ }
713
+ }
714
+ },
715
+ {
716
+ "displayName": "Recipient",
717
+ "name": "recipient",
718
+ "description": "The address to receive the `buyToken`. If not provided, defaults to the taker address. Not supported for wrap/unwrap operations.",
719
+ "default": "",
720
+ "type": "string",
721
+ "routing": {
722
+ "send": {
723
+ "type": "query",
724
+ "property": "recipient",
725
+ "value": "={{ $value }}",
726
+ "propertyInDotNotation": false
727
+ }
728
+ },
729
+ "displayOptions": {
730
+ "show": {
731
+ "resource": [
732
+ "Gasless"
733
+ ],
734
+ "operation": [
735
+ "Gasless Get Quote"
736
+ ]
737
+ }
738
+ }
739
+ },
740
+ {
741
+ "displayName": "Swap Fee Recipient",
742
+ "name": "swapFeeRecipient",
743
+ "description": "The wallet address to receive the specified trading fees (supports single or multiple comma-separated values). You must also specify the `swapFeeBps` in the request to use this feature. When multiple values are provided, must match length of `swapFeeBps`.",
744
+ "default": "",
745
+ "type": "string",
746
+ "routing": {
747
+ "send": {
748
+ "type": "query",
749
+ "property": "swapFeeRecipient",
750
+ "value": "={{ $value }}",
751
+ "propertyInDotNotation": false
752
+ }
753
+ },
754
+ "displayOptions": {
755
+ "show": {
756
+ "resource": [
757
+ "Gasless"
758
+ ],
759
+ "operation": [
760
+ "Gasless Get Quote"
761
+ ]
762
+ }
763
+ }
764
+ },
765
+ {
766
+ "displayName": "Swap Fee Bps",
767
+ "name": "swapFeeBps",
768
+ "description": "The amount in Bps of the `swapFeeToken` to charge and deliver to the `swapFeeRecipient` (supports single or multiple comma-separated values). You must also specify the `swapFeeRecipient` in the request to use this feature. For security, this field has a default limit of 1000 Bps. If your application requires a higher value, please reach out to us.",
769
+ "default": "",
770
+ "type": "string",
771
+ "routing": {
772
+ "send": {
773
+ "type": "query",
774
+ "property": "swapFeeBps",
775
+ "value": "={{ $value }}",
776
+ "propertyInDotNotation": false
777
+ }
778
+ },
779
+ "displayOptions": {
780
+ "show": {
781
+ "resource": [
782
+ "Gasless"
783
+ ],
784
+ "operation": [
785
+ "Gasless Get Quote"
786
+ ]
787
+ }
788
+ }
789
+ },
790
+ {
791
+ "displayName": "Swap Fee Token",
792
+ "name": "swapFeeToken",
793
+ "description": "The contract address of the token to receive trading fees in (supports single or multiple comma-separated values). Each token must be set to the value of either the `buyToken` or the `sellToken`. If omitted, the fee token will be determined by 0x with preference to stablecoins and highly liquid assets. You must also specify the `swapFeeRecipient` and `swapFeeBps` to charge integrator fees. When multiple values are provided, must match length of `swapFeeBps`.",
794
+ "default": "",
795
+ "type": "string",
796
+ "routing": {
797
+ "send": {
798
+ "type": "query",
799
+ "property": "swapFeeToken",
800
+ "value": "={{ $value }}",
801
+ "propertyInDotNotation": false
802
+ }
803
+ },
804
+ "displayOptions": {
805
+ "show": {
806
+ "resource": [
807
+ "Gasless"
808
+ ],
809
+ "operation": [
810
+ "Gasless Get Quote"
811
+ ]
812
+ }
813
+ }
814
+ },
815
+ {
816
+ "displayName": "Trade Surplus Recipient",
817
+ "name": "tradeSurplusRecipient",
818
+ "description": "The address to receive any trade surplus. If specified, this address will receive trade surplus when applicable. Otherwise, the taker will receive the surplus. This feature is only available to selected integrators on a custom pricing plan. In other cases, the surplus will be collected by 0x. For assistance with a custom plan, please contact support.",
819
+ "default": "",
820
+ "type": "string",
821
+ "routing": {
822
+ "send": {
823
+ "type": "query",
824
+ "property": "tradeSurplusRecipient",
825
+ "value": "={{ $value }}",
826
+ "propertyInDotNotation": false
827
+ }
828
+ },
829
+ "displayOptions": {
830
+ "show": {
831
+ "resource": [
832
+ "Gasless"
833
+ ],
834
+ "operation": [
835
+ "Gasless Get Quote"
836
+ ]
837
+ }
838
+ }
839
+ },
840
+ {
841
+ "displayName": "Trade Surplus Max Bps",
842
+ "name": "tradeSurplusMaxBps",
843
+ "description": "The maximum trade surplus (positive slippage) that can be collected in Bps of the buy amount. If not provided, defaults to 10000 (100%). Must be used together with `tradeSurplusRecipient`.",
844
+ "default": 0,
845
+ "type": "number",
846
+ "routing": {
847
+ "send": {
848
+ "type": "query",
849
+ "property": "tradeSurplusMaxBps",
850
+ "value": "={{ $value }}",
851
+ "propertyInDotNotation": false
852
+ }
853
+ },
854
+ "displayOptions": {
855
+ "show": {
856
+ "resource": [
857
+ "Gasless"
858
+ ],
859
+ "operation": [
860
+ "Gasless Get Quote"
861
+ ]
862
+ }
863
+ }
864
+ },
865
+ {
866
+ "displayName": "Slippage Bps",
867
+ "name": "slippageBps",
868
+ "description": "The maximum acceptable slippage of the `buyToken` in Bps. 0x sets the optimal slippage tolerance per trade by default. To mitigate the risk of MEV attacks, we recommend adjusting this value only when trading low-liquidity tokens.",
869
+ "default": 0,
870
+ "type": "number",
871
+ "routing": {
872
+ "send": {
873
+ "type": "query",
874
+ "property": "slippageBps",
875
+ "value": "={{ $value }}",
876
+ "propertyInDotNotation": false
877
+ }
878
+ },
879
+ "displayOptions": {
880
+ "show": {
881
+ "resource": [
882
+ "Gasless"
883
+ ],
884
+ "operation": [
885
+ "Gasless Get Quote"
886
+ ]
887
+ }
888
+ }
889
+ },
890
+ {
891
+ "displayName": "Slippage Ppm",
892
+ "name": "slippagePpm",
893
+ "description": "The maximum acceptable slippage of the `buyToken` in parts-per-million (PPM). Mutually exclusive with `slippageBps`. e.g. 3000 PPM = 30 BPS = 0.30%.",
894
+ "default": 0,
895
+ "type": "number",
896
+ "routing": {
897
+ "send": {
898
+ "type": "query",
899
+ "property": "slippagePpm",
900
+ "value": "={{ $value }}",
901
+ "propertyInDotNotation": false
902
+ }
903
+ },
904
+ "displayOptions": {
905
+ "show": {
906
+ "resource": [
907
+ "Gasless"
908
+ ],
909
+ "operation": [
910
+ "Gasless Get Quote"
911
+ ]
912
+ }
913
+ }
914
+ },
915
+ {
916
+ "displayName": "Excluded Sources",
917
+ "name": "excludedSources",
918
+ "description": "Liquidity sources e.g. Uniswap_V3, SushiSwap, 0x_RFQ to exclude from the provided quote. See `https://api.0x.org/sources?chainId=<chain_id>` with the desired chain's ID for a full list of sources. Separate multiple sources with a comma",
919
+ "default": "",
920
+ "type": "string",
921
+ "routing": {
922
+ "send": {
923
+ "type": "query",
924
+ "property": "excludedSources",
925
+ "value": "={{ $value }}",
926
+ "propertyInDotNotation": false
927
+ }
928
+ },
929
+ "displayOptions": {
930
+ "show": {
931
+ "resource": [
932
+ "Gasless"
933
+ ],
934
+ "operation": [
935
+ "Gasless Get Quote"
936
+ ]
937
+ }
938
+ }
939
+ },
940
+ {
941
+ "displayName": "POST /gasless/submit",
942
+ "name": "operation",
943
+ "type": "notice",
944
+ "typeOptions": {
945
+ "theme": "info"
946
+ },
947
+ "default": "",
948
+ "displayOptions": {
949
+ "show": {
950
+ "resource": [
951
+ "Gasless"
952
+ ],
953
+ "operation": [
954
+ "Gasless Submit"
955
+ ]
956
+ }
957
+ }
958
+ },
959
+ {
960
+ "displayName": "0 X Api Key",
961
+ "name": "0x-api-key",
962
+ "required": true,
963
+ "description": "Visit dashboard.0x.org to get your API Key",
964
+ "default": "",
965
+ "type": "string",
966
+ "routing": {
967
+ "request": {
968
+ "headers": {
969
+ "0x-api-key": "={{ $value }}"
970
+ }
971
+ }
972
+ },
973
+ "displayOptions": {
974
+ "show": {
975
+ "resource": [
976
+ "Gasless"
977
+ ],
978
+ "operation": [
979
+ "Gasless Submit"
980
+ ]
981
+ }
982
+ }
983
+ },
984
+ {
985
+ "displayName": "0 X Version",
986
+ "name": "0x-version",
987
+ "required": true,
988
+ "description": "API version",
989
+ "default": "v2",
990
+ "type": "string",
991
+ "routing": {
992
+ "request": {
993
+ "headers": {
994
+ "0x-version": "={{ $value }}"
995
+ }
996
+ }
997
+ },
998
+ "displayOptions": {
999
+ "show": {
1000
+ "resource": [
1001
+ "Gasless"
1002
+ ],
1003
+ "operation": [
1004
+ "Gasless Submit"
1005
+ ]
1006
+ }
1007
+ }
1008
+ },
1009
+ {
1010
+ "required": true,
1011
+ "displayName": "Chain Id",
1012
+ "name": "chainId",
1013
+ "type": "number",
1014
+ "default": 0,
1015
+ "description": "Chain ID. See [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains",
1016
+ "routing": {
1017
+ "send": {
1018
+ "property": "chainId",
1019
+ "propertyInDotNotation": false,
1020
+ "type": "body",
1021
+ "value": "={{ $value }}"
1022
+ }
1023
+ },
1024
+ "displayOptions": {
1025
+ "show": {
1026
+ "resource": [
1027
+ "Gasless"
1028
+ ],
1029
+ "operation": [
1030
+ "Gasless Submit"
1031
+ ]
1032
+ }
1033
+ }
1034
+ },
1035
+ {
1036
+ "displayName": "Approval",
1037
+ "name": "approval",
1038
+ "type": "json",
1039
+ "default": "{\n \"eip712\": {\n \"types\": {\n \"EIP712Domain\": [\n {}\n ],\n \"Permit\": [\n {}\n ]\n },\n \"domain\": {},\n \"message\": {}\n },\n \"signature\": {}\n}",
1040
+ "description": "The gasless approval object from the quote endpoint including its signature",
1041
+ "routing": {
1042
+ "send": {
1043
+ "property": "approval",
1044
+ "propertyInDotNotation": false,
1045
+ "type": "body",
1046
+ "value": "={{ JSON.parse($value) }}"
1047
+ }
1048
+ },
1049
+ "displayOptions": {
1050
+ "show": {
1051
+ "resource": [
1052
+ "Gasless"
1053
+ ],
1054
+ "operation": [
1055
+ "Gasless Submit"
1056
+ ]
1057
+ }
1058
+ }
1059
+ },
1060
+ {
1061
+ "required": true,
1062
+ "displayName": "Trade",
1063
+ "name": "trade",
1064
+ "type": "json",
1065
+ "default": "{\n \"eip712\": {\n \"domain\": {},\n \"message\": {\n \"permitted\": {},\n \"slippageAndActions\": {\n \"actions\": [\n null\n ]\n }\n }\n },\n \"signature\": {}\n}",
1066
+ "description": "The trade object from the quote endpoint including its signature",
1067
+ "routing": {
1068
+ "send": {
1069
+ "property": "trade",
1070
+ "propertyInDotNotation": false,
1071
+ "type": "body",
1072
+ "value": "={{ JSON.parse($value) }}"
1073
+ }
1074
+ },
1075
+ "displayOptions": {
1076
+ "show": {
1077
+ "resource": [
1078
+ "Gasless"
1079
+ ],
1080
+ "operation": [
1081
+ "Gasless Submit"
1082
+ ]
1083
+ }
1084
+ }
1085
+ },
1086
+ {
1087
+ "displayName": "GET /gasless/status/{tradeHash}",
1088
+ "name": "operation",
1089
+ "type": "notice",
1090
+ "typeOptions": {
1091
+ "theme": "info"
1092
+ },
1093
+ "default": "",
1094
+ "displayOptions": {
1095
+ "show": {
1096
+ "resource": [
1097
+ "Gasless"
1098
+ ],
1099
+ "operation": [
1100
+ "Gasless Get Status"
1101
+ ]
1102
+ }
1103
+ }
1104
+ },
1105
+ {
1106
+ "displayName": "0 X Api Key",
1107
+ "name": "0x-api-key",
1108
+ "required": true,
1109
+ "description": "Visit dashboard.0x.org to get your API Key",
1110
+ "default": "",
1111
+ "type": "string",
1112
+ "routing": {
1113
+ "request": {
1114
+ "headers": {
1115
+ "0x-api-key": "={{ $value }}"
1116
+ }
1117
+ }
1118
+ },
1119
+ "displayOptions": {
1120
+ "show": {
1121
+ "resource": [
1122
+ "Gasless"
1123
+ ],
1124
+ "operation": [
1125
+ "Gasless Get Status"
1126
+ ]
1127
+ }
1128
+ }
1129
+ },
1130
+ {
1131
+ "displayName": "0 X Version",
1132
+ "name": "0x-version",
1133
+ "required": true,
1134
+ "description": "API version",
1135
+ "default": "v2",
1136
+ "type": "string",
1137
+ "routing": {
1138
+ "request": {
1139
+ "headers": {
1140
+ "0x-version": "={{ $value }}"
1141
+ }
1142
+ }
1143
+ },
1144
+ "displayOptions": {
1145
+ "show": {
1146
+ "resource": [
1147
+ "Gasless"
1148
+ ],
1149
+ "operation": [
1150
+ "Gasless Get Status"
1151
+ ]
1152
+ }
1153
+ }
1154
+ },
1155
+ {
1156
+ "displayName": "Chain Id",
1157
+ "name": "chainId",
1158
+ "required": true,
1159
+ "description": " [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains",
1160
+ "default": 8453,
1161
+ "type": "number",
1162
+ "routing": {
1163
+ "send": {
1164
+ "type": "query",
1165
+ "property": "chainId",
1166
+ "value": "={{ $value }}",
1167
+ "propertyInDotNotation": false
1168
+ }
1169
+ },
1170
+ "displayOptions": {
1171
+ "show": {
1172
+ "resource": [
1173
+ "Gasless"
1174
+ ],
1175
+ "operation": [
1176
+ "Gasless Get Status"
1177
+ ]
1178
+ }
1179
+ }
1180
+ },
1181
+ {
1182
+ "displayName": "Trade Hash",
1183
+ "name": "tradeHash",
1184
+ "required": true,
1185
+ "description": "The hash for the trade according to [EIP-712](https://eips.ethereum.org/EIPS/eip-712)",
1186
+ "default": "0x6c89e4ac46b246ab72cba02a9fb4f3525b9f8a11ea74262d5dd8ff0e024daf60",
1187
+ "type": "string",
1188
+ "displayOptions": {
1189
+ "show": {
1190
+ "resource": [
1191
+ "Gasless"
1192
+ ],
1193
+ "operation": [
1194
+ "Gasless Get Status"
1195
+ ]
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ "displayName": "GET /gasless/gasless-approval-tokens",
1201
+ "name": "operation",
1202
+ "type": "notice",
1203
+ "typeOptions": {
1204
+ "theme": "info"
1205
+ },
1206
+ "default": "",
1207
+ "displayOptions": {
1208
+ "show": {
1209
+ "resource": [
1210
+ "Gasless"
1211
+ ],
1212
+ "operation": [
1213
+ "Gasless Get Gasless Approval Tokens"
1214
+ ]
1215
+ }
1216
+ }
1217
+ },
1218
+ {
1219
+ "displayName": "0 X Api Key",
1220
+ "name": "0x-api-key",
1221
+ "required": true,
1222
+ "description": "Visit dashboard.0x.org to get your API Key",
1223
+ "default": "",
1224
+ "type": "string",
1225
+ "routing": {
1226
+ "request": {
1227
+ "headers": {
1228
+ "0x-api-key": "={{ $value }}"
1229
+ }
1230
+ }
1231
+ },
1232
+ "displayOptions": {
1233
+ "show": {
1234
+ "resource": [
1235
+ "Gasless"
1236
+ ],
1237
+ "operation": [
1238
+ "Gasless Get Gasless Approval Tokens"
1239
+ ]
1240
+ }
1241
+ }
1242
+ },
1243
+ {
1244
+ "displayName": "0 X Version",
1245
+ "name": "0x-version",
1246
+ "required": true,
1247
+ "description": "API version",
1248
+ "default": "v2",
1249
+ "type": "string",
1250
+ "routing": {
1251
+ "request": {
1252
+ "headers": {
1253
+ "0x-version": "={{ $value }}"
1254
+ }
1255
+ }
1256
+ },
1257
+ "displayOptions": {
1258
+ "show": {
1259
+ "resource": [
1260
+ "Gasless"
1261
+ ],
1262
+ "operation": [
1263
+ "Gasless Get Gasless Approval Tokens"
1264
+ ]
1265
+ }
1266
+ }
1267
+ },
1268
+ {
1269
+ "displayName": "Chain Id",
1270
+ "name": "chainId",
1271
+ "required": true,
1272
+ "description": "Chain ID. See [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains",
1273
+ "default": 8453,
1274
+ "type": "number",
1275
+ "routing": {
1276
+ "send": {
1277
+ "type": "query",
1278
+ "property": "chainId",
1279
+ "value": "={{ $value }}",
1280
+ "propertyInDotNotation": false
1281
+ }
1282
+ },
1283
+ "displayOptions": {
1284
+ "show": {
1285
+ "resource": [
1286
+ "Gasless"
1287
+ ],
1288
+ "operation": [
1289
+ "Gasless Get Gasless Approval Tokens"
1290
+ ]
1291
+ }
1292
+ }
1293
+ },
1294
+ {
1295
+ "displayName": "GET /gasless/chains",
1296
+ "name": "operation",
1297
+ "type": "notice",
1298
+ "typeOptions": {
1299
+ "theme": "info"
1300
+ },
1301
+ "default": "",
1302
+ "displayOptions": {
1303
+ "show": {
1304
+ "resource": [
1305
+ "Gasless"
1306
+ ],
1307
+ "operation": [
1308
+ "Gasless Chains"
1309
+ ]
1310
+ }
1311
+ }
1312
+ },
1313
+ {
1314
+ "displayName": "0 X Api Key",
1315
+ "name": "0x-api-key",
1316
+ "required": true,
1317
+ "description": "Visit dashboard.0x.org to get your API Key",
1318
+ "default": "",
1319
+ "type": "string",
1320
+ "routing": {
1321
+ "request": {
1322
+ "headers": {
1323
+ "0x-api-key": "={{ $value }}"
1324
+ }
1325
+ }
1326
+ },
1327
+ "displayOptions": {
1328
+ "show": {
1329
+ "resource": [
1330
+ "Gasless"
1331
+ ],
1332
+ "operation": [
1333
+ "Gasless Chains"
1334
+ ]
1335
+ }
1336
+ }
1337
+ },
1338
+ {
1339
+ "displayName": "0 X Version",
1340
+ "name": "0x-version",
1341
+ "required": true,
1342
+ "description": "API version",
1343
+ "default": "v2",
1344
+ "type": "string",
1345
+ "routing": {
1346
+ "request": {
1347
+ "headers": {
1348
+ "0x-version": "={{ $value }}"
1349
+ }
1350
+ }
1351
+ },
1352
+ "displayOptions": {
1353
+ "show": {
1354
+ "resource": [
1355
+ "Gasless"
1356
+ ],
1357
+ "operation": [
1358
+ "Gasless Chains"
1359
+ ]
1360
+ }
1361
+ }
1362
+ },
1363
+ ];
1364
+ //# sourceMappingURL=index.js.map