@axonfi/sdk 0.1.1 → 0.2.0

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