@axonfi/sdk 0.1.1 → 0.2.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/dist/index.cjs CHANGED
@@ -37,7 +37,45 @@ var USDC = {
37
37
  // Arbitrum Sepolia
38
38
  421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"
39
39
  };
40
+ var Chain = /* @__PURE__ */ ((Chain2) => {
41
+ Chain2[Chain2["Base"] = 8453] = "Base";
42
+ Chain2[Chain2["BaseSepolia"] = 84532] = "BaseSepolia";
43
+ Chain2[Chain2["Arbitrum"] = 42161] = "Arbitrum";
44
+ Chain2[Chain2["ArbitrumSepolia"] = 421614] = "ArbitrumSepolia";
45
+ return Chain2;
46
+ })(Chain || {});
40
47
  var SUPPORTED_CHAIN_IDS = [8453, 84532, 42161, 421614];
48
+ var CHAIN_NAMES = {
49
+ [8453 /* Base */]: "Base",
50
+ [84532 /* BaseSepolia */]: "Base Sepolia",
51
+ [42161 /* Arbitrum */]: "Arbitrum One",
52
+ [421614 /* ArbitrumSepolia */]: "Arbitrum Sepolia",
53
+ // Future v1 chains (metadata only — not in SUPPORTED_CHAIN_IDS yet)
54
+ 10: "Optimism",
55
+ 11155420: "OP Sepolia",
56
+ 137: "Polygon",
57
+ 80002: "Polygon Amoy"
58
+ };
59
+ var EXPLORER_TX = {
60
+ [8453 /* Base */]: "https://basescan.org/tx/",
61
+ [84532 /* BaseSepolia */]: "https://sepolia.basescan.org/tx/",
62
+ [42161 /* Arbitrum */]: "https://arbiscan.io/tx/",
63
+ [421614 /* ArbitrumSepolia */]: "https://sepolia.arbiscan.io/tx/",
64
+ 10: "https://optimistic.etherscan.io/tx/",
65
+ 11155420: "https://sepolia-optimism.etherscan.io/tx/",
66
+ 137: "https://polygonscan.com/tx/",
67
+ 80002: "https://amoy.polygonscan.com/tx/"
68
+ };
69
+ var EXPLORER_ADDR = {
70
+ [8453 /* Base */]: "https://basescan.org/address/",
71
+ [84532 /* BaseSepolia */]: "https://sepolia.basescan.org/address/",
72
+ [42161 /* Arbitrum */]: "https://arbiscan.io/address/",
73
+ [421614 /* ArbitrumSepolia */]: "https://sepolia.arbiscan.io/address/",
74
+ 10: "https://optimistic.etherscan.io/address/",
75
+ 11155420: "https://sepolia-optimism.etherscan.io/address/",
76
+ 137: "https://polygonscan.com/address/",
77
+ 80002: "https://amoy.polygonscan.com/address/"
78
+ };
41
79
  var DEFAULT_DEADLINE_SECONDS = 300;
42
80
  var WINDOW = {
43
81
  ONE_HOUR: 3600n,
@@ -215,2322 +253,2322 @@ function encodeRef(memo) {
215
253
  // src/abis/AxonVault.ts
216
254
  var AxonVaultAbi = [
217
255
  {
218
- "type": "constructor",
219
- "inputs": [
256
+ type: "constructor",
257
+ inputs: [
220
258
  {
221
- "name": "_owner",
222
- "type": "address",
223
- "internalType": "address"
259
+ name: "_owner",
260
+ type: "address",
261
+ internalType: "address"
224
262
  },
225
263
  {
226
- "name": "_axonRegistry",
227
- "type": "address",
228
- "internalType": "address"
264
+ name: "_axonRegistry",
265
+ type: "address",
266
+ internalType: "address"
229
267
  },
230
268
  {
231
- "name": "_trackUsedIntents",
232
- "type": "bool",
233
- "internalType": "bool"
269
+ name: "_trackUsedIntents",
270
+ type: "bool",
271
+ internalType: "bool"
234
272
  }
235
273
  ],
236
- "stateMutability": "nonpayable"
274
+ stateMutability: "nonpayable"
237
275
  },
238
276
  {
239
- "type": "receive",
240
- "stateMutability": "payable"
277
+ type: "receive",
278
+ stateMutability: "payable"
241
279
  },
242
280
  {
243
- "type": "function",
244
- "name": "DOMAIN_SEPARATOR",
245
- "inputs": [],
246
- "outputs": [
281
+ type: "function",
282
+ name: "DOMAIN_SEPARATOR",
283
+ inputs: [],
284
+ outputs: [
247
285
  {
248
- "name": "",
249
- "type": "bytes32",
250
- "internalType": "bytes32"
286
+ name: "",
287
+ type: "bytes32",
288
+ internalType: "bytes32"
251
289
  }
252
290
  ],
253
- "stateMutability": "view"
291
+ stateMutability: "view"
254
292
  },
255
293
  {
256
- "type": "function",
257
- "name": "MAX_SPENDING_LIMITS",
258
- "inputs": [],
259
- "outputs": [
294
+ type: "function",
295
+ name: "MAX_SPENDING_LIMITS",
296
+ inputs: [],
297
+ outputs: [
260
298
  {
261
- "name": "",
262
- "type": "uint8",
263
- "internalType": "uint8"
299
+ name: "",
300
+ type: "uint8",
301
+ internalType: "uint8"
264
302
  }
265
303
  ],
266
- "stateMutability": "view"
304
+ stateMutability: "view"
267
305
  },
268
306
  {
269
- "type": "function",
270
- "name": "NATIVE_ETH",
271
- "inputs": [],
272
- "outputs": [
307
+ type: "function",
308
+ name: "NATIVE_ETH",
309
+ inputs: [],
310
+ outputs: [
273
311
  {
274
- "name": "",
275
- "type": "address",
276
- "internalType": "address"
312
+ name: "",
313
+ type: "address",
314
+ internalType: "address"
277
315
  }
278
316
  ],
279
- "stateMutability": "view"
317
+ stateMutability: "view"
280
318
  },
281
319
  {
282
- "type": "function",
283
- "name": "VERSION",
284
- "inputs": [],
285
- "outputs": [
320
+ type: "function",
321
+ name: "VERSION",
322
+ inputs: [],
323
+ outputs: [
286
324
  {
287
- "name": "",
288
- "type": "uint16",
289
- "internalType": "uint16"
325
+ name: "",
326
+ type: "uint16",
327
+ internalType: "uint16"
290
328
  }
291
329
  ],
292
- "stateMutability": "view"
330
+ stateMutability: "view"
293
331
  },
294
332
  {
295
- "type": "function",
296
- "name": "acceptOwnership",
297
- "inputs": [],
298
- "outputs": [],
299
- "stateMutability": "nonpayable"
333
+ type: "function",
334
+ name: "acceptOwnership",
335
+ inputs: [],
336
+ outputs: [],
337
+ stateMutability: "nonpayable"
300
338
  },
301
339
  {
302
- "type": "function",
303
- "name": "addBot",
304
- "inputs": [
340
+ type: "function",
341
+ name: "addBot",
342
+ inputs: [
305
343
  {
306
- "name": "bot",
307
- "type": "address",
308
- "internalType": "address"
344
+ name: "bot",
345
+ type: "address",
346
+ internalType: "address"
309
347
  },
310
348
  {
311
- "name": "params",
312
- "type": "tuple",
313
- "internalType": "struct AxonVault.BotConfigParams",
314
- "components": [
349
+ name: "params",
350
+ type: "tuple",
351
+ internalType: "struct AxonVault.BotConfigParams",
352
+ components: [
315
353
  {
316
- "name": "maxPerTxAmount",
317
- "type": "uint256",
318
- "internalType": "uint256"
354
+ name: "maxPerTxAmount",
355
+ type: "uint256",
356
+ internalType: "uint256"
319
357
  },
320
358
  {
321
- "name": "maxRebalanceAmount",
322
- "type": "uint256",
323
- "internalType": "uint256"
359
+ name: "maxRebalanceAmount",
360
+ type: "uint256",
361
+ internalType: "uint256"
324
362
  },
325
363
  {
326
- "name": "spendingLimits",
327
- "type": "tuple[]",
328
- "internalType": "struct AxonVault.SpendingLimit[]",
329
- "components": [
364
+ name: "spendingLimits",
365
+ type: "tuple[]",
366
+ internalType: "struct AxonVault.SpendingLimit[]",
367
+ components: [
330
368
  {
331
- "name": "amount",
332
- "type": "uint256",
333
- "internalType": "uint256"
369
+ name: "amount",
370
+ type: "uint256",
371
+ internalType: "uint256"
334
372
  },
335
373
  {
336
- "name": "maxCount",
337
- "type": "uint256",
338
- "internalType": "uint256"
374
+ name: "maxCount",
375
+ type: "uint256",
376
+ internalType: "uint256"
339
377
  },
340
378
  {
341
- "name": "windowSeconds",
342
- "type": "uint256",
343
- "internalType": "uint256"
379
+ name: "windowSeconds",
380
+ type: "uint256",
381
+ internalType: "uint256"
344
382
  }
345
383
  ]
346
384
  },
347
385
  {
348
- "name": "aiTriggerThreshold",
349
- "type": "uint256",
350
- "internalType": "uint256"
386
+ name: "aiTriggerThreshold",
387
+ type: "uint256",
388
+ internalType: "uint256"
351
389
  },
352
390
  {
353
- "name": "requireAiVerification",
354
- "type": "bool",
355
- "internalType": "bool"
391
+ name: "requireAiVerification",
392
+ type: "bool",
393
+ internalType: "bool"
356
394
  }
357
395
  ]
358
396
  }
359
397
  ],
360
- "outputs": [],
361
- "stateMutability": "nonpayable"
398
+ outputs: [],
399
+ stateMutability: "nonpayable"
362
400
  },
363
401
  {
364
- "type": "function",
365
- "name": "addBotDestination",
366
- "inputs": [
402
+ type: "function",
403
+ name: "addBotDestination",
404
+ inputs: [
367
405
  {
368
- "name": "bot",
369
- "type": "address",
370
- "internalType": "address"
406
+ name: "bot",
407
+ type: "address",
408
+ internalType: "address"
371
409
  },
372
410
  {
373
- "name": "destination",
374
- "type": "address",
375
- "internalType": "address"
411
+ name: "destination",
412
+ type: "address",
413
+ internalType: "address"
376
414
  }
377
415
  ],
378
- "outputs": [],
379
- "stateMutability": "nonpayable"
416
+ outputs: [],
417
+ stateMutability: "nonpayable"
380
418
  },
381
419
  {
382
- "type": "function",
383
- "name": "addGlobalBlacklist",
384
- "inputs": [
420
+ type: "function",
421
+ name: "addGlobalBlacklist",
422
+ inputs: [
385
423
  {
386
- "name": "destination",
387
- "type": "address",
388
- "internalType": "address"
424
+ name: "destination",
425
+ type: "address",
426
+ internalType: "address"
389
427
  }
390
428
  ],
391
- "outputs": [],
392
- "stateMutability": "nonpayable"
429
+ outputs: [],
430
+ stateMutability: "nonpayable"
393
431
  },
394
432
  {
395
- "type": "function",
396
- "name": "addGlobalDestination",
397
- "inputs": [
433
+ type: "function",
434
+ name: "addGlobalDestination",
435
+ inputs: [
398
436
  {
399
- "name": "destination",
400
- "type": "address",
401
- "internalType": "address"
437
+ name: "destination",
438
+ type: "address",
439
+ internalType: "address"
402
440
  }
403
441
  ],
404
- "outputs": [],
405
- "stateMutability": "nonpayable"
442
+ outputs: [],
443
+ stateMutability: "nonpayable"
406
444
  },
407
445
  {
408
- "type": "function",
409
- "name": "addProtocol",
410
- "inputs": [
446
+ type: "function",
447
+ name: "addProtocol",
448
+ inputs: [
411
449
  {
412
- "name": "protocol",
413
- "type": "address",
414
- "internalType": "address"
450
+ name: "protocol",
451
+ type: "address",
452
+ internalType: "address"
415
453
  }
416
454
  ],
417
- "outputs": [],
418
- "stateMutability": "nonpayable"
455
+ outputs: [],
456
+ stateMutability: "nonpayable"
419
457
  },
420
458
  {
421
- "type": "function",
422
- "name": "addRebalanceTokens",
423
- "inputs": [
459
+ type: "function",
460
+ name: "addRebalanceTokens",
461
+ inputs: [
424
462
  {
425
- "name": "tokens",
426
- "type": "address[]",
427
- "internalType": "address[]"
463
+ name: "tokens",
464
+ type: "address[]",
465
+ internalType: "address[]"
428
466
  }
429
467
  ],
430
- "outputs": [],
431
- "stateMutability": "nonpayable"
468
+ outputs: [],
469
+ stateMutability: "nonpayable"
432
470
  },
433
471
  {
434
- "type": "function",
435
- "name": "approvedProtocolCount",
436
- "inputs": [],
437
- "outputs": [
472
+ type: "function",
473
+ name: "approvedProtocolCount",
474
+ inputs: [],
475
+ outputs: [
438
476
  {
439
- "name": "",
440
- "type": "uint256",
441
- "internalType": "uint256"
477
+ name: "",
478
+ type: "uint256",
479
+ internalType: "uint256"
442
480
  }
443
481
  ],
444
- "stateMutability": "view"
482
+ stateMutability: "view"
445
483
  },
446
484
  {
447
- "type": "function",
448
- "name": "approvedProtocols",
449
- "inputs": [
485
+ type: "function",
486
+ name: "approvedProtocols",
487
+ inputs: [
450
488
  {
451
- "name": "",
452
- "type": "address",
453
- "internalType": "address"
489
+ name: "",
490
+ type: "address",
491
+ internalType: "address"
454
492
  }
455
493
  ],
456
- "outputs": [
494
+ outputs: [
457
495
  {
458
- "name": "",
459
- "type": "bool",
460
- "internalType": "bool"
496
+ name: "",
497
+ type: "bool",
498
+ internalType: "bool"
461
499
  }
462
500
  ],
463
- "stateMutability": "view"
501
+ stateMutability: "view"
464
502
  },
465
503
  {
466
- "type": "function",
467
- "name": "axonRegistry",
468
- "inputs": [],
469
- "outputs": [
504
+ type: "function",
505
+ name: "axonRegistry",
506
+ inputs: [],
507
+ outputs: [
470
508
  {
471
- "name": "",
472
- "type": "address",
473
- "internalType": "address"
509
+ name: "",
510
+ type: "address",
511
+ internalType: "address"
474
512
  }
475
513
  ],
476
- "stateMutability": "view"
514
+ stateMutability: "view"
477
515
  },
478
516
  {
479
- "type": "function",
480
- "name": "botAddedByOperator",
481
- "inputs": [
517
+ type: "function",
518
+ name: "botAddedByOperator",
519
+ inputs: [
482
520
  {
483
- "name": "",
484
- "type": "address",
485
- "internalType": "address"
521
+ name: "",
522
+ type: "address",
523
+ internalType: "address"
486
524
  }
487
525
  ],
488
- "outputs": [
526
+ outputs: [
489
527
  {
490
- "name": "",
491
- "type": "bool",
492
- "internalType": "bool"
528
+ name: "",
529
+ type: "bool",
530
+ internalType: "bool"
493
531
  }
494
532
  ],
495
- "stateMutability": "view"
533
+ stateMutability: "view"
496
534
  },
497
535
  {
498
- "type": "function",
499
- "name": "botDestinationCount",
500
- "inputs": [
536
+ type: "function",
537
+ name: "botDestinationCount",
538
+ inputs: [
501
539
  {
502
- "name": "",
503
- "type": "address",
504
- "internalType": "address"
540
+ name: "",
541
+ type: "address",
542
+ internalType: "address"
505
543
  }
506
544
  ],
507
- "outputs": [
545
+ outputs: [
508
546
  {
509
- "name": "",
510
- "type": "uint256",
511
- "internalType": "uint256"
547
+ name: "",
548
+ type: "uint256",
549
+ internalType: "uint256"
512
550
  }
513
551
  ],
514
- "stateMutability": "view"
552
+ stateMutability: "view"
515
553
  },
516
554
  {
517
- "type": "function",
518
- "name": "botDestinationWhitelist",
519
- "inputs": [
555
+ type: "function",
556
+ name: "botDestinationWhitelist",
557
+ inputs: [
520
558
  {
521
- "name": "",
522
- "type": "address",
523
- "internalType": "address"
559
+ name: "",
560
+ type: "address",
561
+ internalType: "address"
524
562
  },
525
563
  {
526
- "name": "",
527
- "type": "address",
528
- "internalType": "address"
564
+ name: "",
565
+ type: "address",
566
+ internalType: "address"
529
567
  }
530
568
  ],
531
- "outputs": [
569
+ outputs: [
532
570
  {
533
- "name": "",
534
- "type": "bool",
535
- "internalType": "bool"
571
+ name: "",
572
+ type: "bool",
573
+ internalType: "bool"
536
574
  }
537
575
  ],
538
- "stateMutability": "view"
576
+ stateMutability: "view"
539
577
  },
540
578
  {
541
- "type": "function",
542
- "name": "deposit",
543
- "inputs": [
579
+ type: "function",
580
+ name: "deposit",
581
+ inputs: [
544
582
  {
545
- "name": "token",
546
- "type": "address",
547
- "internalType": "address"
583
+ name: "token",
584
+ type: "address",
585
+ internalType: "address"
548
586
  },
549
587
  {
550
- "name": "amount",
551
- "type": "uint256",
552
- "internalType": "uint256"
588
+ name: "amount",
589
+ type: "uint256",
590
+ internalType: "uint256"
553
591
  },
554
592
  {
555
- "name": "ref",
556
- "type": "bytes32",
557
- "internalType": "bytes32"
593
+ name: "ref",
594
+ type: "bytes32",
595
+ internalType: "bytes32"
558
596
  }
559
597
  ],
560
- "outputs": [],
561
- "stateMutability": "payable"
598
+ outputs: [],
599
+ stateMutability: "payable"
562
600
  },
563
601
  {
564
- "type": "function",
565
- "name": "eip712Domain",
566
- "inputs": [],
567
- "outputs": [
602
+ type: "function",
603
+ name: "eip712Domain",
604
+ inputs: [],
605
+ outputs: [
568
606
  {
569
- "name": "fields",
570
- "type": "bytes1",
571
- "internalType": "bytes1"
607
+ name: "fields",
608
+ type: "bytes1",
609
+ internalType: "bytes1"
572
610
  },
573
611
  {
574
- "name": "name",
575
- "type": "string",
576
- "internalType": "string"
612
+ name: "name",
613
+ type: "string",
614
+ internalType: "string"
577
615
  },
578
616
  {
579
- "name": "version",
580
- "type": "string",
581
- "internalType": "string"
617
+ name: "version",
618
+ type: "string",
619
+ internalType: "string"
582
620
  },
583
621
  {
584
- "name": "chainId",
585
- "type": "uint256",
586
- "internalType": "uint256"
622
+ name: "chainId",
623
+ type: "uint256",
624
+ internalType: "uint256"
587
625
  },
588
626
  {
589
- "name": "verifyingContract",
590
- "type": "address",
591
- "internalType": "address"
627
+ name: "verifyingContract",
628
+ type: "address",
629
+ internalType: "address"
592
630
  },
593
631
  {
594
- "name": "salt",
595
- "type": "bytes32",
596
- "internalType": "bytes32"
632
+ name: "salt",
633
+ type: "bytes32",
634
+ internalType: "bytes32"
597
635
  },
598
636
  {
599
- "name": "extensions",
600
- "type": "uint256[]",
601
- "internalType": "uint256[]"
637
+ name: "extensions",
638
+ type: "uint256[]",
639
+ internalType: "uint256[]"
602
640
  }
603
641
  ],
604
- "stateMutability": "view"
642
+ stateMutability: "view"
605
643
  },
606
644
  {
607
- "type": "function",
608
- "name": "executePayment",
609
- "inputs": [
645
+ type: "function",
646
+ name: "executePayment",
647
+ inputs: [
610
648
  {
611
- "name": "intent",
612
- "type": "tuple",
613
- "internalType": "struct AxonVault.PaymentIntent",
614
- "components": [
649
+ name: "intent",
650
+ type: "tuple",
651
+ internalType: "struct AxonVault.PaymentIntent",
652
+ components: [
615
653
  {
616
- "name": "bot",
617
- "type": "address",
618
- "internalType": "address"
654
+ name: "bot",
655
+ type: "address",
656
+ internalType: "address"
619
657
  },
620
658
  {
621
- "name": "to",
622
- "type": "address",
623
- "internalType": "address"
659
+ name: "to",
660
+ type: "address",
661
+ internalType: "address"
624
662
  },
625
663
  {
626
- "name": "token",
627
- "type": "address",
628
- "internalType": "address"
664
+ name: "token",
665
+ type: "address",
666
+ internalType: "address"
629
667
  },
630
668
  {
631
- "name": "amount",
632
- "type": "uint256",
633
- "internalType": "uint256"
669
+ name: "amount",
670
+ type: "uint256",
671
+ internalType: "uint256"
634
672
  },
635
673
  {
636
- "name": "deadline",
637
- "type": "uint256",
638
- "internalType": "uint256"
674
+ name: "deadline",
675
+ type: "uint256",
676
+ internalType: "uint256"
639
677
  },
640
678
  {
641
- "name": "ref",
642
- "type": "bytes32",
643
- "internalType": "bytes32"
679
+ name: "ref",
680
+ type: "bytes32",
681
+ internalType: "bytes32"
644
682
  }
645
683
  ]
646
684
  },
647
685
  {
648
- "name": "signature",
649
- "type": "bytes",
650
- "internalType": "bytes"
686
+ name: "signature",
687
+ type: "bytes",
688
+ internalType: "bytes"
651
689
  },
652
690
  {
653
- "name": "fromToken",
654
- "type": "address",
655
- "internalType": "address"
691
+ name: "fromToken",
692
+ type: "address",
693
+ internalType: "address"
656
694
  },
657
695
  {
658
- "name": "maxFromAmount",
659
- "type": "uint256",
660
- "internalType": "uint256"
696
+ name: "maxFromAmount",
697
+ type: "uint256",
698
+ internalType: "uint256"
661
699
  },
662
700
  {
663
- "name": "swapRouter",
664
- "type": "address",
665
- "internalType": "address"
701
+ name: "swapRouter",
702
+ type: "address",
703
+ internalType: "address"
666
704
  },
667
705
  {
668
- "name": "swapCalldata",
669
- "type": "bytes",
670
- "internalType": "bytes"
706
+ name: "swapCalldata",
707
+ type: "bytes",
708
+ internalType: "bytes"
671
709
  }
672
710
  ],
673
- "outputs": [],
674
- "stateMutability": "nonpayable"
711
+ outputs: [],
712
+ stateMutability: "nonpayable"
675
713
  },
676
714
  {
677
- "type": "function",
678
- "name": "executeProtocol",
679
- "inputs": [
715
+ type: "function",
716
+ name: "executeProtocol",
717
+ inputs: [
680
718
  {
681
- "name": "intent",
682
- "type": "tuple",
683
- "internalType": "struct AxonVault.ExecuteIntent",
684
- "components": [
719
+ name: "intent",
720
+ type: "tuple",
721
+ internalType: "struct AxonVault.ExecuteIntent",
722
+ components: [
685
723
  {
686
- "name": "bot",
687
- "type": "address",
688
- "internalType": "address"
724
+ name: "bot",
725
+ type: "address",
726
+ internalType: "address"
689
727
  },
690
728
  {
691
- "name": "protocol",
692
- "type": "address",
693
- "internalType": "address"
729
+ name: "protocol",
730
+ type: "address",
731
+ internalType: "address"
694
732
  },
695
733
  {
696
- "name": "calldataHash",
697
- "type": "bytes32",
698
- "internalType": "bytes32"
734
+ name: "calldataHash",
735
+ type: "bytes32",
736
+ internalType: "bytes32"
699
737
  },
700
738
  {
701
- "name": "token",
702
- "type": "address",
703
- "internalType": "address"
739
+ name: "token",
740
+ type: "address",
741
+ internalType: "address"
704
742
  },
705
743
  {
706
- "name": "amount",
707
- "type": "uint256",
708
- "internalType": "uint256"
744
+ name: "amount",
745
+ type: "uint256",
746
+ internalType: "uint256"
709
747
  },
710
748
  {
711
- "name": "deadline",
712
- "type": "uint256",
713
- "internalType": "uint256"
749
+ name: "deadline",
750
+ type: "uint256",
751
+ internalType: "uint256"
714
752
  },
715
753
  {
716
- "name": "ref",
717
- "type": "bytes32",
718
- "internalType": "bytes32"
754
+ name: "ref",
755
+ type: "bytes32",
756
+ internalType: "bytes32"
719
757
  }
720
758
  ]
721
759
  },
722
760
  {
723
- "name": "signature",
724
- "type": "bytes",
725
- "internalType": "bytes"
761
+ name: "signature",
762
+ type: "bytes",
763
+ internalType: "bytes"
726
764
  },
727
765
  {
728
- "name": "callData",
729
- "type": "bytes",
730
- "internalType": "bytes"
766
+ name: "callData",
767
+ type: "bytes",
768
+ internalType: "bytes"
731
769
  },
732
770
  {
733
- "name": "fromToken",
734
- "type": "address",
735
- "internalType": "address"
771
+ name: "fromToken",
772
+ type: "address",
773
+ internalType: "address"
736
774
  },
737
775
  {
738
- "name": "maxFromAmount",
739
- "type": "uint256",
740
- "internalType": "uint256"
776
+ name: "maxFromAmount",
777
+ type: "uint256",
778
+ internalType: "uint256"
741
779
  },
742
780
  {
743
- "name": "swapRouter",
744
- "type": "address",
745
- "internalType": "address"
781
+ name: "swapRouter",
782
+ type: "address",
783
+ internalType: "address"
746
784
  },
747
785
  {
748
- "name": "swapCalldata",
749
- "type": "bytes",
750
- "internalType": "bytes"
786
+ name: "swapCalldata",
787
+ type: "bytes",
788
+ internalType: "bytes"
751
789
  }
752
790
  ],
753
- "outputs": [
791
+ outputs: [
754
792
  {
755
- "name": "",
756
- "type": "bytes",
757
- "internalType": "bytes"
793
+ name: "",
794
+ type: "bytes",
795
+ internalType: "bytes"
758
796
  }
759
797
  ],
760
- "stateMutability": "nonpayable"
798
+ stateMutability: "nonpayable"
761
799
  },
762
800
  {
763
- "type": "function",
764
- "name": "executeSwap",
765
- "inputs": [
801
+ type: "function",
802
+ name: "executeSwap",
803
+ inputs: [
766
804
  {
767
- "name": "intent",
768
- "type": "tuple",
769
- "internalType": "struct AxonVault.SwapIntent",
770
- "components": [
805
+ name: "intent",
806
+ type: "tuple",
807
+ internalType: "struct AxonVault.SwapIntent",
808
+ components: [
771
809
  {
772
- "name": "bot",
773
- "type": "address",
774
- "internalType": "address"
810
+ name: "bot",
811
+ type: "address",
812
+ internalType: "address"
775
813
  },
776
814
  {
777
- "name": "toToken",
778
- "type": "address",
779
- "internalType": "address"
815
+ name: "toToken",
816
+ type: "address",
817
+ internalType: "address"
780
818
  },
781
819
  {
782
- "name": "minToAmount",
783
- "type": "uint256",
784
- "internalType": "uint256"
820
+ name: "minToAmount",
821
+ type: "uint256",
822
+ internalType: "uint256"
785
823
  },
786
824
  {
787
- "name": "deadline",
788
- "type": "uint256",
789
- "internalType": "uint256"
825
+ name: "deadline",
826
+ type: "uint256",
827
+ internalType: "uint256"
790
828
  },
791
829
  {
792
- "name": "ref",
793
- "type": "bytes32",
794
- "internalType": "bytes32"
830
+ name: "ref",
831
+ type: "bytes32",
832
+ internalType: "bytes32"
795
833
  }
796
834
  ]
797
835
  },
798
836
  {
799
- "name": "signature",
800
- "type": "bytes",
801
- "internalType": "bytes"
837
+ name: "signature",
838
+ type: "bytes",
839
+ internalType: "bytes"
802
840
  },
803
841
  {
804
- "name": "fromToken",
805
- "type": "address",
806
- "internalType": "address"
842
+ name: "fromToken",
843
+ type: "address",
844
+ internalType: "address"
807
845
  },
808
846
  {
809
- "name": "maxFromAmount",
810
- "type": "uint256",
811
- "internalType": "uint256"
847
+ name: "maxFromAmount",
848
+ type: "uint256",
849
+ internalType: "uint256"
812
850
  },
813
851
  {
814
- "name": "swapRouter",
815
- "type": "address",
816
- "internalType": "address"
852
+ name: "swapRouter",
853
+ type: "address",
854
+ internalType: "address"
817
855
  },
818
856
  {
819
- "name": "swapCalldata",
820
- "type": "bytes",
821
- "internalType": "bytes"
857
+ name: "swapCalldata",
858
+ type: "bytes",
859
+ internalType: "bytes"
822
860
  }
823
861
  ],
824
- "outputs": [],
825
- "stateMutability": "nonpayable"
862
+ outputs: [],
863
+ stateMutability: "nonpayable"
826
864
  },
827
865
  {
828
- "type": "function",
829
- "name": "getBotConfig",
830
- "inputs": [
866
+ type: "function",
867
+ name: "getBotConfig",
868
+ inputs: [
831
869
  {
832
- "name": "bot",
833
- "type": "address",
834
- "internalType": "address"
870
+ name: "bot",
871
+ type: "address",
872
+ internalType: "address"
835
873
  }
836
874
  ],
837
- "outputs": [
875
+ outputs: [
838
876
  {
839
- "name": "",
840
- "type": "tuple",
841
- "internalType": "struct AxonVault.BotConfig",
842
- "components": [
877
+ name: "",
878
+ type: "tuple",
879
+ internalType: "struct AxonVault.BotConfig",
880
+ components: [
843
881
  {
844
- "name": "isActive",
845
- "type": "bool",
846
- "internalType": "bool"
882
+ name: "isActive",
883
+ type: "bool",
884
+ internalType: "bool"
847
885
  },
848
886
  {
849
- "name": "registeredAt",
850
- "type": "uint256",
851
- "internalType": "uint256"
887
+ name: "registeredAt",
888
+ type: "uint256",
889
+ internalType: "uint256"
852
890
  },
853
891
  {
854
- "name": "maxPerTxAmount",
855
- "type": "uint256",
856
- "internalType": "uint256"
892
+ name: "maxPerTxAmount",
893
+ type: "uint256",
894
+ internalType: "uint256"
857
895
  },
858
896
  {
859
- "name": "maxRebalanceAmount",
860
- "type": "uint256",
861
- "internalType": "uint256"
897
+ name: "maxRebalanceAmount",
898
+ type: "uint256",
899
+ internalType: "uint256"
862
900
  },
863
901
  {
864
- "name": "spendingLimits",
865
- "type": "tuple[]",
866
- "internalType": "struct AxonVault.SpendingLimit[]",
867
- "components": [
902
+ name: "spendingLimits",
903
+ type: "tuple[]",
904
+ internalType: "struct AxonVault.SpendingLimit[]",
905
+ components: [
868
906
  {
869
- "name": "amount",
870
- "type": "uint256",
871
- "internalType": "uint256"
907
+ name: "amount",
908
+ type: "uint256",
909
+ internalType: "uint256"
872
910
  },
873
911
  {
874
- "name": "maxCount",
875
- "type": "uint256",
876
- "internalType": "uint256"
912
+ name: "maxCount",
913
+ type: "uint256",
914
+ internalType: "uint256"
877
915
  },
878
916
  {
879
- "name": "windowSeconds",
880
- "type": "uint256",
881
- "internalType": "uint256"
917
+ name: "windowSeconds",
918
+ type: "uint256",
919
+ internalType: "uint256"
882
920
  }
883
921
  ]
884
922
  },
885
923
  {
886
- "name": "aiTriggerThreshold",
887
- "type": "uint256",
888
- "internalType": "uint256"
924
+ name: "aiTriggerThreshold",
925
+ type: "uint256",
926
+ internalType: "uint256"
889
927
  },
890
928
  {
891
- "name": "requireAiVerification",
892
- "type": "bool",
893
- "internalType": "bool"
929
+ name: "requireAiVerification",
930
+ type: "bool",
931
+ internalType: "bool"
894
932
  }
895
933
  ]
896
934
  }
897
935
  ],
898
- "stateMutability": "view"
936
+ stateMutability: "view"
899
937
  },
900
938
  {
901
- "type": "function",
902
- "name": "globalBlacklistCount",
903
- "inputs": [],
904
- "outputs": [
939
+ type: "function",
940
+ name: "globalBlacklistCount",
941
+ inputs: [],
942
+ outputs: [
905
943
  {
906
- "name": "",
907
- "type": "uint256",
908
- "internalType": "uint256"
944
+ name: "",
945
+ type: "uint256",
946
+ internalType: "uint256"
909
947
  }
910
948
  ],
911
- "stateMutability": "view"
949
+ stateMutability: "view"
912
950
  },
913
951
  {
914
- "type": "function",
915
- "name": "globalDestinationBlacklist",
916
- "inputs": [
952
+ type: "function",
953
+ name: "globalDestinationBlacklist",
954
+ inputs: [
917
955
  {
918
- "name": "",
919
- "type": "address",
920
- "internalType": "address"
956
+ name: "",
957
+ type: "address",
958
+ internalType: "address"
921
959
  }
922
960
  ],
923
- "outputs": [
961
+ outputs: [
924
962
  {
925
- "name": "",
926
- "type": "bool",
927
- "internalType": "bool"
963
+ name: "",
964
+ type: "bool",
965
+ internalType: "bool"
928
966
  }
929
967
  ],
930
- "stateMutability": "view"
968
+ stateMutability: "view"
931
969
  },
932
970
  {
933
- "type": "function",
934
- "name": "globalDestinationCount",
935
- "inputs": [],
936
- "outputs": [
971
+ type: "function",
972
+ name: "globalDestinationCount",
973
+ inputs: [],
974
+ outputs: [
937
975
  {
938
- "name": "",
939
- "type": "uint256",
940
- "internalType": "uint256"
976
+ name: "",
977
+ type: "uint256",
978
+ internalType: "uint256"
941
979
  }
942
980
  ],
943
- "stateMutability": "view"
981
+ stateMutability: "view"
944
982
  },
945
983
  {
946
- "type": "function",
947
- "name": "globalDestinationWhitelist",
948
- "inputs": [
984
+ type: "function",
985
+ name: "globalDestinationWhitelist",
986
+ inputs: [
949
987
  {
950
- "name": "",
951
- "type": "address",
952
- "internalType": "address"
988
+ name: "",
989
+ type: "address",
990
+ internalType: "address"
953
991
  }
954
992
  ],
955
- "outputs": [
993
+ outputs: [
956
994
  {
957
- "name": "",
958
- "type": "bool",
959
- "internalType": "bool"
995
+ name: "",
996
+ type: "bool",
997
+ internalType: "bool"
960
998
  }
961
999
  ],
962
- "stateMutability": "view"
1000
+ stateMutability: "view"
963
1001
  },
964
1002
  {
965
- "type": "function",
966
- "name": "isBotActive",
967
- "inputs": [
1003
+ type: "function",
1004
+ name: "isBotActive",
1005
+ inputs: [
968
1006
  {
969
- "name": "bot",
970
- "type": "address",
971
- "internalType": "address"
1007
+ name: "bot",
1008
+ type: "address",
1009
+ internalType: "address"
972
1010
  }
973
1011
  ],
974
- "outputs": [
1012
+ outputs: [
975
1013
  {
976
- "name": "",
977
- "type": "bool",
978
- "internalType": "bool"
1014
+ name: "",
1015
+ type: "bool",
1016
+ internalType: "bool"
979
1017
  }
980
1018
  ],
981
- "stateMutability": "view"
1019
+ stateMutability: "view"
982
1020
  },
983
1021
  {
984
- "type": "function",
985
- "name": "isProtocolApproved",
986
- "inputs": [
1022
+ type: "function",
1023
+ name: "isProtocolApproved",
1024
+ inputs: [
987
1025
  {
988
- "name": "protocol",
989
- "type": "address",
990
- "internalType": "address"
1026
+ name: "protocol",
1027
+ type: "address",
1028
+ internalType: "address"
991
1029
  }
992
1030
  ],
993
- "outputs": [
1031
+ outputs: [
994
1032
  {
995
- "name": "",
996
- "type": "bool",
997
- "internalType": "bool"
1033
+ name: "",
1034
+ type: "bool",
1035
+ internalType: "bool"
998
1036
  }
999
1037
  ],
1000
- "stateMutability": "view"
1038
+ stateMutability: "view"
1001
1039
  },
1002
1040
  {
1003
- "type": "function",
1004
- "name": "operator",
1005
- "inputs": [],
1006
- "outputs": [
1041
+ type: "function",
1042
+ name: "operator",
1043
+ inputs: [],
1044
+ outputs: [
1007
1045
  {
1008
- "name": "",
1009
- "type": "address",
1010
- "internalType": "address"
1046
+ name: "",
1047
+ type: "address",
1048
+ internalType: "address"
1011
1049
  }
1012
1050
  ],
1013
- "stateMutability": "view"
1051
+ stateMutability: "view"
1014
1052
  },
1015
1053
  {
1016
- "type": "function",
1017
- "name": "operatorBotCount",
1018
- "inputs": [],
1019
- "outputs": [
1054
+ type: "function",
1055
+ name: "operatorBotCount",
1056
+ inputs: [],
1057
+ outputs: [
1020
1058
  {
1021
- "name": "",
1022
- "type": "uint256",
1023
- "internalType": "uint256"
1059
+ name: "",
1060
+ type: "uint256",
1061
+ internalType: "uint256"
1024
1062
  }
1025
1063
  ],
1026
- "stateMutability": "view"
1064
+ stateMutability: "view"
1027
1065
  },
1028
1066
  {
1029
- "type": "function",
1030
- "name": "operatorCeilings",
1031
- "inputs": [],
1032
- "outputs": [
1067
+ type: "function",
1068
+ name: "operatorCeilings",
1069
+ inputs: [],
1070
+ outputs: [
1033
1071
  {
1034
- "name": "maxPerTxAmount",
1035
- "type": "uint256",
1036
- "internalType": "uint256"
1072
+ name: "maxPerTxAmount",
1073
+ type: "uint256",
1074
+ internalType: "uint256"
1037
1075
  },
1038
1076
  {
1039
- "name": "maxBotDailyLimit",
1040
- "type": "uint256",
1041
- "internalType": "uint256"
1077
+ name: "maxBotDailyLimit",
1078
+ type: "uint256",
1079
+ internalType: "uint256"
1042
1080
  },
1043
1081
  {
1044
- "name": "maxOperatorBots",
1045
- "type": "uint256",
1046
- "internalType": "uint256"
1082
+ name: "maxOperatorBots",
1083
+ type: "uint256",
1084
+ internalType: "uint256"
1047
1085
  },
1048
1086
  {
1049
- "name": "vaultDailyAggregate",
1050
- "type": "uint256",
1051
- "internalType": "uint256"
1087
+ name: "vaultDailyAggregate",
1088
+ type: "uint256",
1089
+ internalType: "uint256"
1052
1090
  },
1053
1091
  {
1054
- "name": "minAiTriggerFloor",
1055
- "type": "uint256",
1056
- "internalType": "uint256"
1092
+ name: "minAiTriggerFloor",
1093
+ type: "uint256",
1094
+ internalType: "uint256"
1057
1095
  }
1058
1096
  ],
1059
- "stateMutability": "view"
1097
+ stateMutability: "view"
1060
1098
  },
1061
1099
  {
1062
- "type": "function",
1063
- "name": "operatorMaxDrainPerDay",
1064
- "inputs": [],
1065
- "outputs": [
1100
+ type: "function",
1101
+ name: "operatorMaxDrainPerDay",
1102
+ inputs: [],
1103
+ outputs: [
1066
1104
  {
1067
- "name": "",
1068
- "type": "uint256",
1069
- "internalType": "uint256"
1105
+ name: "",
1106
+ type: "uint256",
1107
+ internalType: "uint256"
1070
1108
  }
1071
1109
  ],
1072
- "stateMutability": "view"
1110
+ stateMutability: "view"
1073
1111
  },
1074
1112
  {
1075
- "type": "function",
1076
- "name": "owner",
1077
- "inputs": [],
1078
- "outputs": [
1113
+ type: "function",
1114
+ name: "owner",
1115
+ inputs: [],
1116
+ outputs: [
1079
1117
  {
1080
- "name": "",
1081
- "type": "address",
1082
- "internalType": "address"
1118
+ name: "",
1119
+ type: "address",
1120
+ internalType: "address"
1083
1121
  }
1084
1122
  ],
1085
- "stateMutability": "view"
1123
+ stateMutability: "view"
1086
1124
  },
1087
1125
  {
1088
- "type": "function",
1089
- "name": "pause",
1090
- "inputs": [],
1091
- "outputs": [],
1092
- "stateMutability": "nonpayable"
1126
+ type: "function",
1127
+ name: "pause",
1128
+ inputs: [],
1129
+ outputs: [],
1130
+ stateMutability: "nonpayable"
1093
1131
  },
1094
1132
  {
1095
- "type": "function",
1096
- "name": "paused",
1097
- "inputs": [],
1098
- "outputs": [
1133
+ type: "function",
1134
+ name: "paused",
1135
+ inputs: [],
1136
+ outputs: [
1099
1137
  {
1100
- "name": "",
1101
- "type": "bool",
1102
- "internalType": "bool"
1138
+ name: "",
1139
+ type: "bool",
1140
+ internalType: "bool"
1103
1141
  }
1104
1142
  ],
1105
- "stateMutability": "view"
1143
+ stateMutability: "view"
1106
1144
  },
1107
1145
  {
1108
- "type": "function",
1109
- "name": "pendingOwner",
1110
- "inputs": [],
1111
- "outputs": [
1146
+ type: "function",
1147
+ name: "pendingOwner",
1148
+ inputs: [],
1149
+ outputs: [
1112
1150
  {
1113
- "name": "",
1114
- "type": "address",
1115
- "internalType": "address"
1151
+ name: "",
1152
+ type: "address",
1153
+ internalType: "address"
1116
1154
  }
1117
1155
  ],
1118
- "stateMutability": "view"
1156
+ stateMutability: "view"
1119
1157
  },
1120
1158
  {
1121
- "type": "function",
1122
- "name": "rebalanceTokenCount",
1123
- "inputs": [],
1124
- "outputs": [
1159
+ type: "function",
1160
+ name: "rebalanceTokenCount",
1161
+ inputs: [],
1162
+ outputs: [
1125
1163
  {
1126
- "name": "",
1127
- "type": "uint256",
1128
- "internalType": "uint256"
1164
+ name: "",
1165
+ type: "uint256",
1166
+ internalType: "uint256"
1129
1167
  }
1130
1168
  ],
1131
- "stateMutability": "view"
1169
+ stateMutability: "view"
1132
1170
  },
1133
1171
  {
1134
- "type": "function",
1135
- "name": "rebalanceTokenWhitelist",
1136
- "inputs": [
1172
+ type: "function",
1173
+ name: "rebalanceTokenWhitelist",
1174
+ inputs: [
1137
1175
  {
1138
- "name": "",
1139
- "type": "address",
1140
- "internalType": "address"
1176
+ name: "",
1177
+ type: "address",
1178
+ internalType: "address"
1141
1179
  }
1142
1180
  ],
1143
- "outputs": [
1181
+ outputs: [
1144
1182
  {
1145
- "name": "",
1146
- "type": "bool",
1147
- "internalType": "bool"
1183
+ name: "",
1184
+ type: "bool",
1185
+ internalType: "bool"
1148
1186
  }
1149
1187
  ],
1150
- "stateMutability": "view"
1188
+ stateMutability: "view"
1151
1189
  },
1152
1190
  {
1153
- "type": "function",
1154
- "name": "removeBot",
1155
- "inputs": [
1191
+ type: "function",
1192
+ name: "removeBot",
1193
+ inputs: [
1156
1194
  {
1157
- "name": "bot",
1158
- "type": "address",
1159
- "internalType": "address"
1195
+ name: "bot",
1196
+ type: "address",
1197
+ internalType: "address"
1160
1198
  }
1161
1199
  ],
1162
- "outputs": [],
1163
- "stateMutability": "nonpayable"
1200
+ outputs: [],
1201
+ stateMutability: "nonpayable"
1164
1202
  },
1165
1203
  {
1166
- "type": "function",
1167
- "name": "removeBotDestination",
1168
- "inputs": [
1204
+ type: "function",
1205
+ name: "removeBotDestination",
1206
+ inputs: [
1169
1207
  {
1170
- "name": "bot",
1171
- "type": "address",
1172
- "internalType": "address"
1208
+ name: "bot",
1209
+ type: "address",
1210
+ internalType: "address"
1173
1211
  },
1174
1212
  {
1175
- "name": "destination",
1176
- "type": "address",
1177
- "internalType": "address"
1213
+ name: "destination",
1214
+ type: "address",
1215
+ internalType: "address"
1178
1216
  }
1179
1217
  ],
1180
- "outputs": [],
1181
- "stateMutability": "nonpayable"
1218
+ outputs: [],
1219
+ stateMutability: "nonpayable"
1182
1220
  },
1183
1221
  {
1184
- "type": "function",
1185
- "name": "removeGlobalBlacklist",
1186
- "inputs": [
1222
+ type: "function",
1223
+ name: "removeGlobalBlacklist",
1224
+ inputs: [
1187
1225
  {
1188
- "name": "destination",
1189
- "type": "address",
1190
- "internalType": "address"
1226
+ name: "destination",
1227
+ type: "address",
1228
+ internalType: "address"
1191
1229
  }
1192
1230
  ],
1193
- "outputs": [],
1194
- "stateMutability": "nonpayable"
1231
+ outputs: [],
1232
+ stateMutability: "nonpayable"
1195
1233
  },
1196
1234
  {
1197
- "type": "function",
1198
- "name": "removeGlobalDestination",
1199
- "inputs": [
1235
+ type: "function",
1236
+ name: "removeGlobalDestination",
1237
+ inputs: [
1200
1238
  {
1201
- "name": "destination",
1202
- "type": "address",
1203
- "internalType": "address"
1239
+ name: "destination",
1240
+ type: "address",
1241
+ internalType: "address"
1204
1242
  }
1205
1243
  ],
1206
- "outputs": [],
1207
- "stateMutability": "nonpayable"
1244
+ outputs: [],
1245
+ stateMutability: "nonpayable"
1208
1246
  },
1209
1247
  {
1210
- "type": "function",
1211
- "name": "removeProtocol",
1212
- "inputs": [
1248
+ type: "function",
1249
+ name: "removeProtocol",
1250
+ inputs: [
1213
1251
  {
1214
- "name": "protocol",
1215
- "type": "address",
1216
- "internalType": "address"
1252
+ name: "protocol",
1253
+ type: "address",
1254
+ internalType: "address"
1217
1255
  }
1218
1256
  ],
1219
- "outputs": [],
1220
- "stateMutability": "nonpayable"
1257
+ outputs: [],
1258
+ stateMutability: "nonpayable"
1221
1259
  },
1222
1260
  {
1223
- "type": "function",
1224
- "name": "removeRebalanceTokens",
1225
- "inputs": [
1261
+ type: "function",
1262
+ name: "removeRebalanceTokens",
1263
+ inputs: [
1226
1264
  {
1227
- "name": "tokens",
1228
- "type": "address[]",
1229
- "internalType": "address[]"
1265
+ name: "tokens",
1266
+ type: "address[]",
1267
+ internalType: "address[]"
1230
1268
  }
1231
1269
  ],
1232
- "outputs": [],
1233
- "stateMutability": "nonpayable"
1270
+ outputs: [],
1271
+ stateMutability: "nonpayable"
1234
1272
  },
1235
1273
  {
1236
- "type": "function",
1237
- "name": "renounceOwnership",
1238
- "inputs": [],
1239
- "outputs": [],
1240
- "stateMutability": "nonpayable"
1274
+ type: "function",
1275
+ name: "renounceOwnership",
1276
+ inputs: [],
1277
+ outputs: [],
1278
+ stateMutability: "nonpayable"
1241
1279
  },
1242
1280
  {
1243
- "type": "function",
1244
- "name": "setOperator",
1245
- "inputs": [
1281
+ type: "function",
1282
+ name: "setOperator",
1283
+ inputs: [
1246
1284
  {
1247
- "name": "_operator",
1248
- "type": "address",
1249
- "internalType": "address"
1285
+ name: "_operator",
1286
+ type: "address",
1287
+ internalType: "address"
1250
1288
  }
1251
1289
  ],
1252
- "outputs": [],
1253
- "stateMutability": "nonpayable"
1290
+ outputs: [],
1291
+ stateMutability: "nonpayable"
1254
1292
  },
1255
1293
  {
1256
- "type": "function",
1257
- "name": "setOperatorCeilings",
1258
- "inputs": [
1294
+ type: "function",
1295
+ name: "setOperatorCeilings",
1296
+ inputs: [
1259
1297
  {
1260
- "name": "ceilings",
1261
- "type": "tuple",
1262
- "internalType": "struct AxonVault.OperatorCeilings",
1263
- "components": [
1298
+ name: "ceilings",
1299
+ type: "tuple",
1300
+ internalType: "struct AxonVault.OperatorCeilings",
1301
+ components: [
1264
1302
  {
1265
- "name": "maxPerTxAmount",
1266
- "type": "uint256",
1267
- "internalType": "uint256"
1303
+ name: "maxPerTxAmount",
1304
+ type: "uint256",
1305
+ internalType: "uint256"
1268
1306
  },
1269
1307
  {
1270
- "name": "maxBotDailyLimit",
1271
- "type": "uint256",
1272
- "internalType": "uint256"
1308
+ name: "maxBotDailyLimit",
1309
+ type: "uint256",
1310
+ internalType: "uint256"
1273
1311
  },
1274
1312
  {
1275
- "name": "maxOperatorBots",
1276
- "type": "uint256",
1277
- "internalType": "uint256"
1313
+ name: "maxOperatorBots",
1314
+ type: "uint256",
1315
+ internalType: "uint256"
1278
1316
  },
1279
1317
  {
1280
- "name": "vaultDailyAggregate",
1281
- "type": "uint256",
1282
- "internalType": "uint256"
1318
+ name: "vaultDailyAggregate",
1319
+ type: "uint256",
1320
+ internalType: "uint256"
1283
1321
  },
1284
1322
  {
1285
- "name": "minAiTriggerFloor",
1286
- "type": "uint256",
1287
- "internalType": "uint256"
1323
+ name: "minAiTriggerFloor",
1324
+ type: "uint256",
1325
+ internalType: "uint256"
1288
1326
  }
1289
1327
  ]
1290
1328
  }
1291
1329
  ],
1292
- "outputs": [],
1293
- "stateMutability": "nonpayable"
1330
+ outputs: [],
1331
+ stateMutability: "nonpayable"
1294
1332
  },
1295
1333
  {
1296
- "type": "function",
1297
- "name": "trackUsedIntents",
1298
- "inputs": [],
1299
- "outputs": [
1334
+ type: "function",
1335
+ name: "trackUsedIntents",
1336
+ inputs: [],
1337
+ outputs: [
1300
1338
  {
1301
- "name": "",
1302
- "type": "bool",
1303
- "internalType": "bool"
1339
+ name: "",
1340
+ type: "bool",
1341
+ internalType: "bool"
1304
1342
  }
1305
1343
  ],
1306
- "stateMutability": "view"
1344
+ stateMutability: "view"
1307
1345
  },
1308
1346
  {
1309
- "type": "function",
1310
- "name": "transferOwnership",
1311
- "inputs": [
1347
+ type: "function",
1348
+ name: "transferOwnership",
1349
+ inputs: [
1312
1350
  {
1313
- "name": "newOwner",
1314
- "type": "address",
1315
- "internalType": "address"
1351
+ name: "newOwner",
1352
+ type: "address",
1353
+ internalType: "address"
1316
1354
  }
1317
1355
  ],
1318
- "outputs": [],
1319
- "stateMutability": "nonpayable"
1356
+ outputs: [],
1357
+ stateMutability: "nonpayable"
1320
1358
  },
1321
1359
  {
1322
- "type": "function",
1323
- "name": "unpause",
1324
- "inputs": [],
1325
- "outputs": [],
1326
- "stateMutability": "nonpayable"
1360
+ type: "function",
1361
+ name: "unpause",
1362
+ inputs: [],
1363
+ outputs: [],
1364
+ stateMutability: "nonpayable"
1327
1365
  },
1328
1366
  {
1329
- "type": "function",
1330
- "name": "updateBotConfig",
1331
- "inputs": [
1367
+ type: "function",
1368
+ name: "updateBotConfig",
1369
+ inputs: [
1332
1370
  {
1333
- "name": "bot",
1334
- "type": "address",
1335
- "internalType": "address"
1371
+ name: "bot",
1372
+ type: "address",
1373
+ internalType: "address"
1336
1374
  },
1337
1375
  {
1338
- "name": "params",
1339
- "type": "tuple",
1340
- "internalType": "struct AxonVault.BotConfigParams",
1341
- "components": [
1376
+ name: "params",
1377
+ type: "tuple",
1378
+ internalType: "struct AxonVault.BotConfigParams",
1379
+ components: [
1342
1380
  {
1343
- "name": "maxPerTxAmount",
1344
- "type": "uint256",
1345
- "internalType": "uint256"
1381
+ name: "maxPerTxAmount",
1382
+ type: "uint256",
1383
+ internalType: "uint256"
1346
1384
  },
1347
1385
  {
1348
- "name": "maxRebalanceAmount",
1349
- "type": "uint256",
1350
- "internalType": "uint256"
1386
+ name: "maxRebalanceAmount",
1387
+ type: "uint256",
1388
+ internalType: "uint256"
1351
1389
  },
1352
1390
  {
1353
- "name": "spendingLimits",
1354
- "type": "tuple[]",
1355
- "internalType": "struct AxonVault.SpendingLimit[]",
1356
- "components": [
1391
+ name: "spendingLimits",
1392
+ type: "tuple[]",
1393
+ internalType: "struct AxonVault.SpendingLimit[]",
1394
+ components: [
1357
1395
  {
1358
- "name": "amount",
1359
- "type": "uint256",
1360
- "internalType": "uint256"
1396
+ name: "amount",
1397
+ type: "uint256",
1398
+ internalType: "uint256"
1361
1399
  },
1362
1400
  {
1363
- "name": "maxCount",
1364
- "type": "uint256",
1365
- "internalType": "uint256"
1401
+ name: "maxCount",
1402
+ type: "uint256",
1403
+ internalType: "uint256"
1366
1404
  },
1367
1405
  {
1368
- "name": "windowSeconds",
1369
- "type": "uint256",
1370
- "internalType": "uint256"
1406
+ name: "windowSeconds",
1407
+ type: "uint256",
1408
+ internalType: "uint256"
1371
1409
  }
1372
1410
  ]
1373
1411
  },
1374
1412
  {
1375
- "name": "aiTriggerThreshold",
1376
- "type": "uint256",
1377
- "internalType": "uint256"
1413
+ name: "aiTriggerThreshold",
1414
+ type: "uint256",
1415
+ internalType: "uint256"
1378
1416
  },
1379
1417
  {
1380
- "name": "requireAiVerification",
1381
- "type": "bool",
1382
- "internalType": "bool"
1418
+ name: "requireAiVerification",
1419
+ type: "bool",
1420
+ internalType: "bool"
1383
1421
  }
1384
1422
  ]
1385
1423
  }
1386
1424
  ],
1387
- "outputs": [],
1388
- "stateMutability": "nonpayable"
1425
+ outputs: [],
1426
+ stateMutability: "nonpayable"
1389
1427
  },
1390
1428
  {
1391
- "type": "function",
1392
- "name": "usedIntents",
1393
- "inputs": [
1429
+ type: "function",
1430
+ name: "usedIntents",
1431
+ inputs: [
1394
1432
  {
1395
- "name": "",
1396
- "type": "bytes32",
1397
- "internalType": "bytes32"
1433
+ name: "",
1434
+ type: "bytes32",
1435
+ internalType: "bytes32"
1398
1436
  }
1399
1437
  ],
1400
- "outputs": [
1438
+ outputs: [
1401
1439
  {
1402
- "name": "",
1403
- "type": "bool",
1404
- "internalType": "bool"
1440
+ name: "",
1441
+ type: "bool",
1442
+ internalType: "bool"
1405
1443
  }
1406
1444
  ],
1407
- "stateMutability": "view"
1445
+ stateMutability: "view"
1408
1446
  },
1409
1447
  {
1410
- "type": "function",
1411
- "name": "withdraw",
1412
- "inputs": [
1448
+ type: "function",
1449
+ name: "withdraw",
1450
+ inputs: [
1413
1451
  {
1414
- "name": "token",
1415
- "type": "address",
1416
- "internalType": "address"
1452
+ name: "token",
1453
+ type: "address",
1454
+ internalType: "address"
1417
1455
  },
1418
1456
  {
1419
- "name": "amount",
1420
- "type": "uint256",
1421
- "internalType": "uint256"
1457
+ name: "amount",
1458
+ type: "uint256",
1459
+ internalType: "uint256"
1422
1460
  },
1423
1461
  {
1424
- "name": "to",
1425
- "type": "address",
1426
- "internalType": "address"
1462
+ name: "to",
1463
+ type: "address",
1464
+ internalType: "address"
1427
1465
  }
1428
1466
  ],
1429
- "outputs": [],
1430
- "stateMutability": "nonpayable"
1467
+ outputs: [],
1468
+ stateMutability: "nonpayable"
1431
1469
  },
1432
1470
  {
1433
- "type": "event",
1434
- "name": "BotAdded",
1435
- "inputs": [
1471
+ type: "event",
1472
+ name: "BotAdded",
1473
+ inputs: [
1436
1474
  {
1437
- "name": "bot",
1438
- "type": "address",
1439
- "indexed": true,
1440
- "internalType": "address"
1475
+ name: "bot",
1476
+ type: "address",
1477
+ indexed: true,
1478
+ internalType: "address"
1441
1479
  },
1442
1480
  {
1443
- "name": "addedBy",
1444
- "type": "address",
1445
- "indexed": true,
1446
- "internalType": "address"
1481
+ name: "addedBy",
1482
+ type: "address",
1483
+ indexed: true,
1484
+ internalType: "address"
1447
1485
  }
1448
1486
  ],
1449
- "anonymous": false
1487
+ anonymous: false
1450
1488
  },
1451
1489
  {
1452
- "type": "event",
1453
- "name": "BotConfigUpdated",
1454
- "inputs": [
1490
+ type: "event",
1491
+ name: "BotConfigUpdated",
1492
+ inputs: [
1455
1493
  {
1456
- "name": "bot",
1457
- "type": "address",
1458
- "indexed": true,
1459
- "internalType": "address"
1494
+ name: "bot",
1495
+ type: "address",
1496
+ indexed: true,
1497
+ internalType: "address"
1460
1498
  },
1461
1499
  {
1462
- "name": "updatedBy",
1463
- "type": "address",
1464
- "indexed": true,
1465
- "internalType": "address"
1500
+ name: "updatedBy",
1501
+ type: "address",
1502
+ indexed: true,
1503
+ internalType: "address"
1466
1504
  }
1467
1505
  ],
1468
- "anonymous": false
1506
+ anonymous: false
1469
1507
  },
1470
1508
  {
1471
- "type": "event",
1472
- "name": "BotDestinationAdded",
1473
- "inputs": [
1509
+ type: "event",
1510
+ name: "BotDestinationAdded",
1511
+ inputs: [
1474
1512
  {
1475
- "name": "bot",
1476
- "type": "address",
1477
- "indexed": true,
1478
- "internalType": "address"
1513
+ name: "bot",
1514
+ type: "address",
1515
+ indexed: true,
1516
+ internalType: "address"
1479
1517
  },
1480
1518
  {
1481
- "name": "destination",
1482
- "type": "address",
1483
- "indexed": true,
1484
- "internalType": "address"
1519
+ name: "destination",
1520
+ type: "address",
1521
+ indexed: true,
1522
+ internalType: "address"
1485
1523
  }
1486
1524
  ],
1487
- "anonymous": false
1525
+ anonymous: false
1488
1526
  },
1489
1527
  {
1490
- "type": "event",
1491
- "name": "BotDestinationRemoved",
1492
- "inputs": [
1528
+ type: "event",
1529
+ name: "BotDestinationRemoved",
1530
+ inputs: [
1493
1531
  {
1494
- "name": "bot",
1495
- "type": "address",
1496
- "indexed": true,
1497
- "internalType": "address"
1532
+ name: "bot",
1533
+ type: "address",
1534
+ indexed: true,
1535
+ internalType: "address"
1498
1536
  },
1499
1537
  {
1500
- "name": "destination",
1501
- "type": "address",
1502
- "indexed": true,
1503
- "internalType": "address"
1538
+ name: "destination",
1539
+ type: "address",
1540
+ indexed: true,
1541
+ internalType: "address"
1504
1542
  }
1505
1543
  ],
1506
- "anonymous": false
1544
+ anonymous: false
1507
1545
  },
1508
1546
  {
1509
- "type": "event",
1510
- "name": "BotRemoved",
1511
- "inputs": [
1547
+ type: "event",
1548
+ name: "BotRemoved",
1549
+ inputs: [
1512
1550
  {
1513
- "name": "bot",
1514
- "type": "address",
1515
- "indexed": true,
1516
- "internalType": "address"
1551
+ name: "bot",
1552
+ type: "address",
1553
+ indexed: true,
1554
+ internalType: "address"
1517
1555
  },
1518
1556
  {
1519
- "name": "removedBy",
1520
- "type": "address",
1521
- "indexed": true,
1522
- "internalType": "address"
1557
+ name: "removedBy",
1558
+ type: "address",
1559
+ indexed: true,
1560
+ internalType: "address"
1523
1561
  }
1524
1562
  ],
1525
- "anonymous": false
1563
+ anonymous: false
1526
1564
  },
1527
1565
  {
1528
- "type": "event",
1529
- "name": "Deposited",
1530
- "inputs": [
1566
+ type: "event",
1567
+ name: "Deposited",
1568
+ inputs: [
1531
1569
  {
1532
- "name": "from",
1533
- "type": "address",
1534
- "indexed": true,
1535
- "internalType": "address"
1570
+ name: "from",
1571
+ type: "address",
1572
+ indexed: true,
1573
+ internalType: "address"
1536
1574
  },
1537
1575
  {
1538
- "name": "token",
1539
- "type": "address",
1540
- "indexed": true,
1541
- "internalType": "address"
1576
+ name: "token",
1577
+ type: "address",
1578
+ indexed: true,
1579
+ internalType: "address"
1542
1580
  },
1543
1581
  {
1544
- "name": "amount",
1545
- "type": "uint256",
1546
- "indexed": false,
1547
- "internalType": "uint256"
1582
+ name: "amount",
1583
+ type: "uint256",
1584
+ indexed: false,
1585
+ internalType: "uint256"
1548
1586
  },
1549
1587
  {
1550
- "name": "ref",
1551
- "type": "bytes32",
1552
- "indexed": false,
1553
- "internalType": "bytes32"
1588
+ name: "ref",
1589
+ type: "bytes32",
1590
+ indexed: false,
1591
+ internalType: "bytes32"
1554
1592
  }
1555
1593
  ],
1556
- "anonymous": false
1594
+ anonymous: false
1557
1595
  },
1558
1596
  {
1559
- "type": "event",
1560
- "name": "EIP712DomainChanged",
1561
- "inputs": [],
1562
- "anonymous": false
1597
+ type: "event",
1598
+ name: "EIP712DomainChanged",
1599
+ inputs: [],
1600
+ anonymous: false
1563
1601
  },
1564
1602
  {
1565
- "type": "event",
1566
- "name": "GlobalBlacklistAdded",
1567
- "inputs": [
1603
+ type: "event",
1604
+ name: "GlobalBlacklistAdded",
1605
+ inputs: [
1568
1606
  {
1569
- "name": "destination",
1570
- "type": "address",
1571
- "indexed": true,
1572
- "internalType": "address"
1607
+ name: "destination",
1608
+ type: "address",
1609
+ indexed: true,
1610
+ internalType: "address"
1573
1611
  }
1574
1612
  ],
1575
- "anonymous": false
1613
+ anonymous: false
1576
1614
  },
1577
1615
  {
1578
- "type": "event",
1579
- "name": "GlobalBlacklistRemoved",
1580
- "inputs": [
1616
+ type: "event",
1617
+ name: "GlobalBlacklistRemoved",
1618
+ inputs: [
1581
1619
  {
1582
- "name": "destination",
1583
- "type": "address",
1584
- "indexed": true,
1585
- "internalType": "address"
1620
+ name: "destination",
1621
+ type: "address",
1622
+ indexed: true,
1623
+ internalType: "address"
1586
1624
  }
1587
1625
  ],
1588
- "anonymous": false
1626
+ anonymous: false
1589
1627
  },
1590
1628
  {
1591
- "type": "event",
1592
- "name": "GlobalDestinationAdded",
1593
- "inputs": [
1629
+ type: "event",
1630
+ name: "GlobalDestinationAdded",
1631
+ inputs: [
1594
1632
  {
1595
- "name": "destination",
1596
- "type": "address",
1597
- "indexed": true,
1598
- "internalType": "address"
1633
+ name: "destination",
1634
+ type: "address",
1635
+ indexed: true,
1636
+ internalType: "address"
1599
1637
  }
1600
1638
  ],
1601
- "anonymous": false
1639
+ anonymous: false
1602
1640
  },
1603
1641
  {
1604
- "type": "event",
1605
- "name": "GlobalDestinationRemoved",
1606
- "inputs": [
1642
+ type: "event",
1643
+ name: "GlobalDestinationRemoved",
1644
+ inputs: [
1607
1645
  {
1608
- "name": "destination",
1609
- "type": "address",
1610
- "indexed": true,
1611
- "internalType": "address"
1646
+ name: "destination",
1647
+ type: "address",
1648
+ indexed: true,
1649
+ internalType: "address"
1612
1650
  }
1613
1651
  ],
1614
- "anonymous": false
1652
+ anonymous: false
1615
1653
  },
1616
1654
  {
1617
- "type": "event",
1618
- "name": "OperatorCeilingsUpdated",
1619
- "inputs": [
1655
+ type: "event",
1656
+ name: "OperatorCeilingsUpdated",
1657
+ inputs: [
1620
1658
  {
1621
- "name": "ceilings",
1622
- "type": "tuple",
1623
- "indexed": false,
1624
- "internalType": "struct AxonVault.OperatorCeilings",
1625
- "components": [
1659
+ name: "ceilings",
1660
+ type: "tuple",
1661
+ indexed: false,
1662
+ internalType: "struct AxonVault.OperatorCeilings",
1663
+ components: [
1626
1664
  {
1627
- "name": "maxPerTxAmount",
1628
- "type": "uint256",
1629
- "internalType": "uint256"
1665
+ name: "maxPerTxAmount",
1666
+ type: "uint256",
1667
+ internalType: "uint256"
1630
1668
  },
1631
1669
  {
1632
- "name": "maxBotDailyLimit",
1633
- "type": "uint256",
1634
- "internalType": "uint256"
1670
+ name: "maxBotDailyLimit",
1671
+ type: "uint256",
1672
+ internalType: "uint256"
1635
1673
  },
1636
1674
  {
1637
- "name": "maxOperatorBots",
1638
- "type": "uint256",
1639
- "internalType": "uint256"
1675
+ name: "maxOperatorBots",
1676
+ type: "uint256",
1677
+ internalType: "uint256"
1640
1678
  },
1641
1679
  {
1642
- "name": "vaultDailyAggregate",
1643
- "type": "uint256",
1644
- "internalType": "uint256"
1680
+ name: "vaultDailyAggregate",
1681
+ type: "uint256",
1682
+ internalType: "uint256"
1645
1683
  },
1646
1684
  {
1647
- "name": "minAiTriggerFloor",
1648
- "type": "uint256",
1649
- "internalType": "uint256"
1685
+ name: "minAiTriggerFloor",
1686
+ type: "uint256",
1687
+ internalType: "uint256"
1650
1688
  }
1651
1689
  ]
1652
1690
  }
1653
1691
  ],
1654
- "anonymous": false
1692
+ anonymous: false
1655
1693
  },
1656
1694
  {
1657
- "type": "event",
1658
- "name": "OperatorSet",
1659
- "inputs": [
1695
+ type: "event",
1696
+ name: "OperatorSet",
1697
+ inputs: [
1660
1698
  {
1661
- "name": "oldOperator",
1662
- "type": "address",
1663
- "indexed": true,
1664
- "internalType": "address"
1699
+ name: "oldOperator",
1700
+ type: "address",
1701
+ indexed: true,
1702
+ internalType: "address"
1665
1703
  },
1666
1704
  {
1667
- "name": "newOperator",
1668
- "type": "address",
1669
- "indexed": true,
1670
- "internalType": "address"
1705
+ name: "newOperator",
1706
+ type: "address",
1707
+ indexed: true,
1708
+ internalType: "address"
1671
1709
  }
1672
1710
  ],
1673
- "anonymous": false
1711
+ anonymous: false
1674
1712
  },
1675
1713
  {
1676
- "type": "event",
1677
- "name": "OwnershipTransferStarted",
1678
- "inputs": [
1714
+ type: "event",
1715
+ name: "OwnershipTransferStarted",
1716
+ inputs: [
1679
1717
  {
1680
- "name": "previousOwner",
1681
- "type": "address",
1682
- "indexed": true,
1683
- "internalType": "address"
1718
+ name: "previousOwner",
1719
+ type: "address",
1720
+ indexed: true,
1721
+ internalType: "address"
1684
1722
  },
1685
1723
  {
1686
- "name": "newOwner",
1687
- "type": "address",
1688
- "indexed": true,
1689
- "internalType": "address"
1724
+ name: "newOwner",
1725
+ type: "address",
1726
+ indexed: true,
1727
+ internalType: "address"
1690
1728
  }
1691
1729
  ],
1692
- "anonymous": false
1730
+ anonymous: false
1693
1731
  },
1694
1732
  {
1695
- "type": "event",
1696
- "name": "OwnershipTransferred",
1697
- "inputs": [
1733
+ type: "event",
1734
+ name: "OwnershipTransferred",
1735
+ inputs: [
1698
1736
  {
1699
- "name": "previousOwner",
1700
- "type": "address",
1701
- "indexed": true,
1702
- "internalType": "address"
1737
+ name: "previousOwner",
1738
+ type: "address",
1739
+ indexed: true,
1740
+ internalType: "address"
1703
1741
  },
1704
1742
  {
1705
- "name": "newOwner",
1706
- "type": "address",
1707
- "indexed": true,
1708
- "internalType": "address"
1743
+ name: "newOwner",
1744
+ type: "address",
1745
+ indexed: true,
1746
+ internalType: "address"
1709
1747
  }
1710
1748
  ],
1711
- "anonymous": false
1749
+ anonymous: false
1712
1750
  },
1713
1751
  {
1714
- "type": "event",
1715
- "name": "Paused",
1716
- "inputs": [
1752
+ type: "event",
1753
+ name: "Paused",
1754
+ inputs: [
1717
1755
  {
1718
- "name": "account",
1719
- "type": "address",
1720
- "indexed": false,
1721
- "internalType": "address"
1756
+ name: "account",
1757
+ type: "address",
1758
+ indexed: false,
1759
+ internalType: "address"
1722
1760
  }
1723
1761
  ],
1724
- "anonymous": false
1762
+ anonymous: false
1725
1763
  },
1726
1764
  {
1727
- "type": "event",
1728
- "name": "PaymentExecuted",
1729
- "inputs": [
1765
+ type: "event",
1766
+ name: "PaymentExecuted",
1767
+ inputs: [
1730
1768
  {
1731
- "name": "bot",
1732
- "type": "address",
1733
- "indexed": true,
1734
- "internalType": "address"
1769
+ name: "bot",
1770
+ type: "address",
1771
+ indexed: true,
1772
+ internalType: "address"
1735
1773
  },
1736
1774
  {
1737
- "name": "to",
1738
- "type": "address",
1739
- "indexed": true,
1740
- "internalType": "address"
1775
+ name: "to",
1776
+ type: "address",
1777
+ indexed: true,
1778
+ internalType: "address"
1741
1779
  },
1742
1780
  {
1743
- "name": "token",
1744
- "type": "address",
1745
- "indexed": true,
1746
- "internalType": "address"
1781
+ name: "token",
1782
+ type: "address",
1783
+ indexed: true,
1784
+ internalType: "address"
1747
1785
  },
1748
1786
  {
1749
- "name": "amount",
1750
- "type": "uint256",
1751
- "indexed": false,
1752
- "internalType": "uint256"
1787
+ name: "amount",
1788
+ type: "uint256",
1789
+ indexed: false,
1790
+ internalType: "uint256"
1753
1791
  },
1754
1792
  {
1755
- "name": "ref",
1756
- "type": "bytes32",
1757
- "indexed": false,
1758
- "internalType": "bytes32"
1793
+ name: "ref",
1794
+ type: "bytes32",
1795
+ indexed: false,
1796
+ internalType: "bytes32"
1759
1797
  }
1760
1798
  ],
1761
- "anonymous": false
1799
+ anonymous: false
1762
1800
  },
1763
1801
  {
1764
- "type": "event",
1765
- "name": "ProtocolAdded",
1766
- "inputs": [
1802
+ type: "event",
1803
+ name: "ProtocolAdded",
1804
+ inputs: [
1767
1805
  {
1768
- "name": "protocol",
1769
- "type": "address",
1770
- "indexed": true,
1771
- "internalType": "address"
1806
+ name: "protocol",
1807
+ type: "address",
1808
+ indexed: true,
1809
+ internalType: "address"
1772
1810
  }
1773
1811
  ],
1774
- "anonymous": false
1812
+ anonymous: false
1775
1813
  },
1776
1814
  {
1777
- "type": "event",
1778
- "name": "ProtocolExecuted",
1779
- "inputs": [
1815
+ type: "event",
1816
+ name: "ProtocolExecuted",
1817
+ inputs: [
1780
1818
  {
1781
- "name": "bot",
1782
- "type": "address",
1783
- "indexed": true,
1784
- "internalType": "address"
1819
+ name: "bot",
1820
+ type: "address",
1821
+ indexed: true,
1822
+ internalType: "address"
1785
1823
  },
1786
1824
  {
1787
- "name": "protocol",
1788
- "type": "address",
1789
- "indexed": true,
1790
- "internalType": "address"
1825
+ name: "protocol",
1826
+ type: "address",
1827
+ indexed: true,
1828
+ internalType: "address"
1791
1829
  },
1792
1830
  {
1793
- "name": "token",
1794
- "type": "address",
1795
- "indexed": false,
1796
- "internalType": "address"
1831
+ name: "token",
1832
+ type: "address",
1833
+ indexed: false,
1834
+ internalType: "address"
1797
1835
  },
1798
1836
  {
1799
- "name": "amount",
1800
- "type": "uint256",
1801
- "indexed": false,
1802
- "internalType": "uint256"
1837
+ name: "amount",
1838
+ type: "uint256",
1839
+ indexed: false,
1840
+ internalType: "uint256"
1803
1841
  },
1804
1842
  {
1805
- "name": "ref",
1806
- "type": "bytes32",
1807
- "indexed": false,
1808
- "internalType": "bytes32"
1843
+ name: "ref",
1844
+ type: "bytes32",
1845
+ indexed: false,
1846
+ internalType: "bytes32"
1809
1847
  }
1810
1848
  ],
1811
- "anonymous": false
1849
+ anonymous: false
1812
1850
  },
1813
1851
  {
1814
- "type": "event",
1815
- "name": "ProtocolRemoved",
1816
- "inputs": [
1852
+ type: "event",
1853
+ name: "ProtocolRemoved",
1854
+ inputs: [
1817
1855
  {
1818
- "name": "protocol",
1819
- "type": "address",
1820
- "indexed": true,
1821
- "internalType": "address"
1856
+ name: "protocol",
1857
+ type: "address",
1858
+ indexed: true,
1859
+ internalType: "address"
1822
1860
  }
1823
1861
  ],
1824
- "anonymous": false
1862
+ anonymous: false
1825
1863
  },
1826
1864
  {
1827
- "type": "event",
1828
- "name": "RebalanceTokenAdded",
1829
- "inputs": [
1865
+ type: "event",
1866
+ name: "RebalanceTokenAdded",
1867
+ inputs: [
1830
1868
  {
1831
- "name": "token",
1832
- "type": "address",
1833
- "indexed": true,
1834
- "internalType": "address"
1869
+ name: "token",
1870
+ type: "address",
1871
+ indexed: true,
1872
+ internalType: "address"
1835
1873
  }
1836
1874
  ],
1837
- "anonymous": false
1875
+ anonymous: false
1838
1876
  },
1839
1877
  {
1840
- "type": "event",
1841
- "name": "RebalanceTokenRemoved",
1842
- "inputs": [
1878
+ type: "event",
1879
+ name: "RebalanceTokenRemoved",
1880
+ inputs: [
1843
1881
  {
1844
- "name": "token",
1845
- "type": "address",
1846
- "indexed": true,
1847
- "internalType": "address"
1882
+ name: "token",
1883
+ type: "address",
1884
+ indexed: true,
1885
+ internalType: "address"
1848
1886
  }
1849
1887
  ],
1850
- "anonymous": false
1888
+ anonymous: false
1851
1889
  },
1852
1890
  {
1853
- "type": "event",
1854
- "name": "SwapExecuted",
1855
- "inputs": [
1891
+ type: "event",
1892
+ name: "SwapExecuted",
1893
+ inputs: [
1856
1894
  {
1857
- "name": "bot",
1858
- "type": "address",
1859
- "indexed": true,
1860
- "internalType": "address"
1895
+ name: "bot",
1896
+ type: "address",
1897
+ indexed: true,
1898
+ internalType: "address"
1861
1899
  },
1862
1900
  {
1863
- "name": "fromToken",
1864
- "type": "address",
1865
- "indexed": false,
1866
- "internalType": "address"
1901
+ name: "fromToken",
1902
+ type: "address",
1903
+ indexed: false,
1904
+ internalType: "address"
1867
1905
  },
1868
1906
  {
1869
- "name": "toToken",
1870
- "type": "address",
1871
- "indexed": false,
1872
- "internalType": "address"
1907
+ name: "toToken",
1908
+ type: "address",
1909
+ indexed: false,
1910
+ internalType: "address"
1873
1911
  },
1874
1912
  {
1875
- "name": "fromAmount",
1876
- "type": "uint256",
1877
- "indexed": false,
1878
- "internalType": "uint256"
1913
+ name: "fromAmount",
1914
+ type: "uint256",
1915
+ indexed: false,
1916
+ internalType: "uint256"
1879
1917
  },
1880
1918
  {
1881
- "name": "toAmount",
1882
- "type": "uint256",
1883
- "indexed": false,
1884
- "internalType": "uint256"
1919
+ name: "toAmount",
1920
+ type: "uint256",
1921
+ indexed: false,
1922
+ internalType: "uint256"
1885
1923
  },
1886
1924
  {
1887
- "name": "ref",
1888
- "type": "bytes32",
1889
- "indexed": false,
1890
- "internalType": "bytes32"
1925
+ name: "ref",
1926
+ type: "bytes32",
1927
+ indexed: false,
1928
+ internalType: "bytes32"
1891
1929
  }
1892
1930
  ],
1893
- "anonymous": false
1931
+ anonymous: false
1894
1932
  },
1895
1933
  {
1896
- "type": "event",
1897
- "name": "SwapPaymentExecuted",
1898
- "inputs": [
1934
+ type: "event",
1935
+ name: "SwapPaymentExecuted",
1936
+ inputs: [
1899
1937
  {
1900
- "name": "bot",
1901
- "type": "address",
1902
- "indexed": true,
1903
- "internalType": "address"
1938
+ name: "bot",
1939
+ type: "address",
1940
+ indexed: true,
1941
+ internalType: "address"
1904
1942
  },
1905
1943
  {
1906
- "name": "to",
1907
- "type": "address",
1908
- "indexed": true,
1909
- "internalType": "address"
1944
+ name: "to",
1945
+ type: "address",
1946
+ indexed: true,
1947
+ internalType: "address"
1910
1948
  },
1911
1949
  {
1912
- "name": "fromToken",
1913
- "type": "address",
1914
- "indexed": false,
1915
- "internalType": "address"
1950
+ name: "fromToken",
1951
+ type: "address",
1952
+ indexed: false,
1953
+ internalType: "address"
1916
1954
  },
1917
1955
  {
1918
- "name": "toToken",
1919
- "type": "address",
1920
- "indexed": false,
1921
- "internalType": "address"
1956
+ name: "toToken",
1957
+ type: "address",
1958
+ indexed: false,
1959
+ internalType: "address"
1922
1960
  },
1923
1961
  {
1924
- "name": "fromAmount",
1925
- "type": "uint256",
1926
- "indexed": false,
1927
- "internalType": "uint256"
1962
+ name: "fromAmount",
1963
+ type: "uint256",
1964
+ indexed: false,
1965
+ internalType: "uint256"
1928
1966
  },
1929
1967
  {
1930
- "name": "toAmount",
1931
- "type": "uint256",
1932
- "indexed": false,
1933
- "internalType": "uint256"
1968
+ name: "toAmount",
1969
+ type: "uint256",
1970
+ indexed: false,
1971
+ internalType: "uint256"
1934
1972
  },
1935
1973
  {
1936
- "name": "ref",
1937
- "type": "bytes32",
1938
- "indexed": false,
1939
- "internalType": "bytes32"
1974
+ name: "ref",
1975
+ type: "bytes32",
1976
+ indexed: false,
1977
+ internalType: "bytes32"
1940
1978
  }
1941
1979
  ],
1942
- "anonymous": false
1980
+ anonymous: false
1943
1981
  },
1944
1982
  {
1945
- "type": "event",
1946
- "name": "Unpaused",
1947
- "inputs": [
1983
+ type: "event",
1984
+ name: "Unpaused",
1985
+ inputs: [
1948
1986
  {
1949
- "name": "account",
1950
- "type": "address",
1951
- "indexed": false,
1952
- "internalType": "address"
1987
+ name: "account",
1988
+ type: "address",
1989
+ indexed: false,
1990
+ internalType: "address"
1953
1991
  }
1954
1992
  ],
1955
- "anonymous": false
1993
+ anonymous: false
1956
1994
  },
1957
1995
  {
1958
- "type": "event",
1959
- "name": "Withdrawn",
1960
- "inputs": [
1996
+ type: "event",
1997
+ name: "Withdrawn",
1998
+ inputs: [
1961
1999
  {
1962
- "name": "token",
1963
- "type": "address",
1964
- "indexed": true,
1965
- "internalType": "address"
2000
+ name: "token",
2001
+ type: "address",
2002
+ indexed: true,
2003
+ internalType: "address"
1966
2004
  },
1967
2005
  {
1968
- "name": "amount",
1969
- "type": "uint256",
1970
- "indexed": false,
1971
- "internalType": "uint256"
2006
+ name: "amount",
2007
+ type: "uint256",
2008
+ indexed: false,
2009
+ internalType: "uint256"
1972
2010
  },
1973
2011
  {
1974
- "name": "to",
1975
- "type": "address",
1976
- "indexed": true,
1977
- "internalType": "address"
2012
+ name: "to",
2013
+ type: "address",
2014
+ indexed: true,
2015
+ internalType: "address"
1978
2016
  }
1979
2017
  ],
1980
- "anonymous": false
2018
+ anonymous: false
1981
2019
  },
1982
2020
  {
1983
- "type": "error",
1984
- "name": "AlreadyApprovedProtocol",
1985
- "inputs": []
2021
+ type: "error",
2022
+ name: "AlreadyApprovedProtocol",
2023
+ inputs: []
1986
2024
  },
1987
2025
  {
1988
- "type": "error",
1989
- "name": "AmountMismatch",
1990
- "inputs": []
2026
+ type: "error",
2027
+ name: "AmountMismatch",
2028
+ inputs: []
1991
2029
  },
1992
2030
  {
1993
- "type": "error",
1994
- "name": "BotAlreadyExists",
1995
- "inputs": []
2031
+ type: "error",
2032
+ name: "BotAlreadyExists",
2033
+ inputs: []
1996
2034
  },
1997
2035
  {
1998
- "type": "error",
1999
- "name": "BotDoesNotExist",
2000
- "inputs": []
2036
+ type: "error",
2037
+ name: "BotDoesNotExist",
2038
+ inputs: []
2001
2039
  },
2002
2040
  {
2003
- "type": "error",
2004
- "name": "BotNotActive",
2005
- "inputs": []
2041
+ type: "error",
2042
+ name: "BotNotActive",
2043
+ inputs: []
2006
2044
  },
2007
2045
  {
2008
- "type": "error",
2009
- "name": "CalldataHashMismatch",
2010
- "inputs": []
2046
+ type: "error",
2047
+ name: "CalldataHashMismatch",
2048
+ inputs: []
2011
2049
  },
2012
2050
  {
2013
- "type": "error",
2014
- "name": "DeadlineExpired",
2015
- "inputs": []
2051
+ type: "error",
2052
+ name: "DeadlineExpired",
2053
+ inputs: []
2016
2054
  },
2017
2055
  {
2018
- "type": "error",
2019
- "name": "DestinationBlacklisted",
2020
- "inputs": []
2056
+ type: "error",
2057
+ name: "DestinationBlacklisted",
2058
+ inputs: []
2021
2059
  },
2022
2060
  {
2023
- "type": "error",
2024
- "name": "DestinationNotWhitelisted",
2025
- "inputs": []
2061
+ type: "error",
2062
+ name: "DestinationNotWhitelisted",
2063
+ inputs: []
2026
2064
  },
2027
2065
  {
2028
- "type": "error",
2029
- "name": "ECDSAInvalidSignature",
2030
- "inputs": []
2066
+ type: "error",
2067
+ name: "ECDSAInvalidSignature",
2068
+ inputs: []
2031
2069
  },
2032
2070
  {
2033
- "type": "error",
2034
- "name": "ECDSAInvalidSignatureLength",
2035
- "inputs": [
2071
+ type: "error",
2072
+ name: "ECDSAInvalidSignatureLength",
2073
+ inputs: [
2036
2074
  {
2037
- "name": "length",
2038
- "type": "uint256",
2039
- "internalType": "uint256"
2075
+ name: "length",
2076
+ type: "uint256",
2077
+ internalType: "uint256"
2040
2078
  }
2041
2079
  ]
2042
2080
  },
2043
2081
  {
2044
- "type": "error",
2045
- "name": "ECDSAInvalidSignatureS",
2046
- "inputs": [
2082
+ type: "error",
2083
+ name: "ECDSAInvalidSignatureS",
2084
+ inputs: [
2047
2085
  {
2048
- "name": "s",
2049
- "type": "bytes32",
2050
- "internalType": "bytes32"
2086
+ name: "s",
2087
+ type: "bytes32",
2088
+ internalType: "bytes32"
2051
2089
  }
2052
2090
  ]
2053
2091
  },
2054
2092
  {
2055
- "type": "error",
2056
- "name": "EnforcedPause",
2057
- "inputs": []
2093
+ type: "error",
2094
+ name: "EnforcedPause",
2095
+ inputs: []
2058
2096
  },
2059
2097
  {
2060
- "type": "error",
2061
- "name": "ExceedsOperatorCeiling",
2062
- "inputs": []
2098
+ type: "error",
2099
+ name: "ExceedsOperatorCeiling",
2100
+ inputs: []
2063
2101
  },
2064
2102
  {
2065
- "type": "error",
2066
- "name": "ExpectedPause",
2067
- "inputs": []
2103
+ type: "error",
2104
+ name: "ExpectedPause",
2105
+ inputs: []
2068
2106
  },
2069
2107
  {
2070
- "type": "error",
2071
- "name": "InsufficientBalance",
2072
- "inputs": []
2108
+ type: "error",
2109
+ name: "InsufficientBalance",
2110
+ inputs: []
2073
2111
  },
2074
2112
  {
2075
- "type": "error",
2076
- "name": "IntentAlreadyUsed",
2077
- "inputs": []
2113
+ type: "error",
2114
+ name: "IntentAlreadyUsed",
2115
+ inputs: []
2078
2116
  },
2079
2117
  {
2080
- "type": "error",
2081
- "name": "InvalidShortString",
2082
- "inputs": []
2118
+ type: "error",
2119
+ name: "InvalidShortString",
2120
+ inputs: []
2083
2121
  },
2084
2122
  {
2085
- "type": "error",
2086
- "name": "InvalidSignature",
2087
- "inputs": []
2123
+ type: "error",
2124
+ name: "InvalidSignature",
2125
+ inputs: []
2088
2126
  },
2089
2127
  {
2090
- "type": "error",
2091
- "name": "MaxPerTxExceeded",
2092
- "inputs": []
2128
+ type: "error",
2129
+ name: "MaxPerTxExceeded",
2130
+ inputs: []
2093
2131
  },
2094
2132
  {
2095
- "type": "error",
2096
- "name": "MaxRebalanceAmountExceeded",
2097
- "inputs": []
2133
+ type: "error",
2134
+ name: "MaxRebalanceAmountExceeded",
2135
+ inputs: []
2098
2136
  },
2099
2137
  {
2100
- "type": "error",
2101
- "name": "NativeTransferFailed",
2102
- "inputs": []
2138
+ type: "error",
2139
+ name: "NativeTransferFailed",
2140
+ inputs: []
2103
2141
  },
2104
2142
  {
2105
- "type": "error",
2106
- "name": "NotAuthorized",
2107
- "inputs": []
2143
+ type: "error",
2144
+ name: "NotAuthorized",
2145
+ inputs: []
2108
2146
  },
2109
2147
  {
2110
- "type": "error",
2111
- "name": "NotAuthorizedRelayer",
2112
- "inputs": []
2148
+ type: "error",
2149
+ name: "NotAuthorizedRelayer",
2150
+ inputs: []
2113
2151
  },
2114
2152
  {
2115
- "type": "error",
2116
- "name": "OperatorBotLimitReached",
2117
- "inputs": []
2153
+ type: "error",
2154
+ name: "OperatorBotLimitReached",
2155
+ inputs: []
2118
2156
  },
2119
2157
  {
2120
- "type": "error",
2121
- "name": "OperatorCannotBeOwner",
2122
- "inputs": []
2158
+ type: "error",
2159
+ name: "OperatorCannotBeOwner",
2160
+ inputs: []
2123
2161
  },
2124
2162
  {
2125
- "type": "error",
2126
- "name": "OracleNotConfigured",
2127
- "inputs": []
2163
+ type: "error",
2164
+ name: "OracleNotConfigured",
2165
+ inputs: []
2128
2166
  },
2129
2167
  {
2130
- "type": "error",
2131
- "name": "OracleUnavailable",
2132
- "inputs": []
2168
+ type: "error",
2169
+ name: "OracleUnavailable",
2170
+ inputs: []
2133
2171
  },
2134
2172
  {
2135
- "type": "error",
2136
- "name": "OwnableInvalidOwner",
2137
- "inputs": [
2173
+ type: "error",
2174
+ name: "OwnableInvalidOwner",
2175
+ inputs: [
2138
2176
  {
2139
- "name": "owner",
2140
- "type": "address",
2141
- "internalType": "address"
2177
+ name: "owner",
2178
+ type: "address",
2179
+ internalType: "address"
2142
2180
  }
2143
2181
  ]
2144
2182
  },
2145
2183
  {
2146
- "type": "error",
2147
- "name": "OwnableUnauthorizedAccount",
2148
- "inputs": [
2184
+ type: "error",
2185
+ name: "OwnableUnauthorizedAccount",
2186
+ inputs: [
2149
2187
  {
2150
- "name": "account",
2151
- "type": "address",
2152
- "internalType": "address"
2188
+ name: "account",
2189
+ type: "address",
2190
+ internalType: "address"
2153
2191
  }
2154
2192
  ]
2155
2193
  },
2156
2194
  {
2157
- "type": "error",
2158
- "name": "OwnerCannotBeBot",
2159
- "inputs": []
2195
+ type: "error",
2196
+ name: "OwnerCannotBeBot",
2197
+ inputs: []
2160
2198
  },
2161
2199
  {
2162
- "type": "error",
2163
- "name": "PaymentToZeroAddress",
2164
- "inputs": []
2200
+ type: "error",
2201
+ name: "PaymentToZeroAddress",
2202
+ inputs: []
2165
2203
  },
2166
2204
  {
2167
- "type": "error",
2168
- "name": "ProtocolCallFailed",
2169
- "inputs": []
2205
+ type: "error",
2206
+ name: "ProtocolCallFailed",
2207
+ inputs: []
2170
2208
  },
2171
2209
  {
2172
- "type": "error",
2173
- "name": "ProtocolNotApproved",
2174
- "inputs": []
2210
+ type: "error",
2211
+ name: "ProtocolNotApproved",
2212
+ inputs: []
2175
2213
  },
2176
2214
  {
2177
- "type": "error",
2178
- "name": "ProtocolNotInList",
2179
- "inputs": []
2215
+ type: "error",
2216
+ name: "ProtocolNotInList",
2217
+ inputs: []
2180
2218
  },
2181
2219
  {
2182
- "type": "error",
2183
- "name": "RebalanceTokenNotAllowed",
2184
- "inputs": []
2220
+ type: "error",
2221
+ name: "RebalanceTokenNotAllowed",
2222
+ inputs: []
2185
2223
  },
2186
2224
  {
2187
- "type": "error",
2188
- "name": "ReentrancyGuardReentrantCall",
2189
- "inputs": []
2225
+ type: "error",
2226
+ name: "ReentrancyGuardReentrantCall",
2227
+ inputs: []
2190
2228
  },
2191
2229
  {
2192
- "type": "error",
2193
- "name": "RouterNotApproved",
2194
- "inputs": []
2230
+ type: "error",
2231
+ name: "RouterNotApproved",
2232
+ inputs: []
2195
2233
  },
2196
2234
  {
2197
- "type": "error",
2198
- "name": "SafeERC20FailedOperation",
2199
- "inputs": [
2235
+ type: "error",
2236
+ name: "SafeERC20FailedOperation",
2237
+ inputs: [
2200
2238
  {
2201
- "name": "token",
2202
- "type": "address",
2203
- "internalType": "address"
2239
+ name: "token",
2240
+ type: "address",
2241
+ internalType: "address"
2204
2242
  }
2205
2243
  ]
2206
2244
  },
2207
2245
  {
2208
- "type": "error",
2209
- "name": "SelfPayment",
2210
- "inputs": []
2246
+ type: "error",
2247
+ name: "SelfPayment",
2248
+ inputs: []
2211
2249
  },
2212
2250
  {
2213
- "type": "error",
2214
- "name": "StringTooLong",
2215
- "inputs": [
2251
+ type: "error",
2252
+ name: "StringTooLong",
2253
+ inputs: [
2216
2254
  {
2217
- "name": "str",
2218
- "type": "string",
2219
- "internalType": "string"
2255
+ name: "str",
2256
+ type: "string",
2257
+ internalType: "string"
2220
2258
  }
2221
2259
  ]
2222
2260
  },
2223
2261
  {
2224
- "type": "error",
2225
- "name": "SwapFailed",
2226
- "inputs": []
2262
+ type: "error",
2263
+ name: "SwapFailed",
2264
+ inputs: []
2227
2265
  },
2228
2266
  {
2229
- "type": "error",
2230
- "name": "SwapOutputInsufficient",
2231
- "inputs": []
2267
+ type: "error",
2268
+ name: "SwapOutputInsufficient",
2269
+ inputs: []
2232
2270
  },
2233
2271
  {
2234
- "type": "error",
2235
- "name": "TooManySpendingLimits",
2236
- "inputs": []
2272
+ type: "error",
2273
+ name: "TooManySpendingLimits",
2274
+ inputs: []
2237
2275
  },
2238
2276
  {
2239
- "type": "error",
2240
- "name": "UnexpectedETH",
2241
- "inputs": []
2277
+ type: "error",
2278
+ name: "UnexpectedETH",
2279
+ inputs: []
2242
2280
  },
2243
2281
  {
2244
- "type": "error",
2245
- "name": "ZeroAddress",
2246
- "inputs": []
2282
+ type: "error",
2283
+ name: "ZeroAddress",
2284
+ inputs: []
2247
2285
  },
2248
2286
  {
2249
- "type": "error",
2250
- "name": "ZeroAmount",
2251
- "inputs": []
2287
+ type: "error",
2288
+ name: "ZeroAmount",
2289
+ inputs: []
2252
2290
  }
2253
2291
  ];
2254
2292
 
2255
2293
  // src/abis/AxonVaultFactory.ts
2256
2294
  var AxonVaultFactoryAbi = [
2257
2295
  {
2258
- "type": "constructor",
2259
- "inputs": [
2296
+ type: "constructor",
2297
+ inputs: [
2260
2298
  {
2261
- "name": "_axonRegistry",
2262
- "type": "address",
2263
- "internalType": "address"
2299
+ name: "_axonRegistry",
2300
+ type: "address",
2301
+ internalType: "address"
2264
2302
  },
2265
2303
  {
2266
- "name": "factoryOwner",
2267
- "type": "address",
2268
- "internalType": "address"
2304
+ name: "factoryOwner",
2305
+ type: "address",
2306
+ internalType: "address"
2269
2307
  }
2270
2308
  ],
2271
- "stateMutability": "nonpayable"
2309
+ stateMutability: "nonpayable"
2272
2310
  },
2273
2311
  {
2274
- "type": "function",
2275
- "name": "acceptOwnership",
2276
- "inputs": [],
2277
- "outputs": [],
2278
- "stateMutability": "nonpayable"
2312
+ type: "function",
2313
+ name: "acceptOwnership",
2314
+ inputs: [],
2315
+ outputs: [],
2316
+ stateMutability: "nonpayable"
2279
2317
  },
2280
2318
  {
2281
- "type": "function",
2282
- "name": "allVaults",
2283
- "inputs": [
2319
+ type: "function",
2320
+ name: "allVaults",
2321
+ inputs: [
2284
2322
  {
2285
- "name": "",
2286
- "type": "uint256",
2287
- "internalType": "uint256"
2323
+ name: "",
2324
+ type: "uint256",
2325
+ internalType: "uint256"
2288
2326
  }
2289
2327
  ],
2290
- "outputs": [
2328
+ outputs: [
2291
2329
  {
2292
- "name": "",
2293
- "type": "address",
2294
- "internalType": "address"
2330
+ name: "",
2331
+ type: "address",
2332
+ internalType: "address"
2295
2333
  }
2296
2334
  ],
2297
- "stateMutability": "view"
2335
+ stateMutability: "view"
2298
2336
  },
2299
2337
  {
2300
- "type": "function",
2301
- "name": "axonRegistry",
2302
- "inputs": [],
2303
- "outputs": [
2338
+ type: "function",
2339
+ name: "axonRegistry",
2340
+ inputs: [],
2341
+ outputs: [
2304
2342
  {
2305
- "name": "",
2306
- "type": "address",
2307
- "internalType": "address"
2343
+ name: "",
2344
+ type: "address",
2345
+ internalType: "address"
2308
2346
  }
2309
2347
  ],
2310
- "stateMutability": "view"
2348
+ stateMutability: "view"
2311
2349
  },
2312
2350
  {
2313
- "type": "function",
2314
- "name": "deployVault",
2315
- "inputs": [
2351
+ type: "function",
2352
+ name: "deployVault",
2353
+ inputs: [
2316
2354
  {
2317
- "name": "trackUsedIntents",
2318
- "type": "bool",
2319
- "internalType": "bool"
2355
+ name: "trackUsedIntents",
2356
+ type: "bool",
2357
+ internalType: "bool"
2320
2358
  }
2321
2359
  ],
2322
- "outputs": [
2360
+ outputs: [
2323
2361
  {
2324
- "name": "vault",
2325
- "type": "address",
2326
- "internalType": "address"
2362
+ name: "vault",
2363
+ type: "address",
2364
+ internalType: "address"
2327
2365
  }
2328
2366
  ],
2329
- "stateMutability": "nonpayable"
2367
+ stateMutability: "nonpayable"
2330
2368
  },
2331
2369
  {
2332
- "type": "function",
2333
- "name": "owner",
2334
- "inputs": [],
2335
- "outputs": [
2370
+ type: "function",
2371
+ name: "owner",
2372
+ inputs: [],
2373
+ outputs: [
2336
2374
  {
2337
- "name": "",
2338
- "type": "address",
2339
- "internalType": "address"
2375
+ name: "",
2376
+ type: "address",
2377
+ internalType: "address"
2340
2378
  }
2341
2379
  ],
2342
- "stateMutability": "view"
2380
+ stateMutability: "view"
2343
2381
  },
2344
2382
  {
2345
- "type": "function",
2346
- "name": "ownerVaultCount",
2347
- "inputs": [
2383
+ type: "function",
2384
+ name: "ownerVaultCount",
2385
+ inputs: [
2348
2386
  {
2349
- "name": "owner",
2350
- "type": "address",
2351
- "internalType": "address"
2387
+ name: "owner",
2388
+ type: "address",
2389
+ internalType: "address"
2352
2390
  }
2353
2391
  ],
2354
- "outputs": [
2392
+ outputs: [
2355
2393
  {
2356
- "name": "",
2357
- "type": "uint256",
2358
- "internalType": "uint256"
2394
+ name: "",
2395
+ type: "uint256",
2396
+ internalType: "uint256"
2359
2397
  }
2360
2398
  ],
2361
- "stateMutability": "view"
2399
+ stateMutability: "view"
2362
2400
  },
2363
2401
  {
2364
- "type": "function",
2365
- "name": "ownerVaults",
2366
- "inputs": [
2402
+ type: "function",
2403
+ name: "ownerVaults",
2404
+ inputs: [
2367
2405
  {
2368
- "name": "",
2369
- "type": "address",
2370
- "internalType": "address"
2406
+ name: "",
2407
+ type: "address",
2408
+ internalType: "address"
2371
2409
  },
2372
2410
  {
2373
- "name": "",
2374
- "type": "uint256",
2375
- "internalType": "uint256"
2411
+ name: "",
2412
+ type: "uint256",
2413
+ internalType: "uint256"
2376
2414
  }
2377
2415
  ],
2378
- "outputs": [
2416
+ outputs: [
2379
2417
  {
2380
- "name": "",
2381
- "type": "address",
2382
- "internalType": "address"
2418
+ name: "",
2419
+ type: "address",
2420
+ internalType: "address"
2383
2421
  }
2384
2422
  ],
2385
- "stateMutability": "view"
2423
+ stateMutability: "view"
2386
2424
  },
2387
2425
  {
2388
- "type": "function",
2389
- "name": "pendingOwner",
2390
- "inputs": [],
2391
- "outputs": [
2426
+ type: "function",
2427
+ name: "pendingOwner",
2428
+ inputs: [],
2429
+ outputs: [
2392
2430
  {
2393
- "name": "",
2394
- "type": "address",
2395
- "internalType": "address"
2431
+ name: "",
2432
+ type: "address",
2433
+ internalType: "address"
2396
2434
  }
2397
2435
  ],
2398
- "stateMutability": "view"
2436
+ stateMutability: "view"
2399
2437
  },
2400
2438
  {
2401
- "type": "function",
2402
- "name": "renounceOwnership",
2403
- "inputs": [],
2404
- "outputs": [],
2405
- "stateMutability": "nonpayable"
2439
+ type: "function",
2440
+ name: "renounceOwnership",
2441
+ inputs: [],
2442
+ outputs: [],
2443
+ stateMutability: "nonpayable"
2406
2444
  },
2407
2445
  {
2408
- "type": "function",
2409
- "name": "transferOwnership",
2410
- "inputs": [
2446
+ type: "function",
2447
+ name: "transferOwnership",
2448
+ inputs: [
2411
2449
  {
2412
- "name": "newOwner",
2413
- "type": "address",
2414
- "internalType": "address"
2450
+ name: "newOwner",
2451
+ type: "address",
2452
+ internalType: "address"
2415
2453
  }
2416
2454
  ],
2417
- "outputs": [],
2418
- "stateMutability": "nonpayable"
2455
+ outputs: [],
2456
+ stateMutability: "nonpayable"
2419
2457
  },
2420
2458
  {
2421
- "type": "function",
2422
- "name": "vaultCount",
2423
- "inputs": [],
2424
- "outputs": [
2459
+ type: "function",
2460
+ name: "vaultCount",
2461
+ inputs: [],
2462
+ outputs: [
2425
2463
  {
2426
- "name": "",
2427
- "type": "uint256",
2428
- "internalType": "uint256"
2464
+ name: "",
2465
+ type: "uint256",
2466
+ internalType: "uint256"
2429
2467
  }
2430
2468
  ],
2431
- "stateMutability": "view"
2469
+ stateMutability: "view"
2432
2470
  },
2433
2471
  {
2434
- "type": "event",
2435
- "name": "OwnershipTransferStarted",
2436
- "inputs": [
2472
+ type: "event",
2473
+ name: "OwnershipTransferStarted",
2474
+ inputs: [
2437
2475
  {
2438
- "name": "previousOwner",
2439
- "type": "address",
2440
- "indexed": true,
2441
- "internalType": "address"
2476
+ name: "previousOwner",
2477
+ type: "address",
2478
+ indexed: true,
2479
+ internalType: "address"
2442
2480
  },
2443
2481
  {
2444
- "name": "newOwner",
2445
- "type": "address",
2446
- "indexed": true,
2447
- "internalType": "address"
2482
+ name: "newOwner",
2483
+ type: "address",
2484
+ indexed: true,
2485
+ internalType: "address"
2448
2486
  }
2449
2487
  ],
2450
- "anonymous": false
2488
+ anonymous: false
2451
2489
  },
2452
2490
  {
2453
- "type": "event",
2454
- "name": "OwnershipTransferred",
2455
- "inputs": [
2491
+ type: "event",
2492
+ name: "OwnershipTransferred",
2493
+ inputs: [
2456
2494
  {
2457
- "name": "previousOwner",
2458
- "type": "address",
2459
- "indexed": true,
2460
- "internalType": "address"
2495
+ name: "previousOwner",
2496
+ type: "address",
2497
+ indexed: true,
2498
+ internalType: "address"
2461
2499
  },
2462
2500
  {
2463
- "name": "newOwner",
2464
- "type": "address",
2465
- "indexed": true,
2466
- "internalType": "address"
2501
+ name: "newOwner",
2502
+ type: "address",
2503
+ indexed: true,
2504
+ internalType: "address"
2467
2505
  }
2468
2506
  ],
2469
- "anonymous": false
2507
+ anonymous: false
2470
2508
  },
2471
2509
  {
2472
- "type": "event",
2473
- "name": "VaultDeployed",
2474
- "inputs": [
2510
+ type: "event",
2511
+ name: "VaultDeployed",
2512
+ inputs: [
2475
2513
  {
2476
- "name": "owner",
2477
- "type": "address",
2478
- "indexed": true,
2479
- "internalType": "address"
2514
+ name: "owner",
2515
+ type: "address",
2516
+ indexed: true,
2517
+ internalType: "address"
2480
2518
  },
2481
2519
  {
2482
- "name": "vault",
2483
- "type": "address",
2484
- "indexed": true,
2485
- "internalType": "address"
2520
+ name: "vault",
2521
+ type: "address",
2522
+ indexed: true,
2523
+ internalType: "address"
2486
2524
  },
2487
2525
  {
2488
- "name": "version",
2489
- "type": "uint16",
2490
- "indexed": false,
2491
- "internalType": "uint16"
2526
+ name: "version",
2527
+ type: "uint16",
2528
+ indexed: false,
2529
+ internalType: "uint16"
2492
2530
  },
2493
2531
  {
2494
- "name": "axonRegistry",
2495
- "type": "address",
2496
- "indexed": false,
2497
- "internalType": "address"
2532
+ name: "axonRegistry",
2533
+ type: "address",
2534
+ indexed: false,
2535
+ internalType: "address"
2498
2536
  },
2499
2537
  {
2500
- "name": "trackUsedIntents",
2501
- "type": "bool",
2502
- "indexed": false,
2503
- "internalType": "bool"
2538
+ name: "trackUsedIntents",
2539
+ type: "bool",
2540
+ indexed: false,
2541
+ internalType: "bool"
2504
2542
  }
2505
2543
  ],
2506
- "anonymous": false
2544
+ anonymous: false
2507
2545
  },
2508
2546
  {
2509
- "type": "error",
2510
- "name": "OwnableInvalidOwner",
2511
- "inputs": [
2547
+ type: "error",
2548
+ name: "OwnableInvalidOwner",
2549
+ inputs: [
2512
2550
  {
2513
- "name": "owner",
2514
- "type": "address",
2515
- "internalType": "address"
2551
+ name: "owner",
2552
+ type: "address",
2553
+ internalType: "address"
2516
2554
  }
2517
2555
  ]
2518
2556
  },
2519
2557
  {
2520
- "type": "error",
2521
- "name": "OwnableUnauthorizedAccount",
2522
- "inputs": [
2558
+ type: "error",
2559
+ name: "OwnableUnauthorizedAccount",
2560
+ inputs: [
2523
2561
  {
2524
- "name": "account",
2525
- "type": "address",
2526
- "internalType": "address"
2562
+ name: "account",
2563
+ type: "address",
2564
+ internalType: "address"
2527
2565
  }
2528
2566
  ]
2529
2567
  },
2530
2568
  {
2531
- "type": "error",
2532
- "name": "ZeroAddress",
2533
- "inputs": []
2569
+ type: "error",
2570
+ name: "ZeroAddress",
2571
+ inputs: []
2534
2572
  }
2535
2573
  ];
2536
2574
 
@@ -2746,6 +2784,266 @@ async function deployVault(walletClient, publicClient, factoryAddress, trackUsed
2746
2784
  throw new Error("VaultDeployed event not found in transaction receipt");
2747
2785
  }
2748
2786
 
2787
+ // src/tokens.ts
2788
+ var Token = /* @__PURE__ */ ((Token2) => {
2789
+ Token2["USDC"] = "USDC";
2790
+ Token2["USDT"] = "USDT";
2791
+ Token2["DAI"] = "DAI";
2792
+ Token2["WETH"] = "WETH";
2793
+ Token2["WBTC"] = "WBTC";
2794
+ Token2["cbBTC"] = "cbBTC";
2795
+ Token2["cbETH"] = "cbETH";
2796
+ Token2["wstETH"] = "wstETH";
2797
+ Token2["rETH"] = "rETH";
2798
+ Token2["LINK"] = "LINK";
2799
+ Token2["UNI"] = "UNI";
2800
+ Token2["AAVE"] = "AAVE";
2801
+ Token2["COMP"] = "COMP";
2802
+ Token2["CRV"] = "CRV";
2803
+ Token2["SNX"] = "SNX";
2804
+ Token2["ARB"] = "ARB";
2805
+ Token2["AERO"] = "AERO";
2806
+ Token2["GMX"] = "GMX";
2807
+ return Token2;
2808
+ })(Token || {});
2809
+ var KNOWN_TOKENS = {
2810
+ // ── Core stables + wrapped ──────────────────────────────
2811
+ USDC: {
2812
+ symbol: "USDC",
2813
+ name: "USD Coin",
2814
+ decimals: 6,
2815
+ addresses: {
2816
+ 8453: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
2817
+ 84532: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
2818
+ 42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
2819
+ 421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"
2820
+ }
2821
+ },
2822
+ USDT: {
2823
+ symbol: "USDT",
2824
+ name: "Tether USD",
2825
+ decimals: 6,
2826
+ addresses: {
2827
+ 8453: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
2828
+ 42161: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
2829
+ }
2830
+ },
2831
+ DAI: {
2832
+ symbol: "DAI",
2833
+ name: "Dai Stablecoin",
2834
+ decimals: 18,
2835
+ addresses: {
2836
+ 8453: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
2837
+ 84532: "0x819ffecd4e64f193e959944bcd57eedc7755e17a",
2838
+ 42161: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"
2839
+ }
2840
+ },
2841
+ WETH: {
2842
+ symbol: "WETH",
2843
+ name: "Wrapped Ether",
2844
+ decimals: 18,
2845
+ addresses: {
2846
+ 8453: "0x4200000000000000000000000000000000000006",
2847
+ 84532: "0x4200000000000000000000000000000000000006",
2848
+ 42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"
2849
+ }
2850
+ },
2851
+ WBTC: {
2852
+ symbol: "WBTC",
2853
+ name: "Wrapped BTC",
2854
+ decimals: 8,
2855
+ addresses: {
2856
+ 8453: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
2857
+ 42161: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f"
2858
+ }
2859
+ },
2860
+ cbBTC: {
2861
+ symbol: "cbBTC",
2862
+ name: "Coinbase Wrapped BTC",
2863
+ decimals: 8,
2864
+ addresses: {
2865
+ 8453: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
2866
+ 42161: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
2867
+ }
2868
+ },
2869
+ // ── Liquid staking ──────────────────────────────────────
2870
+ cbETH: {
2871
+ symbol: "cbETH",
2872
+ name: "Coinbase Staked ETH",
2873
+ decimals: 18,
2874
+ addresses: {
2875
+ 8453: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
2876
+ 42161: "0x1DEBd73E752bEaF79865Fd6446b0c970EaE7732f"
2877
+ }
2878
+ },
2879
+ wstETH: {
2880
+ symbol: "wstETH",
2881
+ name: "Lido Wrapped stETH",
2882
+ decimals: 18,
2883
+ addresses: {
2884
+ 8453: "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
2885
+ 42161: "0x5979D7b546E38E414F7E9822514be443A4800529"
2886
+ }
2887
+ },
2888
+ rETH: {
2889
+ symbol: "rETH",
2890
+ name: "Rocket Pool ETH",
2891
+ decimals: 18,
2892
+ addresses: {
2893
+ 42161: "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8"
2894
+ }
2895
+ },
2896
+ // ── DeFi blue-chips ─────────────────────────────────────
2897
+ LINK: {
2898
+ symbol: "LINK",
2899
+ name: "Chainlink",
2900
+ decimals: 18,
2901
+ addresses: {
2902
+ 8453: "0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196",
2903
+ 84532: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
2904
+ 42161: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"
2905
+ }
2906
+ },
2907
+ UNI: {
2908
+ symbol: "UNI",
2909
+ name: "Uniswap",
2910
+ decimals: 18,
2911
+ addresses: {
2912
+ 8453: "0xc3De830EA07524a0761646a6a4e4be0e114a3C83",
2913
+ 42161: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"
2914
+ }
2915
+ },
2916
+ AAVE: {
2917
+ symbol: "AAVE",
2918
+ name: "Aave",
2919
+ decimals: 18,
2920
+ addresses: {
2921
+ 8453: "0x63706e401c06ac8513145b7687A14804d17f814b",
2922
+ 42161: "0xba5DdD1f9d7F570dc94a51479a000E3BCE967196"
2923
+ }
2924
+ },
2925
+ COMP: {
2926
+ symbol: "COMP",
2927
+ name: "Compound",
2928
+ decimals: 18,
2929
+ addresses: {
2930
+ 8453: "0x9e1028F5F1D5eDE59748FFceE5532509976840E0",
2931
+ 42161: "0x354A6dA3fcde098F8389cad84b0182725c6C91dE"
2932
+ }
2933
+ },
2934
+ CRV: {
2935
+ symbol: "CRV",
2936
+ name: "Curve DAO",
2937
+ decimals: 18,
2938
+ addresses: {
2939
+ 8453: "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
2940
+ 42161: "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978"
2941
+ }
2942
+ },
2943
+ SNX: {
2944
+ symbol: "SNX",
2945
+ name: "Synthetix",
2946
+ decimals: 18,
2947
+ addresses: {
2948
+ 8453: "0x22e6966B799c4D5B13BE962E1D117b56327FDa66"
2949
+ }
2950
+ },
2951
+ // ── Chain-native governance ─────────────────────────────
2952
+ ARB: {
2953
+ symbol: "ARB",
2954
+ name: "Arbitrum",
2955
+ decimals: 18,
2956
+ addresses: {
2957
+ 42161: "0x912CE59144191C1204E64559FE8253a0e49E6548"
2958
+ }
2959
+ },
2960
+ AERO: {
2961
+ symbol: "AERO",
2962
+ name: "Aerodrome",
2963
+ decimals: 18,
2964
+ addresses: {
2965
+ 8453: "0x940181a94A35A4569E4529A3CDfB74e38FD98631"
2966
+ }
2967
+ },
2968
+ GMX: {
2969
+ symbol: "GMX",
2970
+ name: "GMX",
2971
+ decimals: 18,
2972
+ addresses: {
2973
+ 42161: "0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a"
2974
+ }
2975
+ }
2976
+ };
2977
+ var addressToSymbol = /* @__PURE__ */ new Map();
2978
+ for (const token of Object.values(KNOWN_TOKENS)) {
2979
+ for (const addr of Object.values(token.addresses)) {
2980
+ addressToSymbol.set(addr.toLowerCase(), token.symbol);
2981
+ }
2982
+ }
2983
+ function getKnownTokensForChain(chainId) {
2984
+ const result = [];
2985
+ for (const token of Object.values(KNOWN_TOKENS)) {
2986
+ const addr = token.addresses[chainId];
2987
+ if (addr) {
2988
+ result.push({ ...token, address: addr });
2989
+ }
2990
+ }
2991
+ return result;
2992
+ }
2993
+ function getTokenSymbolByAddress(address) {
2994
+ return addressToSymbol.get(address.toLowerCase()) ?? null;
2995
+ }
2996
+ function resolveToken(token, chainId) {
2997
+ if (typeof token === "string" && token.startsWith("0x")) {
2998
+ return token;
2999
+ }
3000
+ const entry = KNOWN_TOKENS[token];
3001
+ if (!entry) {
3002
+ throw new Error(`Unknown token symbol: ${token}`);
3003
+ }
3004
+ const addr = entry.addresses[chainId];
3005
+ if (!addr) {
3006
+ throw new Error(`Token ${token} is not available on chain ${chainId}`);
3007
+ }
3008
+ return addr;
3009
+ }
3010
+ function resolveTokenDecimals(token, chainId) {
3011
+ if (typeof token === "string" && token.startsWith("0x")) {
3012
+ const symbol = getTokenSymbolByAddress(token);
3013
+ if (!symbol) {
3014
+ throw new Error(
3015
+ `Unknown token address ${token} \u2014 cannot determine decimals. Use a bigint amount instead, or pass a known token symbol.`
3016
+ );
3017
+ }
3018
+ const entry2 = KNOWN_TOKENS[symbol];
3019
+ return entry2.decimals;
3020
+ }
3021
+ const entry = KNOWN_TOKENS[token];
3022
+ if (!entry) {
3023
+ throw new Error(
3024
+ `Unknown token symbol "${token}" \u2014 cannot determine decimals. Use a bigint amount instead, or use a known symbol (${Object.keys(KNOWN_TOKENS).join(", ")}).`
3025
+ );
3026
+ }
3027
+ return entry.decimals;
3028
+ }
3029
+ function parseAmount(amount, token, chainId) {
3030
+ if (typeof amount === "bigint") {
3031
+ return amount;
3032
+ }
3033
+ const decimals = resolveTokenDecimals(token);
3034
+ const str = typeof amount === "number" ? amount.toString() : amount;
3035
+ const dotIndex = str.indexOf(".");
3036
+ if (dotIndex !== -1) {
3037
+ const decimalPlaces = str.length - dotIndex - 1;
3038
+ if (decimalPlaces > decimals) {
3039
+ throw new Error(
3040
+ `Amount "${str}" has ${decimalPlaces} decimal places, but ${typeof token === "string" && token.startsWith("0x") ? "this token" : token} only supports ${decimals}. Truncate or round your amount.`
3041
+ );
3042
+ }
3043
+ }
3044
+ return viem.parseUnits(str, decimals);
3045
+ }
3046
+
2749
3047
  // src/utils.ts
2750
3048
  function generateUuid() {
2751
3049
  const bytes = new Uint8Array(16);
@@ -3021,8 +3319,8 @@ Timestamp: ${timestamp}`;
3021
3319
  return {
3022
3320
  bot: this.botAddress,
3023
3321
  to: input.to,
3024
- token: input.token,
3025
- amount: input.amount,
3322
+ token: resolveToken(input.token, this.chainId),
3323
+ amount: parseAmount(input.amount, input.token, this.chainId),
3026
3324
  deadline: input.deadline ?? this._defaultDeadline(),
3027
3325
  ref: this._resolveRef(input.memo, input.ref)
3028
3326
  };
@@ -3032,8 +3330,8 @@ Timestamp: ${timestamp}`;
3032
3330
  bot: this.botAddress,
3033
3331
  protocol: input.protocol,
3034
3332
  calldataHash: viem.keccak256(input.callData),
3035
- token: input.token,
3036
- amount: input.amount,
3333
+ token: resolveToken(input.token, this.chainId),
3334
+ amount: parseAmount(input.amount, input.token, this.chainId),
3037
3335
  deadline: input.deadline ?? this._defaultDeadline(),
3038
3336
  ref: this._resolveRef(input.memo, input.ref)
3039
3337
  };
@@ -3041,8 +3339,8 @@ Timestamp: ${timestamp}`;
3041
3339
  _buildSwapIntent(input) {
3042
3340
  return {
3043
3341
  bot: this.botAddress,
3044
- toToken: input.toToken,
3045
- minToAmount: input.minToAmount,
3342
+ toToken: resolveToken(input.toToken, this.chainId),
3343
+ minToAmount: parseAmount(input.minToAmount, input.toToken, this.chainId),
3046
3344
  deadline: input.deadline ?? this._defaultDeadline(),
3047
3345
  ref: this._resolveRef(input.memo, input.ref)
3048
3346
  };
@@ -3074,6 +3372,8 @@ Timestamp: ${timestamp}`;
3074
3372
  }
3075
3373
  async _submitExecute(intent, signature, input) {
3076
3374
  const idempotencyKey = input.idempotencyKey ?? generateUuid();
3375
+ const fromToken = input.fromToken !== void 0 ? resolveToken(input.fromToken, this.chainId) : void 0;
3376
+ const maxFromAmount = input.maxFromAmount !== void 0 ? parseAmount(input.maxFromAmount, input.fromToken ?? input.token, this.chainId) : void 0;
3077
3377
  const body = {
3078
3378
  chainId: this.chainId,
3079
3379
  vaultAddress: this.vaultAddress,
@@ -3089,8 +3389,8 @@ Timestamp: ${timestamp}`;
3089
3389
  // Protocol calldata
3090
3390
  callData: input.callData,
3091
3391
  // Optional pre-swap
3092
- ...input.fromToken !== void 0 && { fromToken: input.fromToken },
3093
- ...input.maxFromAmount !== void 0 && { maxFromAmount: input.maxFromAmount.toString() },
3392
+ ...fromToken !== void 0 && { fromToken },
3393
+ ...maxFromAmount !== void 0 && { maxFromAmount: maxFromAmount.toString() },
3094
3394
  // Off-chain metadata
3095
3395
  idempotencyKey,
3096
3396
  ...input.memo !== void 0 && { memo: input.memo },
@@ -3101,6 +3401,8 @@ Timestamp: ${timestamp}`;
3101
3401
  }
3102
3402
  async _submitSwap(intent, signature, input) {
3103
3403
  const idempotencyKey = input.idempotencyKey ?? generateUuid();
3404
+ const fromToken = input.fromToken !== void 0 ? resolveToken(input.fromToken, this.chainId) : void 0;
3405
+ const maxFromAmount = input.maxFromAmount !== void 0 ? parseAmount(input.maxFromAmount, input.fromToken ?? input.toToken, this.chainId) : void 0;
3104
3406
  const body = {
3105
3407
  chainId: this.chainId,
3106
3408
  vaultAddress: this.vaultAddress,
@@ -3112,8 +3414,8 @@ Timestamp: ${timestamp}`;
3112
3414
  ref: intent.ref,
3113
3415
  signature,
3114
3416
  // Optional source token
3115
- ...input.fromToken !== void 0 && { fromToken: input.fromToken },
3116
- ...input.maxFromAmount !== void 0 && { maxFromAmount: input.maxFromAmount.toString() },
3417
+ ...fromToken !== void 0 && { fromToken },
3418
+ ...maxFromAmount !== void 0 && { maxFromAmount: maxFromAmount.toString() },
3117
3419
  // Off-chain metadata
3118
3420
  idempotencyKey,
3119
3421
  ...input.memo !== void 0 && { memo: input.memo }
@@ -3170,11 +3472,12 @@ async function encryptKeystore(privateKey, passphrase) {
3170
3472
  const address = account.address.slice(2).toLowerCase();
3171
3473
  const salt = getRandomBytes(32);
3172
3474
  const iv = getRandomBytes(16);
3173
- const derivedKey = await scrypt.scryptAsync(
3174
- new TextEncoder().encode(passphrase),
3175
- salt,
3176
- { N: SCRYPT_N, r: SCRYPT_R, p: SCRYPT_P, dkLen: SCRYPT_DKLEN }
3177
- );
3475
+ const derivedKey = await scrypt.scryptAsync(new TextEncoder().encode(passphrase), salt, {
3476
+ N: SCRYPT_N,
3477
+ r: SCRYPT_R,
3478
+ p: SCRYPT_P,
3479
+ dkLen: SCRYPT_DKLEN
3480
+ });
3178
3481
  const encryptionKey = derivedKey.slice(0, 16);
3179
3482
  const cipher = aes.ctr(encryptionKey, iv);
3180
3483
  const ciphertext = cipher.encrypt(keyBytes);
@@ -3219,11 +3522,12 @@ async function decryptKeystore(keystore, passphrase) {
3219
3522
  if (ks.crypto.cipher !== "aes-128-ctr") throw new Error(`Unsupported cipher: ${ks.crypto.cipher}`);
3220
3523
  const { kdfparams, ciphertext: ctHex, cipherparams, mac: expectedMacHex } = ks.crypto;
3221
3524
  const salt = hexToBytes(kdfparams.salt);
3222
- const derivedKey = await scrypt.scryptAsync(
3223
- new TextEncoder().encode(passphrase),
3224
- salt,
3225
- { N: kdfparams.n, r: kdfparams.r, p: kdfparams.p, dkLen: kdfparams.dklen }
3226
- );
3525
+ const derivedKey = await scrypt.scryptAsync(new TextEncoder().encode(passphrase), salt, {
3526
+ N: kdfparams.n,
3527
+ r: kdfparams.r,
3528
+ p: kdfparams.p,
3529
+ dkLen: kdfparams.dklen
3530
+ });
3227
3531
  const ciphertextBytes = hexToBytes(ctHex);
3228
3532
  const macInput = new Uint8Array(16 + ciphertextBytes.length);
3229
3533
  macInput.set(derivedKey.slice(16, 32), 0);
@@ -3239,574 +3543,385 @@ async function decryptKeystore(keystore, passphrase) {
3239
3543
  return `0x${bytesToHex(plaintext)}`;
3240
3544
  }
3241
3545
 
3242
- // src/tokens.ts
3243
- var KNOWN_TOKENS = {
3244
- // ── Core stables + wrapped ──────────────────────────────
3245
- USDC: {
3246
- symbol: "USDC",
3247
- name: "USD Coin",
3248
- decimals: 6,
3249
- addresses: {
3250
- 8453: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
3251
- 84532: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
3252
- 42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
3253
- 421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"
3254
- }
3255
- },
3256
- USDT: {
3257
- symbol: "USDT",
3258
- name: "Tether USD",
3259
- decimals: 6,
3260
- addresses: {
3261
- 8453: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
3262
- 42161: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
3263
- }
3264
- },
3265
- DAI: {
3266
- symbol: "DAI",
3267
- name: "Dai Stablecoin",
3268
- decimals: 18,
3269
- addresses: {
3270
- 8453: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
3271
- 84532: "0x819ffecd4e64f193e959944bcd57eedc7755e17a",
3272
- 42161: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"
3273
- }
3274
- },
3275
- WETH: {
3276
- symbol: "WETH",
3277
- name: "Wrapped Ether",
3278
- decimals: 18,
3279
- addresses: {
3280
- 8453: "0x4200000000000000000000000000000000000006",
3281
- 84532: "0x4200000000000000000000000000000000000006",
3282
- 42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"
3283
- }
3284
- },
3285
- WBTC: {
3286
- symbol: "WBTC",
3287
- name: "Wrapped BTC",
3288
- decimals: 8,
3289
- addresses: {
3290
- 8453: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
3291
- 42161: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f"
3292
- }
3293
- },
3294
- cbBTC: {
3295
- symbol: "cbBTC",
3296
- name: "Coinbase Wrapped BTC",
3297
- decimals: 8,
3298
- addresses: {
3299
- 8453: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
3300
- 42161: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
3301
- }
3302
- },
3303
- // ── Liquid staking ──────────────────────────────────────
3304
- cbETH: {
3305
- symbol: "cbETH",
3306
- name: "Coinbase Staked ETH",
3307
- decimals: 18,
3308
- addresses: {
3309
- 8453: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
3310
- 42161: "0x1DEBd73E752bEaF79865Fd6446b0c970EaE7732f"
3311
- }
3312
- },
3313
- wstETH: {
3314
- symbol: "wstETH",
3315
- name: "Lido Wrapped stETH",
3316
- decimals: 18,
3317
- addresses: {
3318
- 8453: "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
3319
- 42161: "0x5979D7b546E38E414F7E9822514be443A4800529"
3320
- }
3321
- },
3322
- rETH: {
3323
- symbol: "rETH",
3324
- name: "Rocket Pool ETH",
3325
- decimals: 18,
3326
- addresses: {
3327
- 42161: "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8"
3328
- }
3329
- },
3330
- // ── DeFi blue-chips ─────────────────────────────────────
3331
- LINK: {
3332
- symbol: "LINK",
3333
- name: "Chainlink",
3334
- decimals: 18,
3335
- addresses: {
3336
- 8453: "0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196",
3337
- 84532: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
3338
- 42161: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4"
3339
- }
3340
- },
3341
- UNI: {
3342
- symbol: "UNI",
3343
- name: "Uniswap",
3344
- decimals: 18,
3345
- addresses: {
3346
- 8453: "0xc3De830EA07524a0761646a6a4e4be0e114a3C83",
3347
- 42161: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"
3348
- }
3349
- },
3350
- AAVE: {
3351
- symbol: "AAVE",
3352
- name: "Aave",
3353
- decimals: 18,
3354
- addresses: {
3355
- 8453: "0x63706e401c06ac8513145b7687A14804d17f814b",
3356
- 42161: "0xba5DdD1f9d7F570dc94a51479a000E3BCE967196"
3357
- }
3358
- },
3359
- COMP: {
3360
- symbol: "COMP",
3361
- name: "Compound",
3362
- decimals: 18,
3363
- addresses: {
3364
- 8453: "0x9e1028F5F1D5eDE59748FFceE5532509976840E0",
3365
- 42161: "0x354A6dA3fcde098F8389cad84b0182725c6C91dE"
3366
- }
3367
- },
3368
- CRV: {
3369
- symbol: "CRV",
3370
- name: "Curve DAO",
3371
- decimals: 18,
3372
- addresses: {
3373
- 8453: "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
3374
- 42161: "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978"
3375
- }
3376
- },
3377
- SNX: {
3378
- symbol: "SNX",
3379
- name: "Synthetix",
3380
- decimals: 18,
3381
- addresses: {
3382
- 8453: "0x22e6966B799c4D5B13BE962E1D117b56327FDa66"
3383
- }
3384
- },
3385
- // ── Chain-native governance ─────────────────────────────
3386
- ARB: {
3387
- symbol: "ARB",
3388
- name: "Arbitrum",
3389
- decimals: 18,
3390
- addresses: {
3391
- 42161: "0x912CE59144191C1204E64559FE8253a0e49E6548"
3392
- }
3393
- },
3394
- AERO: {
3395
- symbol: "AERO",
3396
- name: "Aerodrome",
3397
- decimals: 18,
3398
- addresses: {
3399
- 8453: "0x940181a94A35A4569E4529A3CDfB74e38FD98631"
3400
- }
3401
- },
3402
- GMX: {
3403
- symbol: "GMX",
3404
- name: "GMX",
3405
- decimals: 18,
3406
- addresses: {
3407
- 42161: "0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a"
3408
- }
3409
- }
3410
- };
3411
- var addressToSymbol = /* @__PURE__ */ new Map();
3412
- for (const token of Object.values(KNOWN_TOKENS)) {
3413
- for (const addr of Object.values(token.addresses)) {
3414
- addressToSymbol.set(addr.toLowerCase(), token.symbol);
3415
- }
3416
- }
3417
- function getKnownTokensForChain(chainId) {
3418
- const result = [];
3419
- for (const token of Object.values(KNOWN_TOKENS)) {
3420
- const addr = token.addresses[chainId];
3421
- if (addr) {
3422
- result.push({ ...token, address: addr });
3423
- }
3424
- }
3425
- return result;
3426
- }
3427
- function getTokenSymbolByAddress(address) {
3428
- return addressToSymbol.get(address.toLowerCase()) ?? null;
3429
- }
3430
-
3431
3546
  // src/abis/AxonRegistry.ts
3432
3547
  var AxonRegistryAbi = [
3433
3548
  {
3434
- "type": "constructor",
3435
- "inputs": [
3549
+ type: "constructor",
3550
+ inputs: [
3436
3551
  {
3437
- "name": "initialOwner",
3438
- "type": "address",
3439
- "internalType": "address"
3552
+ name: "initialOwner",
3553
+ type: "address",
3554
+ internalType: "address"
3440
3555
  }
3441
3556
  ],
3442
- "stateMutability": "nonpayable"
3557
+ stateMutability: "nonpayable"
3443
3558
  },
3444
3559
  {
3445
- "type": "function",
3446
- "name": "acceptOwnership",
3447
- "inputs": [],
3448
- "outputs": [],
3449
- "stateMutability": "nonpayable"
3560
+ type: "function",
3561
+ name: "acceptOwnership",
3562
+ inputs: [],
3563
+ outputs: [],
3564
+ stateMutability: "nonpayable"
3450
3565
  },
3451
3566
  {
3452
- "type": "function",
3453
- "name": "addRelayer",
3454
- "inputs": [
3567
+ type: "function",
3568
+ name: "addRelayer",
3569
+ inputs: [
3455
3570
  {
3456
- "name": "relayer",
3457
- "type": "address",
3458
- "internalType": "address"
3571
+ name: "relayer",
3572
+ type: "address",
3573
+ internalType: "address"
3459
3574
  }
3460
3575
  ],
3461
- "outputs": [],
3462
- "stateMutability": "nonpayable"
3576
+ outputs: [],
3577
+ stateMutability: "nonpayable"
3463
3578
  },
3464
3579
  {
3465
- "type": "function",
3466
- "name": "addSwapRouter",
3467
- "inputs": [
3580
+ type: "function",
3581
+ name: "addSwapRouter",
3582
+ inputs: [
3468
3583
  {
3469
- "name": "router",
3470
- "type": "address",
3471
- "internalType": "address"
3584
+ name: "router",
3585
+ type: "address",
3586
+ internalType: "address"
3472
3587
  }
3473
3588
  ],
3474
- "outputs": [],
3475
- "stateMutability": "nonpayable"
3589
+ outputs: [],
3590
+ stateMutability: "nonpayable"
3476
3591
  },
3477
3592
  {
3478
- "type": "function",
3479
- "name": "isApprovedSwapRouter",
3480
- "inputs": [
3593
+ type: "function",
3594
+ name: "isApprovedSwapRouter",
3595
+ inputs: [
3481
3596
  {
3482
- "name": "router",
3483
- "type": "address",
3484
- "internalType": "address"
3597
+ name: "router",
3598
+ type: "address",
3599
+ internalType: "address"
3485
3600
  }
3486
3601
  ],
3487
- "outputs": [
3602
+ outputs: [
3488
3603
  {
3489
- "name": "",
3490
- "type": "bool",
3491
- "internalType": "bool"
3604
+ name: "",
3605
+ type: "bool",
3606
+ internalType: "bool"
3492
3607
  }
3493
3608
  ],
3494
- "stateMutability": "view"
3609
+ stateMutability: "view"
3495
3610
  },
3496
3611
  {
3497
- "type": "function",
3498
- "name": "isAuthorized",
3499
- "inputs": [
3612
+ type: "function",
3613
+ name: "isAuthorized",
3614
+ inputs: [
3500
3615
  {
3501
- "name": "relayer",
3502
- "type": "address",
3503
- "internalType": "address"
3616
+ name: "relayer",
3617
+ type: "address",
3618
+ internalType: "address"
3504
3619
  }
3505
3620
  ],
3506
- "outputs": [
3621
+ outputs: [
3507
3622
  {
3508
- "name": "",
3509
- "type": "bool",
3510
- "internalType": "bool"
3623
+ name: "",
3624
+ type: "bool",
3625
+ internalType: "bool"
3511
3626
  }
3512
3627
  ],
3513
- "stateMutability": "view"
3628
+ stateMutability: "view"
3514
3629
  },
3515
3630
  {
3516
- "type": "function",
3517
- "name": "owner",
3518
- "inputs": [],
3519
- "outputs": [
3631
+ type: "function",
3632
+ name: "owner",
3633
+ inputs: [],
3634
+ outputs: [
3520
3635
  {
3521
- "name": "",
3522
- "type": "address",
3523
- "internalType": "address"
3636
+ name: "",
3637
+ type: "address",
3638
+ internalType: "address"
3524
3639
  }
3525
3640
  ],
3526
- "stateMutability": "view"
3641
+ stateMutability: "view"
3527
3642
  },
3528
3643
  {
3529
- "type": "function",
3530
- "name": "pendingOwner",
3531
- "inputs": [],
3532
- "outputs": [
3644
+ type: "function",
3645
+ name: "pendingOwner",
3646
+ inputs: [],
3647
+ outputs: [
3533
3648
  {
3534
- "name": "",
3535
- "type": "address",
3536
- "internalType": "address"
3649
+ name: "",
3650
+ type: "address",
3651
+ internalType: "address"
3537
3652
  }
3538
3653
  ],
3539
- "stateMutability": "view"
3654
+ stateMutability: "view"
3540
3655
  },
3541
3656
  {
3542
- "type": "function",
3543
- "name": "removeRelayer",
3544
- "inputs": [
3657
+ type: "function",
3658
+ name: "removeRelayer",
3659
+ inputs: [
3545
3660
  {
3546
- "name": "relayer",
3547
- "type": "address",
3548
- "internalType": "address"
3661
+ name: "relayer",
3662
+ type: "address",
3663
+ internalType: "address"
3549
3664
  }
3550
3665
  ],
3551
- "outputs": [],
3552
- "stateMutability": "nonpayable"
3666
+ outputs: [],
3667
+ stateMutability: "nonpayable"
3553
3668
  },
3554
3669
  {
3555
- "type": "function",
3556
- "name": "removeSwapRouter",
3557
- "inputs": [
3670
+ type: "function",
3671
+ name: "removeSwapRouter",
3672
+ inputs: [
3558
3673
  {
3559
- "name": "router",
3560
- "type": "address",
3561
- "internalType": "address"
3674
+ name: "router",
3675
+ type: "address",
3676
+ internalType: "address"
3562
3677
  }
3563
3678
  ],
3564
- "outputs": [],
3565
- "stateMutability": "nonpayable"
3679
+ outputs: [],
3680
+ stateMutability: "nonpayable"
3566
3681
  },
3567
3682
  {
3568
- "type": "function",
3569
- "name": "renounceOwnership",
3570
- "inputs": [],
3571
- "outputs": [],
3572
- "stateMutability": "nonpayable"
3683
+ type: "function",
3684
+ name: "renounceOwnership",
3685
+ inputs: [],
3686
+ outputs: [],
3687
+ stateMutability: "nonpayable"
3573
3688
  },
3574
3689
  {
3575
- "type": "function",
3576
- "name": "setOracleConfig",
3577
- "inputs": [
3690
+ type: "function",
3691
+ name: "setOracleConfig",
3692
+ inputs: [
3578
3693
  {
3579
- "name": "uniV3Factory",
3580
- "type": "address",
3581
- "internalType": "address"
3694
+ name: "uniV3Factory",
3695
+ type: "address",
3696
+ internalType: "address"
3582
3697
  },
3583
3698
  {
3584
- "name": "usdc",
3585
- "type": "address",
3586
- "internalType": "address"
3699
+ name: "usdc",
3700
+ type: "address",
3701
+ internalType: "address"
3587
3702
  },
3588
3703
  {
3589
- "name": "weth",
3590
- "type": "address",
3591
- "internalType": "address"
3704
+ name: "weth",
3705
+ type: "address",
3706
+ internalType: "address"
3592
3707
  }
3593
3708
  ],
3594
- "outputs": [],
3595
- "stateMutability": "nonpayable"
3709
+ outputs: [],
3710
+ stateMutability: "nonpayable"
3596
3711
  },
3597
3712
  {
3598
- "type": "function",
3599
- "name": "transferOwnership",
3600
- "inputs": [
3713
+ type: "function",
3714
+ name: "transferOwnership",
3715
+ inputs: [
3601
3716
  {
3602
- "name": "newOwner",
3603
- "type": "address",
3604
- "internalType": "address"
3717
+ name: "newOwner",
3718
+ type: "address",
3719
+ internalType: "address"
3605
3720
  }
3606
3721
  ],
3607
- "outputs": [],
3608
- "stateMutability": "nonpayable"
3722
+ outputs: [],
3723
+ stateMutability: "nonpayable"
3609
3724
  },
3610
3725
  {
3611
- "type": "function",
3612
- "name": "uniswapV3Factory",
3613
- "inputs": [],
3614
- "outputs": [
3726
+ type: "function",
3727
+ name: "uniswapV3Factory",
3728
+ inputs: [],
3729
+ outputs: [
3615
3730
  {
3616
- "name": "",
3617
- "type": "address",
3618
- "internalType": "address"
3731
+ name: "",
3732
+ type: "address",
3733
+ internalType: "address"
3619
3734
  }
3620
3735
  ],
3621
- "stateMutability": "view"
3736
+ stateMutability: "view"
3622
3737
  },
3623
3738
  {
3624
- "type": "function",
3625
- "name": "usdcAddress",
3626
- "inputs": [],
3627
- "outputs": [
3739
+ type: "function",
3740
+ name: "usdcAddress",
3741
+ inputs: [],
3742
+ outputs: [
3628
3743
  {
3629
- "name": "",
3630
- "type": "address",
3631
- "internalType": "address"
3744
+ name: "",
3745
+ type: "address",
3746
+ internalType: "address"
3632
3747
  }
3633
3748
  ],
3634
- "stateMutability": "view"
3749
+ stateMutability: "view"
3635
3750
  },
3636
3751
  {
3637
- "type": "function",
3638
- "name": "wethAddress",
3639
- "inputs": [],
3640
- "outputs": [
3752
+ type: "function",
3753
+ name: "wethAddress",
3754
+ inputs: [],
3755
+ outputs: [
3641
3756
  {
3642
- "name": "",
3643
- "type": "address",
3644
- "internalType": "address"
3757
+ name: "",
3758
+ type: "address",
3759
+ internalType: "address"
3645
3760
  }
3646
3761
  ],
3647
- "stateMutability": "view"
3762
+ stateMutability: "view"
3648
3763
  },
3649
3764
  {
3650
- "type": "event",
3651
- "name": "OracleConfigUpdated",
3652
- "inputs": [
3765
+ type: "event",
3766
+ name: "OracleConfigUpdated",
3767
+ inputs: [
3653
3768
  {
3654
- "name": "uniswapV3Factory",
3655
- "type": "address",
3656
- "indexed": false,
3657
- "internalType": "address"
3769
+ name: "uniswapV3Factory",
3770
+ type: "address",
3771
+ indexed: false,
3772
+ internalType: "address"
3658
3773
  },
3659
3774
  {
3660
- "name": "usdc",
3661
- "type": "address",
3662
- "indexed": false,
3663
- "internalType": "address"
3775
+ name: "usdc",
3776
+ type: "address",
3777
+ indexed: false,
3778
+ internalType: "address"
3664
3779
  },
3665
3780
  {
3666
- "name": "weth",
3667
- "type": "address",
3668
- "indexed": false,
3669
- "internalType": "address"
3781
+ name: "weth",
3782
+ type: "address",
3783
+ indexed: false,
3784
+ internalType: "address"
3670
3785
  }
3671
3786
  ],
3672
- "anonymous": false
3787
+ anonymous: false
3673
3788
  },
3674
3789
  {
3675
- "type": "event",
3676
- "name": "OwnershipTransferStarted",
3677
- "inputs": [
3790
+ type: "event",
3791
+ name: "OwnershipTransferStarted",
3792
+ inputs: [
3678
3793
  {
3679
- "name": "previousOwner",
3680
- "type": "address",
3681
- "indexed": true,
3682
- "internalType": "address"
3794
+ name: "previousOwner",
3795
+ type: "address",
3796
+ indexed: true,
3797
+ internalType: "address"
3683
3798
  },
3684
3799
  {
3685
- "name": "newOwner",
3686
- "type": "address",
3687
- "indexed": true,
3688
- "internalType": "address"
3800
+ name: "newOwner",
3801
+ type: "address",
3802
+ indexed: true,
3803
+ internalType: "address"
3689
3804
  }
3690
3805
  ],
3691
- "anonymous": false
3806
+ anonymous: false
3692
3807
  },
3693
3808
  {
3694
- "type": "event",
3695
- "name": "OwnershipTransferred",
3696
- "inputs": [
3809
+ type: "event",
3810
+ name: "OwnershipTransferred",
3811
+ inputs: [
3697
3812
  {
3698
- "name": "previousOwner",
3699
- "type": "address",
3700
- "indexed": true,
3701
- "internalType": "address"
3813
+ name: "previousOwner",
3814
+ type: "address",
3815
+ indexed: true,
3816
+ internalType: "address"
3702
3817
  },
3703
3818
  {
3704
- "name": "newOwner",
3705
- "type": "address",
3706
- "indexed": true,
3707
- "internalType": "address"
3819
+ name: "newOwner",
3820
+ type: "address",
3821
+ indexed: true,
3822
+ internalType: "address"
3708
3823
  }
3709
3824
  ],
3710
- "anonymous": false
3825
+ anonymous: false
3711
3826
  },
3712
3827
  {
3713
- "type": "event",
3714
- "name": "RelayerAdded",
3715
- "inputs": [
3828
+ type: "event",
3829
+ name: "RelayerAdded",
3830
+ inputs: [
3716
3831
  {
3717
- "name": "relayer",
3718
- "type": "address",
3719
- "indexed": true,
3720
- "internalType": "address"
3832
+ name: "relayer",
3833
+ type: "address",
3834
+ indexed: true,
3835
+ internalType: "address"
3721
3836
  }
3722
3837
  ],
3723
- "anonymous": false
3838
+ anonymous: false
3724
3839
  },
3725
3840
  {
3726
- "type": "event",
3727
- "name": "RelayerRemoved",
3728
- "inputs": [
3841
+ type: "event",
3842
+ name: "RelayerRemoved",
3843
+ inputs: [
3729
3844
  {
3730
- "name": "relayer",
3731
- "type": "address",
3732
- "indexed": true,
3733
- "internalType": "address"
3845
+ name: "relayer",
3846
+ type: "address",
3847
+ indexed: true,
3848
+ internalType: "address"
3734
3849
  }
3735
3850
  ],
3736
- "anonymous": false
3851
+ anonymous: false
3737
3852
  },
3738
3853
  {
3739
- "type": "event",
3740
- "name": "SwapRouterAdded",
3741
- "inputs": [
3854
+ type: "event",
3855
+ name: "SwapRouterAdded",
3856
+ inputs: [
3742
3857
  {
3743
- "name": "router",
3744
- "type": "address",
3745
- "indexed": true,
3746
- "internalType": "address"
3858
+ name: "router",
3859
+ type: "address",
3860
+ indexed: true,
3861
+ internalType: "address"
3747
3862
  }
3748
3863
  ],
3749
- "anonymous": false
3864
+ anonymous: false
3750
3865
  },
3751
3866
  {
3752
- "type": "event",
3753
- "name": "SwapRouterRemoved",
3754
- "inputs": [
3867
+ type: "event",
3868
+ name: "SwapRouterRemoved",
3869
+ inputs: [
3755
3870
  {
3756
- "name": "router",
3757
- "type": "address",
3758
- "indexed": true,
3759
- "internalType": "address"
3871
+ name: "router",
3872
+ type: "address",
3873
+ indexed: true,
3874
+ internalType: "address"
3760
3875
  }
3761
3876
  ],
3762
- "anonymous": false
3877
+ anonymous: false
3763
3878
  },
3764
3879
  {
3765
- "type": "error",
3766
- "name": "AlreadyApproved",
3767
- "inputs": []
3880
+ type: "error",
3881
+ name: "AlreadyApproved",
3882
+ inputs: []
3768
3883
  },
3769
3884
  {
3770
- "type": "error",
3771
- "name": "AlreadyAuthorized",
3772
- "inputs": []
3885
+ type: "error",
3886
+ name: "AlreadyAuthorized",
3887
+ inputs: []
3773
3888
  },
3774
3889
  {
3775
- "type": "error",
3776
- "name": "NotApproved",
3777
- "inputs": []
3890
+ type: "error",
3891
+ name: "NotApproved",
3892
+ inputs: []
3778
3893
  },
3779
3894
  {
3780
- "type": "error",
3781
- "name": "NotAuthorized",
3782
- "inputs": []
3895
+ type: "error",
3896
+ name: "NotAuthorized",
3897
+ inputs: []
3783
3898
  },
3784
3899
  {
3785
- "type": "error",
3786
- "name": "OwnableInvalidOwner",
3787
- "inputs": [
3900
+ type: "error",
3901
+ name: "OwnableInvalidOwner",
3902
+ inputs: [
3788
3903
  {
3789
- "name": "owner",
3790
- "type": "address",
3791
- "internalType": "address"
3904
+ name: "owner",
3905
+ type: "address",
3906
+ internalType: "address"
3792
3907
  }
3793
3908
  ]
3794
3909
  },
3795
3910
  {
3796
- "type": "error",
3797
- "name": "OwnableUnauthorizedAccount",
3798
- "inputs": [
3911
+ type: "error",
3912
+ name: "OwnableUnauthorizedAccount",
3913
+ inputs: [
3799
3914
  {
3800
- "name": "account",
3801
- "type": "address",
3802
- "internalType": "address"
3915
+ name: "account",
3916
+ type: "address",
3917
+ internalType: "address"
3803
3918
  }
3804
3919
  ]
3805
3920
  },
3806
3921
  {
3807
- "type": "error",
3808
- "name": "ZeroAddress",
3809
- "inputs": []
3922
+ type: "error",
3923
+ name: "ZeroAddress",
3924
+ inputs: []
3810
3925
  }
3811
3926
  ];
3812
3927
 
@@ -3814,10 +3929,14 @@ exports.AxonClient = AxonClient;
3814
3929
  exports.AxonRegistryAbi = AxonRegistryAbi;
3815
3930
  exports.AxonVaultAbi = AxonVaultAbi;
3816
3931
  exports.AxonVaultFactoryAbi = AxonVaultFactoryAbi;
3932
+ exports.CHAIN_NAMES = CHAIN_NAMES;
3933
+ exports.Chain = Chain;
3817
3934
  exports.DEFAULT_DEADLINE_SECONDS = DEFAULT_DEADLINE_SECONDS;
3818
3935
  exports.EIP712_DOMAIN_NAME = EIP712_DOMAIN_NAME;
3819
3936
  exports.EIP712_DOMAIN_VERSION = EIP712_DOMAIN_VERSION;
3820
3937
  exports.EXECUTE_INTENT_TYPEHASH = EXECUTE_INTENT_TYPEHASH;
3938
+ exports.EXPLORER_ADDR = EXPLORER_ADDR;
3939
+ exports.EXPLORER_TX = EXPLORER_TX;
3821
3940
  exports.KNOWN_TOKENS = KNOWN_TOKENS;
3822
3941
  exports.NATIVE_ETH = NATIVE_ETH;
3823
3942
  exports.PAYMENT_INTENT_TYPEHASH = PAYMENT_INTENT_TYPEHASH;
@@ -3825,6 +3944,7 @@ exports.PaymentErrorCode = PaymentErrorCode;
3825
3944
  exports.RELAYER_API = RELAYER_API;
3826
3945
  exports.SUPPORTED_CHAIN_IDS = SUPPORTED_CHAIN_IDS;
3827
3946
  exports.SWAP_INTENT_TYPEHASH = SWAP_INTENT_TYPEHASH;
3947
+ exports.Token = Token;
3828
3948
  exports.USDC = USDC;
3829
3949
  exports.WINDOW = WINDOW;
3830
3950
  exports.createAxonPublicClient = createAxonPublicClient;
@@ -3849,6 +3969,9 @@ exports.isDestinationAllowed = isDestinationAllowed;
3849
3969
  exports.isRebalanceTokenWhitelisted = isRebalanceTokenWhitelisted;
3850
3970
  exports.isVaultPaused = isVaultPaused;
3851
3971
  exports.operatorMaxDrainPerDay = operatorMaxDrainPerDay;
3972
+ exports.parseAmount = parseAmount;
3973
+ exports.resolveToken = resolveToken;
3974
+ exports.resolveTokenDecimals = resolveTokenDecimals;
3852
3975
  exports.signExecuteIntent = signExecuteIntent;
3853
3976
  exports.signPayment = signPayment;
3854
3977
  exports.signSwapIntent = signSwapIntent;