@1delta/margin-fetcher 5.0.126 → 5.0.128

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.
@@ -0,0 +1,5 @@
1
+ export { ccipRequest, offchainLookup, offchainLookupAbiItem, offchainLookupSignature } from './chunk-V6D7KOW7.js';
2
+ import './chunk-BYTNVMX7.js';
3
+ import './chunk-PR4QN5HX.js';
4
+ //# sourceMappingURL=ccip-X5WZWTPH.js.map
5
+ //# sourceMappingURL=ccip-X5WZWTPH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-SBJNLXE4.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-X5WZWTPH.js"}
@@ -1363,6 +1363,508 @@ var erc20Abi = [
1363
1363
  ]
1364
1364
  }
1365
1365
  ];
1366
+ var erc4626Abi = [
1367
+ {
1368
+ anonymous: false,
1369
+ inputs: [
1370
+ {
1371
+ indexed: true,
1372
+ name: "owner",
1373
+ type: "address"
1374
+ },
1375
+ {
1376
+ indexed: true,
1377
+ name: "spender",
1378
+ type: "address"
1379
+ },
1380
+ {
1381
+ indexed: false,
1382
+ name: "value",
1383
+ type: "uint256"
1384
+ }
1385
+ ],
1386
+ name: "Approval",
1387
+ type: "event"
1388
+ },
1389
+ {
1390
+ anonymous: false,
1391
+ inputs: [
1392
+ {
1393
+ indexed: true,
1394
+ name: "sender",
1395
+ type: "address"
1396
+ },
1397
+ {
1398
+ indexed: true,
1399
+ name: "receiver",
1400
+ type: "address"
1401
+ },
1402
+ {
1403
+ indexed: false,
1404
+ name: "assets",
1405
+ type: "uint256"
1406
+ },
1407
+ {
1408
+ indexed: false,
1409
+ name: "shares",
1410
+ type: "uint256"
1411
+ }
1412
+ ],
1413
+ name: "Deposit",
1414
+ type: "event"
1415
+ },
1416
+ {
1417
+ anonymous: false,
1418
+ inputs: [
1419
+ {
1420
+ indexed: true,
1421
+ name: "from",
1422
+ type: "address"
1423
+ },
1424
+ {
1425
+ indexed: true,
1426
+ name: "to",
1427
+ type: "address"
1428
+ },
1429
+ {
1430
+ indexed: false,
1431
+ name: "value",
1432
+ type: "uint256"
1433
+ }
1434
+ ],
1435
+ name: "Transfer",
1436
+ type: "event"
1437
+ },
1438
+ {
1439
+ anonymous: false,
1440
+ inputs: [
1441
+ {
1442
+ indexed: true,
1443
+ name: "sender",
1444
+ type: "address"
1445
+ },
1446
+ {
1447
+ indexed: true,
1448
+ name: "receiver",
1449
+ type: "address"
1450
+ },
1451
+ {
1452
+ indexed: true,
1453
+ name: "owner",
1454
+ type: "address"
1455
+ },
1456
+ {
1457
+ indexed: false,
1458
+ name: "assets",
1459
+ type: "uint256"
1460
+ },
1461
+ {
1462
+ indexed: false,
1463
+ name: "shares",
1464
+ type: "uint256"
1465
+ }
1466
+ ],
1467
+ name: "Withdraw",
1468
+ type: "event"
1469
+ },
1470
+ {
1471
+ inputs: [
1472
+ {
1473
+ name: "owner",
1474
+ type: "address"
1475
+ },
1476
+ {
1477
+ name: "spender",
1478
+ type: "address"
1479
+ }
1480
+ ],
1481
+ name: "allowance",
1482
+ outputs: [
1483
+ {
1484
+ type: "uint256"
1485
+ }
1486
+ ],
1487
+ stateMutability: "view",
1488
+ type: "function"
1489
+ },
1490
+ {
1491
+ inputs: [
1492
+ {
1493
+ name: "spender",
1494
+ type: "address"
1495
+ },
1496
+ {
1497
+ name: "amount",
1498
+ type: "uint256"
1499
+ }
1500
+ ],
1501
+ name: "approve",
1502
+ outputs: [
1503
+ {
1504
+ type: "bool"
1505
+ }
1506
+ ],
1507
+ stateMutability: "nonpayable",
1508
+ type: "function"
1509
+ },
1510
+ {
1511
+ inputs: [],
1512
+ name: "asset",
1513
+ outputs: [
1514
+ {
1515
+ name: "assetTokenAddress",
1516
+ type: "address"
1517
+ }
1518
+ ],
1519
+ stateMutability: "view",
1520
+ type: "function"
1521
+ },
1522
+ {
1523
+ inputs: [
1524
+ {
1525
+ name: "account",
1526
+ type: "address"
1527
+ }
1528
+ ],
1529
+ name: "balanceOf",
1530
+ outputs: [
1531
+ {
1532
+ type: "uint256"
1533
+ }
1534
+ ],
1535
+ stateMutability: "view",
1536
+ type: "function"
1537
+ },
1538
+ {
1539
+ inputs: [
1540
+ {
1541
+ name: "shares",
1542
+ type: "uint256"
1543
+ }
1544
+ ],
1545
+ name: "convertToAssets",
1546
+ outputs: [
1547
+ {
1548
+ name: "assets",
1549
+ type: "uint256"
1550
+ }
1551
+ ],
1552
+ stateMutability: "view",
1553
+ type: "function"
1554
+ },
1555
+ {
1556
+ inputs: [
1557
+ {
1558
+ name: "assets",
1559
+ type: "uint256"
1560
+ }
1561
+ ],
1562
+ name: "convertToShares",
1563
+ outputs: [
1564
+ {
1565
+ name: "shares",
1566
+ type: "uint256"
1567
+ }
1568
+ ],
1569
+ stateMutability: "view",
1570
+ type: "function"
1571
+ },
1572
+ {
1573
+ inputs: [
1574
+ {
1575
+ name: "assets",
1576
+ type: "uint256"
1577
+ },
1578
+ {
1579
+ name: "receiver",
1580
+ type: "address"
1581
+ }
1582
+ ],
1583
+ name: "deposit",
1584
+ outputs: [
1585
+ {
1586
+ name: "shares",
1587
+ type: "uint256"
1588
+ }
1589
+ ],
1590
+ stateMutability: "nonpayable",
1591
+ type: "function"
1592
+ },
1593
+ {
1594
+ inputs: [
1595
+ {
1596
+ name: "caller",
1597
+ type: "address"
1598
+ }
1599
+ ],
1600
+ name: "maxDeposit",
1601
+ outputs: [
1602
+ {
1603
+ name: "maxAssets",
1604
+ type: "uint256"
1605
+ }
1606
+ ],
1607
+ stateMutability: "view",
1608
+ type: "function"
1609
+ },
1610
+ {
1611
+ inputs: [
1612
+ {
1613
+ name: "caller",
1614
+ type: "address"
1615
+ }
1616
+ ],
1617
+ name: "maxMint",
1618
+ outputs: [
1619
+ {
1620
+ name: "maxShares",
1621
+ type: "uint256"
1622
+ }
1623
+ ],
1624
+ stateMutability: "view",
1625
+ type: "function"
1626
+ },
1627
+ {
1628
+ inputs: [
1629
+ {
1630
+ name: "owner",
1631
+ type: "address"
1632
+ }
1633
+ ],
1634
+ name: "maxRedeem",
1635
+ outputs: [
1636
+ {
1637
+ name: "maxShares",
1638
+ type: "uint256"
1639
+ }
1640
+ ],
1641
+ stateMutability: "view",
1642
+ type: "function"
1643
+ },
1644
+ {
1645
+ inputs: [
1646
+ {
1647
+ name: "owner",
1648
+ type: "address"
1649
+ }
1650
+ ],
1651
+ name: "maxWithdraw",
1652
+ outputs: [
1653
+ {
1654
+ name: "maxAssets",
1655
+ type: "uint256"
1656
+ }
1657
+ ],
1658
+ stateMutability: "view",
1659
+ type: "function"
1660
+ },
1661
+ {
1662
+ inputs: [
1663
+ {
1664
+ name: "shares",
1665
+ type: "uint256"
1666
+ },
1667
+ {
1668
+ name: "receiver",
1669
+ type: "address"
1670
+ }
1671
+ ],
1672
+ name: "mint",
1673
+ outputs: [
1674
+ {
1675
+ name: "assets",
1676
+ type: "uint256"
1677
+ }
1678
+ ],
1679
+ stateMutability: "nonpayable",
1680
+ type: "function"
1681
+ },
1682
+ {
1683
+ inputs: [
1684
+ {
1685
+ name: "assets",
1686
+ type: "uint256"
1687
+ }
1688
+ ],
1689
+ name: "previewDeposit",
1690
+ outputs: [
1691
+ {
1692
+ name: "shares",
1693
+ type: "uint256"
1694
+ }
1695
+ ],
1696
+ stateMutability: "view",
1697
+ type: "function"
1698
+ },
1699
+ {
1700
+ inputs: [
1701
+ {
1702
+ name: "shares",
1703
+ type: "uint256"
1704
+ }
1705
+ ],
1706
+ name: "previewMint",
1707
+ outputs: [
1708
+ {
1709
+ name: "assets",
1710
+ type: "uint256"
1711
+ }
1712
+ ],
1713
+ stateMutability: "view",
1714
+ type: "function"
1715
+ },
1716
+ {
1717
+ inputs: [
1718
+ {
1719
+ name: "shares",
1720
+ type: "uint256"
1721
+ }
1722
+ ],
1723
+ name: "previewRedeem",
1724
+ outputs: [
1725
+ {
1726
+ name: "assets",
1727
+ type: "uint256"
1728
+ }
1729
+ ],
1730
+ stateMutability: "view",
1731
+ type: "function"
1732
+ },
1733
+ {
1734
+ inputs: [
1735
+ {
1736
+ name: "assets",
1737
+ type: "uint256"
1738
+ }
1739
+ ],
1740
+ name: "previewWithdraw",
1741
+ outputs: [
1742
+ {
1743
+ name: "shares",
1744
+ type: "uint256"
1745
+ }
1746
+ ],
1747
+ stateMutability: "view",
1748
+ type: "function"
1749
+ },
1750
+ {
1751
+ inputs: [
1752
+ {
1753
+ name: "shares",
1754
+ type: "uint256"
1755
+ },
1756
+ {
1757
+ name: "receiver",
1758
+ type: "address"
1759
+ },
1760
+ {
1761
+ name: "owner",
1762
+ type: "address"
1763
+ }
1764
+ ],
1765
+ name: "redeem",
1766
+ outputs: [
1767
+ {
1768
+ name: "assets",
1769
+ type: "uint256"
1770
+ }
1771
+ ],
1772
+ stateMutability: "nonpayable",
1773
+ type: "function"
1774
+ },
1775
+ {
1776
+ inputs: [],
1777
+ name: "totalAssets",
1778
+ outputs: [
1779
+ {
1780
+ name: "totalManagedAssets",
1781
+ type: "uint256"
1782
+ }
1783
+ ],
1784
+ stateMutability: "view",
1785
+ type: "function"
1786
+ },
1787
+ {
1788
+ inputs: [],
1789
+ name: "totalSupply",
1790
+ outputs: [
1791
+ {
1792
+ type: "uint256"
1793
+ }
1794
+ ],
1795
+ stateMutability: "view",
1796
+ type: "function"
1797
+ },
1798
+ {
1799
+ inputs: [
1800
+ {
1801
+ name: "to",
1802
+ type: "address"
1803
+ },
1804
+ {
1805
+ name: "amount",
1806
+ type: "uint256"
1807
+ }
1808
+ ],
1809
+ name: "transfer",
1810
+ outputs: [
1811
+ {
1812
+ type: "bool"
1813
+ }
1814
+ ],
1815
+ stateMutability: "nonpayable",
1816
+ type: "function"
1817
+ },
1818
+ {
1819
+ inputs: [
1820
+ {
1821
+ name: "from",
1822
+ type: "address"
1823
+ },
1824
+ {
1825
+ name: "to",
1826
+ type: "address"
1827
+ },
1828
+ {
1829
+ name: "amount",
1830
+ type: "uint256"
1831
+ }
1832
+ ],
1833
+ name: "transferFrom",
1834
+ outputs: [
1835
+ {
1836
+ type: "bool"
1837
+ }
1838
+ ],
1839
+ stateMutability: "nonpayable",
1840
+ type: "function"
1841
+ },
1842
+ {
1843
+ inputs: [
1844
+ {
1845
+ name: "assets",
1846
+ type: "uint256"
1847
+ },
1848
+ {
1849
+ name: "receiver",
1850
+ type: "address"
1851
+ },
1852
+ {
1853
+ name: "owner",
1854
+ type: "address"
1855
+ }
1856
+ ],
1857
+ name: "withdraw",
1858
+ outputs: [
1859
+ {
1860
+ name: "shares",
1861
+ type: "uint256"
1862
+ }
1863
+ ],
1864
+ stateMutability: "nonpayable",
1865
+ type: "function"
1866
+ }
1867
+ ];
1366
1868
 
1367
1869
  // ../../node_modules/.pnpm/viem@2.45.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/constants/contract.js
1368
1870
  var aggregate3Signature = "0x82ad56cb";
@@ -4047,7 +4549,7 @@ async function call(client, args) {
4047
4549
  return { data: response };
4048
4550
  } catch (err) {
4049
4551
  const data2 = getRevertErrorData(err);
4050
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-SBJNLXE4.js');
4552
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-X5WZWTPH.js');
4051
4553
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
4052
4554
  return { data: await offchainLookup2(client, { data: data2, to }) };
4053
4555
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -4428,6 +4930,6 @@ async function ccipRequest({ data, sender, urls }) {
4428
4930
  throw error;
4429
4931
  }
4430
4932
 
4431
- export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, erc20Abi, formatEther, formatUnits, getAddress, hexToBytes, hexToString, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, parseAbiItem, parseAbiParameters, slice, stringToHex, toBytes2 as toBytes };
4432
- //# sourceMappingURL=chunk-GZR3D6YQ.js.map
4433
- //# sourceMappingURL=chunk-GZR3D6YQ.js.map
4933
+ export { AbiEncodingLengthMismatchError, BaseError3 as BaseError, BytesSizeMismatchError, InvalidAddressError, UnsupportedPackedAbiType, arrayRegex, boolToHex, bytesRegex2 as bytesRegex, bytesToHex, ccipRequest, concat, concatHex, createCursor, decodeAbiParameters, decodeFunctionResult, encodeAbiParameters, encodeFunctionData, erc20Abi, erc4626Abi, formatEther, formatUnits, getAddress, hexToBytes, hexToString, integerRegex2 as integerRegex, isAddress, keccak256, numberToHex, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, pad2 as pad, parseAbi, parseAbiItem, parseAbiParameters, slice, stringToHex, toBytes2 as toBytes };
4934
+ //# sourceMappingURL=chunk-V6D7KOW7.js.map
4935
+ //# sourceMappingURL=chunk-V6D7KOW7.js.map