@axonfi/sdk 0.1.2 → 0.2.1

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
@@ -253,2322 +253,2322 @@ function encodeRef(memo) {
253
253
  // src/abis/AxonVault.ts
254
254
  var AxonVaultAbi = [
255
255
  {
256
- type: "constructor",
257
- inputs: [
256
+ "type": "constructor",
257
+ "inputs": [
258
258
  {
259
- name: "_owner",
260
- type: "address",
261
- internalType: "address"
259
+ "name": "_owner",
260
+ "type": "address",
261
+ "internalType": "address"
262
262
  },
263
263
  {
264
- name: "_axonRegistry",
265
- type: "address",
266
- internalType: "address"
264
+ "name": "_axonRegistry",
265
+ "type": "address",
266
+ "internalType": "address"
267
267
  },
268
268
  {
269
- name: "_trackUsedIntents",
270
- type: "bool",
271
- internalType: "bool"
269
+ "name": "_trackUsedIntents",
270
+ "type": "bool",
271
+ "internalType": "bool"
272
272
  }
273
273
  ],
274
- stateMutability: "nonpayable"
274
+ "stateMutability": "nonpayable"
275
275
  },
276
276
  {
277
- type: "receive",
278
- stateMutability: "payable"
277
+ "type": "receive",
278
+ "stateMutability": "payable"
279
279
  },
280
280
  {
281
- type: "function",
282
- name: "DOMAIN_SEPARATOR",
283
- inputs: [],
284
- outputs: [
281
+ "type": "function",
282
+ "name": "DOMAIN_SEPARATOR",
283
+ "inputs": [],
284
+ "outputs": [
285
285
  {
286
- name: "",
287
- type: "bytes32",
288
- internalType: "bytes32"
286
+ "name": "",
287
+ "type": "bytes32",
288
+ "internalType": "bytes32"
289
289
  }
290
290
  ],
291
- stateMutability: "view"
291
+ "stateMutability": "view"
292
292
  },
293
293
  {
294
- type: "function",
295
- name: "MAX_SPENDING_LIMITS",
296
- inputs: [],
297
- outputs: [
294
+ "type": "function",
295
+ "name": "MAX_SPENDING_LIMITS",
296
+ "inputs": [],
297
+ "outputs": [
298
298
  {
299
- name: "",
300
- type: "uint8",
301
- internalType: "uint8"
299
+ "name": "",
300
+ "type": "uint8",
301
+ "internalType": "uint8"
302
302
  }
303
303
  ],
304
- stateMutability: "view"
304
+ "stateMutability": "view"
305
305
  },
306
306
  {
307
- type: "function",
308
- name: "NATIVE_ETH",
309
- inputs: [],
310
- outputs: [
307
+ "type": "function",
308
+ "name": "NATIVE_ETH",
309
+ "inputs": [],
310
+ "outputs": [
311
311
  {
312
- name: "",
313
- type: "address",
314
- internalType: "address"
312
+ "name": "",
313
+ "type": "address",
314
+ "internalType": "address"
315
315
  }
316
316
  ],
317
- stateMutability: "view"
317
+ "stateMutability": "view"
318
318
  },
319
319
  {
320
- type: "function",
321
- name: "VERSION",
322
- inputs: [],
323
- outputs: [
320
+ "type": "function",
321
+ "name": "VERSION",
322
+ "inputs": [],
323
+ "outputs": [
324
324
  {
325
- name: "",
326
- type: "uint16",
327
- internalType: "uint16"
325
+ "name": "",
326
+ "type": "uint16",
327
+ "internalType": "uint16"
328
328
  }
329
329
  ],
330
- stateMutability: "view"
330
+ "stateMutability": "view"
331
331
  },
332
332
  {
333
- type: "function",
334
- name: "acceptOwnership",
335
- inputs: [],
336
- outputs: [],
337
- stateMutability: "nonpayable"
333
+ "type": "function",
334
+ "name": "acceptOwnership",
335
+ "inputs": [],
336
+ "outputs": [],
337
+ "stateMutability": "nonpayable"
338
338
  },
339
339
  {
340
- type: "function",
341
- name: "addBot",
342
- inputs: [
340
+ "type": "function",
341
+ "name": "addBot",
342
+ "inputs": [
343
343
  {
344
- name: "bot",
345
- type: "address",
346
- internalType: "address"
344
+ "name": "bot",
345
+ "type": "address",
346
+ "internalType": "address"
347
347
  },
348
348
  {
349
- name: "params",
350
- type: "tuple",
351
- internalType: "struct AxonVault.BotConfigParams",
352
- components: [
349
+ "name": "params",
350
+ "type": "tuple",
351
+ "internalType": "struct AxonVault.BotConfigParams",
352
+ "components": [
353
353
  {
354
- name: "maxPerTxAmount",
355
- type: "uint256",
356
- internalType: "uint256"
354
+ "name": "maxPerTxAmount",
355
+ "type": "uint256",
356
+ "internalType": "uint256"
357
357
  },
358
358
  {
359
- name: "maxRebalanceAmount",
360
- type: "uint256",
361
- internalType: "uint256"
359
+ "name": "maxRebalanceAmount",
360
+ "type": "uint256",
361
+ "internalType": "uint256"
362
362
  },
363
363
  {
364
- name: "spendingLimits",
365
- type: "tuple[]",
366
- internalType: "struct AxonVault.SpendingLimit[]",
367
- components: [
364
+ "name": "spendingLimits",
365
+ "type": "tuple[]",
366
+ "internalType": "struct AxonVault.SpendingLimit[]",
367
+ "components": [
368
368
  {
369
- name: "amount",
370
- type: "uint256",
371
- internalType: "uint256"
369
+ "name": "amount",
370
+ "type": "uint256",
371
+ "internalType": "uint256"
372
372
  },
373
373
  {
374
- name: "maxCount",
375
- type: "uint256",
376
- internalType: "uint256"
374
+ "name": "maxCount",
375
+ "type": "uint256",
376
+ "internalType": "uint256"
377
377
  },
378
378
  {
379
- name: "windowSeconds",
380
- type: "uint256",
381
- internalType: "uint256"
379
+ "name": "windowSeconds",
380
+ "type": "uint256",
381
+ "internalType": "uint256"
382
382
  }
383
383
  ]
384
384
  },
385
385
  {
386
- name: "aiTriggerThreshold",
387
- type: "uint256",
388
- internalType: "uint256"
386
+ "name": "aiTriggerThreshold",
387
+ "type": "uint256",
388
+ "internalType": "uint256"
389
389
  },
390
390
  {
391
- name: "requireAiVerification",
392
- type: "bool",
393
- internalType: "bool"
391
+ "name": "requireAiVerification",
392
+ "type": "bool",
393
+ "internalType": "bool"
394
394
  }
395
395
  ]
396
396
  }
397
397
  ],
398
- outputs: [],
399
- stateMutability: "nonpayable"
398
+ "outputs": [],
399
+ "stateMutability": "nonpayable"
400
400
  },
401
401
  {
402
- type: "function",
403
- name: "addBotDestination",
404
- inputs: [
402
+ "type": "function",
403
+ "name": "addBotDestination",
404
+ "inputs": [
405
405
  {
406
- name: "bot",
407
- type: "address",
408
- internalType: "address"
406
+ "name": "bot",
407
+ "type": "address",
408
+ "internalType": "address"
409
409
  },
410
410
  {
411
- name: "destination",
412
- type: "address",
413
- internalType: "address"
411
+ "name": "destination",
412
+ "type": "address",
413
+ "internalType": "address"
414
414
  }
415
415
  ],
416
- outputs: [],
417
- stateMutability: "nonpayable"
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable"
418
418
  },
419
419
  {
420
- type: "function",
421
- name: "addGlobalBlacklist",
422
- inputs: [
420
+ "type": "function",
421
+ "name": "addGlobalBlacklist",
422
+ "inputs": [
423
423
  {
424
- name: "destination",
425
- type: "address",
426
- internalType: "address"
424
+ "name": "destination",
425
+ "type": "address",
426
+ "internalType": "address"
427
427
  }
428
428
  ],
429
- outputs: [],
430
- stateMutability: "nonpayable"
429
+ "outputs": [],
430
+ "stateMutability": "nonpayable"
431
431
  },
432
432
  {
433
- type: "function",
434
- name: "addGlobalDestination",
435
- inputs: [
433
+ "type": "function",
434
+ "name": "addGlobalDestination",
435
+ "inputs": [
436
436
  {
437
- name: "destination",
438
- type: "address",
439
- internalType: "address"
437
+ "name": "destination",
438
+ "type": "address",
439
+ "internalType": "address"
440
440
  }
441
441
  ],
442
- outputs: [],
443
- stateMutability: "nonpayable"
442
+ "outputs": [],
443
+ "stateMutability": "nonpayable"
444
444
  },
445
445
  {
446
- type: "function",
447
- name: "addProtocol",
448
- inputs: [
446
+ "type": "function",
447
+ "name": "addProtocol",
448
+ "inputs": [
449
449
  {
450
- name: "protocol",
451
- type: "address",
452
- internalType: "address"
450
+ "name": "protocol",
451
+ "type": "address",
452
+ "internalType": "address"
453
453
  }
454
454
  ],
455
- outputs: [],
456
- stateMutability: "nonpayable"
455
+ "outputs": [],
456
+ "stateMutability": "nonpayable"
457
457
  },
458
458
  {
459
- type: "function",
460
- name: "addRebalanceTokens",
461
- inputs: [
459
+ "type": "function",
460
+ "name": "addRebalanceTokens",
461
+ "inputs": [
462
462
  {
463
- name: "tokens",
464
- type: "address[]",
465
- internalType: "address[]"
463
+ "name": "tokens",
464
+ "type": "address[]",
465
+ "internalType": "address[]"
466
466
  }
467
467
  ],
468
- outputs: [],
469
- stateMutability: "nonpayable"
468
+ "outputs": [],
469
+ "stateMutability": "nonpayable"
470
470
  },
471
471
  {
472
- type: "function",
473
- name: "approvedProtocolCount",
474
- inputs: [],
475
- outputs: [
472
+ "type": "function",
473
+ "name": "approvedProtocolCount",
474
+ "inputs": [],
475
+ "outputs": [
476
476
  {
477
- name: "",
478
- type: "uint256",
479
- internalType: "uint256"
477
+ "name": "",
478
+ "type": "uint256",
479
+ "internalType": "uint256"
480
480
  }
481
481
  ],
482
- stateMutability: "view"
482
+ "stateMutability": "view"
483
483
  },
484
484
  {
485
- type: "function",
486
- name: "approvedProtocols",
487
- inputs: [
485
+ "type": "function",
486
+ "name": "approvedProtocols",
487
+ "inputs": [
488
488
  {
489
- name: "",
490
- type: "address",
491
- internalType: "address"
489
+ "name": "",
490
+ "type": "address",
491
+ "internalType": "address"
492
492
  }
493
493
  ],
494
- outputs: [
494
+ "outputs": [
495
495
  {
496
- name: "",
497
- type: "bool",
498
- internalType: "bool"
496
+ "name": "",
497
+ "type": "bool",
498
+ "internalType": "bool"
499
499
  }
500
500
  ],
501
- stateMutability: "view"
501
+ "stateMutability": "view"
502
502
  },
503
503
  {
504
- type: "function",
505
- name: "axonRegistry",
506
- inputs: [],
507
- outputs: [
504
+ "type": "function",
505
+ "name": "axonRegistry",
506
+ "inputs": [],
507
+ "outputs": [
508
508
  {
509
- name: "",
510
- type: "address",
511
- internalType: "address"
509
+ "name": "",
510
+ "type": "address",
511
+ "internalType": "address"
512
512
  }
513
513
  ],
514
- stateMutability: "view"
514
+ "stateMutability": "view"
515
515
  },
516
516
  {
517
- type: "function",
518
- name: "botAddedByOperator",
519
- inputs: [
517
+ "type": "function",
518
+ "name": "botAddedByOperator",
519
+ "inputs": [
520
520
  {
521
- name: "",
522
- type: "address",
523
- internalType: "address"
521
+ "name": "",
522
+ "type": "address",
523
+ "internalType": "address"
524
524
  }
525
525
  ],
526
- outputs: [
526
+ "outputs": [
527
527
  {
528
- name: "",
529
- type: "bool",
530
- internalType: "bool"
528
+ "name": "",
529
+ "type": "bool",
530
+ "internalType": "bool"
531
531
  }
532
532
  ],
533
- stateMutability: "view"
533
+ "stateMutability": "view"
534
534
  },
535
535
  {
536
- type: "function",
537
- name: "botDestinationCount",
538
- inputs: [
536
+ "type": "function",
537
+ "name": "botDestinationCount",
538
+ "inputs": [
539
539
  {
540
- name: "",
541
- type: "address",
542
- internalType: "address"
540
+ "name": "",
541
+ "type": "address",
542
+ "internalType": "address"
543
543
  }
544
544
  ],
545
- outputs: [
545
+ "outputs": [
546
546
  {
547
- name: "",
548
- type: "uint256",
549
- internalType: "uint256"
547
+ "name": "",
548
+ "type": "uint256",
549
+ "internalType": "uint256"
550
550
  }
551
551
  ],
552
- stateMutability: "view"
552
+ "stateMutability": "view"
553
553
  },
554
554
  {
555
- type: "function",
556
- name: "botDestinationWhitelist",
557
- inputs: [
555
+ "type": "function",
556
+ "name": "botDestinationWhitelist",
557
+ "inputs": [
558
558
  {
559
- name: "",
560
- type: "address",
561
- internalType: "address"
559
+ "name": "",
560
+ "type": "address",
561
+ "internalType": "address"
562
562
  },
563
563
  {
564
- name: "",
565
- type: "address",
566
- internalType: "address"
564
+ "name": "",
565
+ "type": "address",
566
+ "internalType": "address"
567
567
  }
568
568
  ],
569
- outputs: [
569
+ "outputs": [
570
570
  {
571
- name: "",
572
- type: "bool",
573
- internalType: "bool"
571
+ "name": "",
572
+ "type": "bool",
573
+ "internalType": "bool"
574
574
  }
575
575
  ],
576
- stateMutability: "view"
576
+ "stateMutability": "view"
577
577
  },
578
578
  {
579
- type: "function",
580
- name: "deposit",
581
- inputs: [
579
+ "type": "function",
580
+ "name": "deposit",
581
+ "inputs": [
582
582
  {
583
- name: "token",
584
- type: "address",
585
- internalType: "address"
583
+ "name": "token",
584
+ "type": "address",
585
+ "internalType": "address"
586
586
  },
587
587
  {
588
- name: "amount",
589
- type: "uint256",
590
- internalType: "uint256"
588
+ "name": "amount",
589
+ "type": "uint256",
590
+ "internalType": "uint256"
591
591
  },
592
592
  {
593
- name: "ref",
594
- type: "bytes32",
595
- internalType: "bytes32"
593
+ "name": "ref",
594
+ "type": "bytes32",
595
+ "internalType": "bytes32"
596
596
  }
597
597
  ],
598
- outputs: [],
599
- stateMutability: "payable"
598
+ "outputs": [],
599
+ "stateMutability": "payable"
600
600
  },
601
601
  {
602
- type: "function",
603
- name: "eip712Domain",
604
- inputs: [],
605
- outputs: [
602
+ "type": "function",
603
+ "name": "eip712Domain",
604
+ "inputs": [],
605
+ "outputs": [
606
606
  {
607
- name: "fields",
608
- type: "bytes1",
609
- internalType: "bytes1"
607
+ "name": "fields",
608
+ "type": "bytes1",
609
+ "internalType": "bytes1"
610
610
  },
611
611
  {
612
- name: "name",
613
- type: "string",
614
- internalType: "string"
612
+ "name": "name",
613
+ "type": "string",
614
+ "internalType": "string"
615
615
  },
616
616
  {
617
- name: "version",
618
- type: "string",
619
- internalType: "string"
617
+ "name": "version",
618
+ "type": "string",
619
+ "internalType": "string"
620
620
  },
621
621
  {
622
- name: "chainId",
623
- type: "uint256",
624
- internalType: "uint256"
622
+ "name": "chainId",
623
+ "type": "uint256",
624
+ "internalType": "uint256"
625
625
  },
626
626
  {
627
- name: "verifyingContract",
628
- type: "address",
629
- internalType: "address"
627
+ "name": "verifyingContract",
628
+ "type": "address",
629
+ "internalType": "address"
630
630
  },
631
631
  {
632
- name: "salt",
633
- type: "bytes32",
634
- internalType: "bytes32"
632
+ "name": "salt",
633
+ "type": "bytes32",
634
+ "internalType": "bytes32"
635
635
  },
636
636
  {
637
- name: "extensions",
638
- type: "uint256[]",
639
- internalType: "uint256[]"
637
+ "name": "extensions",
638
+ "type": "uint256[]",
639
+ "internalType": "uint256[]"
640
640
  }
641
641
  ],
642
- stateMutability: "view"
642
+ "stateMutability": "view"
643
643
  },
644
644
  {
645
- type: "function",
646
- name: "executePayment",
647
- inputs: [
645
+ "type": "function",
646
+ "name": "executePayment",
647
+ "inputs": [
648
648
  {
649
- name: "intent",
650
- type: "tuple",
651
- internalType: "struct AxonVault.PaymentIntent",
652
- components: [
649
+ "name": "intent",
650
+ "type": "tuple",
651
+ "internalType": "struct AxonVault.PaymentIntent",
652
+ "components": [
653
653
  {
654
- name: "bot",
655
- type: "address",
656
- internalType: "address"
654
+ "name": "bot",
655
+ "type": "address",
656
+ "internalType": "address"
657
657
  },
658
658
  {
659
- name: "to",
660
- type: "address",
661
- internalType: "address"
659
+ "name": "to",
660
+ "type": "address",
661
+ "internalType": "address"
662
662
  },
663
663
  {
664
- name: "token",
665
- type: "address",
666
- internalType: "address"
664
+ "name": "token",
665
+ "type": "address",
666
+ "internalType": "address"
667
667
  },
668
668
  {
669
- name: "amount",
670
- type: "uint256",
671
- internalType: "uint256"
669
+ "name": "amount",
670
+ "type": "uint256",
671
+ "internalType": "uint256"
672
672
  },
673
673
  {
674
- name: "deadline",
675
- type: "uint256",
676
- internalType: "uint256"
674
+ "name": "deadline",
675
+ "type": "uint256",
676
+ "internalType": "uint256"
677
677
  },
678
678
  {
679
- name: "ref",
680
- type: "bytes32",
681
- internalType: "bytes32"
679
+ "name": "ref",
680
+ "type": "bytes32",
681
+ "internalType": "bytes32"
682
682
  }
683
683
  ]
684
684
  },
685
685
  {
686
- name: "signature",
687
- type: "bytes",
688
- internalType: "bytes"
686
+ "name": "signature",
687
+ "type": "bytes",
688
+ "internalType": "bytes"
689
689
  },
690
690
  {
691
- name: "fromToken",
692
- type: "address",
693
- internalType: "address"
691
+ "name": "fromToken",
692
+ "type": "address",
693
+ "internalType": "address"
694
694
  },
695
695
  {
696
- name: "maxFromAmount",
697
- type: "uint256",
698
- internalType: "uint256"
696
+ "name": "maxFromAmount",
697
+ "type": "uint256",
698
+ "internalType": "uint256"
699
699
  },
700
700
  {
701
- name: "swapRouter",
702
- type: "address",
703
- internalType: "address"
701
+ "name": "swapRouter",
702
+ "type": "address",
703
+ "internalType": "address"
704
704
  },
705
705
  {
706
- name: "swapCalldata",
707
- type: "bytes",
708
- internalType: "bytes"
706
+ "name": "swapCalldata",
707
+ "type": "bytes",
708
+ "internalType": "bytes"
709
709
  }
710
710
  ],
711
- outputs: [],
712
- stateMutability: "nonpayable"
711
+ "outputs": [],
712
+ "stateMutability": "nonpayable"
713
713
  },
714
714
  {
715
- type: "function",
716
- name: "executeProtocol",
717
- inputs: [
715
+ "type": "function",
716
+ "name": "executeProtocol",
717
+ "inputs": [
718
718
  {
719
- name: "intent",
720
- type: "tuple",
721
- internalType: "struct AxonVault.ExecuteIntent",
722
- components: [
719
+ "name": "intent",
720
+ "type": "tuple",
721
+ "internalType": "struct AxonVault.ExecuteIntent",
722
+ "components": [
723
723
  {
724
- name: "bot",
725
- type: "address",
726
- internalType: "address"
724
+ "name": "bot",
725
+ "type": "address",
726
+ "internalType": "address"
727
727
  },
728
728
  {
729
- name: "protocol",
730
- type: "address",
731
- internalType: "address"
729
+ "name": "protocol",
730
+ "type": "address",
731
+ "internalType": "address"
732
732
  },
733
733
  {
734
- name: "calldataHash",
735
- type: "bytes32",
736
- internalType: "bytes32"
734
+ "name": "calldataHash",
735
+ "type": "bytes32",
736
+ "internalType": "bytes32"
737
737
  },
738
738
  {
739
- name: "token",
740
- type: "address",
741
- internalType: "address"
739
+ "name": "token",
740
+ "type": "address",
741
+ "internalType": "address"
742
742
  },
743
743
  {
744
- name: "amount",
745
- type: "uint256",
746
- internalType: "uint256"
744
+ "name": "amount",
745
+ "type": "uint256",
746
+ "internalType": "uint256"
747
747
  },
748
748
  {
749
- name: "deadline",
750
- type: "uint256",
751
- internalType: "uint256"
749
+ "name": "deadline",
750
+ "type": "uint256",
751
+ "internalType": "uint256"
752
752
  },
753
753
  {
754
- name: "ref",
755
- type: "bytes32",
756
- internalType: "bytes32"
754
+ "name": "ref",
755
+ "type": "bytes32",
756
+ "internalType": "bytes32"
757
757
  }
758
758
  ]
759
759
  },
760
760
  {
761
- name: "signature",
762
- type: "bytes",
763
- internalType: "bytes"
761
+ "name": "signature",
762
+ "type": "bytes",
763
+ "internalType": "bytes"
764
764
  },
765
765
  {
766
- name: "callData",
767
- type: "bytes",
768
- internalType: "bytes"
766
+ "name": "callData",
767
+ "type": "bytes",
768
+ "internalType": "bytes"
769
769
  },
770
770
  {
771
- name: "fromToken",
772
- type: "address",
773
- internalType: "address"
771
+ "name": "fromToken",
772
+ "type": "address",
773
+ "internalType": "address"
774
774
  },
775
775
  {
776
- name: "maxFromAmount",
777
- type: "uint256",
778
- internalType: "uint256"
776
+ "name": "maxFromAmount",
777
+ "type": "uint256",
778
+ "internalType": "uint256"
779
779
  },
780
780
  {
781
- name: "swapRouter",
782
- type: "address",
783
- internalType: "address"
781
+ "name": "swapRouter",
782
+ "type": "address",
783
+ "internalType": "address"
784
784
  },
785
785
  {
786
- name: "swapCalldata",
787
- type: "bytes",
788
- internalType: "bytes"
786
+ "name": "swapCalldata",
787
+ "type": "bytes",
788
+ "internalType": "bytes"
789
789
  }
790
790
  ],
791
- outputs: [
791
+ "outputs": [
792
792
  {
793
- name: "",
794
- type: "bytes",
795
- internalType: "bytes"
793
+ "name": "",
794
+ "type": "bytes",
795
+ "internalType": "bytes"
796
796
  }
797
797
  ],
798
- stateMutability: "nonpayable"
798
+ "stateMutability": "nonpayable"
799
799
  },
800
800
  {
801
- type: "function",
802
- name: "executeSwap",
803
- inputs: [
801
+ "type": "function",
802
+ "name": "executeSwap",
803
+ "inputs": [
804
804
  {
805
- name: "intent",
806
- type: "tuple",
807
- internalType: "struct AxonVault.SwapIntent",
808
- components: [
805
+ "name": "intent",
806
+ "type": "tuple",
807
+ "internalType": "struct AxonVault.SwapIntent",
808
+ "components": [
809
809
  {
810
- name: "bot",
811
- type: "address",
812
- internalType: "address"
810
+ "name": "bot",
811
+ "type": "address",
812
+ "internalType": "address"
813
813
  },
814
814
  {
815
- name: "toToken",
816
- type: "address",
817
- internalType: "address"
815
+ "name": "toToken",
816
+ "type": "address",
817
+ "internalType": "address"
818
818
  },
819
819
  {
820
- name: "minToAmount",
821
- type: "uint256",
822
- internalType: "uint256"
820
+ "name": "minToAmount",
821
+ "type": "uint256",
822
+ "internalType": "uint256"
823
823
  },
824
824
  {
825
- name: "deadline",
826
- type: "uint256",
827
- internalType: "uint256"
825
+ "name": "deadline",
826
+ "type": "uint256",
827
+ "internalType": "uint256"
828
828
  },
829
829
  {
830
- name: "ref",
831
- type: "bytes32",
832
- internalType: "bytes32"
830
+ "name": "ref",
831
+ "type": "bytes32",
832
+ "internalType": "bytes32"
833
833
  }
834
834
  ]
835
835
  },
836
836
  {
837
- name: "signature",
838
- type: "bytes",
839
- internalType: "bytes"
837
+ "name": "signature",
838
+ "type": "bytes",
839
+ "internalType": "bytes"
840
840
  },
841
841
  {
842
- name: "fromToken",
843
- type: "address",
844
- internalType: "address"
842
+ "name": "fromToken",
843
+ "type": "address",
844
+ "internalType": "address"
845
845
  },
846
846
  {
847
- name: "maxFromAmount",
848
- type: "uint256",
849
- internalType: "uint256"
847
+ "name": "maxFromAmount",
848
+ "type": "uint256",
849
+ "internalType": "uint256"
850
850
  },
851
851
  {
852
- name: "swapRouter",
853
- type: "address",
854
- internalType: "address"
852
+ "name": "swapRouter",
853
+ "type": "address",
854
+ "internalType": "address"
855
855
  },
856
856
  {
857
- name: "swapCalldata",
858
- type: "bytes",
859
- internalType: "bytes"
857
+ "name": "swapCalldata",
858
+ "type": "bytes",
859
+ "internalType": "bytes"
860
860
  }
861
861
  ],
862
- outputs: [],
863
- stateMutability: "nonpayable"
862
+ "outputs": [],
863
+ "stateMutability": "nonpayable"
864
864
  },
865
865
  {
866
- type: "function",
867
- name: "getBotConfig",
868
- inputs: [
866
+ "type": "function",
867
+ "name": "getBotConfig",
868
+ "inputs": [
869
869
  {
870
- name: "bot",
871
- type: "address",
872
- internalType: "address"
870
+ "name": "bot",
871
+ "type": "address",
872
+ "internalType": "address"
873
873
  }
874
874
  ],
875
- outputs: [
875
+ "outputs": [
876
876
  {
877
- name: "",
878
- type: "tuple",
879
- internalType: "struct AxonVault.BotConfig",
880
- components: [
877
+ "name": "",
878
+ "type": "tuple",
879
+ "internalType": "struct AxonVault.BotConfig",
880
+ "components": [
881
881
  {
882
- name: "isActive",
883
- type: "bool",
884
- internalType: "bool"
882
+ "name": "isActive",
883
+ "type": "bool",
884
+ "internalType": "bool"
885
885
  },
886
886
  {
887
- name: "registeredAt",
888
- type: "uint256",
889
- internalType: "uint256"
887
+ "name": "registeredAt",
888
+ "type": "uint256",
889
+ "internalType": "uint256"
890
890
  },
891
891
  {
892
- name: "maxPerTxAmount",
893
- type: "uint256",
894
- internalType: "uint256"
892
+ "name": "maxPerTxAmount",
893
+ "type": "uint256",
894
+ "internalType": "uint256"
895
895
  },
896
896
  {
897
- name: "maxRebalanceAmount",
898
- type: "uint256",
899
- internalType: "uint256"
897
+ "name": "maxRebalanceAmount",
898
+ "type": "uint256",
899
+ "internalType": "uint256"
900
900
  },
901
901
  {
902
- name: "spendingLimits",
903
- type: "tuple[]",
904
- internalType: "struct AxonVault.SpendingLimit[]",
905
- components: [
902
+ "name": "spendingLimits",
903
+ "type": "tuple[]",
904
+ "internalType": "struct AxonVault.SpendingLimit[]",
905
+ "components": [
906
906
  {
907
- name: "amount",
908
- type: "uint256",
909
- internalType: "uint256"
907
+ "name": "amount",
908
+ "type": "uint256",
909
+ "internalType": "uint256"
910
910
  },
911
911
  {
912
- name: "maxCount",
913
- type: "uint256",
914
- internalType: "uint256"
912
+ "name": "maxCount",
913
+ "type": "uint256",
914
+ "internalType": "uint256"
915
915
  },
916
916
  {
917
- name: "windowSeconds",
918
- type: "uint256",
919
- internalType: "uint256"
917
+ "name": "windowSeconds",
918
+ "type": "uint256",
919
+ "internalType": "uint256"
920
920
  }
921
921
  ]
922
922
  },
923
923
  {
924
- name: "aiTriggerThreshold",
925
- type: "uint256",
926
- internalType: "uint256"
924
+ "name": "aiTriggerThreshold",
925
+ "type": "uint256",
926
+ "internalType": "uint256"
927
927
  },
928
928
  {
929
- name: "requireAiVerification",
930
- type: "bool",
931
- internalType: "bool"
929
+ "name": "requireAiVerification",
930
+ "type": "bool",
931
+ "internalType": "bool"
932
932
  }
933
933
  ]
934
934
  }
935
935
  ],
936
- stateMutability: "view"
936
+ "stateMutability": "view"
937
937
  },
938
938
  {
939
- type: "function",
940
- name: "globalBlacklistCount",
941
- inputs: [],
942
- outputs: [
939
+ "type": "function",
940
+ "name": "globalBlacklistCount",
941
+ "inputs": [],
942
+ "outputs": [
943
943
  {
944
- name: "",
945
- type: "uint256",
946
- internalType: "uint256"
944
+ "name": "",
945
+ "type": "uint256",
946
+ "internalType": "uint256"
947
947
  }
948
948
  ],
949
- stateMutability: "view"
949
+ "stateMutability": "view"
950
950
  },
951
951
  {
952
- type: "function",
953
- name: "globalDestinationBlacklist",
954
- inputs: [
952
+ "type": "function",
953
+ "name": "globalDestinationBlacklist",
954
+ "inputs": [
955
955
  {
956
- name: "",
957
- type: "address",
958
- internalType: "address"
956
+ "name": "",
957
+ "type": "address",
958
+ "internalType": "address"
959
959
  }
960
960
  ],
961
- outputs: [
961
+ "outputs": [
962
962
  {
963
- name: "",
964
- type: "bool",
965
- internalType: "bool"
963
+ "name": "",
964
+ "type": "bool",
965
+ "internalType": "bool"
966
966
  }
967
967
  ],
968
- stateMutability: "view"
968
+ "stateMutability": "view"
969
969
  },
970
970
  {
971
- type: "function",
972
- name: "globalDestinationCount",
973
- inputs: [],
974
- outputs: [
971
+ "type": "function",
972
+ "name": "globalDestinationCount",
973
+ "inputs": [],
974
+ "outputs": [
975
975
  {
976
- name: "",
977
- type: "uint256",
978
- internalType: "uint256"
976
+ "name": "",
977
+ "type": "uint256",
978
+ "internalType": "uint256"
979
979
  }
980
980
  ],
981
- stateMutability: "view"
981
+ "stateMutability": "view"
982
982
  },
983
983
  {
984
- type: "function",
985
- name: "globalDestinationWhitelist",
986
- inputs: [
984
+ "type": "function",
985
+ "name": "globalDestinationWhitelist",
986
+ "inputs": [
987
987
  {
988
- name: "",
989
- type: "address",
990
- internalType: "address"
988
+ "name": "",
989
+ "type": "address",
990
+ "internalType": "address"
991
991
  }
992
992
  ],
993
- outputs: [
993
+ "outputs": [
994
994
  {
995
- name: "",
996
- type: "bool",
997
- internalType: "bool"
995
+ "name": "",
996
+ "type": "bool",
997
+ "internalType": "bool"
998
998
  }
999
999
  ],
1000
- stateMutability: "view"
1000
+ "stateMutability": "view"
1001
1001
  },
1002
1002
  {
1003
- type: "function",
1004
- name: "isBotActive",
1005
- inputs: [
1003
+ "type": "function",
1004
+ "name": "isBotActive",
1005
+ "inputs": [
1006
1006
  {
1007
- name: "bot",
1008
- type: "address",
1009
- internalType: "address"
1007
+ "name": "bot",
1008
+ "type": "address",
1009
+ "internalType": "address"
1010
1010
  }
1011
1011
  ],
1012
- outputs: [
1012
+ "outputs": [
1013
1013
  {
1014
- name: "",
1015
- type: "bool",
1016
- internalType: "bool"
1014
+ "name": "",
1015
+ "type": "bool",
1016
+ "internalType": "bool"
1017
1017
  }
1018
1018
  ],
1019
- stateMutability: "view"
1019
+ "stateMutability": "view"
1020
1020
  },
1021
1021
  {
1022
- type: "function",
1023
- name: "isProtocolApproved",
1024
- inputs: [
1022
+ "type": "function",
1023
+ "name": "isProtocolApproved",
1024
+ "inputs": [
1025
1025
  {
1026
- name: "protocol",
1027
- type: "address",
1028
- internalType: "address"
1026
+ "name": "protocol",
1027
+ "type": "address",
1028
+ "internalType": "address"
1029
1029
  }
1030
1030
  ],
1031
- outputs: [
1031
+ "outputs": [
1032
1032
  {
1033
- name: "",
1034
- type: "bool",
1035
- internalType: "bool"
1033
+ "name": "",
1034
+ "type": "bool",
1035
+ "internalType": "bool"
1036
1036
  }
1037
1037
  ],
1038
- stateMutability: "view"
1038
+ "stateMutability": "view"
1039
1039
  },
1040
1040
  {
1041
- type: "function",
1042
- name: "operator",
1043
- inputs: [],
1044
- outputs: [
1041
+ "type": "function",
1042
+ "name": "operator",
1043
+ "inputs": [],
1044
+ "outputs": [
1045
1045
  {
1046
- name: "",
1047
- type: "address",
1048
- internalType: "address"
1046
+ "name": "",
1047
+ "type": "address",
1048
+ "internalType": "address"
1049
1049
  }
1050
1050
  ],
1051
- stateMutability: "view"
1051
+ "stateMutability": "view"
1052
1052
  },
1053
1053
  {
1054
- type: "function",
1055
- name: "operatorBotCount",
1056
- inputs: [],
1057
- outputs: [
1054
+ "type": "function",
1055
+ "name": "operatorBotCount",
1056
+ "inputs": [],
1057
+ "outputs": [
1058
1058
  {
1059
- name: "",
1060
- type: "uint256",
1061
- internalType: "uint256"
1059
+ "name": "",
1060
+ "type": "uint256",
1061
+ "internalType": "uint256"
1062
1062
  }
1063
1063
  ],
1064
- stateMutability: "view"
1064
+ "stateMutability": "view"
1065
1065
  },
1066
1066
  {
1067
- type: "function",
1068
- name: "operatorCeilings",
1069
- inputs: [],
1070
- outputs: [
1067
+ "type": "function",
1068
+ "name": "operatorCeilings",
1069
+ "inputs": [],
1070
+ "outputs": [
1071
1071
  {
1072
- name: "maxPerTxAmount",
1073
- type: "uint256",
1074
- internalType: "uint256"
1072
+ "name": "maxPerTxAmount",
1073
+ "type": "uint256",
1074
+ "internalType": "uint256"
1075
1075
  },
1076
1076
  {
1077
- name: "maxBotDailyLimit",
1078
- type: "uint256",
1079
- internalType: "uint256"
1077
+ "name": "maxBotDailyLimit",
1078
+ "type": "uint256",
1079
+ "internalType": "uint256"
1080
1080
  },
1081
1081
  {
1082
- name: "maxOperatorBots",
1083
- type: "uint256",
1084
- internalType: "uint256"
1082
+ "name": "maxOperatorBots",
1083
+ "type": "uint256",
1084
+ "internalType": "uint256"
1085
1085
  },
1086
1086
  {
1087
- name: "vaultDailyAggregate",
1088
- type: "uint256",
1089
- internalType: "uint256"
1087
+ "name": "vaultDailyAggregate",
1088
+ "type": "uint256",
1089
+ "internalType": "uint256"
1090
1090
  },
1091
1091
  {
1092
- name: "minAiTriggerFloor",
1093
- type: "uint256",
1094
- internalType: "uint256"
1092
+ "name": "minAiTriggerFloor",
1093
+ "type": "uint256",
1094
+ "internalType": "uint256"
1095
1095
  }
1096
1096
  ],
1097
- stateMutability: "view"
1097
+ "stateMutability": "view"
1098
1098
  },
1099
1099
  {
1100
- type: "function",
1101
- name: "operatorMaxDrainPerDay",
1102
- inputs: [],
1103
- outputs: [
1100
+ "type": "function",
1101
+ "name": "operatorMaxDrainPerDay",
1102
+ "inputs": [],
1103
+ "outputs": [
1104
1104
  {
1105
- name: "",
1106
- type: "uint256",
1107
- internalType: "uint256"
1105
+ "name": "",
1106
+ "type": "uint256",
1107
+ "internalType": "uint256"
1108
1108
  }
1109
1109
  ],
1110
- stateMutability: "view"
1110
+ "stateMutability": "view"
1111
1111
  },
1112
1112
  {
1113
- type: "function",
1114
- name: "owner",
1115
- inputs: [],
1116
- outputs: [
1113
+ "type": "function",
1114
+ "name": "owner",
1115
+ "inputs": [],
1116
+ "outputs": [
1117
1117
  {
1118
- name: "",
1119
- type: "address",
1120
- internalType: "address"
1118
+ "name": "",
1119
+ "type": "address",
1120
+ "internalType": "address"
1121
1121
  }
1122
1122
  ],
1123
- stateMutability: "view"
1123
+ "stateMutability": "view"
1124
1124
  },
1125
1125
  {
1126
- type: "function",
1127
- name: "pause",
1128
- inputs: [],
1129
- outputs: [],
1130
- stateMutability: "nonpayable"
1126
+ "type": "function",
1127
+ "name": "pause",
1128
+ "inputs": [],
1129
+ "outputs": [],
1130
+ "stateMutability": "nonpayable"
1131
1131
  },
1132
1132
  {
1133
- type: "function",
1134
- name: "paused",
1135
- inputs: [],
1136
- outputs: [
1133
+ "type": "function",
1134
+ "name": "paused",
1135
+ "inputs": [],
1136
+ "outputs": [
1137
1137
  {
1138
- name: "",
1139
- type: "bool",
1140
- internalType: "bool"
1138
+ "name": "",
1139
+ "type": "bool",
1140
+ "internalType": "bool"
1141
1141
  }
1142
1142
  ],
1143
- stateMutability: "view"
1143
+ "stateMutability": "view"
1144
1144
  },
1145
1145
  {
1146
- type: "function",
1147
- name: "pendingOwner",
1148
- inputs: [],
1149
- outputs: [
1146
+ "type": "function",
1147
+ "name": "pendingOwner",
1148
+ "inputs": [],
1149
+ "outputs": [
1150
1150
  {
1151
- name: "",
1152
- type: "address",
1153
- internalType: "address"
1151
+ "name": "",
1152
+ "type": "address",
1153
+ "internalType": "address"
1154
1154
  }
1155
1155
  ],
1156
- stateMutability: "view"
1156
+ "stateMutability": "view"
1157
1157
  },
1158
1158
  {
1159
- type: "function",
1160
- name: "rebalanceTokenCount",
1161
- inputs: [],
1162
- outputs: [
1159
+ "type": "function",
1160
+ "name": "rebalanceTokenCount",
1161
+ "inputs": [],
1162
+ "outputs": [
1163
1163
  {
1164
- name: "",
1165
- type: "uint256",
1166
- internalType: "uint256"
1164
+ "name": "",
1165
+ "type": "uint256",
1166
+ "internalType": "uint256"
1167
1167
  }
1168
1168
  ],
1169
- stateMutability: "view"
1169
+ "stateMutability": "view"
1170
1170
  },
1171
1171
  {
1172
- type: "function",
1173
- name: "rebalanceTokenWhitelist",
1174
- inputs: [
1172
+ "type": "function",
1173
+ "name": "rebalanceTokenWhitelist",
1174
+ "inputs": [
1175
1175
  {
1176
- name: "",
1177
- type: "address",
1178
- internalType: "address"
1176
+ "name": "",
1177
+ "type": "address",
1178
+ "internalType": "address"
1179
1179
  }
1180
1180
  ],
1181
- outputs: [
1181
+ "outputs": [
1182
1182
  {
1183
- name: "",
1184
- type: "bool",
1185
- internalType: "bool"
1183
+ "name": "",
1184
+ "type": "bool",
1185
+ "internalType": "bool"
1186
1186
  }
1187
1187
  ],
1188
- stateMutability: "view"
1188
+ "stateMutability": "view"
1189
1189
  },
1190
1190
  {
1191
- type: "function",
1192
- name: "removeBot",
1193
- inputs: [
1191
+ "type": "function",
1192
+ "name": "removeBot",
1193
+ "inputs": [
1194
1194
  {
1195
- name: "bot",
1196
- type: "address",
1197
- internalType: "address"
1195
+ "name": "bot",
1196
+ "type": "address",
1197
+ "internalType": "address"
1198
1198
  }
1199
1199
  ],
1200
- outputs: [],
1201
- stateMutability: "nonpayable"
1200
+ "outputs": [],
1201
+ "stateMutability": "nonpayable"
1202
1202
  },
1203
1203
  {
1204
- type: "function",
1205
- name: "removeBotDestination",
1206
- inputs: [
1204
+ "type": "function",
1205
+ "name": "removeBotDestination",
1206
+ "inputs": [
1207
1207
  {
1208
- name: "bot",
1209
- type: "address",
1210
- internalType: "address"
1208
+ "name": "bot",
1209
+ "type": "address",
1210
+ "internalType": "address"
1211
1211
  },
1212
1212
  {
1213
- name: "destination",
1214
- type: "address",
1215
- internalType: "address"
1213
+ "name": "destination",
1214
+ "type": "address",
1215
+ "internalType": "address"
1216
1216
  }
1217
1217
  ],
1218
- outputs: [],
1219
- stateMutability: "nonpayable"
1218
+ "outputs": [],
1219
+ "stateMutability": "nonpayable"
1220
1220
  },
1221
1221
  {
1222
- type: "function",
1223
- name: "removeGlobalBlacklist",
1224
- inputs: [
1222
+ "type": "function",
1223
+ "name": "removeGlobalBlacklist",
1224
+ "inputs": [
1225
1225
  {
1226
- name: "destination",
1227
- type: "address",
1228
- internalType: "address"
1226
+ "name": "destination",
1227
+ "type": "address",
1228
+ "internalType": "address"
1229
1229
  }
1230
1230
  ],
1231
- outputs: [],
1232
- stateMutability: "nonpayable"
1231
+ "outputs": [],
1232
+ "stateMutability": "nonpayable"
1233
1233
  },
1234
1234
  {
1235
- type: "function",
1236
- name: "removeGlobalDestination",
1237
- inputs: [
1235
+ "type": "function",
1236
+ "name": "removeGlobalDestination",
1237
+ "inputs": [
1238
1238
  {
1239
- name: "destination",
1240
- type: "address",
1241
- internalType: "address"
1239
+ "name": "destination",
1240
+ "type": "address",
1241
+ "internalType": "address"
1242
1242
  }
1243
1243
  ],
1244
- outputs: [],
1245
- stateMutability: "nonpayable"
1244
+ "outputs": [],
1245
+ "stateMutability": "nonpayable"
1246
1246
  },
1247
1247
  {
1248
- type: "function",
1249
- name: "removeProtocol",
1250
- inputs: [
1248
+ "type": "function",
1249
+ "name": "removeProtocol",
1250
+ "inputs": [
1251
1251
  {
1252
- name: "protocol",
1253
- type: "address",
1254
- internalType: "address"
1252
+ "name": "protocol",
1253
+ "type": "address",
1254
+ "internalType": "address"
1255
1255
  }
1256
1256
  ],
1257
- outputs: [],
1258
- stateMutability: "nonpayable"
1257
+ "outputs": [],
1258
+ "stateMutability": "nonpayable"
1259
1259
  },
1260
1260
  {
1261
- type: "function",
1262
- name: "removeRebalanceTokens",
1263
- inputs: [
1261
+ "type": "function",
1262
+ "name": "removeRebalanceTokens",
1263
+ "inputs": [
1264
1264
  {
1265
- name: "tokens",
1266
- type: "address[]",
1267
- internalType: "address[]"
1265
+ "name": "tokens",
1266
+ "type": "address[]",
1267
+ "internalType": "address[]"
1268
1268
  }
1269
1269
  ],
1270
- outputs: [],
1271
- stateMutability: "nonpayable"
1270
+ "outputs": [],
1271
+ "stateMutability": "nonpayable"
1272
1272
  },
1273
1273
  {
1274
- type: "function",
1275
- name: "renounceOwnership",
1276
- inputs: [],
1277
- outputs: [],
1278
- stateMutability: "nonpayable"
1274
+ "type": "function",
1275
+ "name": "renounceOwnership",
1276
+ "inputs": [],
1277
+ "outputs": [],
1278
+ "stateMutability": "nonpayable"
1279
1279
  },
1280
1280
  {
1281
- type: "function",
1282
- name: "setOperator",
1283
- inputs: [
1281
+ "type": "function",
1282
+ "name": "setOperator",
1283
+ "inputs": [
1284
1284
  {
1285
- name: "_operator",
1286
- type: "address",
1287
- internalType: "address"
1285
+ "name": "_operator",
1286
+ "type": "address",
1287
+ "internalType": "address"
1288
1288
  }
1289
1289
  ],
1290
- outputs: [],
1291
- stateMutability: "nonpayable"
1290
+ "outputs": [],
1291
+ "stateMutability": "nonpayable"
1292
1292
  },
1293
1293
  {
1294
- type: "function",
1295
- name: "setOperatorCeilings",
1296
- inputs: [
1294
+ "type": "function",
1295
+ "name": "setOperatorCeilings",
1296
+ "inputs": [
1297
1297
  {
1298
- name: "ceilings",
1299
- type: "tuple",
1300
- internalType: "struct AxonVault.OperatorCeilings",
1301
- components: [
1298
+ "name": "ceilings",
1299
+ "type": "tuple",
1300
+ "internalType": "struct AxonVault.OperatorCeilings",
1301
+ "components": [
1302
1302
  {
1303
- name: "maxPerTxAmount",
1304
- type: "uint256",
1305
- internalType: "uint256"
1303
+ "name": "maxPerTxAmount",
1304
+ "type": "uint256",
1305
+ "internalType": "uint256"
1306
1306
  },
1307
1307
  {
1308
- name: "maxBotDailyLimit",
1309
- type: "uint256",
1310
- internalType: "uint256"
1308
+ "name": "maxBotDailyLimit",
1309
+ "type": "uint256",
1310
+ "internalType": "uint256"
1311
1311
  },
1312
1312
  {
1313
- name: "maxOperatorBots",
1314
- type: "uint256",
1315
- internalType: "uint256"
1313
+ "name": "maxOperatorBots",
1314
+ "type": "uint256",
1315
+ "internalType": "uint256"
1316
1316
  },
1317
1317
  {
1318
- name: "vaultDailyAggregate",
1319
- type: "uint256",
1320
- internalType: "uint256"
1318
+ "name": "vaultDailyAggregate",
1319
+ "type": "uint256",
1320
+ "internalType": "uint256"
1321
1321
  },
1322
1322
  {
1323
- name: "minAiTriggerFloor",
1324
- type: "uint256",
1325
- internalType: "uint256"
1323
+ "name": "minAiTriggerFloor",
1324
+ "type": "uint256",
1325
+ "internalType": "uint256"
1326
1326
  }
1327
1327
  ]
1328
1328
  }
1329
1329
  ],
1330
- outputs: [],
1331
- stateMutability: "nonpayable"
1330
+ "outputs": [],
1331
+ "stateMutability": "nonpayable"
1332
1332
  },
1333
1333
  {
1334
- type: "function",
1335
- name: "trackUsedIntents",
1336
- inputs: [],
1337
- outputs: [
1334
+ "type": "function",
1335
+ "name": "trackUsedIntents",
1336
+ "inputs": [],
1337
+ "outputs": [
1338
1338
  {
1339
- name: "",
1340
- type: "bool",
1341
- internalType: "bool"
1339
+ "name": "",
1340
+ "type": "bool",
1341
+ "internalType": "bool"
1342
1342
  }
1343
1343
  ],
1344
- stateMutability: "view"
1344
+ "stateMutability": "view"
1345
1345
  },
1346
1346
  {
1347
- type: "function",
1348
- name: "transferOwnership",
1349
- inputs: [
1347
+ "type": "function",
1348
+ "name": "transferOwnership",
1349
+ "inputs": [
1350
1350
  {
1351
- name: "newOwner",
1352
- type: "address",
1353
- internalType: "address"
1351
+ "name": "newOwner",
1352
+ "type": "address",
1353
+ "internalType": "address"
1354
1354
  }
1355
1355
  ],
1356
- outputs: [],
1357
- stateMutability: "nonpayable"
1356
+ "outputs": [],
1357
+ "stateMutability": "nonpayable"
1358
1358
  },
1359
1359
  {
1360
- type: "function",
1361
- name: "unpause",
1362
- inputs: [],
1363
- outputs: [],
1364
- stateMutability: "nonpayable"
1360
+ "type": "function",
1361
+ "name": "unpause",
1362
+ "inputs": [],
1363
+ "outputs": [],
1364
+ "stateMutability": "nonpayable"
1365
1365
  },
1366
1366
  {
1367
- type: "function",
1368
- name: "updateBotConfig",
1369
- inputs: [
1367
+ "type": "function",
1368
+ "name": "updateBotConfig",
1369
+ "inputs": [
1370
1370
  {
1371
- name: "bot",
1372
- type: "address",
1373
- internalType: "address"
1371
+ "name": "bot",
1372
+ "type": "address",
1373
+ "internalType": "address"
1374
1374
  },
1375
1375
  {
1376
- name: "params",
1377
- type: "tuple",
1378
- internalType: "struct AxonVault.BotConfigParams",
1379
- components: [
1376
+ "name": "params",
1377
+ "type": "tuple",
1378
+ "internalType": "struct AxonVault.BotConfigParams",
1379
+ "components": [
1380
1380
  {
1381
- name: "maxPerTxAmount",
1382
- type: "uint256",
1383
- internalType: "uint256"
1381
+ "name": "maxPerTxAmount",
1382
+ "type": "uint256",
1383
+ "internalType": "uint256"
1384
1384
  },
1385
1385
  {
1386
- name: "maxRebalanceAmount",
1387
- type: "uint256",
1388
- internalType: "uint256"
1386
+ "name": "maxRebalanceAmount",
1387
+ "type": "uint256",
1388
+ "internalType": "uint256"
1389
1389
  },
1390
1390
  {
1391
- name: "spendingLimits",
1392
- type: "tuple[]",
1393
- internalType: "struct AxonVault.SpendingLimit[]",
1394
- components: [
1391
+ "name": "spendingLimits",
1392
+ "type": "tuple[]",
1393
+ "internalType": "struct AxonVault.SpendingLimit[]",
1394
+ "components": [
1395
1395
  {
1396
- name: "amount",
1397
- type: "uint256",
1398
- internalType: "uint256"
1396
+ "name": "amount",
1397
+ "type": "uint256",
1398
+ "internalType": "uint256"
1399
1399
  },
1400
1400
  {
1401
- name: "maxCount",
1402
- type: "uint256",
1403
- internalType: "uint256"
1401
+ "name": "maxCount",
1402
+ "type": "uint256",
1403
+ "internalType": "uint256"
1404
1404
  },
1405
1405
  {
1406
- name: "windowSeconds",
1407
- type: "uint256",
1408
- internalType: "uint256"
1406
+ "name": "windowSeconds",
1407
+ "type": "uint256",
1408
+ "internalType": "uint256"
1409
1409
  }
1410
1410
  ]
1411
1411
  },
1412
1412
  {
1413
- name: "aiTriggerThreshold",
1414
- type: "uint256",
1415
- internalType: "uint256"
1413
+ "name": "aiTriggerThreshold",
1414
+ "type": "uint256",
1415
+ "internalType": "uint256"
1416
1416
  },
1417
1417
  {
1418
- name: "requireAiVerification",
1419
- type: "bool",
1420
- internalType: "bool"
1418
+ "name": "requireAiVerification",
1419
+ "type": "bool",
1420
+ "internalType": "bool"
1421
1421
  }
1422
1422
  ]
1423
1423
  }
1424
1424
  ],
1425
- outputs: [],
1426
- stateMutability: "nonpayable"
1425
+ "outputs": [],
1426
+ "stateMutability": "nonpayable"
1427
1427
  },
1428
1428
  {
1429
- type: "function",
1430
- name: "usedIntents",
1431
- inputs: [
1429
+ "type": "function",
1430
+ "name": "usedIntents",
1431
+ "inputs": [
1432
1432
  {
1433
- name: "",
1434
- type: "bytes32",
1435
- internalType: "bytes32"
1433
+ "name": "",
1434
+ "type": "bytes32",
1435
+ "internalType": "bytes32"
1436
1436
  }
1437
1437
  ],
1438
- outputs: [
1438
+ "outputs": [
1439
1439
  {
1440
- name: "",
1441
- type: "bool",
1442
- internalType: "bool"
1440
+ "name": "",
1441
+ "type": "bool",
1442
+ "internalType": "bool"
1443
1443
  }
1444
1444
  ],
1445
- stateMutability: "view"
1445
+ "stateMutability": "view"
1446
1446
  },
1447
1447
  {
1448
- type: "function",
1449
- name: "withdraw",
1450
- inputs: [
1448
+ "type": "function",
1449
+ "name": "withdraw",
1450
+ "inputs": [
1451
1451
  {
1452
- name: "token",
1453
- type: "address",
1454
- internalType: "address"
1452
+ "name": "token",
1453
+ "type": "address",
1454
+ "internalType": "address"
1455
1455
  },
1456
1456
  {
1457
- name: "amount",
1458
- type: "uint256",
1459
- internalType: "uint256"
1457
+ "name": "amount",
1458
+ "type": "uint256",
1459
+ "internalType": "uint256"
1460
1460
  },
1461
1461
  {
1462
- name: "to",
1463
- type: "address",
1464
- internalType: "address"
1462
+ "name": "to",
1463
+ "type": "address",
1464
+ "internalType": "address"
1465
1465
  }
1466
1466
  ],
1467
- outputs: [],
1468
- stateMutability: "nonpayable"
1467
+ "outputs": [],
1468
+ "stateMutability": "nonpayable"
1469
1469
  },
1470
1470
  {
1471
- type: "event",
1472
- name: "BotAdded",
1473
- inputs: [
1471
+ "type": "event",
1472
+ "name": "BotAdded",
1473
+ "inputs": [
1474
1474
  {
1475
- name: "bot",
1476
- type: "address",
1477
- indexed: true,
1478
- internalType: "address"
1475
+ "name": "bot",
1476
+ "type": "address",
1477
+ "indexed": true,
1478
+ "internalType": "address"
1479
1479
  },
1480
1480
  {
1481
- name: "addedBy",
1482
- type: "address",
1483
- indexed: true,
1484
- internalType: "address"
1481
+ "name": "addedBy",
1482
+ "type": "address",
1483
+ "indexed": true,
1484
+ "internalType": "address"
1485
1485
  }
1486
1486
  ],
1487
- anonymous: false
1487
+ "anonymous": false
1488
1488
  },
1489
1489
  {
1490
- type: "event",
1491
- name: "BotConfigUpdated",
1492
- inputs: [
1490
+ "type": "event",
1491
+ "name": "BotConfigUpdated",
1492
+ "inputs": [
1493
1493
  {
1494
- name: "bot",
1495
- type: "address",
1496
- indexed: true,
1497
- internalType: "address"
1494
+ "name": "bot",
1495
+ "type": "address",
1496
+ "indexed": true,
1497
+ "internalType": "address"
1498
1498
  },
1499
1499
  {
1500
- name: "updatedBy",
1501
- type: "address",
1502
- indexed: true,
1503
- internalType: "address"
1500
+ "name": "updatedBy",
1501
+ "type": "address",
1502
+ "indexed": true,
1503
+ "internalType": "address"
1504
1504
  }
1505
1505
  ],
1506
- anonymous: false
1506
+ "anonymous": false
1507
1507
  },
1508
1508
  {
1509
- type: "event",
1510
- name: "BotDestinationAdded",
1511
- inputs: [
1509
+ "type": "event",
1510
+ "name": "BotDestinationAdded",
1511
+ "inputs": [
1512
1512
  {
1513
- name: "bot",
1514
- type: "address",
1515
- indexed: true,
1516
- internalType: "address"
1513
+ "name": "bot",
1514
+ "type": "address",
1515
+ "indexed": true,
1516
+ "internalType": "address"
1517
1517
  },
1518
1518
  {
1519
- name: "destination",
1520
- type: "address",
1521
- indexed: true,
1522
- internalType: "address"
1519
+ "name": "destination",
1520
+ "type": "address",
1521
+ "indexed": true,
1522
+ "internalType": "address"
1523
1523
  }
1524
1524
  ],
1525
- anonymous: false
1525
+ "anonymous": false
1526
1526
  },
1527
1527
  {
1528
- type: "event",
1529
- name: "BotDestinationRemoved",
1530
- inputs: [
1528
+ "type": "event",
1529
+ "name": "BotDestinationRemoved",
1530
+ "inputs": [
1531
1531
  {
1532
- name: "bot",
1533
- type: "address",
1534
- indexed: true,
1535
- internalType: "address"
1532
+ "name": "bot",
1533
+ "type": "address",
1534
+ "indexed": true,
1535
+ "internalType": "address"
1536
1536
  },
1537
1537
  {
1538
- name: "destination",
1539
- type: "address",
1540
- indexed: true,
1541
- internalType: "address"
1538
+ "name": "destination",
1539
+ "type": "address",
1540
+ "indexed": true,
1541
+ "internalType": "address"
1542
1542
  }
1543
1543
  ],
1544
- anonymous: false
1544
+ "anonymous": false
1545
1545
  },
1546
1546
  {
1547
- type: "event",
1548
- name: "BotRemoved",
1549
- inputs: [
1547
+ "type": "event",
1548
+ "name": "BotRemoved",
1549
+ "inputs": [
1550
1550
  {
1551
- name: "bot",
1552
- type: "address",
1553
- indexed: true,
1554
- internalType: "address"
1551
+ "name": "bot",
1552
+ "type": "address",
1553
+ "indexed": true,
1554
+ "internalType": "address"
1555
1555
  },
1556
1556
  {
1557
- name: "removedBy",
1558
- type: "address",
1559
- indexed: true,
1560
- internalType: "address"
1557
+ "name": "removedBy",
1558
+ "type": "address",
1559
+ "indexed": true,
1560
+ "internalType": "address"
1561
1561
  }
1562
1562
  ],
1563
- anonymous: false
1563
+ "anonymous": false
1564
1564
  },
1565
1565
  {
1566
- type: "event",
1567
- name: "Deposited",
1568
- inputs: [
1566
+ "type": "event",
1567
+ "name": "Deposited",
1568
+ "inputs": [
1569
1569
  {
1570
- name: "from",
1571
- type: "address",
1572
- indexed: true,
1573
- internalType: "address"
1570
+ "name": "from",
1571
+ "type": "address",
1572
+ "indexed": true,
1573
+ "internalType": "address"
1574
1574
  },
1575
1575
  {
1576
- name: "token",
1577
- type: "address",
1578
- indexed: true,
1579
- internalType: "address"
1576
+ "name": "token",
1577
+ "type": "address",
1578
+ "indexed": true,
1579
+ "internalType": "address"
1580
1580
  },
1581
1581
  {
1582
- name: "amount",
1583
- type: "uint256",
1584
- indexed: false,
1585
- internalType: "uint256"
1582
+ "name": "amount",
1583
+ "type": "uint256",
1584
+ "indexed": false,
1585
+ "internalType": "uint256"
1586
1586
  },
1587
1587
  {
1588
- name: "ref",
1589
- type: "bytes32",
1590
- indexed: false,
1591
- internalType: "bytes32"
1588
+ "name": "ref",
1589
+ "type": "bytes32",
1590
+ "indexed": false,
1591
+ "internalType": "bytes32"
1592
1592
  }
1593
1593
  ],
1594
- anonymous: false
1594
+ "anonymous": false
1595
1595
  },
1596
1596
  {
1597
- type: "event",
1598
- name: "EIP712DomainChanged",
1599
- inputs: [],
1600
- anonymous: false
1597
+ "type": "event",
1598
+ "name": "EIP712DomainChanged",
1599
+ "inputs": [],
1600
+ "anonymous": false
1601
1601
  },
1602
1602
  {
1603
- type: "event",
1604
- name: "GlobalBlacklistAdded",
1605
- inputs: [
1603
+ "type": "event",
1604
+ "name": "GlobalBlacklistAdded",
1605
+ "inputs": [
1606
1606
  {
1607
- name: "destination",
1608
- type: "address",
1609
- indexed: true,
1610
- internalType: "address"
1607
+ "name": "destination",
1608
+ "type": "address",
1609
+ "indexed": true,
1610
+ "internalType": "address"
1611
1611
  }
1612
1612
  ],
1613
- anonymous: false
1613
+ "anonymous": false
1614
1614
  },
1615
1615
  {
1616
- type: "event",
1617
- name: "GlobalBlacklistRemoved",
1618
- inputs: [
1616
+ "type": "event",
1617
+ "name": "GlobalBlacklistRemoved",
1618
+ "inputs": [
1619
1619
  {
1620
- name: "destination",
1621
- type: "address",
1622
- indexed: true,
1623
- internalType: "address"
1620
+ "name": "destination",
1621
+ "type": "address",
1622
+ "indexed": true,
1623
+ "internalType": "address"
1624
1624
  }
1625
1625
  ],
1626
- anonymous: false
1626
+ "anonymous": false
1627
1627
  },
1628
1628
  {
1629
- type: "event",
1630
- name: "GlobalDestinationAdded",
1631
- inputs: [
1629
+ "type": "event",
1630
+ "name": "GlobalDestinationAdded",
1631
+ "inputs": [
1632
1632
  {
1633
- name: "destination",
1634
- type: "address",
1635
- indexed: true,
1636
- internalType: "address"
1633
+ "name": "destination",
1634
+ "type": "address",
1635
+ "indexed": true,
1636
+ "internalType": "address"
1637
1637
  }
1638
1638
  ],
1639
- anonymous: false
1639
+ "anonymous": false
1640
1640
  },
1641
1641
  {
1642
- type: "event",
1643
- name: "GlobalDestinationRemoved",
1644
- inputs: [
1642
+ "type": "event",
1643
+ "name": "GlobalDestinationRemoved",
1644
+ "inputs": [
1645
1645
  {
1646
- name: "destination",
1647
- type: "address",
1648
- indexed: true,
1649
- internalType: "address"
1646
+ "name": "destination",
1647
+ "type": "address",
1648
+ "indexed": true,
1649
+ "internalType": "address"
1650
1650
  }
1651
1651
  ],
1652
- anonymous: false
1652
+ "anonymous": false
1653
1653
  },
1654
1654
  {
1655
- type: "event",
1656
- name: "OperatorCeilingsUpdated",
1657
- inputs: [
1655
+ "type": "event",
1656
+ "name": "OperatorCeilingsUpdated",
1657
+ "inputs": [
1658
1658
  {
1659
- name: "ceilings",
1660
- type: "tuple",
1661
- indexed: false,
1662
- internalType: "struct AxonVault.OperatorCeilings",
1663
- components: [
1659
+ "name": "ceilings",
1660
+ "type": "tuple",
1661
+ "indexed": false,
1662
+ "internalType": "struct AxonVault.OperatorCeilings",
1663
+ "components": [
1664
1664
  {
1665
- name: "maxPerTxAmount",
1666
- type: "uint256",
1667
- internalType: "uint256"
1665
+ "name": "maxPerTxAmount",
1666
+ "type": "uint256",
1667
+ "internalType": "uint256"
1668
1668
  },
1669
1669
  {
1670
- name: "maxBotDailyLimit",
1671
- type: "uint256",
1672
- internalType: "uint256"
1670
+ "name": "maxBotDailyLimit",
1671
+ "type": "uint256",
1672
+ "internalType": "uint256"
1673
1673
  },
1674
1674
  {
1675
- name: "maxOperatorBots",
1676
- type: "uint256",
1677
- internalType: "uint256"
1675
+ "name": "maxOperatorBots",
1676
+ "type": "uint256",
1677
+ "internalType": "uint256"
1678
1678
  },
1679
1679
  {
1680
- name: "vaultDailyAggregate",
1681
- type: "uint256",
1682
- internalType: "uint256"
1680
+ "name": "vaultDailyAggregate",
1681
+ "type": "uint256",
1682
+ "internalType": "uint256"
1683
1683
  },
1684
1684
  {
1685
- name: "minAiTriggerFloor",
1686
- type: "uint256",
1687
- internalType: "uint256"
1685
+ "name": "minAiTriggerFloor",
1686
+ "type": "uint256",
1687
+ "internalType": "uint256"
1688
1688
  }
1689
1689
  ]
1690
1690
  }
1691
1691
  ],
1692
- anonymous: false
1692
+ "anonymous": false
1693
1693
  },
1694
1694
  {
1695
- type: "event",
1696
- name: "OperatorSet",
1697
- inputs: [
1695
+ "type": "event",
1696
+ "name": "OperatorSet",
1697
+ "inputs": [
1698
1698
  {
1699
- name: "oldOperator",
1700
- type: "address",
1701
- indexed: true,
1702
- internalType: "address"
1699
+ "name": "oldOperator",
1700
+ "type": "address",
1701
+ "indexed": true,
1702
+ "internalType": "address"
1703
1703
  },
1704
1704
  {
1705
- name: "newOperator",
1706
- type: "address",
1707
- indexed: true,
1708
- internalType: "address"
1705
+ "name": "newOperator",
1706
+ "type": "address",
1707
+ "indexed": true,
1708
+ "internalType": "address"
1709
1709
  }
1710
1710
  ],
1711
- anonymous: false
1711
+ "anonymous": false
1712
1712
  },
1713
1713
  {
1714
- type: "event",
1715
- name: "OwnershipTransferStarted",
1716
- inputs: [
1714
+ "type": "event",
1715
+ "name": "OwnershipTransferStarted",
1716
+ "inputs": [
1717
1717
  {
1718
- name: "previousOwner",
1719
- type: "address",
1720
- indexed: true,
1721
- internalType: "address"
1718
+ "name": "previousOwner",
1719
+ "type": "address",
1720
+ "indexed": true,
1721
+ "internalType": "address"
1722
1722
  },
1723
1723
  {
1724
- name: "newOwner",
1725
- type: "address",
1726
- indexed: true,
1727
- internalType: "address"
1724
+ "name": "newOwner",
1725
+ "type": "address",
1726
+ "indexed": true,
1727
+ "internalType": "address"
1728
1728
  }
1729
1729
  ],
1730
- anonymous: false
1730
+ "anonymous": false
1731
1731
  },
1732
1732
  {
1733
- type: "event",
1734
- name: "OwnershipTransferred",
1735
- inputs: [
1733
+ "type": "event",
1734
+ "name": "OwnershipTransferred",
1735
+ "inputs": [
1736
1736
  {
1737
- name: "previousOwner",
1738
- type: "address",
1739
- indexed: true,
1740
- internalType: "address"
1737
+ "name": "previousOwner",
1738
+ "type": "address",
1739
+ "indexed": true,
1740
+ "internalType": "address"
1741
1741
  },
1742
1742
  {
1743
- name: "newOwner",
1744
- type: "address",
1745
- indexed: true,
1746
- internalType: "address"
1743
+ "name": "newOwner",
1744
+ "type": "address",
1745
+ "indexed": true,
1746
+ "internalType": "address"
1747
1747
  }
1748
1748
  ],
1749
- anonymous: false
1749
+ "anonymous": false
1750
1750
  },
1751
1751
  {
1752
- type: "event",
1753
- name: "Paused",
1754
- inputs: [
1752
+ "type": "event",
1753
+ "name": "Paused",
1754
+ "inputs": [
1755
1755
  {
1756
- name: "account",
1757
- type: "address",
1758
- indexed: false,
1759
- internalType: "address"
1756
+ "name": "account",
1757
+ "type": "address",
1758
+ "indexed": false,
1759
+ "internalType": "address"
1760
1760
  }
1761
1761
  ],
1762
- anonymous: false
1762
+ "anonymous": false
1763
1763
  },
1764
1764
  {
1765
- type: "event",
1766
- name: "PaymentExecuted",
1767
- inputs: [
1765
+ "type": "event",
1766
+ "name": "PaymentExecuted",
1767
+ "inputs": [
1768
1768
  {
1769
- name: "bot",
1770
- type: "address",
1771
- indexed: true,
1772
- internalType: "address"
1769
+ "name": "bot",
1770
+ "type": "address",
1771
+ "indexed": true,
1772
+ "internalType": "address"
1773
1773
  },
1774
1774
  {
1775
- name: "to",
1776
- type: "address",
1777
- indexed: true,
1778
- internalType: "address"
1775
+ "name": "to",
1776
+ "type": "address",
1777
+ "indexed": true,
1778
+ "internalType": "address"
1779
1779
  },
1780
1780
  {
1781
- name: "token",
1782
- type: "address",
1783
- indexed: true,
1784
- internalType: "address"
1781
+ "name": "token",
1782
+ "type": "address",
1783
+ "indexed": true,
1784
+ "internalType": "address"
1785
1785
  },
1786
1786
  {
1787
- name: "amount",
1788
- type: "uint256",
1789
- indexed: false,
1790
- internalType: "uint256"
1787
+ "name": "amount",
1788
+ "type": "uint256",
1789
+ "indexed": false,
1790
+ "internalType": "uint256"
1791
1791
  },
1792
1792
  {
1793
- name: "ref",
1794
- type: "bytes32",
1795
- indexed: false,
1796
- internalType: "bytes32"
1793
+ "name": "ref",
1794
+ "type": "bytes32",
1795
+ "indexed": false,
1796
+ "internalType": "bytes32"
1797
1797
  }
1798
1798
  ],
1799
- anonymous: false
1799
+ "anonymous": false
1800
1800
  },
1801
1801
  {
1802
- type: "event",
1803
- name: "ProtocolAdded",
1804
- inputs: [
1802
+ "type": "event",
1803
+ "name": "ProtocolAdded",
1804
+ "inputs": [
1805
1805
  {
1806
- name: "protocol",
1807
- type: "address",
1808
- indexed: true,
1809
- internalType: "address"
1806
+ "name": "protocol",
1807
+ "type": "address",
1808
+ "indexed": true,
1809
+ "internalType": "address"
1810
1810
  }
1811
1811
  ],
1812
- anonymous: false
1812
+ "anonymous": false
1813
1813
  },
1814
1814
  {
1815
- type: "event",
1816
- name: "ProtocolExecuted",
1817
- inputs: [
1815
+ "type": "event",
1816
+ "name": "ProtocolExecuted",
1817
+ "inputs": [
1818
1818
  {
1819
- name: "bot",
1820
- type: "address",
1821
- indexed: true,
1822
- internalType: "address"
1819
+ "name": "bot",
1820
+ "type": "address",
1821
+ "indexed": true,
1822
+ "internalType": "address"
1823
1823
  },
1824
1824
  {
1825
- name: "protocol",
1826
- type: "address",
1827
- indexed: true,
1828
- internalType: "address"
1825
+ "name": "protocol",
1826
+ "type": "address",
1827
+ "indexed": true,
1828
+ "internalType": "address"
1829
1829
  },
1830
1830
  {
1831
- name: "token",
1832
- type: "address",
1833
- indexed: false,
1834
- internalType: "address"
1831
+ "name": "token",
1832
+ "type": "address",
1833
+ "indexed": false,
1834
+ "internalType": "address"
1835
1835
  },
1836
1836
  {
1837
- name: "amount",
1838
- type: "uint256",
1839
- indexed: false,
1840
- internalType: "uint256"
1837
+ "name": "amount",
1838
+ "type": "uint256",
1839
+ "indexed": false,
1840
+ "internalType": "uint256"
1841
1841
  },
1842
1842
  {
1843
- name: "ref",
1844
- type: "bytes32",
1845
- indexed: false,
1846
- internalType: "bytes32"
1843
+ "name": "ref",
1844
+ "type": "bytes32",
1845
+ "indexed": false,
1846
+ "internalType": "bytes32"
1847
1847
  }
1848
1848
  ],
1849
- anonymous: false
1849
+ "anonymous": false
1850
1850
  },
1851
1851
  {
1852
- type: "event",
1853
- name: "ProtocolRemoved",
1854
- inputs: [
1852
+ "type": "event",
1853
+ "name": "ProtocolRemoved",
1854
+ "inputs": [
1855
1855
  {
1856
- name: "protocol",
1857
- type: "address",
1858
- indexed: true,
1859
- internalType: "address"
1856
+ "name": "protocol",
1857
+ "type": "address",
1858
+ "indexed": true,
1859
+ "internalType": "address"
1860
1860
  }
1861
1861
  ],
1862
- anonymous: false
1862
+ "anonymous": false
1863
1863
  },
1864
1864
  {
1865
- type: "event",
1866
- name: "RebalanceTokenAdded",
1867
- inputs: [
1865
+ "type": "event",
1866
+ "name": "RebalanceTokenAdded",
1867
+ "inputs": [
1868
1868
  {
1869
- name: "token",
1870
- type: "address",
1871
- indexed: true,
1872
- internalType: "address"
1869
+ "name": "token",
1870
+ "type": "address",
1871
+ "indexed": true,
1872
+ "internalType": "address"
1873
1873
  }
1874
1874
  ],
1875
- anonymous: false
1875
+ "anonymous": false
1876
1876
  },
1877
1877
  {
1878
- type: "event",
1879
- name: "RebalanceTokenRemoved",
1880
- inputs: [
1878
+ "type": "event",
1879
+ "name": "RebalanceTokenRemoved",
1880
+ "inputs": [
1881
1881
  {
1882
- name: "token",
1883
- type: "address",
1884
- indexed: true,
1885
- internalType: "address"
1882
+ "name": "token",
1883
+ "type": "address",
1884
+ "indexed": true,
1885
+ "internalType": "address"
1886
1886
  }
1887
1887
  ],
1888
- anonymous: false
1888
+ "anonymous": false
1889
1889
  },
1890
1890
  {
1891
- type: "event",
1892
- name: "SwapExecuted",
1893
- inputs: [
1891
+ "type": "event",
1892
+ "name": "SwapExecuted",
1893
+ "inputs": [
1894
1894
  {
1895
- name: "bot",
1896
- type: "address",
1897
- indexed: true,
1898
- internalType: "address"
1895
+ "name": "bot",
1896
+ "type": "address",
1897
+ "indexed": true,
1898
+ "internalType": "address"
1899
1899
  },
1900
1900
  {
1901
- name: "fromToken",
1902
- type: "address",
1903
- indexed: false,
1904
- internalType: "address"
1901
+ "name": "fromToken",
1902
+ "type": "address",
1903
+ "indexed": false,
1904
+ "internalType": "address"
1905
1905
  },
1906
1906
  {
1907
- name: "toToken",
1908
- type: "address",
1909
- indexed: false,
1910
- internalType: "address"
1907
+ "name": "toToken",
1908
+ "type": "address",
1909
+ "indexed": false,
1910
+ "internalType": "address"
1911
1911
  },
1912
1912
  {
1913
- name: "fromAmount",
1914
- type: "uint256",
1915
- indexed: false,
1916
- internalType: "uint256"
1913
+ "name": "fromAmount",
1914
+ "type": "uint256",
1915
+ "indexed": false,
1916
+ "internalType": "uint256"
1917
1917
  },
1918
1918
  {
1919
- name: "toAmount",
1920
- type: "uint256",
1921
- indexed: false,
1922
- internalType: "uint256"
1919
+ "name": "toAmount",
1920
+ "type": "uint256",
1921
+ "indexed": false,
1922
+ "internalType": "uint256"
1923
1923
  },
1924
1924
  {
1925
- name: "ref",
1926
- type: "bytes32",
1927
- indexed: false,
1928
- internalType: "bytes32"
1925
+ "name": "ref",
1926
+ "type": "bytes32",
1927
+ "indexed": false,
1928
+ "internalType": "bytes32"
1929
1929
  }
1930
1930
  ],
1931
- anonymous: false
1931
+ "anonymous": false
1932
1932
  },
1933
1933
  {
1934
- type: "event",
1935
- name: "SwapPaymentExecuted",
1936
- inputs: [
1934
+ "type": "event",
1935
+ "name": "SwapPaymentExecuted",
1936
+ "inputs": [
1937
1937
  {
1938
- name: "bot",
1939
- type: "address",
1940
- indexed: true,
1941
- internalType: "address"
1938
+ "name": "bot",
1939
+ "type": "address",
1940
+ "indexed": true,
1941
+ "internalType": "address"
1942
1942
  },
1943
1943
  {
1944
- name: "to",
1945
- type: "address",
1946
- indexed: true,
1947
- internalType: "address"
1944
+ "name": "to",
1945
+ "type": "address",
1946
+ "indexed": true,
1947
+ "internalType": "address"
1948
1948
  },
1949
1949
  {
1950
- name: "fromToken",
1951
- type: "address",
1952
- indexed: false,
1953
- internalType: "address"
1950
+ "name": "fromToken",
1951
+ "type": "address",
1952
+ "indexed": false,
1953
+ "internalType": "address"
1954
1954
  },
1955
1955
  {
1956
- name: "toToken",
1957
- type: "address",
1958
- indexed: false,
1959
- internalType: "address"
1956
+ "name": "toToken",
1957
+ "type": "address",
1958
+ "indexed": false,
1959
+ "internalType": "address"
1960
1960
  },
1961
1961
  {
1962
- name: "fromAmount",
1963
- type: "uint256",
1964
- indexed: false,
1965
- internalType: "uint256"
1962
+ "name": "fromAmount",
1963
+ "type": "uint256",
1964
+ "indexed": false,
1965
+ "internalType": "uint256"
1966
1966
  },
1967
1967
  {
1968
- name: "toAmount",
1969
- type: "uint256",
1970
- indexed: false,
1971
- internalType: "uint256"
1968
+ "name": "toAmount",
1969
+ "type": "uint256",
1970
+ "indexed": false,
1971
+ "internalType": "uint256"
1972
1972
  },
1973
1973
  {
1974
- name: "ref",
1975
- type: "bytes32",
1976
- indexed: false,
1977
- internalType: "bytes32"
1974
+ "name": "ref",
1975
+ "type": "bytes32",
1976
+ "indexed": false,
1977
+ "internalType": "bytes32"
1978
1978
  }
1979
1979
  ],
1980
- anonymous: false
1980
+ "anonymous": false
1981
1981
  },
1982
1982
  {
1983
- type: "event",
1984
- name: "Unpaused",
1985
- inputs: [
1983
+ "type": "event",
1984
+ "name": "Unpaused",
1985
+ "inputs": [
1986
1986
  {
1987
- name: "account",
1988
- type: "address",
1989
- indexed: false,
1990
- internalType: "address"
1987
+ "name": "account",
1988
+ "type": "address",
1989
+ "indexed": false,
1990
+ "internalType": "address"
1991
1991
  }
1992
1992
  ],
1993
- anonymous: false
1993
+ "anonymous": false
1994
1994
  },
1995
1995
  {
1996
- type: "event",
1997
- name: "Withdrawn",
1998
- inputs: [
1996
+ "type": "event",
1997
+ "name": "Withdrawn",
1998
+ "inputs": [
1999
1999
  {
2000
- name: "token",
2001
- type: "address",
2002
- indexed: true,
2003
- internalType: "address"
2000
+ "name": "token",
2001
+ "type": "address",
2002
+ "indexed": true,
2003
+ "internalType": "address"
2004
2004
  },
2005
2005
  {
2006
- name: "amount",
2007
- type: "uint256",
2008
- indexed: false,
2009
- internalType: "uint256"
2006
+ "name": "amount",
2007
+ "type": "uint256",
2008
+ "indexed": false,
2009
+ "internalType": "uint256"
2010
2010
  },
2011
2011
  {
2012
- name: "to",
2013
- type: "address",
2014
- indexed: true,
2015
- internalType: "address"
2012
+ "name": "to",
2013
+ "type": "address",
2014
+ "indexed": true,
2015
+ "internalType": "address"
2016
2016
  }
2017
2017
  ],
2018
- anonymous: false
2018
+ "anonymous": false
2019
2019
  },
2020
2020
  {
2021
- type: "error",
2022
- name: "AlreadyApprovedProtocol",
2023
- inputs: []
2021
+ "type": "error",
2022
+ "name": "AlreadyApprovedProtocol",
2023
+ "inputs": []
2024
2024
  },
2025
2025
  {
2026
- type: "error",
2027
- name: "AmountMismatch",
2028
- inputs: []
2026
+ "type": "error",
2027
+ "name": "AmountMismatch",
2028
+ "inputs": []
2029
2029
  },
2030
2030
  {
2031
- type: "error",
2032
- name: "BotAlreadyExists",
2033
- inputs: []
2031
+ "type": "error",
2032
+ "name": "BotAlreadyExists",
2033
+ "inputs": []
2034
2034
  },
2035
2035
  {
2036
- type: "error",
2037
- name: "BotDoesNotExist",
2038
- inputs: []
2036
+ "type": "error",
2037
+ "name": "BotDoesNotExist",
2038
+ "inputs": []
2039
2039
  },
2040
2040
  {
2041
- type: "error",
2042
- name: "BotNotActive",
2043
- inputs: []
2041
+ "type": "error",
2042
+ "name": "BotNotActive",
2043
+ "inputs": []
2044
2044
  },
2045
2045
  {
2046
- type: "error",
2047
- name: "CalldataHashMismatch",
2048
- inputs: []
2046
+ "type": "error",
2047
+ "name": "CalldataHashMismatch",
2048
+ "inputs": []
2049
2049
  },
2050
2050
  {
2051
- type: "error",
2052
- name: "DeadlineExpired",
2053
- inputs: []
2051
+ "type": "error",
2052
+ "name": "DeadlineExpired",
2053
+ "inputs": []
2054
2054
  },
2055
2055
  {
2056
- type: "error",
2057
- name: "DestinationBlacklisted",
2058
- inputs: []
2056
+ "type": "error",
2057
+ "name": "DestinationBlacklisted",
2058
+ "inputs": []
2059
2059
  },
2060
2060
  {
2061
- type: "error",
2062
- name: "DestinationNotWhitelisted",
2063
- inputs: []
2061
+ "type": "error",
2062
+ "name": "DestinationNotWhitelisted",
2063
+ "inputs": []
2064
2064
  },
2065
2065
  {
2066
- type: "error",
2067
- name: "ECDSAInvalidSignature",
2068
- inputs: []
2066
+ "type": "error",
2067
+ "name": "ECDSAInvalidSignature",
2068
+ "inputs": []
2069
2069
  },
2070
2070
  {
2071
- type: "error",
2072
- name: "ECDSAInvalidSignatureLength",
2073
- inputs: [
2071
+ "type": "error",
2072
+ "name": "ECDSAInvalidSignatureLength",
2073
+ "inputs": [
2074
2074
  {
2075
- name: "length",
2076
- type: "uint256",
2077
- internalType: "uint256"
2075
+ "name": "length",
2076
+ "type": "uint256",
2077
+ "internalType": "uint256"
2078
2078
  }
2079
2079
  ]
2080
2080
  },
2081
2081
  {
2082
- type: "error",
2083
- name: "ECDSAInvalidSignatureS",
2084
- inputs: [
2082
+ "type": "error",
2083
+ "name": "ECDSAInvalidSignatureS",
2084
+ "inputs": [
2085
2085
  {
2086
- name: "s",
2087
- type: "bytes32",
2088
- internalType: "bytes32"
2086
+ "name": "s",
2087
+ "type": "bytes32",
2088
+ "internalType": "bytes32"
2089
2089
  }
2090
2090
  ]
2091
2091
  },
2092
2092
  {
2093
- type: "error",
2094
- name: "EnforcedPause",
2095
- inputs: []
2093
+ "type": "error",
2094
+ "name": "EnforcedPause",
2095
+ "inputs": []
2096
2096
  },
2097
2097
  {
2098
- type: "error",
2099
- name: "ExceedsOperatorCeiling",
2100
- inputs: []
2098
+ "type": "error",
2099
+ "name": "ExceedsOperatorCeiling",
2100
+ "inputs": []
2101
2101
  },
2102
2102
  {
2103
- type: "error",
2104
- name: "ExpectedPause",
2105
- inputs: []
2103
+ "type": "error",
2104
+ "name": "ExpectedPause",
2105
+ "inputs": []
2106
2106
  },
2107
2107
  {
2108
- type: "error",
2109
- name: "InsufficientBalance",
2110
- inputs: []
2108
+ "type": "error",
2109
+ "name": "InsufficientBalance",
2110
+ "inputs": []
2111
2111
  },
2112
2112
  {
2113
- type: "error",
2114
- name: "IntentAlreadyUsed",
2115
- inputs: []
2113
+ "type": "error",
2114
+ "name": "IntentAlreadyUsed",
2115
+ "inputs": []
2116
2116
  },
2117
2117
  {
2118
- type: "error",
2119
- name: "InvalidShortString",
2120
- inputs: []
2118
+ "type": "error",
2119
+ "name": "InvalidShortString",
2120
+ "inputs": []
2121
2121
  },
2122
2122
  {
2123
- type: "error",
2124
- name: "InvalidSignature",
2125
- inputs: []
2123
+ "type": "error",
2124
+ "name": "InvalidSignature",
2125
+ "inputs": []
2126
2126
  },
2127
2127
  {
2128
- type: "error",
2129
- name: "MaxPerTxExceeded",
2130
- inputs: []
2128
+ "type": "error",
2129
+ "name": "MaxPerTxExceeded",
2130
+ "inputs": []
2131
2131
  },
2132
2132
  {
2133
- type: "error",
2134
- name: "MaxRebalanceAmountExceeded",
2135
- inputs: []
2133
+ "type": "error",
2134
+ "name": "MaxRebalanceAmountExceeded",
2135
+ "inputs": []
2136
2136
  },
2137
2137
  {
2138
- type: "error",
2139
- name: "NativeTransferFailed",
2140
- inputs: []
2138
+ "type": "error",
2139
+ "name": "NativeTransferFailed",
2140
+ "inputs": []
2141
2141
  },
2142
2142
  {
2143
- type: "error",
2144
- name: "NotAuthorized",
2145
- inputs: []
2143
+ "type": "error",
2144
+ "name": "NotAuthorized",
2145
+ "inputs": []
2146
2146
  },
2147
2147
  {
2148
- type: "error",
2149
- name: "NotAuthorizedRelayer",
2150
- inputs: []
2148
+ "type": "error",
2149
+ "name": "NotAuthorizedRelayer",
2150
+ "inputs": []
2151
2151
  },
2152
2152
  {
2153
- type: "error",
2154
- name: "OperatorBotLimitReached",
2155
- inputs: []
2153
+ "type": "error",
2154
+ "name": "OperatorBotLimitReached",
2155
+ "inputs": []
2156
2156
  },
2157
2157
  {
2158
- type: "error",
2159
- name: "OperatorCannotBeOwner",
2160
- inputs: []
2158
+ "type": "error",
2159
+ "name": "OperatorCannotBeOwner",
2160
+ "inputs": []
2161
2161
  },
2162
2162
  {
2163
- type: "error",
2164
- name: "OracleNotConfigured",
2165
- inputs: []
2163
+ "type": "error",
2164
+ "name": "OracleNotConfigured",
2165
+ "inputs": []
2166
2166
  },
2167
2167
  {
2168
- type: "error",
2169
- name: "OracleUnavailable",
2170
- inputs: []
2168
+ "type": "error",
2169
+ "name": "OracleUnavailable",
2170
+ "inputs": []
2171
2171
  },
2172
2172
  {
2173
- type: "error",
2174
- name: "OwnableInvalidOwner",
2175
- inputs: [
2173
+ "type": "error",
2174
+ "name": "OwnableInvalidOwner",
2175
+ "inputs": [
2176
2176
  {
2177
- name: "owner",
2178
- type: "address",
2179
- internalType: "address"
2177
+ "name": "owner",
2178
+ "type": "address",
2179
+ "internalType": "address"
2180
2180
  }
2181
2181
  ]
2182
2182
  },
2183
2183
  {
2184
- type: "error",
2185
- name: "OwnableUnauthorizedAccount",
2186
- inputs: [
2184
+ "type": "error",
2185
+ "name": "OwnableUnauthorizedAccount",
2186
+ "inputs": [
2187
2187
  {
2188
- name: "account",
2189
- type: "address",
2190
- internalType: "address"
2188
+ "name": "account",
2189
+ "type": "address",
2190
+ "internalType": "address"
2191
2191
  }
2192
2192
  ]
2193
2193
  },
2194
2194
  {
2195
- type: "error",
2196
- name: "OwnerCannotBeBot",
2197
- inputs: []
2195
+ "type": "error",
2196
+ "name": "OwnerCannotBeBot",
2197
+ "inputs": []
2198
2198
  },
2199
2199
  {
2200
- type: "error",
2201
- name: "PaymentToZeroAddress",
2202
- inputs: []
2200
+ "type": "error",
2201
+ "name": "PaymentToZeroAddress",
2202
+ "inputs": []
2203
2203
  },
2204
2204
  {
2205
- type: "error",
2206
- name: "ProtocolCallFailed",
2207
- inputs: []
2205
+ "type": "error",
2206
+ "name": "ProtocolCallFailed",
2207
+ "inputs": []
2208
2208
  },
2209
2209
  {
2210
- type: "error",
2211
- name: "ProtocolNotApproved",
2212
- inputs: []
2210
+ "type": "error",
2211
+ "name": "ProtocolNotApproved",
2212
+ "inputs": []
2213
2213
  },
2214
2214
  {
2215
- type: "error",
2216
- name: "ProtocolNotInList",
2217
- inputs: []
2215
+ "type": "error",
2216
+ "name": "ProtocolNotInList",
2217
+ "inputs": []
2218
2218
  },
2219
2219
  {
2220
- type: "error",
2221
- name: "RebalanceTokenNotAllowed",
2222
- inputs: []
2220
+ "type": "error",
2221
+ "name": "RebalanceTokenNotAllowed",
2222
+ "inputs": []
2223
2223
  },
2224
2224
  {
2225
- type: "error",
2226
- name: "ReentrancyGuardReentrantCall",
2227
- inputs: []
2225
+ "type": "error",
2226
+ "name": "ReentrancyGuardReentrantCall",
2227
+ "inputs": []
2228
2228
  },
2229
2229
  {
2230
- type: "error",
2231
- name: "RouterNotApproved",
2232
- inputs: []
2230
+ "type": "error",
2231
+ "name": "RouterNotApproved",
2232
+ "inputs": []
2233
2233
  },
2234
2234
  {
2235
- type: "error",
2236
- name: "SafeERC20FailedOperation",
2237
- inputs: [
2235
+ "type": "error",
2236
+ "name": "SafeERC20FailedOperation",
2237
+ "inputs": [
2238
2238
  {
2239
- name: "token",
2240
- type: "address",
2241
- internalType: "address"
2239
+ "name": "token",
2240
+ "type": "address",
2241
+ "internalType": "address"
2242
2242
  }
2243
2243
  ]
2244
2244
  },
2245
2245
  {
2246
- type: "error",
2247
- name: "SelfPayment",
2248
- inputs: []
2246
+ "type": "error",
2247
+ "name": "SelfPayment",
2248
+ "inputs": []
2249
2249
  },
2250
2250
  {
2251
- type: "error",
2252
- name: "StringTooLong",
2253
- inputs: [
2251
+ "type": "error",
2252
+ "name": "StringTooLong",
2253
+ "inputs": [
2254
2254
  {
2255
- name: "str",
2256
- type: "string",
2257
- internalType: "string"
2255
+ "name": "str",
2256
+ "type": "string",
2257
+ "internalType": "string"
2258
2258
  }
2259
2259
  ]
2260
2260
  },
2261
2261
  {
2262
- type: "error",
2263
- name: "SwapFailed",
2264
- inputs: []
2262
+ "type": "error",
2263
+ "name": "SwapFailed",
2264
+ "inputs": []
2265
2265
  },
2266
2266
  {
2267
- type: "error",
2268
- name: "SwapOutputInsufficient",
2269
- inputs: []
2267
+ "type": "error",
2268
+ "name": "SwapOutputInsufficient",
2269
+ "inputs": []
2270
2270
  },
2271
2271
  {
2272
- type: "error",
2273
- name: "TooManySpendingLimits",
2274
- inputs: []
2272
+ "type": "error",
2273
+ "name": "TooManySpendingLimits",
2274
+ "inputs": []
2275
2275
  },
2276
2276
  {
2277
- type: "error",
2278
- name: "UnexpectedETH",
2279
- inputs: []
2277
+ "type": "error",
2278
+ "name": "UnexpectedETH",
2279
+ "inputs": []
2280
2280
  },
2281
2281
  {
2282
- type: "error",
2283
- name: "ZeroAddress",
2284
- inputs: []
2282
+ "type": "error",
2283
+ "name": "ZeroAddress",
2284
+ "inputs": []
2285
2285
  },
2286
2286
  {
2287
- type: "error",
2288
- name: "ZeroAmount",
2289
- inputs: []
2287
+ "type": "error",
2288
+ "name": "ZeroAmount",
2289
+ "inputs": []
2290
2290
  }
2291
2291
  ];
2292
2292
 
2293
2293
  // src/abis/AxonVaultFactory.ts
2294
2294
  var AxonVaultFactoryAbi = [
2295
2295
  {
2296
- type: "constructor",
2297
- inputs: [
2296
+ "type": "constructor",
2297
+ "inputs": [
2298
2298
  {
2299
- name: "_axonRegistry",
2300
- type: "address",
2301
- internalType: "address"
2299
+ "name": "_axonRegistry",
2300
+ "type": "address",
2301
+ "internalType": "address"
2302
2302
  },
2303
2303
  {
2304
- name: "factoryOwner",
2305
- type: "address",
2306
- internalType: "address"
2304
+ "name": "factoryOwner",
2305
+ "type": "address",
2306
+ "internalType": "address"
2307
2307
  }
2308
2308
  ],
2309
- stateMutability: "nonpayable"
2309
+ "stateMutability": "nonpayable"
2310
2310
  },
2311
2311
  {
2312
- type: "function",
2313
- name: "acceptOwnership",
2314
- inputs: [],
2315
- outputs: [],
2316
- stateMutability: "nonpayable"
2312
+ "type": "function",
2313
+ "name": "acceptOwnership",
2314
+ "inputs": [],
2315
+ "outputs": [],
2316
+ "stateMutability": "nonpayable"
2317
2317
  },
2318
2318
  {
2319
- type: "function",
2320
- name: "allVaults",
2321
- inputs: [
2319
+ "type": "function",
2320
+ "name": "allVaults",
2321
+ "inputs": [
2322
2322
  {
2323
- name: "",
2324
- type: "uint256",
2325
- internalType: "uint256"
2323
+ "name": "",
2324
+ "type": "uint256",
2325
+ "internalType": "uint256"
2326
2326
  }
2327
2327
  ],
2328
- outputs: [
2328
+ "outputs": [
2329
2329
  {
2330
- name: "",
2331
- type: "address",
2332
- internalType: "address"
2330
+ "name": "",
2331
+ "type": "address",
2332
+ "internalType": "address"
2333
2333
  }
2334
2334
  ],
2335
- stateMutability: "view"
2335
+ "stateMutability": "view"
2336
2336
  },
2337
2337
  {
2338
- type: "function",
2339
- name: "axonRegistry",
2340
- inputs: [],
2341
- outputs: [
2338
+ "type": "function",
2339
+ "name": "axonRegistry",
2340
+ "inputs": [],
2341
+ "outputs": [
2342
2342
  {
2343
- name: "",
2344
- type: "address",
2345
- internalType: "address"
2343
+ "name": "",
2344
+ "type": "address",
2345
+ "internalType": "address"
2346
2346
  }
2347
2347
  ],
2348
- stateMutability: "view"
2348
+ "stateMutability": "view"
2349
2349
  },
2350
2350
  {
2351
- type: "function",
2352
- name: "deployVault",
2353
- inputs: [
2351
+ "type": "function",
2352
+ "name": "deployVault",
2353
+ "inputs": [
2354
2354
  {
2355
- name: "trackUsedIntents",
2356
- type: "bool",
2357
- internalType: "bool"
2355
+ "name": "trackUsedIntents",
2356
+ "type": "bool",
2357
+ "internalType": "bool"
2358
2358
  }
2359
2359
  ],
2360
- outputs: [
2360
+ "outputs": [
2361
2361
  {
2362
- name: "vault",
2363
- type: "address",
2364
- internalType: "address"
2362
+ "name": "vault",
2363
+ "type": "address",
2364
+ "internalType": "address"
2365
2365
  }
2366
2366
  ],
2367
- stateMutability: "nonpayable"
2367
+ "stateMutability": "nonpayable"
2368
2368
  },
2369
2369
  {
2370
- type: "function",
2371
- name: "owner",
2372
- inputs: [],
2373
- outputs: [
2370
+ "type": "function",
2371
+ "name": "owner",
2372
+ "inputs": [],
2373
+ "outputs": [
2374
2374
  {
2375
- name: "",
2376
- type: "address",
2377
- internalType: "address"
2375
+ "name": "",
2376
+ "type": "address",
2377
+ "internalType": "address"
2378
2378
  }
2379
2379
  ],
2380
- stateMutability: "view"
2380
+ "stateMutability": "view"
2381
2381
  },
2382
2382
  {
2383
- type: "function",
2384
- name: "ownerVaultCount",
2385
- inputs: [
2383
+ "type": "function",
2384
+ "name": "ownerVaultCount",
2385
+ "inputs": [
2386
2386
  {
2387
- name: "owner",
2388
- type: "address",
2389
- internalType: "address"
2387
+ "name": "owner",
2388
+ "type": "address",
2389
+ "internalType": "address"
2390
2390
  }
2391
2391
  ],
2392
- outputs: [
2392
+ "outputs": [
2393
2393
  {
2394
- name: "",
2395
- type: "uint256",
2396
- internalType: "uint256"
2394
+ "name": "",
2395
+ "type": "uint256",
2396
+ "internalType": "uint256"
2397
2397
  }
2398
2398
  ],
2399
- stateMutability: "view"
2399
+ "stateMutability": "view"
2400
2400
  },
2401
2401
  {
2402
- type: "function",
2403
- name: "ownerVaults",
2404
- inputs: [
2402
+ "type": "function",
2403
+ "name": "ownerVaults",
2404
+ "inputs": [
2405
2405
  {
2406
- name: "",
2407
- type: "address",
2408
- internalType: "address"
2406
+ "name": "",
2407
+ "type": "address",
2408
+ "internalType": "address"
2409
2409
  },
2410
2410
  {
2411
- name: "",
2412
- type: "uint256",
2413
- internalType: "uint256"
2411
+ "name": "",
2412
+ "type": "uint256",
2413
+ "internalType": "uint256"
2414
2414
  }
2415
2415
  ],
2416
- outputs: [
2416
+ "outputs": [
2417
2417
  {
2418
- name: "",
2419
- type: "address",
2420
- internalType: "address"
2418
+ "name": "",
2419
+ "type": "address",
2420
+ "internalType": "address"
2421
2421
  }
2422
2422
  ],
2423
- stateMutability: "view"
2423
+ "stateMutability": "view"
2424
2424
  },
2425
2425
  {
2426
- type: "function",
2427
- name: "pendingOwner",
2428
- inputs: [],
2429
- outputs: [
2426
+ "type": "function",
2427
+ "name": "pendingOwner",
2428
+ "inputs": [],
2429
+ "outputs": [
2430
2430
  {
2431
- name: "",
2432
- type: "address",
2433
- internalType: "address"
2431
+ "name": "",
2432
+ "type": "address",
2433
+ "internalType": "address"
2434
2434
  }
2435
2435
  ],
2436
- stateMutability: "view"
2436
+ "stateMutability": "view"
2437
2437
  },
2438
2438
  {
2439
- type: "function",
2440
- name: "renounceOwnership",
2441
- inputs: [],
2442
- outputs: [],
2443
- stateMutability: "nonpayable"
2439
+ "type": "function",
2440
+ "name": "renounceOwnership",
2441
+ "inputs": [],
2442
+ "outputs": [],
2443
+ "stateMutability": "nonpayable"
2444
2444
  },
2445
2445
  {
2446
- type: "function",
2447
- name: "transferOwnership",
2448
- inputs: [
2446
+ "type": "function",
2447
+ "name": "transferOwnership",
2448
+ "inputs": [
2449
2449
  {
2450
- name: "newOwner",
2451
- type: "address",
2452
- internalType: "address"
2450
+ "name": "newOwner",
2451
+ "type": "address",
2452
+ "internalType": "address"
2453
2453
  }
2454
2454
  ],
2455
- outputs: [],
2456
- stateMutability: "nonpayable"
2455
+ "outputs": [],
2456
+ "stateMutability": "nonpayable"
2457
2457
  },
2458
2458
  {
2459
- type: "function",
2460
- name: "vaultCount",
2461
- inputs: [],
2462
- outputs: [
2459
+ "type": "function",
2460
+ "name": "vaultCount",
2461
+ "inputs": [],
2462
+ "outputs": [
2463
2463
  {
2464
- name: "",
2465
- type: "uint256",
2466
- internalType: "uint256"
2464
+ "name": "",
2465
+ "type": "uint256",
2466
+ "internalType": "uint256"
2467
2467
  }
2468
2468
  ],
2469
- stateMutability: "view"
2469
+ "stateMutability": "view"
2470
2470
  },
2471
2471
  {
2472
- type: "event",
2473
- name: "OwnershipTransferStarted",
2474
- inputs: [
2472
+ "type": "event",
2473
+ "name": "OwnershipTransferStarted",
2474
+ "inputs": [
2475
2475
  {
2476
- name: "previousOwner",
2477
- type: "address",
2478
- indexed: true,
2479
- internalType: "address"
2476
+ "name": "previousOwner",
2477
+ "type": "address",
2478
+ "indexed": true,
2479
+ "internalType": "address"
2480
2480
  },
2481
2481
  {
2482
- name: "newOwner",
2483
- type: "address",
2484
- indexed: true,
2485
- internalType: "address"
2482
+ "name": "newOwner",
2483
+ "type": "address",
2484
+ "indexed": true,
2485
+ "internalType": "address"
2486
2486
  }
2487
2487
  ],
2488
- anonymous: false
2488
+ "anonymous": false
2489
2489
  },
2490
2490
  {
2491
- type: "event",
2492
- name: "OwnershipTransferred",
2493
- inputs: [
2491
+ "type": "event",
2492
+ "name": "OwnershipTransferred",
2493
+ "inputs": [
2494
2494
  {
2495
- name: "previousOwner",
2496
- type: "address",
2497
- indexed: true,
2498
- internalType: "address"
2495
+ "name": "previousOwner",
2496
+ "type": "address",
2497
+ "indexed": true,
2498
+ "internalType": "address"
2499
2499
  },
2500
2500
  {
2501
- name: "newOwner",
2502
- type: "address",
2503
- indexed: true,
2504
- internalType: "address"
2501
+ "name": "newOwner",
2502
+ "type": "address",
2503
+ "indexed": true,
2504
+ "internalType": "address"
2505
2505
  }
2506
2506
  ],
2507
- anonymous: false
2507
+ "anonymous": false
2508
2508
  },
2509
2509
  {
2510
- type: "event",
2511
- name: "VaultDeployed",
2512
- inputs: [
2510
+ "type": "event",
2511
+ "name": "VaultDeployed",
2512
+ "inputs": [
2513
2513
  {
2514
- name: "owner",
2515
- type: "address",
2516
- indexed: true,
2517
- internalType: "address"
2514
+ "name": "owner",
2515
+ "type": "address",
2516
+ "indexed": true,
2517
+ "internalType": "address"
2518
2518
  },
2519
2519
  {
2520
- name: "vault",
2521
- type: "address",
2522
- indexed: true,
2523
- internalType: "address"
2520
+ "name": "vault",
2521
+ "type": "address",
2522
+ "indexed": true,
2523
+ "internalType": "address"
2524
2524
  },
2525
2525
  {
2526
- name: "version",
2527
- type: "uint16",
2528
- indexed: false,
2529
- internalType: "uint16"
2526
+ "name": "version",
2527
+ "type": "uint16",
2528
+ "indexed": false,
2529
+ "internalType": "uint16"
2530
2530
  },
2531
2531
  {
2532
- name: "axonRegistry",
2533
- type: "address",
2534
- indexed: false,
2535
- internalType: "address"
2532
+ "name": "axonRegistry",
2533
+ "type": "address",
2534
+ "indexed": false,
2535
+ "internalType": "address"
2536
2536
  },
2537
2537
  {
2538
- name: "trackUsedIntents",
2539
- type: "bool",
2540
- indexed: false,
2541
- internalType: "bool"
2538
+ "name": "trackUsedIntents",
2539
+ "type": "bool",
2540
+ "indexed": false,
2541
+ "internalType": "bool"
2542
2542
  }
2543
2543
  ],
2544
- anonymous: false
2544
+ "anonymous": false
2545
2545
  },
2546
2546
  {
2547
- type: "error",
2548
- name: "OwnableInvalidOwner",
2549
- inputs: [
2547
+ "type": "error",
2548
+ "name": "OwnableInvalidOwner",
2549
+ "inputs": [
2550
2550
  {
2551
- name: "owner",
2552
- type: "address",
2553
- internalType: "address"
2551
+ "name": "owner",
2552
+ "type": "address",
2553
+ "internalType": "address"
2554
2554
  }
2555
2555
  ]
2556
2556
  },
2557
2557
  {
2558
- type: "error",
2559
- name: "OwnableUnauthorizedAccount",
2560
- inputs: [
2558
+ "type": "error",
2559
+ "name": "OwnableUnauthorizedAccount",
2560
+ "inputs": [
2561
2561
  {
2562
- name: "account",
2563
- type: "address",
2564
- internalType: "address"
2562
+ "name": "account",
2563
+ "type": "address",
2564
+ "internalType": "address"
2565
2565
  }
2566
2566
  ]
2567
2567
  },
2568
2568
  {
2569
- type: "error",
2570
- name: "ZeroAddress",
2571
- inputs: []
2569
+ "type": "error",
2570
+ "name": "ZeroAddress",
2571
+ "inputs": []
2572
2572
  }
2573
2573
  ];
2574
2574
 
@@ -3007,6 +3007,42 @@ function resolveToken(token, chainId) {
3007
3007
  }
3008
3008
  return addr;
3009
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
+ }
3010
3046
 
3011
3047
  // src/utils.ts
3012
3048
  function generateUuid() {
@@ -3284,7 +3320,7 @@ Timestamp: ${timestamp}`;
3284
3320
  bot: this.botAddress,
3285
3321
  to: input.to,
3286
3322
  token: resolveToken(input.token, this.chainId),
3287
- amount: input.amount,
3323
+ amount: parseAmount(input.amount, input.token, this.chainId),
3288
3324
  deadline: input.deadline ?? this._defaultDeadline(),
3289
3325
  ref: this._resolveRef(input.memo, input.ref)
3290
3326
  };
@@ -3295,7 +3331,7 @@ Timestamp: ${timestamp}`;
3295
3331
  protocol: input.protocol,
3296
3332
  calldataHash: viem.keccak256(input.callData),
3297
3333
  token: resolveToken(input.token, this.chainId),
3298
- amount: input.amount,
3334
+ amount: parseAmount(input.amount, input.token, this.chainId),
3299
3335
  deadline: input.deadline ?? this._defaultDeadline(),
3300
3336
  ref: this._resolveRef(input.memo, input.ref)
3301
3337
  };
@@ -3304,7 +3340,7 @@ Timestamp: ${timestamp}`;
3304
3340
  return {
3305
3341
  bot: this.botAddress,
3306
3342
  toToken: resolveToken(input.toToken, this.chainId),
3307
- minToAmount: input.minToAmount,
3343
+ minToAmount: parseAmount(input.minToAmount, input.toToken, this.chainId),
3308
3344
  deadline: input.deadline ?? this._defaultDeadline(),
3309
3345
  ref: this._resolveRef(input.memo, input.ref)
3310
3346
  };
@@ -3336,6 +3372,8 @@ Timestamp: ${timestamp}`;
3336
3372
  }
3337
3373
  async _submitExecute(intent, signature, input) {
3338
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;
3339
3377
  const body = {
3340
3378
  chainId: this.chainId,
3341
3379
  vaultAddress: this.vaultAddress,
@@ -3351,8 +3389,8 @@ Timestamp: ${timestamp}`;
3351
3389
  // Protocol calldata
3352
3390
  callData: input.callData,
3353
3391
  // Optional pre-swap
3354
- ...input.fromToken !== void 0 && { fromToken: input.fromToken },
3355
- ...input.maxFromAmount !== void 0 && { maxFromAmount: input.maxFromAmount.toString() },
3392
+ ...fromToken !== void 0 && { fromToken },
3393
+ ...maxFromAmount !== void 0 && { maxFromAmount: maxFromAmount.toString() },
3356
3394
  // Off-chain metadata
3357
3395
  idempotencyKey,
3358
3396
  ...input.memo !== void 0 && { memo: input.memo },
@@ -3363,6 +3401,8 @@ Timestamp: ${timestamp}`;
3363
3401
  }
3364
3402
  async _submitSwap(intent, signature, input) {
3365
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;
3366
3406
  const body = {
3367
3407
  chainId: this.chainId,
3368
3408
  vaultAddress: this.vaultAddress,
@@ -3374,8 +3414,8 @@ Timestamp: ${timestamp}`;
3374
3414
  ref: intent.ref,
3375
3415
  signature,
3376
3416
  // Optional source token
3377
- ...input.fromToken !== void 0 && { fromToken: input.fromToken },
3378
- ...input.maxFromAmount !== void 0 && { maxFromAmount: input.maxFromAmount.toString() },
3417
+ ...fromToken !== void 0 && { fromToken },
3418
+ ...maxFromAmount !== void 0 && { maxFromAmount: maxFromAmount.toString() },
3379
3419
  // Off-chain metadata
3380
3420
  idempotencyKey,
3381
3421
  ...input.memo !== void 0 && { memo: input.memo }
@@ -3506,382 +3546,382 @@ async function decryptKeystore(keystore, passphrase) {
3506
3546
  // src/abis/AxonRegistry.ts
3507
3547
  var AxonRegistryAbi = [
3508
3548
  {
3509
- type: "constructor",
3510
- inputs: [
3549
+ "type": "constructor",
3550
+ "inputs": [
3511
3551
  {
3512
- name: "initialOwner",
3513
- type: "address",
3514
- internalType: "address"
3552
+ "name": "initialOwner",
3553
+ "type": "address",
3554
+ "internalType": "address"
3515
3555
  }
3516
3556
  ],
3517
- stateMutability: "nonpayable"
3557
+ "stateMutability": "nonpayable"
3518
3558
  },
3519
3559
  {
3520
- type: "function",
3521
- name: "acceptOwnership",
3522
- inputs: [],
3523
- outputs: [],
3524
- stateMutability: "nonpayable"
3560
+ "type": "function",
3561
+ "name": "acceptOwnership",
3562
+ "inputs": [],
3563
+ "outputs": [],
3564
+ "stateMutability": "nonpayable"
3525
3565
  },
3526
3566
  {
3527
- type: "function",
3528
- name: "addRelayer",
3529
- inputs: [
3567
+ "type": "function",
3568
+ "name": "addRelayer",
3569
+ "inputs": [
3530
3570
  {
3531
- name: "relayer",
3532
- type: "address",
3533
- internalType: "address"
3571
+ "name": "relayer",
3572
+ "type": "address",
3573
+ "internalType": "address"
3534
3574
  }
3535
3575
  ],
3536
- outputs: [],
3537
- stateMutability: "nonpayable"
3576
+ "outputs": [],
3577
+ "stateMutability": "nonpayable"
3538
3578
  },
3539
3579
  {
3540
- type: "function",
3541
- name: "addSwapRouter",
3542
- inputs: [
3580
+ "type": "function",
3581
+ "name": "addSwapRouter",
3582
+ "inputs": [
3543
3583
  {
3544
- name: "router",
3545
- type: "address",
3546
- internalType: "address"
3584
+ "name": "router",
3585
+ "type": "address",
3586
+ "internalType": "address"
3547
3587
  }
3548
3588
  ],
3549
- outputs: [],
3550
- stateMutability: "nonpayable"
3589
+ "outputs": [],
3590
+ "stateMutability": "nonpayable"
3551
3591
  },
3552
3592
  {
3553
- type: "function",
3554
- name: "isApprovedSwapRouter",
3555
- inputs: [
3593
+ "type": "function",
3594
+ "name": "isApprovedSwapRouter",
3595
+ "inputs": [
3556
3596
  {
3557
- name: "router",
3558
- type: "address",
3559
- internalType: "address"
3597
+ "name": "router",
3598
+ "type": "address",
3599
+ "internalType": "address"
3560
3600
  }
3561
3601
  ],
3562
- outputs: [
3602
+ "outputs": [
3563
3603
  {
3564
- name: "",
3565
- type: "bool",
3566
- internalType: "bool"
3604
+ "name": "",
3605
+ "type": "bool",
3606
+ "internalType": "bool"
3567
3607
  }
3568
3608
  ],
3569
- stateMutability: "view"
3609
+ "stateMutability": "view"
3570
3610
  },
3571
3611
  {
3572
- type: "function",
3573
- name: "isAuthorized",
3574
- inputs: [
3612
+ "type": "function",
3613
+ "name": "isAuthorized",
3614
+ "inputs": [
3575
3615
  {
3576
- name: "relayer",
3577
- type: "address",
3578
- internalType: "address"
3616
+ "name": "relayer",
3617
+ "type": "address",
3618
+ "internalType": "address"
3579
3619
  }
3580
3620
  ],
3581
- outputs: [
3621
+ "outputs": [
3582
3622
  {
3583
- name: "",
3584
- type: "bool",
3585
- internalType: "bool"
3623
+ "name": "",
3624
+ "type": "bool",
3625
+ "internalType": "bool"
3586
3626
  }
3587
3627
  ],
3588
- stateMutability: "view"
3628
+ "stateMutability": "view"
3589
3629
  },
3590
3630
  {
3591
- type: "function",
3592
- name: "owner",
3593
- inputs: [],
3594
- outputs: [
3631
+ "type": "function",
3632
+ "name": "owner",
3633
+ "inputs": [],
3634
+ "outputs": [
3595
3635
  {
3596
- name: "",
3597
- type: "address",
3598
- internalType: "address"
3636
+ "name": "",
3637
+ "type": "address",
3638
+ "internalType": "address"
3599
3639
  }
3600
3640
  ],
3601
- stateMutability: "view"
3641
+ "stateMutability": "view"
3602
3642
  },
3603
3643
  {
3604
- type: "function",
3605
- name: "pendingOwner",
3606
- inputs: [],
3607
- outputs: [
3644
+ "type": "function",
3645
+ "name": "pendingOwner",
3646
+ "inputs": [],
3647
+ "outputs": [
3608
3648
  {
3609
- name: "",
3610
- type: "address",
3611
- internalType: "address"
3649
+ "name": "",
3650
+ "type": "address",
3651
+ "internalType": "address"
3612
3652
  }
3613
3653
  ],
3614
- stateMutability: "view"
3654
+ "stateMutability": "view"
3615
3655
  },
3616
3656
  {
3617
- type: "function",
3618
- name: "removeRelayer",
3619
- inputs: [
3657
+ "type": "function",
3658
+ "name": "removeRelayer",
3659
+ "inputs": [
3620
3660
  {
3621
- name: "relayer",
3622
- type: "address",
3623
- internalType: "address"
3661
+ "name": "relayer",
3662
+ "type": "address",
3663
+ "internalType": "address"
3624
3664
  }
3625
3665
  ],
3626
- outputs: [],
3627
- stateMutability: "nonpayable"
3666
+ "outputs": [],
3667
+ "stateMutability": "nonpayable"
3628
3668
  },
3629
3669
  {
3630
- type: "function",
3631
- name: "removeSwapRouter",
3632
- inputs: [
3670
+ "type": "function",
3671
+ "name": "removeSwapRouter",
3672
+ "inputs": [
3633
3673
  {
3634
- name: "router",
3635
- type: "address",
3636
- internalType: "address"
3674
+ "name": "router",
3675
+ "type": "address",
3676
+ "internalType": "address"
3637
3677
  }
3638
3678
  ],
3639
- outputs: [],
3640
- stateMutability: "nonpayable"
3679
+ "outputs": [],
3680
+ "stateMutability": "nonpayable"
3641
3681
  },
3642
3682
  {
3643
- type: "function",
3644
- name: "renounceOwnership",
3645
- inputs: [],
3646
- outputs: [],
3647
- stateMutability: "nonpayable"
3683
+ "type": "function",
3684
+ "name": "renounceOwnership",
3685
+ "inputs": [],
3686
+ "outputs": [],
3687
+ "stateMutability": "nonpayable"
3648
3688
  },
3649
3689
  {
3650
- type: "function",
3651
- name: "setOracleConfig",
3652
- inputs: [
3690
+ "type": "function",
3691
+ "name": "setOracleConfig",
3692
+ "inputs": [
3653
3693
  {
3654
- name: "uniV3Factory",
3655
- type: "address",
3656
- internalType: "address"
3694
+ "name": "uniV3Factory",
3695
+ "type": "address",
3696
+ "internalType": "address"
3657
3697
  },
3658
3698
  {
3659
- name: "usdc",
3660
- type: "address",
3661
- internalType: "address"
3699
+ "name": "usdc",
3700
+ "type": "address",
3701
+ "internalType": "address"
3662
3702
  },
3663
3703
  {
3664
- name: "weth",
3665
- type: "address",
3666
- internalType: "address"
3704
+ "name": "weth",
3705
+ "type": "address",
3706
+ "internalType": "address"
3667
3707
  }
3668
3708
  ],
3669
- outputs: [],
3670
- stateMutability: "nonpayable"
3709
+ "outputs": [],
3710
+ "stateMutability": "nonpayable"
3671
3711
  },
3672
3712
  {
3673
- type: "function",
3674
- name: "transferOwnership",
3675
- inputs: [
3713
+ "type": "function",
3714
+ "name": "transferOwnership",
3715
+ "inputs": [
3676
3716
  {
3677
- name: "newOwner",
3678
- type: "address",
3679
- internalType: "address"
3717
+ "name": "newOwner",
3718
+ "type": "address",
3719
+ "internalType": "address"
3680
3720
  }
3681
3721
  ],
3682
- outputs: [],
3683
- stateMutability: "nonpayable"
3722
+ "outputs": [],
3723
+ "stateMutability": "nonpayable"
3684
3724
  },
3685
3725
  {
3686
- type: "function",
3687
- name: "uniswapV3Factory",
3688
- inputs: [],
3689
- outputs: [
3726
+ "type": "function",
3727
+ "name": "uniswapV3Factory",
3728
+ "inputs": [],
3729
+ "outputs": [
3690
3730
  {
3691
- name: "",
3692
- type: "address",
3693
- internalType: "address"
3731
+ "name": "",
3732
+ "type": "address",
3733
+ "internalType": "address"
3694
3734
  }
3695
3735
  ],
3696
- stateMutability: "view"
3736
+ "stateMutability": "view"
3697
3737
  },
3698
3738
  {
3699
- type: "function",
3700
- name: "usdcAddress",
3701
- inputs: [],
3702
- outputs: [
3739
+ "type": "function",
3740
+ "name": "usdcAddress",
3741
+ "inputs": [],
3742
+ "outputs": [
3703
3743
  {
3704
- name: "",
3705
- type: "address",
3706
- internalType: "address"
3744
+ "name": "",
3745
+ "type": "address",
3746
+ "internalType": "address"
3707
3747
  }
3708
3748
  ],
3709
- stateMutability: "view"
3749
+ "stateMutability": "view"
3710
3750
  },
3711
3751
  {
3712
- type: "function",
3713
- name: "wethAddress",
3714
- inputs: [],
3715
- outputs: [
3752
+ "type": "function",
3753
+ "name": "wethAddress",
3754
+ "inputs": [],
3755
+ "outputs": [
3716
3756
  {
3717
- name: "",
3718
- type: "address",
3719
- internalType: "address"
3757
+ "name": "",
3758
+ "type": "address",
3759
+ "internalType": "address"
3720
3760
  }
3721
3761
  ],
3722
- stateMutability: "view"
3762
+ "stateMutability": "view"
3723
3763
  },
3724
3764
  {
3725
- type: "event",
3726
- name: "OracleConfigUpdated",
3727
- inputs: [
3765
+ "type": "event",
3766
+ "name": "OracleConfigUpdated",
3767
+ "inputs": [
3728
3768
  {
3729
- name: "uniswapV3Factory",
3730
- type: "address",
3731
- indexed: false,
3732
- internalType: "address"
3769
+ "name": "uniswapV3Factory",
3770
+ "type": "address",
3771
+ "indexed": false,
3772
+ "internalType": "address"
3733
3773
  },
3734
3774
  {
3735
- name: "usdc",
3736
- type: "address",
3737
- indexed: false,
3738
- internalType: "address"
3775
+ "name": "usdc",
3776
+ "type": "address",
3777
+ "indexed": false,
3778
+ "internalType": "address"
3739
3779
  },
3740
3780
  {
3741
- name: "weth",
3742
- type: "address",
3743
- indexed: false,
3744
- internalType: "address"
3781
+ "name": "weth",
3782
+ "type": "address",
3783
+ "indexed": false,
3784
+ "internalType": "address"
3745
3785
  }
3746
3786
  ],
3747
- anonymous: false
3787
+ "anonymous": false
3748
3788
  },
3749
3789
  {
3750
- type: "event",
3751
- name: "OwnershipTransferStarted",
3752
- inputs: [
3790
+ "type": "event",
3791
+ "name": "OwnershipTransferStarted",
3792
+ "inputs": [
3753
3793
  {
3754
- name: "previousOwner",
3755
- type: "address",
3756
- indexed: true,
3757
- internalType: "address"
3794
+ "name": "previousOwner",
3795
+ "type": "address",
3796
+ "indexed": true,
3797
+ "internalType": "address"
3758
3798
  },
3759
3799
  {
3760
- name: "newOwner",
3761
- type: "address",
3762
- indexed: true,
3763
- internalType: "address"
3800
+ "name": "newOwner",
3801
+ "type": "address",
3802
+ "indexed": true,
3803
+ "internalType": "address"
3764
3804
  }
3765
3805
  ],
3766
- anonymous: false
3806
+ "anonymous": false
3767
3807
  },
3768
3808
  {
3769
- type: "event",
3770
- name: "OwnershipTransferred",
3771
- inputs: [
3809
+ "type": "event",
3810
+ "name": "OwnershipTransferred",
3811
+ "inputs": [
3772
3812
  {
3773
- name: "previousOwner",
3774
- type: "address",
3775
- indexed: true,
3776
- internalType: "address"
3813
+ "name": "previousOwner",
3814
+ "type": "address",
3815
+ "indexed": true,
3816
+ "internalType": "address"
3777
3817
  },
3778
3818
  {
3779
- name: "newOwner",
3780
- type: "address",
3781
- indexed: true,
3782
- internalType: "address"
3819
+ "name": "newOwner",
3820
+ "type": "address",
3821
+ "indexed": true,
3822
+ "internalType": "address"
3783
3823
  }
3784
3824
  ],
3785
- anonymous: false
3825
+ "anonymous": false
3786
3826
  },
3787
3827
  {
3788
- type: "event",
3789
- name: "RelayerAdded",
3790
- inputs: [
3828
+ "type": "event",
3829
+ "name": "RelayerAdded",
3830
+ "inputs": [
3791
3831
  {
3792
- name: "relayer",
3793
- type: "address",
3794
- indexed: true,
3795
- internalType: "address"
3832
+ "name": "relayer",
3833
+ "type": "address",
3834
+ "indexed": true,
3835
+ "internalType": "address"
3796
3836
  }
3797
3837
  ],
3798
- anonymous: false
3838
+ "anonymous": false
3799
3839
  },
3800
3840
  {
3801
- type: "event",
3802
- name: "RelayerRemoved",
3803
- inputs: [
3841
+ "type": "event",
3842
+ "name": "RelayerRemoved",
3843
+ "inputs": [
3804
3844
  {
3805
- name: "relayer",
3806
- type: "address",
3807
- indexed: true,
3808
- internalType: "address"
3845
+ "name": "relayer",
3846
+ "type": "address",
3847
+ "indexed": true,
3848
+ "internalType": "address"
3809
3849
  }
3810
3850
  ],
3811
- anonymous: false
3851
+ "anonymous": false
3812
3852
  },
3813
3853
  {
3814
- type: "event",
3815
- name: "SwapRouterAdded",
3816
- inputs: [
3854
+ "type": "event",
3855
+ "name": "SwapRouterAdded",
3856
+ "inputs": [
3817
3857
  {
3818
- name: "router",
3819
- type: "address",
3820
- indexed: true,
3821
- internalType: "address"
3858
+ "name": "router",
3859
+ "type": "address",
3860
+ "indexed": true,
3861
+ "internalType": "address"
3822
3862
  }
3823
3863
  ],
3824
- anonymous: false
3864
+ "anonymous": false
3825
3865
  },
3826
3866
  {
3827
- type: "event",
3828
- name: "SwapRouterRemoved",
3829
- inputs: [
3867
+ "type": "event",
3868
+ "name": "SwapRouterRemoved",
3869
+ "inputs": [
3830
3870
  {
3831
- name: "router",
3832
- type: "address",
3833
- indexed: true,
3834
- internalType: "address"
3871
+ "name": "router",
3872
+ "type": "address",
3873
+ "indexed": true,
3874
+ "internalType": "address"
3835
3875
  }
3836
3876
  ],
3837
- anonymous: false
3877
+ "anonymous": false
3838
3878
  },
3839
3879
  {
3840
- type: "error",
3841
- name: "AlreadyApproved",
3842
- inputs: []
3880
+ "type": "error",
3881
+ "name": "AlreadyApproved",
3882
+ "inputs": []
3843
3883
  },
3844
3884
  {
3845
- type: "error",
3846
- name: "AlreadyAuthorized",
3847
- inputs: []
3885
+ "type": "error",
3886
+ "name": "AlreadyAuthorized",
3887
+ "inputs": []
3848
3888
  },
3849
3889
  {
3850
- type: "error",
3851
- name: "NotApproved",
3852
- inputs: []
3890
+ "type": "error",
3891
+ "name": "NotApproved",
3892
+ "inputs": []
3853
3893
  },
3854
3894
  {
3855
- type: "error",
3856
- name: "NotAuthorized",
3857
- inputs: []
3895
+ "type": "error",
3896
+ "name": "NotAuthorized",
3897
+ "inputs": []
3858
3898
  },
3859
3899
  {
3860
- type: "error",
3861
- name: "OwnableInvalidOwner",
3862
- inputs: [
3900
+ "type": "error",
3901
+ "name": "OwnableInvalidOwner",
3902
+ "inputs": [
3863
3903
  {
3864
- name: "owner",
3865
- type: "address",
3866
- internalType: "address"
3904
+ "name": "owner",
3905
+ "type": "address",
3906
+ "internalType": "address"
3867
3907
  }
3868
3908
  ]
3869
3909
  },
3870
3910
  {
3871
- type: "error",
3872
- name: "OwnableUnauthorizedAccount",
3873
- inputs: [
3911
+ "type": "error",
3912
+ "name": "OwnableUnauthorizedAccount",
3913
+ "inputs": [
3874
3914
  {
3875
- name: "account",
3876
- type: "address",
3877
- internalType: "address"
3915
+ "name": "account",
3916
+ "type": "address",
3917
+ "internalType": "address"
3878
3918
  }
3879
3919
  ]
3880
3920
  },
3881
3921
  {
3882
- type: "error",
3883
- name: "ZeroAddress",
3884
- inputs: []
3922
+ "type": "error",
3923
+ "name": "ZeroAddress",
3924
+ "inputs": []
3885
3925
  }
3886
3926
  ];
3887
3927
 
@@ -3929,7 +3969,9 @@ exports.isDestinationAllowed = isDestinationAllowed;
3929
3969
  exports.isRebalanceTokenWhitelisted = isRebalanceTokenWhitelisted;
3930
3970
  exports.isVaultPaused = isVaultPaused;
3931
3971
  exports.operatorMaxDrainPerDay = operatorMaxDrainPerDay;
3972
+ exports.parseAmount = parseAmount;
3932
3973
  exports.resolveToken = resolveToken;
3974
+ exports.resolveTokenDecimals = resolveTokenDecimals;
3933
3975
  exports.signExecuteIntent = signExecuteIntent;
3934
3976
  exports.signPayment = signPayment;
3935
3977
  exports.signSwapIntent = signSwapIntent;