tenjin-cli 0.1.0-alpha.1 → 0.1.0-alpha.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.
Files changed (133) hide show
  1. package/NOTICE.md +33 -0
  2. package/README.md +164 -16
  3. package/dist/{_esm-ZH2J4QEH.js → _esm-C5CRWCYU.js} +2 -2
  4. package/dist/_esm-FEASBWRP.js +881 -0
  5. package/dist/buy-U35DQ6XM.js +1598 -0
  6. package/dist/buy-U35DQ6XM.js.map +1 -0
  7. package/dist/candidate-RLYCQMF5.js +127 -0
  8. package/dist/candidate-RLYCQMF5.js.map +1 -0
  9. package/dist/{ccip-UCLT5VOW.js → ccip-NQXCEK2U.js} +6 -5
  10. package/dist/ccip-XR5NE5QK.js +19 -0
  11. package/dist/chunk-27ONARHV.js +171 -0
  12. package/dist/chunk-27ONARHV.js.map +1 -0
  13. package/dist/chunk-2I4QTOLB.js +11 -0
  14. package/dist/chunk-2I4QTOLB.js.map +1 -0
  15. package/dist/chunk-3OV7E5G5.js +18 -0
  16. package/dist/chunk-3OV7E5G5.js.map +1 -0
  17. package/dist/chunk-5CLSD5YN.js +209 -0
  18. package/dist/chunk-5CLSD5YN.js.map +1 -0
  19. package/dist/chunk-7KUW4MJD.js +59 -0
  20. package/dist/chunk-7KUW4MJD.js.map +1 -0
  21. package/dist/{doctor-3QBYN46N.js → chunk-7PHSZKQS.js} +88 -93
  22. package/dist/chunk-7PHSZKQS.js.map +1 -0
  23. package/dist/chunk-CYOF7ROH.js +70 -0
  24. package/dist/chunk-CYOF7ROH.js.map +1 -0
  25. package/dist/chunk-HIVZG55D.js +204 -0
  26. package/dist/chunk-HIVZG55D.js.map +1 -0
  27. package/dist/chunk-HSDCI7OV.js +7806 -0
  28. package/dist/chunk-HSDCI7OV.js.map +1 -0
  29. package/dist/{chunk-EZROUI5U.js → chunk-IYLHQMT5.js} +85 -9
  30. package/dist/chunk-IYLHQMT5.js.map +1 -0
  31. package/dist/chunk-JPHG2JW3.js +96 -0
  32. package/dist/chunk-JPHG2JW3.js.map +1 -0
  33. package/dist/{chunk-ZPZFPVDN.js → chunk-MUBUQVC3.js} +1 -1
  34. package/dist/chunk-MUBUQVC3.js.map +1 -0
  35. package/dist/chunk-N62ROTMC.js +79 -0
  36. package/dist/chunk-N62ROTMC.js.map +1 -0
  37. package/dist/{chunk-T4LKNY7T.js → chunk-NCE5NSN6.js} +166 -11
  38. package/dist/chunk-NCE5NSN6.js.map +1 -0
  39. package/dist/{chunk-YG2DO46P.js → chunk-OYMYCW7J.js} +18 -3
  40. package/dist/{chunk-YG2DO46P.js.map → chunk-OYMYCW7J.js.map} +1 -1
  41. package/dist/chunk-QNP7H47L.js +152 -0
  42. package/dist/chunk-QNP7H47L.js.map +1 -0
  43. package/dist/{chunk-Q53IYV2G.js → chunk-QVX5MWJZ.js} +20 -17
  44. package/dist/{chunk-Q53IYV2G.js.map → chunk-QVX5MWJZ.js.map} +1 -1
  45. package/dist/{chunk-CUWUHTIL.js → chunk-RBJPAZFI.js} +16 -202
  46. package/dist/chunk-RBJPAZFI.js.map +1 -0
  47. package/dist/chunk-RRN3YTK7.js +6199 -0
  48. package/dist/chunk-RRN3YTK7.js.map +1 -0
  49. package/dist/chunk-RY4XKNV3.js +140 -0
  50. package/dist/chunk-RY4XKNV3.js.map +1 -0
  51. package/dist/chunk-S3IGX57D.js +14682 -0
  52. package/dist/chunk-S3IGX57D.js.map +1 -0
  53. package/dist/{config-CEFTL5ZL.js → chunk-TFGSOPWR.js} +115 -18
  54. package/dist/chunk-TFGSOPWR.js.map +1 -0
  55. package/dist/chunk-TLCMMYLY.js +126 -0
  56. package/dist/chunk-TLCMMYLY.js.map +1 -0
  57. package/dist/{chunk-IPOWB3G3.js → chunk-UGX7YPX2.js} +3314 -306
  58. package/dist/chunk-UGX7YPX2.js.map +1 -0
  59. package/dist/chunk-UO22YNY4.js +69 -0
  60. package/dist/chunk-UO22YNY4.js.map +1 -0
  61. package/dist/chunk-UPIEAMGH.js +160 -0
  62. package/dist/chunk-UPIEAMGH.js.map +1 -0
  63. package/dist/chunk-XJIW7USF.js +217 -0
  64. package/dist/chunk-XJIW7USF.js.map +1 -0
  65. package/dist/{chunk-BRJHUQSY.js → chunk-YALGASEU.js} +1548 -1452
  66. package/dist/chunk-YALGASEU.js.map +1 -0
  67. package/dist/chunk-YIYQ2ZNT.js +286 -0
  68. package/dist/chunk-YIYQ2ZNT.js.map +1 -0
  69. package/dist/{chunk-DXPYFVKG.js → chunk-YN5SHIXQ.js} +6 -6
  70. package/dist/chunk-YN5SHIXQ.js.map +1 -0
  71. package/dist/chunk-Z52RA3NC.js +137 -0
  72. package/dist/chunk-Z52RA3NC.js.map +1 -0
  73. package/dist/{chunk-EXBMF5X7.js → chunk-Z6MFJV5Z.js} +151 -19
  74. package/dist/chunk-Z6MFJV5Z.js.map +1 -0
  75. package/dist/chunk-ZABPQJ3M.js +83 -0
  76. package/dist/chunk-ZABPQJ3M.js.map +1 -0
  77. package/dist/{chunk-LPRVHM7P.js → chunk-ZMHYXMO6.js} +1655 -114
  78. package/dist/chunk-ZMHYXMO6.js.map +1 -0
  79. package/dist/{chunk-3IMLRUZE.js → chunk-ZXTAQYNA.js} +6 -2
  80. package/dist/{cli-WA65NP4Y.js → cli-4NNBEQYH.js} +177 -177
  81. package/dist/cli-4NNBEQYH.js.map +1 -0
  82. package/dist/config-2VSXWWHK.js +21 -0
  83. package/dist/doctor-JJPNIBYH.js +20 -0
  84. package/dist/doctor-JJPNIBYH.js.map +1 -0
  85. package/dist/ethersCompat-Df4a6QIZ-3YZIAXDK.js +18 -0
  86. package/dist/ethersCompat-Df4a6QIZ-3YZIAXDK.js.map +1 -0
  87. package/dist/index.js +1 -1
  88. package/dist/inspect-JGYJWFDP.js +96 -0
  89. package/dist/inspect-JGYJWFDP.js.map +1 -0
  90. package/dist/install-ZQRMSRGW.js +378 -0
  91. package/dist/install-ZQRMSRGW.js.map +1 -0
  92. package/dist/lookup-WYVTOMVY.js +113 -0
  93. package/dist/lookup-WYVTOMVY.js.map +1 -0
  94. package/dist/{mine.wasm-GQECMSGN.js → mine.wasm-6PIT3DK6.js} +2 -2
  95. package/dist/outcome-HKKT6QIA.js +66 -0
  96. package/dist/outcome-HKKT6QIA.js.map +1 -0
  97. package/dist/publish-D76B3MBK.js +1480 -0
  98. package/dist/publish-D76B3MBK.js.map +1 -0
  99. package/dist/{secp256k1-BEZS642W.js → secp256k1-N3ZHU7LB.js} +5 -4
  100. package/dist/secp256k1-N3ZHU7LB.js.map +1 -0
  101. package/dist/usdc-JIAJW4SV.js +22 -0
  102. package/dist/usdc-JIAJW4SV.js.map +1 -0
  103. package/dist/viemAdapter-By13KInL-ZZE6UV4Y.js +14 -0
  104. package/dist/viemAdapter-By13KInL-ZZE6UV4Y.js.map +1 -0
  105. package/dist/{wallet-XD576HF3.js → wallet-6QKS6UHW.js} +28 -22
  106. package/dist/{wallet-XD576HF3.js.map → wallet-6QKS6UHW.js.map} +1 -1
  107. package/dist/wallet-PA54CRBL.js +30 -0
  108. package/dist/wallet-PA54CRBL.js.map +1 -0
  109. package/package.json +19 -16
  110. package/skills/tenjin/SKILL.md +199 -0
  111. package/skills/tenjin-publish/SKILL.md +96 -0
  112. package/skills/tenjin-search/SKILL.md +122 -0
  113. package/dist/chunk-BRJHUQSY.js.map +0 -1
  114. package/dist/chunk-CUWUHTIL.js.map +0 -1
  115. package/dist/chunk-DXPYFVKG.js.map +0 -1
  116. package/dist/chunk-EXBMF5X7.js.map +0 -1
  117. package/dist/chunk-EZROUI5U.js.map +0 -1
  118. package/dist/chunk-IPOWB3G3.js.map +0 -1
  119. package/dist/chunk-LPRVHM7P.js.map +0 -1
  120. package/dist/chunk-T4LKNY7T.js.map +0 -1
  121. package/dist/chunk-ZPZFPVDN.js.map +0 -1
  122. package/dist/cli-WA65NP4Y.js.map +0 -1
  123. package/dist/config-CEFTL5ZL.js.map +0 -1
  124. package/dist/doctor-3QBYN46N.js.map +0 -1
  125. package/dist/usdc-44R6XZF2.js +0 -18
  126. package/dist/wallet-ELBTBMXO.js +0 -20
  127. /package/dist/{_esm-ZH2J4QEH.js.map → _esm-C5CRWCYU.js.map} +0 -0
  128. /package/dist/{ccip-UCLT5VOW.js.map → _esm-FEASBWRP.js.map} +0 -0
  129. /package/dist/{chunk-3IMLRUZE.js.map → ccip-NQXCEK2U.js.map} +0 -0
  130. /package/dist/{secp256k1-BEZS642W.js.map → ccip-XR5NE5QK.js.map} +0 -0
  131. /package/dist/{usdc-44R6XZF2.js.map → chunk-ZXTAQYNA.js.map} +0 -0
  132. /package/dist/{wallet-ELBTBMXO.js.map → config-2VSXWWHK.js.map} +0 -0
  133. /package/dist/{mine.wasm-GQECMSGN.js.map → mine.wasm-6PIT3DK6.js.map} +0 -0
@@ -39,6 +39,7 @@ import {
39
39
  createCursor,
40
40
  encodeAbiParameters,
41
41
  formatAbiItem,
42
+ formatBlockParameter,
42
43
  formatEther,
43
44
  formatGwei,
44
45
  fromNumber,
@@ -59,7 +60,7 @@ import {
59
60
  stringify,
60
61
  toBytes,
61
62
  trim
62
- } from "./chunk-BRJHUQSY.js";
63
+ } from "./chunk-YALGASEU.js";
63
64
 
64
65
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js
65
66
  var version = "1.2.3";
@@ -286,6 +287,20 @@ var UnknownSolidityTypeError = class extends BaseError2 {
286
287
  };
287
288
 
288
289
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
290
+ var InvalidAbiParameterError = class extends BaseError2 {
291
+ constructor({ param }) {
292
+ super("Failed to parse ABI parameter.", {
293
+ details: `parseAbiParameter(${JSON.stringify(param, null, 2)})`,
294
+ docsPath: "/api/human#parseabiparameter-1"
295
+ });
296
+ Object.defineProperty(this, "name", {
297
+ enumerable: true,
298
+ configurable: true,
299
+ writable: true,
300
+ value: "InvalidAbiParameterError"
301
+ });
302
+ }
303
+ };
289
304
  var InvalidAbiParametersError = class extends BaseError2 {
290
305
  constructor({ params }) {
291
306
  super("Failed to parse ABI parameters.", {
@@ -828,6 +843,29 @@ function parseAbiItem(signature) {
828
843
  return abiItem;
829
844
  }
830
845
 
846
+ // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameter.js
847
+ function parseAbiParameter2(param) {
848
+ let abiParameter;
849
+ if (typeof param === "string")
850
+ abiParameter = parseAbiParameter(param, {
851
+ modifiers
852
+ });
853
+ else {
854
+ const structs = parseStructs(param);
855
+ const length = param.length;
856
+ for (let i = 0; i < length; i++) {
857
+ const signature = param[i];
858
+ if (isStructSignature(signature))
859
+ continue;
860
+ abiParameter = parseAbiParameter(signature, { modifiers, structs });
861
+ break;
862
+ }
863
+ }
864
+ if (!abiParameter)
865
+ throw new InvalidAbiParameterError({ param });
866
+ return abiParameter;
867
+ }
868
+
831
869
  // node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
832
870
  function parseAbiParameters(params) {
833
871
  const abiParameters = [];
@@ -1212,192 +1250,1586 @@ var erc6492SignatureValidatorAbi = [
1212
1250
  type: "address"
1213
1251
  },
1214
1252
  {
1215
- name: "_hash",
1216
- type: "bytes32"
1253
+ name: "_hash",
1254
+ type: "bytes32"
1255
+ },
1256
+ {
1257
+ name: "_signature",
1258
+ type: "bytes"
1259
+ }
1260
+ ],
1261
+ stateMutability: "nonpayable",
1262
+ type: "constructor"
1263
+ },
1264
+ {
1265
+ inputs: [
1266
+ {
1267
+ name: "_signer",
1268
+ type: "address"
1269
+ },
1270
+ {
1271
+ name: "_hash",
1272
+ type: "bytes32"
1273
+ },
1274
+ {
1275
+ name: "_signature",
1276
+ type: "bytes"
1277
+ }
1278
+ ],
1279
+ outputs: [
1280
+ {
1281
+ type: "bool"
1282
+ }
1283
+ ],
1284
+ stateMutability: "nonpayable",
1285
+ type: "function",
1286
+ name: "isValidSig"
1287
+ }
1288
+ ];
1289
+ var erc20Abi = [
1290
+ {
1291
+ type: "event",
1292
+ name: "Approval",
1293
+ inputs: [
1294
+ {
1295
+ indexed: true,
1296
+ name: "owner",
1297
+ type: "address"
1298
+ },
1299
+ {
1300
+ indexed: true,
1301
+ name: "spender",
1302
+ type: "address"
1303
+ },
1304
+ {
1305
+ indexed: false,
1306
+ name: "value",
1307
+ type: "uint256"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ type: "event",
1313
+ name: "Transfer",
1314
+ inputs: [
1315
+ {
1316
+ indexed: true,
1317
+ name: "from",
1318
+ type: "address"
1319
+ },
1320
+ {
1321
+ indexed: true,
1322
+ name: "to",
1323
+ type: "address"
1324
+ },
1325
+ {
1326
+ indexed: false,
1327
+ name: "value",
1328
+ type: "uint256"
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ type: "function",
1334
+ name: "allowance",
1335
+ stateMutability: "view",
1336
+ inputs: [
1337
+ {
1338
+ name: "owner",
1339
+ type: "address"
1340
+ },
1341
+ {
1342
+ name: "spender",
1343
+ type: "address"
1344
+ }
1345
+ ],
1346
+ outputs: [
1347
+ {
1348
+ type: "uint256"
1349
+ }
1350
+ ]
1351
+ },
1352
+ {
1353
+ type: "function",
1354
+ name: "approve",
1355
+ stateMutability: "nonpayable",
1356
+ inputs: [
1357
+ {
1358
+ name: "spender",
1359
+ type: "address"
1360
+ },
1361
+ {
1362
+ name: "amount",
1363
+ type: "uint256"
1364
+ }
1365
+ ],
1366
+ outputs: [
1367
+ {
1368
+ type: "bool"
1369
+ }
1370
+ ]
1371
+ },
1372
+ {
1373
+ type: "function",
1374
+ name: "balanceOf",
1375
+ stateMutability: "view",
1376
+ inputs: [
1377
+ {
1378
+ name: "account",
1379
+ type: "address"
1380
+ }
1381
+ ],
1382
+ outputs: [
1383
+ {
1384
+ type: "uint256"
1385
+ }
1386
+ ]
1387
+ },
1388
+ {
1389
+ type: "function",
1390
+ name: "decimals",
1391
+ stateMutability: "view",
1392
+ inputs: [],
1393
+ outputs: [
1394
+ {
1395
+ type: "uint8"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ type: "function",
1401
+ name: "name",
1402
+ stateMutability: "view",
1403
+ inputs: [],
1404
+ outputs: [
1405
+ {
1406
+ type: "string"
1407
+ }
1408
+ ]
1409
+ },
1410
+ {
1411
+ type: "function",
1412
+ name: "symbol",
1413
+ stateMutability: "view",
1414
+ inputs: [],
1415
+ outputs: [
1416
+ {
1417
+ type: "string"
1418
+ }
1419
+ ]
1420
+ },
1421
+ {
1422
+ type: "function",
1423
+ name: "totalSupply",
1424
+ stateMutability: "view",
1425
+ inputs: [],
1426
+ outputs: [
1427
+ {
1428
+ type: "uint256"
1429
+ }
1430
+ ]
1431
+ },
1432
+ {
1433
+ type: "function",
1434
+ name: "transfer",
1435
+ stateMutability: "nonpayable",
1436
+ inputs: [
1437
+ {
1438
+ name: "recipient",
1439
+ type: "address"
1440
+ },
1441
+ {
1442
+ name: "amount",
1443
+ type: "uint256"
1444
+ }
1445
+ ],
1446
+ outputs: [
1447
+ {
1448
+ type: "bool"
1449
+ }
1450
+ ]
1451
+ },
1452
+ {
1453
+ type: "function",
1454
+ name: "transferFrom",
1455
+ stateMutability: "nonpayable",
1456
+ inputs: [
1457
+ {
1458
+ name: "sender",
1459
+ type: "address"
1460
+ },
1461
+ {
1462
+ name: "recipient",
1463
+ type: "address"
1464
+ },
1465
+ {
1466
+ name: "amount",
1467
+ type: "uint256"
1468
+ }
1469
+ ],
1470
+ outputs: [
1471
+ {
1472
+ type: "bool"
1473
+ }
1474
+ ]
1475
+ }
1476
+ ];
1477
+ var erc20Abi_bytes32 = [
1478
+ {
1479
+ type: "event",
1480
+ name: "Approval",
1481
+ inputs: [
1482
+ {
1483
+ indexed: true,
1484
+ name: "owner",
1485
+ type: "address"
1486
+ },
1487
+ {
1488
+ indexed: true,
1489
+ name: "spender",
1490
+ type: "address"
1491
+ },
1492
+ {
1493
+ indexed: false,
1494
+ name: "value",
1495
+ type: "uint256"
1496
+ }
1497
+ ]
1498
+ },
1499
+ {
1500
+ type: "event",
1501
+ name: "Transfer",
1502
+ inputs: [
1503
+ {
1504
+ indexed: true,
1505
+ name: "from",
1506
+ type: "address"
1507
+ },
1508
+ {
1509
+ indexed: true,
1510
+ name: "to",
1511
+ type: "address"
1512
+ },
1513
+ {
1514
+ indexed: false,
1515
+ name: "value",
1516
+ type: "uint256"
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ type: "function",
1522
+ name: "allowance",
1523
+ stateMutability: "view",
1524
+ inputs: [
1525
+ {
1526
+ name: "owner",
1527
+ type: "address"
1528
+ },
1529
+ {
1530
+ name: "spender",
1531
+ type: "address"
1532
+ }
1533
+ ],
1534
+ outputs: [
1535
+ {
1536
+ type: "uint256"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ type: "function",
1542
+ name: "approve",
1543
+ stateMutability: "nonpayable",
1544
+ inputs: [
1545
+ {
1546
+ name: "spender",
1547
+ type: "address"
1548
+ },
1549
+ {
1550
+ name: "amount",
1551
+ type: "uint256"
1552
+ }
1553
+ ],
1554
+ outputs: [
1555
+ {
1556
+ type: "bool"
1557
+ }
1558
+ ]
1559
+ },
1560
+ {
1561
+ type: "function",
1562
+ name: "balanceOf",
1563
+ stateMutability: "view",
1564
+ inputs: [
1565
+ {
1566
+ name: "account",
1567
+ type: "address"
1568
+ }
1569
+ ],
1570
+ outputs: [
1571
+ {
1572
+ type: "uint256"
1573
+ }
1574
+ ]
1575
+ },
1576
+ {
1577
+ type: "function",
1578
+ name: "decimals",
1579
+ stateMutability: "view",
1580
+ inputs: [],
1581
+ outputs: [
1582
+ {
1583
+ type: "uint8"
1584
+ }
1585
+ ]
1586
+ },
1587
+ {
1588
+ type: "function",
1589
+ name: "name",
1590
+ stateMutability: "view",
1591
+ inputs: [],
1592
+ outputs: [
1593
+ {
1594
+ type: "bytes32"
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ type: "function",
1600
+ name: "symbol",
1601
+ stateMutability: "view",
1602
+ inputs: [],
1603
+ outputs: [
1604
+ {
1605
+ type: "bytes32"
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ type: "function",
1611
+ name: "totalSupply",
1612
+ stateMutability: "view",
1613
+ inputs: [],
1614
+ outputs: [
1615
+ {
1616
+ type: "uint256"
1617
+ }
1618
+ ]
1619
+ },
1620
+ {
1621
+ type: "function",
1622
+ name: "transfer",
1623
+ stateMutability: "nonpayable",
1624
+ inputs: [
1625
+ {
1626
+ name: "recipient",
1627
+ type: "address"
1628
+ },
1629
+ {
1630
+ name: "amount",
1631
+ type: "uint256"
1632
+ }
1633
+ ],
1634
+ outputs: [
1635
+ {
1636
+ type: "bool"
1637
+ }
1638
+ ]
1639
+ },
1640
+ {
1641
+ type: "function",
1642
+ name: "transferFrom",
1643
+ stateMutability: "nonpayable",
1644
+ inputs: [
1645
+ {
1646
+ name: "sender",
1647
+ type: "address"
1648
+ },
1649
+ {
1650
+ name: "recipient",
1651
+ type: "address"
1652
+ },
1653
+ {
1654
+ name: "amount",
1655
+ type: "uint256"
1656
+ }
1657
+ ],
1658
+ outputs: [
1659
+ {
1660
+ type: "bool"
1661
+ }
1662
+ ]
1663
+ }
1664
+ ];
1665
+ var erc1155Abi = [
1666
+ {
1667
+ inputs: [
1668
+ {
1669
+ internalType: "address",
1670
+ name: "sender",
1671
+ type: "address"
1672
+ },
1673
+ {
1674
+ internalType: "uint256",
1675
+ name: "balance",
1676
+ type: "uint256"
1677
+ },
1678
+ {
1679
+ internalType: "uint256",
1680
+ name: "needed",
1681
+ type: "uint256"
1682
+ },
1683
+ {
1684
+ internalType: "uint256",
1685
+ name: "tokenId",
1686
+ type: "uint256"
1687
+ }
1688
+ ],
1689
+ name: "ERC1155InsufficientBalance",
1690
+ type: "error"
1691
+ },
1692
+ {
1693
+ inputs: [
1694
+ {
1695
+ internalType: "address",
1696
+ name: "approver",
1697
+ type: "address"
1698
+ }
1699
+ ],
1700
+ name: "ERC1155InvalidApprover",
1701
+ type: "error"
1702
+ },
1703
+ {
1704
+ inputs: [
1705
+ {
1706
+ internalType: "uint256",
1707
+ name: "idsLength",
1708
+ type: "uint256"
1709
+ },
1710
+ {
1711
+ internalType: "uint256",
1712
+ name: "valuesLength",
1713
+ type: "uint256"
1714
+ }
1715
+ ],
1716
+ name: "ERC1155InvalidArrayLength",
1717
+ type: "error"
1718
+ },
1719
+ {
1720
+ inputs: [
1721
+ {
1722
+ internalType: "address",
1723
+ name: "operator",
1724
+ type: "address"
1725
+ }
1726
+ ],
1727
+ name: "ERC1155InvalidOperator",
1728
+ type: "error"
1729
+ },
1730
+ {
1731
+ inputs: [
1732
+ {
1733
+ internalType: "address",
1734
+ name: "receiver",
1735
+ type: "address"
1736
+ }
1737
+ ],
1738
+ name: "ERC1155InvalidReceiver",
1739
+ type: "error"
1740
+ },
1741
+ {
1742
+ inputs: [
1743
+ {
1744
+ internalType: "address",
1745
+ name: "sender",
1746
+ type: "address"
1747
+ }
1748
+ ],
1749
+ name: "ERC1155InvalidSender",
1750
+ type: "error"
1751
+ },
1752
+ {
1753
+ inputs: [
1754
+ {
1755
+ internalType: "address",
1756
+ name: "operator",
1757
+ type: "address"
1758
+ },
1759
+ {
1760
+ internalType: "address",
1761
+ name: "owner",
1762
+ type: "address"
1763
+ }
1764
+ ],
1765
+ name: "ERC1155MissingApprovalForAll",
1766
+ type: "error"
1767
+ },
1768
+ {
1769
+ anonymous: false,
1770
+ inputs: [
1771
+ {
1772
+ indexed: true,
1773
+ internalType: "address",
1774
+ name: "account",
1775
+ type: "address"
1776
+ },
1777
+ {
1778
+ indexed: true,
1779
+ internalType: "address",
1780
+ name: "operator",
1781
+ type: "address"
1782
+ },
1783
+ {
1784
+ indexed: false,
1785
+ internalType: "bool",
1786
+ name: "approved",
1787
+ type: "bool"
1788
+ }
1789
+ ],
1790
+ name: "ApprovalForAll",
1791
+ type: "event"
1792
+ },
1793
+ {
1794
+ anonymous: false,
1795
+ inputs: [
1796
+ {
1797
+ indexed: true,
1798
+ internalType: "address",
1799
+ name: "operator",
1800
+ type: "address"
1801
+ },
1802
+ {
1803
+ indexed: true,
1804
+ internalType: "address",
1805
+ name: "from",
1806
+ type: "address"
1807
+ },
1808
+ {
1809
+ indexed: true,
1810
+ internalType: "address",
1811
+ name: "to",
1812
+ type: "address"
1813
+ },
1814
+ {
1815
+ indexed: false,
1816
+ internalType: "uint256[]",
1817
+ name: "ids",
1818
+ type: "uint256[]"
1819
+ },
1820
+ {
1821
+ indexed: false,
1822
+ internalType: "uint256[]",
1823
+ name: "values",
1824
+ type: "uint256[]"
1825
+ }
1826
+ ],
1827
+ name: "TransferBatch",
1828
+ type: "event"
1829
+ },
1830
+ {
1831
+ anonymous: false,
1832
+ inputs: [
1833
+ {
1834
+ indexed: true,
1835
+ internalType: "address",
1836
+ name: "operator",
1837
+ type: "address"
1838
+ },
1839
+ {
1840
+ indexed: true,
1841
+ internalType: "address",
1842
+ name: "from",
1843
+ type: "address"
1844
+ },
1845
+ {
1846
+ indexed: true,
1847
+ internalType: "address",
1848
+ name: "to",
1849
+ type: "address"
1850
+ },
1851
+ {
1852
+ indexed: false,
1853
+ internalType: "uint256",
1854
+ name: "id",
1855
+ type: "uint256"
1856
+ },
1857
+ {
1858
+ indexed: false,
1859
+ internalType: "uint256",
1860
+ name: "value",
1861
+ type: "uint256"
1862
+ }
1863
+ ],
1864
+ name: "TransferSingle",
1865
+ type: "event"
1866
+ },
1867
+ {
1868
+ anonymous: false,
1869
+ inputs: [
1870
+ {
1871
+ indexed: false,
1872
+ internalType: "string",
1873
+ name: "value",
1874
+ type: "string"
1875
+ },
1876
+ {
1877
+ indexed: true,
1878
+ internalType: "uint256",
1879
+ name: "id",
1880
+ type: "uint256"
1881
+ }
1882
+ ],
1883
+ name: "URI",
1884
+ type: "event"
1885
+ },
1886
+ {
1887
+ inputs: [
1888
+ {
1889
+ internalType: "address",
1890
+ name: "account",
1891
+ type: "address"
1892
+ },
1893
+ {
1894
+ internalType: "uint256",
1895
+ name: "id",
1896
+ type: "uint256"
1897
+ }
1898
+ ],
1899
+ name: "balanceOf",
1900
+ outputs: [
1901
+ {
1902
+ internalType: "uint256",
1903
+ name: "",
1904
+ type: "uint256"
1905
+ }
1906
+ ],
1907
+ stateMutability: "view",
1908
+ type: "function"
1909
+ },
1910
+ {
1911
+ inputs: [
1912
+ {
1913
+ internalType: "address[]",
1914
+ name: "accounts",
1915
+ type: "address[]"
1916
+ },
1917
+ {
1918
+ internalType: "uint256[]",
1919
+ name: "ids",
1920
+ type: "uint256[]"
1921
+ }
1922
+ ],
1923
+ name: "balanceOfBatch",
1924
+ outputs: [
1925
+ {
1926
+ internalType: "uint256[]",
1927
+ name: "",
1928
+ type: "uint256[]"
1929
+ }
1930
+ ],
1931
+ stateMutability: "view",
1932
+ type: "function"
1933
+ },
1934
+ {
1935
+ inputs: [
1936
+ {
1937
+ internalType: "address",
1938
+ name: "account",
1939
+ type: "address"
1940
+ },
1941
+ {
1942
+ internalType: "address",
1943
+ name: "operator",
1944
+ type: "address"
1945
+ }
1946
+ ],
1947
+ name: "isApprovedForAll",
1948
+ outputs: [
1949
+ {
1950
+ internalType: "bool",
1951
+ name: "",
1952
+ type: "bool"
1953
+ }
1954
+ ],
1955
+ stateMutability: "view",
1956
+ type: "function"
1957
+ },
1958
+ {
1959
+ inputs: [
1960
+ {
1961
+ internalType: "address",
1962
+ name: "from",
1963
+ type: "address"
1964
+ },
1965
+ {
1966
+ internalType: "address",
1967
+ name: "to",
1968
+ type: "address"
1969
+ },
1970
+ {
1971
+ internalType: "uint256[]",
1972
+ name: "ids",
1973
+ type: "uint256[]"
1974
+ },
1975
+ {
1976
+ internalType: "uint256[]",
1977
+ name: "values",
1978
+ type: "uint256[]"
1979
+ },
1980
+ {
1981
+ internalType: "bytes",
1982
+ name: "data",
1983
+ type: "bytes"
1984
+ }
1985
+ ],
1986
+ name: "safeBatchTransferFrom",
1987
+ outputs: [],
1988
+ stateMutability: "nonpayable",
1989
+ type: "function"
1990
+ },
1991
+ {
1992
+ inputs: [
1993
+ {
1994
+ internalType: "address",
1995
+ name: "from",
1996
+ type: "address"
1997
+ },
1998
+ {
1999
+ internalType: "address",
2000
+ name: "to",
2001
+ type: "address"
2002
+ },
2003
+ {
2004
+ internalType: "uint256",
2005
+ name: "id",
2006
+ type: "uint256"
2007
+ },
2008
+ {
2009
+ internalType: "uint256",
2010
+ name: "value",
2011
+ type: "uint256"
2012
+ },
2013
+ {
2014
+ internalType: "bytes",
2015
+ name: "data",
2016
+ type: "bytes"
2017
+ }
2018
+ ],
2019
+ name: "safeTransferFrom",
2020
+ outputs: [],
2021
+ stateMutability: "nonpayable",
2022
+ type: "function"
2023
+ },
2024
+ {
2025
+ inputs: [
2026
+ {
2027
+ internalType: "address",
2028
+ name: "operator",
2029
+ type: "address"
2030
+ },
2031
+ {
2032
+ internalType: "bool",
2033
+ name: "approved",
2034
+ type: "bool"
2035
+ }
2036
+ ],
2037
+ name: "setApprovalForAll",
2038
+ outputs: [],
2039
+ stateMutability: "nonpayable",
2040
+ type: "function"
2041
+ },
2042
+ {
2043
+ inputs: [
2044
+ {
2045
+ internalType: "bytes4",
2046
+ name: "interfaceId",
2047
+ type: "bytes4"
2048
+ }
2049
+ ],
2050
+ name: "supportsInterface",
2051
+ outputs: [
2052
+ {
2053
+ internalType: "bool",
2054
+ name: "",
2055
+ type: "bool"
2056
+ }
2057
+ ],
2058
+ stateMutability: "view",
2059
+ type: "function"
2060
+ },
2061
+ {
2062
+ inputs: [
2063
+ {
2064
+ internalType: "uint256",
2065
+ name: "",
2066
+ type: "uint256"
2067
+ }
2068
+ ],
2069
+ name: "uri",
2070
+ outputs: [
2071
+ {
2072
+ internalType: "string",
2073
+ name: "",
2074
+ type: "string"
2075
+ }
2076
+ ],
2077
+ stateMutability: "view",
2078
+ type: "function"
2079
+ }
2080
+ ];
2081
+ var erc721Abi = [
2082
+ {
2083
+ type: "event",
2084
+ name: "Approval",
2085
+ inputs: [
2086
+ {
2087
+ indexed: true,
2088
+ name: "owner",
2089
+ type: "address"
2090
+ },
2091
+ {
2092
+ indexed: true,
2093
+ name: "spender",
2094
+ type: "address"
2095
+ },
2096
+ {
2097
+ indexed: true,
2098
+ name: "tokenId",
2099
+ type: "uint256"
2100
+ }
2101
+ ]
2102
+ },
2103
+ {
2104
+ type: "event",
2105
+ name: "ApprovalForAll",
2106
+ inputs: [
2107
+ {
2108
+ indexed: true,
2109
+ name: "owner",
2110
+ type: "address"
2111
+ },
2112
+ {
2113
+ indexed: true,
2114
+ name: "operator",
2115
+ type: "address"
2116
+ },
2117
+ {
2118
+ indexed: false,
2119
+ name: "approved",
2120
+ type: "bool"
2121
+ }
2122
+ ]
2123
+ },
2124
+ {
2125
+ type: "event",
2126
+ name: "Transfer",
2127
+ inputs: [
2128
+ {
2129
+ indexed: true,
2130
+ name: "from",
2131
+ type: "address"
2132
+ },
2133
+ {
2134
+ indexed: true,
2135
+ name: "to",
2136
+ type: "address"
2137
+ },
2138
+ {
2139
+ indexed: true,
2140
+ name: "tokenId",
2141
+ type: "uint256"
2142
+ }
2143
+ ]
2144
+ },
2145
+ {
2146
+ type: "function",
2147
+ name: "approve",
2148
+ stateMutability: "payable",
2149
+ inputs: [
2150
+ {
2151
+ name: "spender",
2152
+ type: "address"
2153
+ },
2154
+ {
2155
+ name: "tokenId",
2156
+ type: "uint256"
2157
+ }
2158
+ ],
2159
+ outputs: []
2160
+ },
2161
+ {
2162
+ type: "function",
2163
+ name: "balanceOf",
2164
+ stateMutability: "view",
2165
+ inputs: [
2166
+ {
2167
+ name: "account",
2168
+ type: "address"
2169
+ }
2170
+ ],
2171
+ outputs: [
2172
+ {
2173
+ type: "uint256"
2174
+ }
2175
+ ]
2176
+ },
2177
+ {
2178
+ type: "function",
2179
+ name: "getApproved",
2180
+ stateMutability: "view",
2181
+ inputs: [
2182
+ {
2183
+ name: "tokenId",
2184
+ type: "uint256"
2185
+ }
2186
+ ],
2187
+ outputs: [
2188
+ {
2189
+ type: "address"
2190
+ }
2191
+ ]
2192
+ },
2193
+ {
2194
+ type: "function",
2195
+ name: "isApprovedForAll",
2196
+ stateMutability: "view",
2197
+ inputs: [
2198
+ {
2199
+ name: "owner",
2200
+ type: "address"
2201
+ },
2202
+ {
2203
+ name: "operator",
2204
+ type: "address"
2205
+ }
2206
+ ],
2207
+ outputs: [
2208
+ {
2209
+ type: "bool"
2210
+ }
2211
+ ]
2212
+ },
2213
+ {
2214
+ type: "function",
2215
+ name: "name",
2216
+ stateMutability: "view",
2217
+ inputs: [],
2218
+ outputs: [
2219
+ {
2220
+ type: "string"
2221
+ }
2222
+ ]
2223
+ },
2224
+ {
2225
+ type: "function",
2226
+ name: "ownerOf",
2227
+ stateMutability: "view",
2228
+ inputs: [
2229
+ {
2230
+ name: "tokenId",
2231
+ type: "uint256"
2232
+ }
2233
+ ],
2234
+ outputs: [
2235
+ {
2236
+ name: "owner",
2237
+ type: "address"
2238
+ }
2239
+ ]
2240
+ },
2241
+ {
2242
+ type: "function",
2243
+ name: "safeTransferFrom",
2244
+ stateMutability: "payable",
2245
+ inputs: [
2246
+ {
2247
+ name: "from",
2248
+ type: "address"
2249
+ },
2250
+ {
2251
+ name: "to",
2252
+ type: "address"
2253
+ },
2254
+ {
2255
+ name: "tokenId",
2256
+ type: "uint256"
2257
+ }
2258
+ ],
2259
+ outputs: []
2260
+ },
2261
+ {
2262
+ type: "function",
2263
+ name: "safeTransferFrom",
2264
+ stateMutability: "nonpayable",
2265
+ inputs: [
2266
+ {
2267
+ name: "from",
2268
+ type: "address"
2269
+ },
2270
+ {
2271
+ name: "to",
2272
+ type: "address"
2273
+ },
2274
+ {
2275
+ name: "id",
2276
+ type: "uint256"
2277
+ },
2278
+ {
2279
+ name: "data",
2280
+ type: "bytes"
2281
+ }
2282
+ ],
2283
+ outputs: []
2284
+ },
2285
+ {
2286
+ type: "function",
2287
+ name: "setApprovalForAll",
2288
+ stateMutability: "nonpayable",
2289
+ inputs: [
2290
+ {
2291
+ name: "operator",
2292
+ type: "address"
2293
+ },
2294
+ {
2295
+ name: "approved",
2296
+ type: "bool"
2297
+ }
2298
+ ],
2299
+ outputs: []
2300
+ },
2301
+ {
2302
+ type: "function",
2303
+ name: "symbol",
2304
+ stateMutability: "view",
2305
+ inputs: [],
2306
+ outputs: [
2307
+ {
2308
+ type: "string"
2309
+ }
2310
+ ]
2311
+ },
2312
+ {
2313
+ type: "function",
2314
+ name: "tokenByIndex",
2315
+ stateMutability: "view",
2316
+ inputs: [
2317
+ {
2318
+ name: "index",
2319
+ type: "uint256"
2320
+ }
2321
+ ],
2322
+ outputs: [
2323
+ {
2324
+ type: "uint256"
2325
+ }
2326
+ ]
2327
+ },
2328
+ {
2329
+ type: "function",
2330
+ name: "tokenByIndex",
2331
+ stateMutability: "view",
2332
+ inputs: [
2333
+ {
2334
+ name: "owner",
2335
+ type: "address"
2336
+ },
2337
+ {
2338
+ name: "index",
2339
+ type: "uint256"
2340
+ }
2341
+ ],
2342
+ outputs: [
2343
+ {
2344
+ name: "tokenId",
2345
+ type: "uint256"
2346
+ }
2347
+ ]
2348
+ },
2349
+ {
2350
+ type: "function",
2351
+ name: "tokenURI",
2352
+ stateMutability: "view",
2353
+ inputs: [
2354
+ {
2355
+ name: "tokenId",
2356
+ type: "uint256"
2357
+ }
2358
+ ],
2359
+ outputs: [
2360
+ {
2361
+ type: "string"
2362
+ }
2363
+ ]
2364
+ },
2365
+ {
2366
+ type: "function",
2367
+ name: "totalSupply",
2368
+ stateMutability: "view",
2369
+ inputs: [],
2370
+ outputs: [
2371
+ {
2372
+ type: "uint256"
2373
+ }
2374
+ ]
2375
+ },
2376
+ {
2377
+ type: "function",
2378
+ name: "transferFrom",
2379
+ stateMutability: "payable",
2380
+ inputs: [
2381
+ {
2382
+ name: "sender",
2383
+ type: "address"
2384
+ },
2385
+ {
2386
+ name: "recipient",
2387
+ type: "address"
2388
+ },
2389
+ {
2390
+ name: "tokenId",
2391
+ type: "uint256"
2392
+ }
2393
+ ],
2394
+ outputs: []
2395
+ }
2396
+ ];
2397
+ var erc4626Abi = [
2398
+ {
2399
+ anonymous: false,
2400
+ inputs: [
2401
+ {
2402
+ indexed: true,
2403
+ name: "owner",
2404
+ type: "address"
2405
+ },
2406
+ {
2407
+ indexed: true,
2408
+ name: "spender",
2409
+ type: "address"
2410
+ },
2411
+ {
2412
+ indexed: false,
2413
+ name: "value",
2414
+ type: "uint256"
2415
+ }
2416
+ ],
2417
+ name: "Approval",
2418
+ type: "event"
2419
+ },
2420
+ {
2421
+ anonymous: false,
2422
+ inputs: [
2423
+ {
2424
+ indexed: true,
2425
+ name: "sender",
2426
+ type: "address"
2427
+ },
2428
+ {
2429
+ indexed: true,
2430
+ name: "receiver",
2431
+ type: "address"
2432
+ },
2433
+ {
2434
+ indexed: false,
2435
+ name: "assets",
2436
+ type: "uint256"
2437
+ },
2438
+ {
2439
+ indexed: false,
2440
+ name: "shares",
2441
+ type: "uint256"
2442
+ }
2443
+ ],
2444
+ name: "Deposit",
2445
+ type: "event"
2446
+ },
2447
+ {
2448
+ anonymous: false,
2449
+ inputs: [
2450
+ {
2451
+ indexed: true,
2452
+ name: "from",
2453
+ type: "address"
2454
+ },
2455
+ {
2456
+ indexed: true,
2457
+ name: "to",
2458
+ type: "address"
2459
+ },
2460
+ {
2461
+ indexed: false,
2462
+ name: "value",
2463
+ type: "uint256"
2464
+ }
2465
+ ],
2466
+ name: "Transfer",
2467
+ type: "event"
2468
+ },
2469
+ {
2470
+ anonymous: false,
2471
+ inputs: [
2472
+ {
2473
+ indexed: true,
2474
+ name: "sender",
2475
+ type: "address"
2476
+ },
2477
+ {
2478
+ indexed: true,
2479
+ name: "receiver",
2480
+ type: "address"
2481
+ },
2482
+ {
2483
+ indexed: true,
2484
+ name: "owner",
2485
+ type: "address"
2486
+ },
2487
+ {
2488
+ indexed: false,
2489
+ name: "assets",
2490
+ type: "uint256"
2491
+ },
2492
+ {
2493
+ indexed: false,
2494
+ name: "shares",
2495
+ type: "uint256"
2496
+ }
2497
+ ],
2498
+ name: "Withdraw",
2499
+ type: "event"
2500
+ },
2501
+ {
2502
+ inputs: [
2503
+ {
2504
+ name: "owner",
2505
+ type: "address"
2506
+ },
2507
+ {
2508
+ name: "spender",
2509
+ type: "address"
2510
+ }
2511
+ ],
2512
+ name: "allowance",
2513
+ outputs: [
2514
+ {
2515
+ type: "uint256"
2516
+ }
2517
+ ],
2518
+ stateMutability: "view",
2519
+ type: "function"
2520
+ },
2521
+ {
2522
+ inputs: [
2523
+ {
2524
+ name: "spender",
2525
+ type: "address"
2526
+ },
2527
+ {
2528
+ name: "amount",
2529
+ type: "uint256"
2530
+ }
2531
+ ],
2532
+ name: "approve",
2533
+ outputs: [
2534
+ {
2535
+ type: "bool"
2536
+ }
2537
+ ],
2538
+ stateMutability: "nonpayable",
2539
+ type: "function"
2540
+ },
2541
+ {
2542
+ inputs: [],
2543
+ name: "asset",
2544
+ outputs: [
2545
+ {
2546
+ name: "assetTokenAddress",
2547
+ type: "address"
2548
+ }
2549
+ ],
2550
+ stateMutability: "view",
2551
+ type: "function"
2552
+ },
2553
+ {
2554
+ inputs: [
2555
+ {
2556
+ name: "account",
2557
+ type: "address"
2558
+ }
2559
+ ],
2560
+ name: "balanceOf",
2561
+ outputs: [
2562
+ {
2563
+ type: "uint256"
2564
+ }
2565
+ ],
2566
+ stateMutability: "view",
2567
+ type: "function"
2568
+ },
2569
+ {
2570
+ inputs: [
2571
+ {
2572
+ name: "shares",
2573
+ type: "uint256"
2574
+ }
2575
+ ],
2576
+ name: "convertToAssets",
2577
+ outputs: [
2578
+ {
2579
+ name: "assets",
2580
+ type: "uint256"
2581
+ }
2582
+ ],
2583
+ stateMutability: "view",
2584
+ type: "function"
2585
+ },
2586
+ {
2587
+ inputs: [
2588
+ {
2589
+ name: "assets",
2590
+ type: "uint256"
2591
+ }
2592
+ ],
2593
+ name: "convertToShares",
2594
+ outputs: [
2595
+ {
2596
+ name: "shares",
2597
+ type: "uint256"
2598
+ }
2599
+ ],
2600
+ stateMutability: "view",
2601
+ type: "function"
2602
+ },
2603
+ {
2604
+ inputs: [
2605
+ {
2606
+ name: "assets",
2607
+ type: "uint256"
1217
2608
  },
1218
2609
  {
1219
- name: "_signature",
1220
- type: "bytes"
2610
+ name: "receiver",
2611
+ type: "address"
2612
+ }
2613
+ ],
2614
+ name: "deposit",
2615
+ outputs: [
2616
+ {
2617
+ name: "shares",
2618
+ type: "uint256"
1221
2619
  }
1222
2620
  ],
1223
2621
  stateMutability: "nonpayable",
1224
- type: "constructor"
2622
+ type: "function"
1225
2623
  },
1226
2624
  {
1227
2625
  inputs: [
1228
2626
  {
1229
- name: "_signer",
2627
+ name: "caller",
1230
2628
  type: "address"
1231
- },
2629
+ }
2630
+ ],
2631
+ name: "maxDeposit",
2632
+ outputs: [
1232
2633
  {
1233
- name: "_hash",
1234
- type: "bytes32"
1235
- },
2634
+ name: "maxAssets",
2635
+ type: "uint256"
2636
+ }
2637
+ ],
2638
+ stateMutability: "view",
2639
+ type: "function"
2640
+ },
2641
+ {
2642
+ inputs: [
1236
2643
  {
1237
- name: "_signature",
1238
- type: "bytes"
2644
+ name: "caller",
2645
+ type: "address"
1239
2646
  }
1240
2647
  ],
2648
+ name: "maxMint",
1241
2649
  outputs: [
1242
2650
  {
1243
- type: "bool"
2651
+ name: "maxShares",
2652
+ type: "uint256"
1244
2653
  }
1245
2654
  ],
1246
- stateMutability: "nonpayable",
1247
- type: "function",
1248
- name: "isValidSig"
1249
- }
1250
- ];
1251
- var erc20Abi = [
2655
+ stateMutability: "view",
2656
+ type: "function"
2657
+ },
1252
2658
  {
1253
- type: "event",
1254
- name: "Approval",
1255
2659
  inputs: [
1256
2660
  {
1257
- indexed: true,
1258
2661
  name: "owner",
1259
2662
  type: "address"
1260
- },
1261
- {
1262
- indexed: true,
1263
- name: "spender",
1264
- type: "address"
1265
- },
2663
+ }
2664
+ ],
2665
+ name: "maxRedeem",
2666
+ outputs: [
1266
2667
  {
1267
- indexed: false,
1268
- name: "value",
2668
+ name: "maxShares",
1269
2669
  type: "uint256"
1270
2670
  }
1271
- ]
2671
+ ],
2672
+ stateMutability: "view",
2673
+ type: "function"
1272
2674
  },
1273
2675
  {
1274
- type: "event",
1275
- name: "Transfer",
1276
2676
  inputs: [
1277
2677
  {
1278
- indexed: true,
1279
- name: "from",
1280
- type: "address"
1281
- },
1282
- {
1283
- indexed: true,
1284
- name: "to",
2678
+ name: "owner",
1285
2679
  type: "address"
1286
- },
2680
+ }
2681
+ ],
2682
+ name: "maxWithdraw",
2683
+ outputs: [
1287
2684
  {
1288
- indexed: false,
1289
- name: "value",
2685
+ name: "maxAssets",
1290
2686
  type: "uint256"
1291
2687
  }
1292
- ]
2688
+ ],
2689
+ stateMutability: "view",
2690
+ type: "function"
1293
2691
  },
1294
2692
  {
1295
- type: "function",
1296
- name: "allowance",
1297
- stateMutability: "view",
1298
2693
  inputs: [
1299
2694
  {
1300
- name: "owner",
1301
- type: "address"
2695
+ name: "shares",
2696
+ type: "uint256"
1302
2697
  },
1303
2698
  {
1304
- name: "spender",
2699
+ name: "receiver",
1305
2700
  type: "address"
1306
2701
  }
1307
2702
  ],
2703
+ name: "mint",
1308
2704
  outputs: [
1309
2705
  {
2706
+ name: "assets",
1310
2707
  type: "uint256"
1311
2708
  }
1312
- ]
2709
+ ],
2710
+ stateMutability: "nonpayable",
2711
+ type: "function"
1313
2712
  },
1314
2713
  {
1315
- type: "function",
1316
- name: "approve",
1317
- stateMutability: "nonpayable",
1318
2714
  inputs: [
1319
2715
  {
1320
- name: "spender",
1321
- type: "address"
1322
- },
1323
- {
1324
- name: "amount",
2716
+ name: "assets",
1325
2717
  type: "uint256"
1326
2718
  }
1327
2719
  ],
2720
+ name: "previewDeposit",
1328
2721
  outputs: [
1329
2722
  {
1330
- type: "bool"
2723
+ name: "shares",
2724
+ type: "uint256"
1331
2725
  }
1332
- ]
2726
+ ],
2727
+ stateMutability: "view",
2728
+ type: "function"
1333
2729
  },
1334
2730
  {
1335
- type: "function",
1336
- name: "balanceOf",
1337
- stateMutability: "view",
1338
2731
  inputs: [
1339
2732
  {
1340
- name: "account",
1341
- type: "address"
2733
+ name: "shares",
2734
+ type: "uint256"
1342
2735
  }
1343
2736
  ],
2737
+ name: "previewMint",
1344
2738
  outputs: [
1345
2739
  {
2740
+ name: "assets",
1346
2741
  type: "uint256"
1347
2742
  }
1348
- ]
2743
+ ],
2744
+ stateMutability: "view",
2745
+ type: "function"
1349
2746
  },
1350
2747
  {
1351
- type: "function",
1352
- name: "decimals",
1353
- stateMutability: "view",
1354
- inputs: [],
2748
+ inputs: [
2749
+ {
2750
+ name: "shares",
2751
+ type: "uint256"
2752
+ }
2753
+ ],
2754
+ name: "previewRedeem",
1355
2755
  outputs: [
1356
2756
  {
1357
- type: "uint8"
2757
+ name: "assets",
2758
+ type: "uint256"
1358
2759
  }
1359
- ]
2760
+ ],
2761
+ stateMutability: "view",
2762
+ type: "function"
1360
2763
  },
1361
2764
  {
1362
- type: "function",
1363
- name: "name",
2765
+ inputs: [
2766
+ {
2767
+ name: "assets",
2768
+ type: "uint256"
2769
+ }
2770
+ ],
2771
+ name: "previewWithdraw",
2772
+ outputs: [
2773
+ {
2774
+ name: "shares",
2775
+ type: "uint256"
2776
+ }
2777
+ ],
1364
2778
  stateMutability: "view",
1365
- inputs: [],
2779
+ type: "function"
2780
+ },
2781
+ {
2782
+ inputs: [
2783
+ {
2784
+ name: "shares",
2785
+ type: "uint256"
2786
+ },
2787
+ {
2788
+ name: "receiver",
2789
+ type: "address"
2790
+ },
2791
+ {
2792
+ name: "owner",
2793
+ type: "address"
2794
+ }
2795
+ ],
2796
+ name: "redeem",
1366
2797
  outputs: [
1367
2798
  {
1368
- type: "string"
2799
+ name: "assets",
2800
+ type: "uint256"
1369
2801
  }
1370
- ]
2802
+ ],
2803
+ stateMutability: "nonpayable",
2804
+ type: "function"
1371
2805
  },
1372
2806
  {
1373
- type: "function",
1374
- name: "symbol",
1375
- stateMutability: "view",
1376
2807
  inputs: [],
2808
+ name: "totalAssets",
1377
2809
  outputs: [
1378
2810
  {
1379
- type: "string"
2811
+ name: "totalManagedAssets",
2812
+ type: "uint256"
1380
2813
  }
1381
- ]
2814
+ ],
2815
+ stateMutability: "view",
2816
+ type: "function"
1382
2817
  },
1383
2818
  {
1384
- type: "function",
1385
- name: "totalSupply",
1386
- stateMutability: "view",
1387
2819
  inputs: [],
2820
+ name: "totalSupply",
1388
2821
  outputs: [
1389
2822
  {
1390
2823
  type: "uint256"
1391
2824
  }
1392
- ]
2825
+ ],
2826
+ stateMutability: "view",
2827
+ type: "function"
1393
2828
  },
1394
2829
  {
1395
- type: "function",
1396
- name: "transfer",
1397
- stateMutability: "nonpayable",
1398
2830
  inputs: [
1399
2831
  {
1400
- name: "recipient",
2832
+ name: "to",
1401
2833
  type: "address"
1402
2834
  },
1403
2835
  {
@@ -1405,23 +2837,23 @@ var erc20Abi = [
1405
2837
  type: "uint256"
1406
2838
  }
1407
2839
  ],
2840
+ name: "transfer",
1408
2841
  outputs: [
1409
2842
  {
1410
2843
  type: "bool"
1411
2844
  }
1412
- ]
2845
+ ],
2846
+ stateMutability: "nonpayable",
2847
+ type: "function"
1413
2848
  },
1414
2849
  {
1415
- type: "function",
1416
- name: "transferFrom",
1417
- stateMutability: "nonpayable",
1418
2850
  inputs: [
1419
2851
  {
1420
- name: "sender",
2852
+ name: "from",
1421
2853
  type: "address"
1422
2854
  },
1423
2855
  {
1424
- name: "recipient",
2856
+ name: "to",
1425
2857
  type: "address"
1426
2858
  },
1427
2859
  {
@@ -1429,11 +2861,39 @@ var erc20Abi = [
1429
2861
  type: "uint256"
1430
2862
  }
1431
2863
  ],
2864
+ name: "transferFrom",
1432
2865
  outputs: [
1433
2866
  {
1434
2867
  type: "bool"
1435
2868
  }
1436
- ]
2869
+ ],
2870
+ stateMutability: "nonpayable",
2871
+ type: "function"
2872
+ },
2873
+ {
2874
+ inputs: [
2875
+ {
2876
+ name: "assets",
2877
+ type: "uint256"
2878
+ },
2879
+ {
2880
+ name: "receiver",
2881
+ type: "address"
2882
+ },
2883
+ {
2884
+ name: "owner",
2885
+ type: "address"
2886
+ }
2887
+ ],
2888
+ name: "withdraw",
2889
+ outputs: [
2890
+ {
2891
+ name: "shares",
2892
+ type: "uint256"
2893
+ }
2894
+ ],
2895
+ stateMutability: "nonpayable",
2896
+ type: "function"
1437
2897
  }
1438
2898
  ];
1439
2899
 
@@ -1548,6 +3008,19 @@ function toSignatureHash(fn) {
1548
3008
  var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
1549
3009
 
1550
3010
  // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/fromBytes.js
3011
+ function fromBytes(bytes, toOrOpts) {
3012
+ const opts = typeof toOrOpts === "string" ? { to: toOrOpts } : toOrOpts;
3013
+ const to = opts.to;
3014
+ if (to === "number")
3015
+ return bytesToNumber(bytes, opts);
3016
+ if (to === "bigint")
3017
+ return bytesToBigInt(bytes, opts);
3018
+ if (to === "boolean")
3019
+ return bytesToBool(bytes, opts);
3020
+ if (to === "string")
3021
+ return bytesToString(bytes, opts);
3022
+ return bytesToHex(bytes, opts);
3023
+ }
1551
3024
  function bytesToBigInt(bytes, opts = {}) {
1552
3025
  if (typeof opts.size !== "undefined")
1553
3026
  assertSize(bytes, { size: opts.size });
@@ -2319,18 +3792,6 @@ function isAddressEqual(a, b) {
2319
3792
  return a.toLowerCase() === b.toLowerCase();
2320
3793
  }
2321
3794
 
2322
- // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/block/formatBlockParameter.js
2323
- function formatBlockParameter(parameters) {
2324
- const { blockHash, blockNumber, blockTag, requireCanonical } = parameters;
2325
- if (requireCanonical !== void 0 && !blockHash)
2326
- throw new BaseError("`requireCanonical` can only be provided when `blockHash` is set.");
2327
- if (blockHash)
2328
- return requireCanonical ? { blockHash, requireCanonical } : { blockHash };
2329
- if (typeof blockNumber === "bigint")
2330
- return numberToHex(blockNumber);
2331
- return blockTag ?? "latest";
2332
- }
2333
-
2334
3795
  // node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
2335
3796
  function getChainContractAddress({ blockNumber, chain, contract: name }) {
2336
3797
  const contract = chain?.contracts?.[name];
@@ -2416,6 +3877,26 @@ var ResponseBodyTooLargeError = class extends BaseError {
2416
3877
  this.size = size2;
2417
3878
  }
2418
3879
  };
3880
+ var WebSocketRequestError = class extends BaseError {
3881
+ constructor({ body, cause, details, url }) {
3882
+ super("WebSocket request failed.", {
3883
+ cause,
3884
+ details,
3885
+ metaMessages: [
3886
+ `URL: ${getUrl(url)}`,
3887
+ body && `Request body: ${stringify(body)}`
3888
+ ].filter(Boolean),
3889
+ name: "WebSocketRequestError"
3890
+ });
3891
+ Object.defineProperty(this, "url", {
3892
+ enumerable: true,
3893
+ configurable: true,
3894
+ writable: true,
3895
+ value: void 0
3896
+ });
3897
+ this.url = url;
3898
+ }
3899
+ };
2419
3900
  var RpcRequestError = class extends BaseError {
2420
3901
  constructor({ body, error, url }) {
2421
3902
  super("RPC Request failed.", {
@@ -2447,6 +3928,21 @@ var RpcRequestError = class extends BaseError {
2447
3928
  this.url = url;
2448
3929
  }
2449
3930
  };
3931
+ var SocketClosedError = class extends BaseError {
3932
+ constructor({ url } = {}) {
3933
+ super("The socket has been closed.", {
3934
+ metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),
3935
+ name: "SocketClosedError"
3936
+ });
3937
+ Object.defineProperty(this, "url", {
3938
+ enumerable: true,
3939
+ configurable: true,
3940
+ writable: true,
3941
+ value: void 0
3942
+ });
3943
+ this.url = url;
3944
+ }
3945
+ };
2450
3946
  var TimeoutError = class extends BaseError {
2451
3947
  constructor({ body, url }) {
2452
3948
  super("The request took too long to respond.", {
@@ -3059,6 +4555,7 @@ function formatTransactionRequest(request, _) {
3059
4555
  rpcRequest.value = numberToHex(request.value);
3060
4556
  return rpcRequest;
3061
4557
  }
4558
+ var defineTransactionRequest = /* @__PURE__ */ defineFormatter("transactionRequest", formatTransactionRequest);
3062
4559
  function formatAuthorizationList(authorizationList) {
3063
4560
  return authorizationList.map((authorization) => ({
3064
4561
  address: authorization.address,
@@ -3299,7 +4796,7 @@ async function call(client, args) {
3299
4796
  if (isAbortError(err))
3300
4797
  throw err;
3301
4798
  const data2 = getRevertErrorData(err);
3302
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-UCLT5VOW.js");
4799
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-XR5NE5QK.js");
3303
4800
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3304
4801
  return {
3305
4802
  data: await offchainLookup2(client, { data: data2, requestOptions, to })
@@ -3709,26 +5206,59 @@ async function ccipRequest({ data, requestOptions, sender, urls }) {
3709
5206
  }
3710
5207
 
3711
5208
  export {
3712
- formatBlockParameter,
3713
5209
  formatAbiParameters,
3714
5210
  formatAbiItem2 as formatAbiItem,
5211
+ InvalidAbiItemError,
5212
+ UnknownTypeError,
5213
+ InvalidAbiParameterError,
5214
+ InvalidAbiParametersError,
5215
+ InvalidParameterError,
5216
+ SolidityProtectedKeywordError,
5217
+ InvalidModifierError,
5218
+ InvalidFunctionModifierError,
5219
+ InvalidAbiTypeParameterError,
5220
+ InvalidSignatureError,
5221
+ UnknownSignatureError,
5222
+ InvalidStructSignatureError,
5223
+ CircularReferenceError,
5224
+ InvalidParenthesisError,
5225
+ parseAbi,
3715
5226
  parseAbiItem,
5227
+ parseAbiParameter2 as parseAbiParameter,
3716
5228
  parseAbiParameters,
5229
+ toSignature,
5230
+ toSignatureHash,
3717
5231
  toEventSelector,
5232
+ toFunctionSelector,
3718
5233
  getAbiItem,
5234
+ prepareEncodeFunctionData,
3719
5235
  encodeFunctionData,
5236
+ solidityError,
5237
+ fromBytes,
5238
+ bytesToBigInt,
5239
+ bytesToBool,
5240
+ bytesToNumber,
5241
+ bytesToString,
3720
5242
  decodeAbiParameters,
5243
+ decodeErrorResult,
5244
+ AccountStateConflictError,
5245
+ StateAssignmentConflictError,
3721
5246
  getAbortError,
3722
5247
  isAbortError,
3723
5248
  CallExecutionError,
3724
5249
  ContractFunctionExecutionError,
3725
5250
  ContractFunctionRevertedError,
3726
5251
  ContractFunctionZeroDataError,
5252
+ CounterfactualDeploymentFailedError,
3727
5253
  RawContractError,
3728
5254
  HttpRequestError,
3729
5255
  ResponseBodyTooLargeError,
5256
+ WebSocketRequestError,
3730
5257
  RpcRequestError,
5258
+ SocketClosedError,
3731
5259
  TimeoutError,
5260
+ RpcError,
5261
+ ProviderRpcError,
3732
5262
  ParseRpcError,
3733
5263
  InvalidRequestRpcError,
3734
5264
  MethodNotFoundRpcError,
@@ -3759,13 +5289,16 @@ export {
3759
5289
  getNodeError,
3760
5290
  extract,
3761
5291
  defineFormatter,
5292
+ rpcTransactionType,
3762
5293
  formatTransactionRequest,
5294
+ defineTransactionRequest,
3763
5295
  serializeStateOverride,
3764
5296
  assertRequest,
3765
5297
  isAddressEqual,
3766
5298
  decodeFunctionResult,
3767
5299
  toRpc2 as toRpc,
3768
5300
  multicall3Abi,
5301
+ batchGatewayAbi,
3769
5302
  universalResolverResolveAbi,
3770
5303
  universalResolverReverseAbi,
3771
5304
  textResolverAbi,
@@ -3773,7 +5306,12 @@ export {
3773
5306
  erc1271Abi,
3774
5307
  erc6492SignatureValidatorAbi,
3775
5308
  erc20Abi,
5309
+ erc20Abi_bytes32,
5310
+ erc1155Abi,
5311
+ erc721Abi,
5312
+ erc4626Abi,
3776
5313
  deploylessCallViaBytecodeBytecode,
5314
+ deploylessCallViaFactoryBytecode,
3777
5315
  erc6492SignatureValidatorByteCode,
3778
5316
  multicall3Bytecode,
3779
5317
  encodeDeployData,
@@ -3781,6 +5319,9 @@ export {
3781
5319
  getCallError,
3782
5320
  withResolvers,
3783
5321
  createBatchScheduler,
5322
+ decodeFunctionData,
5323
+ encodeErrorResult,
5324
+ encodeFunctionResult,
3784
5325
  localBatchGatewayUrl,
3785
5326
  offchainLookupSignature,
3786
5327
  offchainLookupAbiItem,
@@ -3788,4 +5329,4 @@ export {
3788
5329
  ccipRequest,
3789
5330
  call
3790
5331
  };
3791
- //# sourceMappingURL=chunk-LPRVHM7P.js.map
5332
+ //# sourceMappingURL=chunk-ZMHYXMO6.js.map