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