@zoralabs/protocol-deployments 0.3.5-COMMENTS.3 → 0.3.5

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 (84) hide show
  1. package/.turbo/turbo-build.log +48 -48
  2. package/CHANGELOG.md +1 -23
  3. package/dist/{ccip-MZCNL5YG.js → ccip-E7SRWW2U.js} +2 -2
  4. package/dist/{chunk-MCOK75CU.js → chunk-BKKE6NTH.js} +2 -4
  5. package/dist/generated/wagmi.d.ts +2 -3056
  6. package/dist/generated/wagmi.d.ts.map +1 -1
  7. package/dist/index.cjs +79 -1265
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +2 -1169
  10. package/dist/index.js.map +1 -1
  11. package/dist/typedData.d.ts +1 -137
  12. package/dist/typedData.d.ts.map +1 -1
  13. package/dist/types.d.ts +0 -21
  14. package/dist/types.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/src/generated/wagmi.ts +1 -1054
  17. package/src/typedData.ts +0 -133
  18. package/src/types.ts +0 -42
  19. package/json/1155.json +0 -212
  20. package/json/mints.json +0 -46
  21. package/package/.turbo/turbo-build.log +0 -48
  22. package/package/dist/_esm-KB2T7G46.js +0 -3923
  23. package/package/dist/_esm-KB2T7G46.js.map +0 -1
  24. package/package/dist/ccip-42FQPB7J.js +0 -15
  25. package/package/dist/ccip-42FQPB7J.js.map +0 -1
  26. package/package/dist/chunk-3EJPJMEH.js +0 -44
  27. package/package/dist/chunk-3EJPJMEH.js.map +0 -1
  28. package/package/dist/chunk-5JV63AHR.js +0 -129
  29. package/package/dist/chunk-5JV63AHR.js.map +0 -1
  30. package/package/dist/chunk-YMRS2KON.js +0 -3956
  31. package/package/dist/chunk-YMRS2KON.js.map +0 -1
  32. package/package/dist/encoding.d.ts +0 -15
  33. package/package/dist/encoding.d.ts.map +0 -1
  34. package/package/dist/generated/1155.d.ts +0 -232
  35. package/package/dist/generated/1155.d.ts.map +0 -1
  36. package/package/dist/generated/sparks.d.ts +0 -85
  37. package/package/dist/generated/sparks.d.ts.map +0 -1
  38. package/package/dist/generated/wagmi.d.ts +0 -27548
  39. package/package/dist/generated/wagmi.d.ts.map +0 -1
  40. package/package/dist/index.cjs +0 -12957
  41. package/package/dist/index.cjs.map +0 -1
  42. package/package/dist/index.d.ts +0 -7
  43. package/package/dist/index.d.ts.map +0 -1
  44. package/package/dist/index.js +0 -11268
  45. package/package/dist/index.js.map +0 -1
  46. package/package/dist/secp256k1-5CEPNAX3.js +0 -2244
  47. package/package/dist/secp256k1-5CEPNAX3.js.map +0 -1
  48. package/package/dist/typedData.d.ts +0 -234
  49. package/package/dist/typedData.d.ts.map +0 -1
  50. package/package/dist/types.d.ts +0 -45
  51. package/package/dist/types.d.ts.map +0 -1
  52. package/package/package/.turbo/turbo-build.log +0 -48
  53. package/package/package/dist/_esm-KB2T7G46.js +0 -3923
  54. package/package/package/dist/_esm-KB2T7G46.js.map +0 -1
  55. package/package/package/dist/ccip-42FQPB7J.js +0 -15
  56. package/package/package/dist/ccip-42FQPB7J.js.map +0 -1
  57. package/package/package/dist/chunk-3EJPJMEH.js +0 -44
  58. package/package/package/dist/chunk-3EJPJMEH.js.map +0 -1
  59. package/package/package/dist/chunk-5JV63AHR.js +0 -129
  60. package/package/package/dist/chunk-5JV63AHR.js.map +0 -1
  61. package/package/package/dist/chunk-YMRS2KON.js +0 -3956
  62. package/package/package/dist/chunk-YMRS2KON.js.map +0 -1
  63. package/package/package/dist/encoding.d.ts +0 -15
  64. package/package/package/dist/encoding.d.ts.map +0 -1
  65. package/package/package/dist/generated/1155.d.ts +0 -232
  66. package/package/package/dist/generated/1155.d.ts.map +0 -1
  67. package/package/package/dist/generated/sparks.d.ts +0 -85
  68. package/package/package/dist/generated/sparks.d.ts.map +0 -1
  69. package/package/package/dist/generated/wagmi.d.ts +0 -27548
  70. package/package/package/dist/generated/wagmi.d.ts.map +0 -1
  71. package/package/package/dist/index.cjs +0 -12957
  72. package/package/package/dist/index.cjs.map +0 -1
  73. package/package/package/dist/index.d.ts +0 -7
  74. package/package/package/dist/index.d.ts.map +0 -1
  75. package/package/package/dist/index.js +0 -11268
  76. package/package/package/dist/index.js.map +0 -1
  77. package/package/package/dist/secp256k1-5CEPNAX3.js +0 -2244
  78. package/package/package/dist/secp256k1-5CEPNAX3.js.map +0 -1
  79. package/package/package/dist/typedData.d.ts +0 -234
  80. package/package/package/dist/typedData.d.ts.map +0 -1
  81. package/package/package/dist/types.d.ts +0 -45
  82. package/package/package/dist/types.d.ts.map +0 -1
  83. /package/dist/{ccip-MZCNL5YG.js.map → ccip-E7SRWW2U.js.map} +0 -0
  84. /package/dist/{chunk-MCOK75CU.js.map → chunk-BKKE6NTH.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -1555,1071 +1555,84 @@ var init_getAbiItem = __esm({
1555
1555
  }
1556
1556
  });
1557
1557
 
1558
- // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
1559
- var etherUnits;
1560
- var init_unit = __esm({
1561
- "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js"() {
1562
- "use strict";
1563
- etherUnits = {
1564
- gwei: 9,
1565
- wei: 18
1566
- };
1567
- }
1568
- });
1569
-
1570
- // src/index.ts
1571
- var src_exports = {};
1572
- __export(src_exports, {
1573
- PremintConfigVersion: () => PremintConfigVersion,
1574
- commentsABI: () => commentsABI,
1575
- commentsAddress: () => commentsAddress,
1576
- commentsConfig: () => commentsConfig,
1577
- contracts1155: () => __exports,
1578
- emptyCommentIdentifier: () => emptyCommentIdentifier,
1579
- encodePremintConfig: () => encodePremintConfig,
1580
- erc20MinterABI: () => erc20MinterABI,
1581
- erc20MinterAddress: () => erc20MinterAddress,
1582
- erc20MinterConfig: () => erc20MinterConfig,
1583
- erc20ZABI: () => erc20ZABI,
1584
- erc20ZRoyaltiesABI: () => erc20ZRoyaltiesABI,
1585
- erc20ZRoyaltiesAddress: () => erc20ZRoyaltiesAddress,
1586
- erc20ZRoyaltiesConfig: () => erc20ZRoyaltiesConfig,
1587
- iPremintDefinitionsABI: () => iPremintDefinitionsABI,
1588
- iSponsoredSparksSpenderActionABI: () => iSponsoredSparksSpenderActionABI,
1589
- iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
1590
- mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
1591
- mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
1592
- mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1593
- mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1594
- mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1595
- permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
1596
- permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
1597
- premintTypedDataDefinition: () => premintTypedDataDefinition,
1598
- premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
1599
- premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
1600
- protocolRewardsABI: () => protocolRewardsABI,
1601
- protocolRewardsAddress: () => protocolRewardsAddress,
1602
- protocolRewardsConfig: () => protocolRewardsConfig,
1603
- safeTransferSwapAbiParameters: () => safeTransferSwapAbiParameters,
1604
- secondarySwapABI: () => secondarySwapABI,
1605
- secondarySwapAddress: () => secondarySwapAddress,
1606
- secondarySwapConfig: () => secondarySwapConfig,
1607
- sparkValue: () => sparkValue,
1608
- sparks: () => sparks_exports,
1609
- sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
1610
- sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
1611
- sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
1612
- sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
1613
- sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
1614
- upgradeGateABI: () => upgradeGateABI,
1615
- upgradeGateAddress: () => upgradeGateAddress,
1616
- upgradeGateConfig: () => upgradeGateConfig,
1617
- wethABI: () => wethABI,
1618
- wethAddress: () => wethAddress,
1619
- wethConfig: () => wethConfig,
1620
- zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
1621
- zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
1622
- zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
1623
- zoraCreator1155ImplABI: () => zoraCreator1155ImplABI,
1624
- zoraCreator1155PremintExecutorImplABI: () => zoraCreator1155PremintExecutorImplABI,
1625
- zoraCreator1155PremintExecutorImplAddress: () => zoraCreator1155PremintExecutorImplAddress,
1626
- zoraCreator1155PremintExecutorImplConfig: () => zoraCreator1155PremintExecutorImplConfig,
1627
- zoraCreatorFixedPriceSaleStrategyABI: () => zoraCreatorFixedPriceSaleStrategyABI,
1628
- zoraCreatorFixedPriceSaleStrategyAddress: () => zoraCreatorFixedPriceSaleStrategyAddress,
1629
- zoraCreatorFixedPriceSaleStrategyConfig: () => zoraCreatorFixedPriceSaleStrategyConfig,
1630
- zoraCreatorMerkleMinterStrategyABI: () => zoraCreatorMerkleMinterStrategyABI,
1631
- zoraCreatorMerkleMinterStrategyAddress: () => zoraCreatorMerkleMinterStrategyAddress,
1632
- zoraCreatorMerkleMinterStrategyConfig: () => zoraCreatorMerkleMinterStrategyConfig,
1633
- zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
1634
- zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
1635
- zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
1636
- zoraMints1155ABI: () => zoraMints1155ABI,
1637
- zoraMints1155Address: () => zoraMints1155Address,
1638
- zoraMints1155Config: () => zoraMints1155Config,
1639
- zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
1640
- zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
1641
- zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
1642
- zoraSparks1155ABI: () => zoraSparks1155ABI,
1643
- zoraSparks1155Address: () => zoraSparks1155Address,
1644
- zoraSparks1155Config: () => zoraSparks1155Config,
1645
- zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
1646
- zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
1647
- zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig,
1648
- zoraTimedSaleStrategyABI: () => zoraTimedSaleStrategyABI,
1649
- zoraTimedSaleStrategyAddress: () => zoraTimedSaleStrategyAddress,
1650
- zoraTimedSaleStrategyConfig: () => zoraTimedSaleStrategyConfig
1651
- });
1652
- module.exports = __toCommonJS(src_exports);
1653
-
1654
- // src/generated/wagmi.ts
1655
- var commentsABI = [
1656
- {
1657
- stateMutability: "nonpayable",
1658
- type: "constructor",
1659
- inputs: [
1660
- { name: "_sparkValue", internalType: "uint256", type: "uint256" },
1661
- { name: "_protocolRewards", internalType: "address", type: "address" },
1662
- { name: "_zoraRecipient", internalType: "address", type: "address" }
1663
- ]
1664
- },
1665
- {
1666
- stateMutability: "view",
1667
- type: "function",
1668
- inputs: [],
1669
- name: "BACKFILLER_ROLE",
1670
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1671
- },
1672
- {
1673
- stateMutability: "view",
1674
- type: "function",
1675
- inputs: [],
1676
- name: "DEFAULT_ADMIN_ROLE",
1677
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1678
- },
1679
- {
1680
- stateMutability: "view",
1681
- type: "function",
1682
- inputs: [],
1683
- name: "DELEGATE_COMMENTER",
1684
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1685
- },
1686
- {
1687
- stateMutability: "view",
1688
- type: "function",
1689
- inputs: [],
1690
- name: "DOMAIN_NAME",
1691
- outputs: [{ name: "", internalType: "string", type: "string" }]
1692
- },
1693
- {
1694
- stateMutability: "view",
1695
- type: "function",
1696
- inputs: [],
1697
- name: "DOMAIN_VERSION",
1698
- outputs: [{ name: "", internalType: "string", type: "string" }]
1699
- },
1700
- {
1701
- stateMutability: "view",
1702
- type: "function",
1703
- inputs: [],
1704
- name: "PERMISSION_BIT_ADMIN",
1705
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1706
- },
1707
- {
1708
- stateMutability: "view",
1709
- type: "function",
1710
- inputs: [],
1711
- name: "REFERRER_REWARD_PCT",
1712
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1713
- },
1714
- {
1715
- stateMutability: "view",
1716
- type: "function",
1717
- inputs: [],
1718
- name: "UPGRADE_INTERFACE_VERSION",
1719
- outputs: [{ name: "", internalType: "string", type: "string" }]
1720
- },
1721
- {
1722
- stateMutability: "view",
1723
- type: "function",
1724
- inputs: [],
1725
- name: "ZORA_REWARD_NO_REFERRER_PCT",
1726
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1727
- },
1728
- {
1729
- stateMutability: "view",
1730
- type: "function",
1731
- inputs: [],
1732
- name: "ZORA_REWARD_PCT",
1733
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1734
- },
1735
- {
1736
- stateMutability: "nonpayable",
1737
- type: "function",
1738
- inputs: [
1739
- {
1740
- name: "commentIdentifiers",
1741
- internalType: "struct IComments.CommentIdentifier[]",
1742
- type: "tuple[]",
1743
- components: [
1744
- { name: "commenter", internalType: "address", type: "address" },
1745
- { name: "contractAddress", internalType: "address", type: "address" },
1746
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1747
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1748
- ]
1749
- },
1750
- { name: "texts", internalType: "string[]", type: "string[]" },
1751
- { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
1752
- {
1753
- name: "originalTransactionHashes",
1754
- internalType: "bytes32[]",
1755
- type: "bytes32[]"
1756
- }
1757
- ],
1758
- name: "backfillBatchAddComment",
1759
- outputs: []
1760
- },
1761
- {
1762
- stateMutability: "payable",
1763
- type: "function",
1764
- inputs: [
1765
- { name: "commenter", internalType: "address", type: "address" },
1766
- { name: "contractAddress", internalType: "address", type: "address" },
1767
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1768
- { name: "text", internalType: "string", type: "string" },
1769
- {
1770
- name: "replyTo",
1771
- internalType: "struct IComments.CommentIdentifier",
1772
- type: "tuple",
1773
- components: [
1774
- { name: "commenter", internalType: "address", type: "address" },
1775
- { name: "contractAddress", internalType: "address", type: "address" },
1776
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1777
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1778
- ]
1779
- },
1780
- {
1781
- name: "commenterSmartWallet",
1782
- internalType: "address",
1783
- type: "address"
1784
- },
1785
- { name: "referrer", internalType: "address", type: "address" }
1786
- ],
1787
- name: "comment",
1788
- outputs: [
1789
- {
1790
- name: "commentIdentifier",
1791
- internalType: "struct IComments.CommentIdentifier",
1792
- type: "tuple",
1793
- components: [
1794
- { name: "commenter", internalType: "address", type: "address" },
1795
- { name: "contractAddress", internalType: "address", type: "address" },
1796
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1797
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1798
- ]
1799
- }
1800
- ]
1801
- },
1802
- {
1803
- stateMutability: "view",
1804
- type: "function",
1805
- inputs: [
1806
- {
1807
- name: "commentIdentifier",
1808
- internalType: "struct IComments.CommentIdentifier",
1809
- type: "tuple",
1810
- components: [
1811
- { name: "commenter", internalType: "address", type: "address" },
1812
- { name: "contractAddress", internalType: "address", type: "address" },
1813
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1814
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1815
- ]
1816
- }
1817
- ],
1818
- name: "commentSparksQuantity",
1819
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1820
- },
1821
- {
1822
- stateMutability: "pure",
1823
- type: "function",
1824
- inputs: [],
1825
- name: "contractName",
1826
- outputs: [{ name: "", internalType: "string", type: "string" }]
1827
- },
1828
- {
1829
- stateMutability: "pure",
1830
- type: "function",
1831
- inputs: [],
1832
- name: "contractVersion",
1833
- outputs: [{ name: "", internalType: "string", type: "string" }]
1834
- },
1835
- {
1836
- stateMutability: "nonpayable",
1837
- type: "function",
1838
- inputs: [
1839
- { name: "commenter", internalType: "address", type: "address" },
1840
- { name: "contractAddress", internalType: "address", type: "address" },
1841
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1842
- { name: "text", internalType: "string", type: "string" },
1843
- {
1844
- name: "replyTo",
1845
- internalType: "struct IComments.CommentIdentifier",
1846
- type: "tuple",
1847
- components: [
1848
- { name: "commenter", internalType: "address", type: "address" },
1849
- { name: "contractAddress", internalType: "address", type: "address" },
1850
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1851
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1852
- ]
1853
- }
1854
- ],
1855
- name: "delegateComment",
1856
- outputs: [
1857
- {
1858
- name: "commentIdentifier",
1859
- internalType: "struct IComments.CommentIdentifier",
1860
- type: "tuple",
1861
- components: [
1862
- { name: "commenter", internalType: "address", type: "address" },
1863
- { name: "contractAddress", internalType: "address", type: "address" },
1864
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1865
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1866
- ]
1867
- }
1868
- ]
1869
- },
1870
- {
1871
- stateMutability: "view",
1872
- type: "function",
1873
- inputs: [],
1874
- name: "eip712Domain",
1875
- outputs: [
1876
- { name: "fields", internalType: "bytes1", type: "bytes1" },
1877
- { name: "name", internalType: "string", type: "string" },
1878
- { name: "version", internalType: "string", type: "string" },
1879
- { name: "chainId", internalType: "uint256", type: "uint256" },
1880
- { name: "verifyingContract", internalType: "address", type: "address" },
1881
- { name: "salt", internalType: "bytes32", type: "bytes32" },
1882
- { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1883
- ]
1884
- },
1885
- {
1886
- stateMutability: "view",
1887
- type: "function",
1888
- inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
1889
- name: "getRoleAdmin",
1890
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1891
- },
1892
- {
1893
- stateMutability: "nonpayable",
1894
- type: "function",
1895
- inputs: [
1896
- { name: "role", internalType: "bytes32", type: "bytes32" },
1897
- { name: "account", internalType: "address", type: "address" }
1898
- ],
1899
- name: "grantRole",
1900
- outputs: []
1901
- },
1902
- {
1903
- stateMutability: "view",
1904
- type: "function",
1905
- inputs: [
1906
- { name: "role", internalType: "bytes32", type: "bytes32" },
1907
- { name: "account", internalType: "address", type: "address" }
1908
- ],
1909
- name: "hasRole",
1910
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
1911
- },
1912
- {
1913
- stateMutability: "view",
1914
- type: "function",
1915
- inputs: [
1916
- {
1917
- name: "commentIdentifier",
1918
- internalType: "struct IComments.CommentIdentifier",
1919
- type: "tuple",
1920
- components: [
1921
- { name: "commenter", internalType: "address", type: "address" },
1922
- { name: "contractAddress", internalType: "address", type: "address" },
1923
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1924
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1925
- ]
1926
- }
1927
- ],
1928
- name: "hashAndCheckCommentExists",
1929
- outputs: [
1930
- { name: "commentId", internalType: "bytes32", type: "bytes32" },
1931
- { name: "exists", internalType: "bool", type: "bool" }
1932
- ]
1933
- },
1934
- {
1935
- stateMutability: "view",
1936
- type: "function",
1937
- inputs: [
1938
- {
1939
- name: "commentIdentifier",
1940
- internalType: "struct IComments.CommentIdentifier",
1941
- type: "tuple",
1942
- components: [
1943
- { name: "commenter", internalType: "address", type: "address" },
1944
- { name: "contractAddress", internalType: "address", type: "address" },
1945
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1946
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1947
- ]
1948
- }
1949
- ],
1950
- name: "hashAndValidateCommentExists",
1951
- outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
1952
- },
1953
- {
1954
- stateMutability: "pure",
1955
- type: "function",
1956
- inputs: [
1957
- {
1958
- name: "commentIdentifier",
1959
- internalType: "struct IComments.CommentIdentifier",
1960
- type: "tuple",
1961
- components: [
1962
- { name: "commenter", internalType: "address", type: "address" },
1963
- { name: "contractAddress", internalType: "address", type: "address" },
1964
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1965
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1966
- ]
1967
- }
1968
- ],
1969
- name: "hashCommentIdentifier",
1970
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1971
- },
1972
- {
1973
- stateMutability: "view",
1974
- type: "function",
1975
- inputs: [
1976
- {
1977
- name: "permit",
1978
- internalType: "struct IComments.PermitComment",
1979
- type: "tuple",
1980
- components: [
1981
- { name: "commenter", internalType: "address", type: "address" },
1982
- {
1983
- name: "commenterSmartWallet",
1984
- internalType: "address",
1985
- type: "address"
1986
- },
1987
- { name: "contractAddress", internalType: "address", type: "address" },
1988
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1989
- {
1990
- name: "replyTo",
1991
- internalType: "struct IComments.CommentIdentifier",
1992
- type: "tuple",
1993
- components: [
1994
- { name: "commenter", internalType: "address", type: "address" },
1995
- {
1996
- name: "contractAddress",
1997
- internalType: "address",
1998
- type: "address"
1999
- },
2000
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2001
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2002
- ]
2003
- },
2004
- { name: "text", internalType: "string", type: "string" },
2005
- { name: "referrer", internalType: "address", type: "address" },
2006
- { name: "deadline", internalType: "uint256", type: "uint256" },
2007
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
2008
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2009
- {
2010
- name: "destinationChainId",
2011
- internalType: "uint32",
2012
- type: "uint32"
2013
- }
2014
- ]
2015
- }
2016
- ],
2017
- name: "hashPermitComment",
2018
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2019
- },
2020
- {
2021
- stateMutability: "view",
2022
- type: "function",
2023
- inputs: [
2024
- {
2025
- name: "permit",
2026
- internalType: "struct IComments.PermitSparkComment",
2027
- type: "tuple",
2028
- components: [
2029
- {
2030
- name: "comment",
2031
- internalType: "struct IComments.CommentIdentifier",
2032
- type: "tuple",
2033
- components: [
2034
- { name: "commenter", internalType: "address", type: "address" },
2035
- {
2036
- name: "contractAddress",
2037
- internalType: "address",
2038
- type: "address"
2039
- },
2040
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2041
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2042
- ]
2043
- },
2044
- { name: "sparker", internalType: "address", type: "address" },
2045
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2046
- { name: "deadline", internalType: "uint256", type: "uint256" },
2047
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
2048
- { name: "referrer", internalType: "address", type: "address" },
2049
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2050
- {
2051
- name: "destinationChainId",
2052
- internalType: "uint32",
2053
- type: "uint32"
2054
- }
2055
- ]
2056
- }
2057
- ],
2058
- name: "hashPermitSparkComment",
2059
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2060
- },
2061
- {
2062
- stateMutability: "view",
2063
- type: "function",
2064
- inputs: [],
2065
- name: "implementation",
2066
- outputs: [{ name: "", internalType: "address", type: "address" }]
2067
- },
2068
- {
2069
- stateMutability: "nonpayable",
2070
- type: "function",
2071
- inputs: [
2072
- { name: "defaultAdmin", internalType: "address", type: "address" },
2073
- { name: "backfiller", internalType: "address", type: "address" },
2074
- {
2075
- name: "delegateCommenters",
2076
- internalType: "address[]",
2077
- type: "address[]"
2078
- }
2079
- ],
2080
- name: "initialize",
2081
- outputs: []
2082
- },
2083
- {
2084
- stateMutability: "view",
2085
- type: "function",
2086
- inputs: [],
2087
- name: "nextNonce",
2088
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2089
- },
2090
- {
2091
- stateMutability: "view",
2092
- type: "function",
2093
- inputs: [
2094
- { name: "owner", internalType: "address", type: "address" },
2095
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2096
- ],
2097
- name: "nonceUsed",
2098
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
2099
- },
2100
- {
2101
- stateMutability: "payable",
2102
- type: "function",
2103
- inputs: [
2104
- {
2105
- name: "permit",
2106
- internalType: "struct IComments.PermitComment",
2107
- type: "tuple",
2108
- components: [
2109
- { name: "commenter", internalType: "address", type: "address" },
2110
- {
2111
- name: "commenterSmartWallet",
2112
- internalType: "address",
2113
- type: "address"
2114
- },
2115
- { name: "contractAddress", internalType: "address", type: "address" },
2116
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2117
- {
2118
- name: "replyTo",
2119
- internalType: "struct IComments.CommentIdentifier",
2120
- type: "tuple",
2121
- components: [
2122
- { name: "commenter", internalType: "address", type: "address" },
2123
- {
2124
- name: "contractAddress",
2125
- internalType: "address",
2126
- type: "address"
2127
- },
2128
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2129
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2130
- ]
2131
- },
2132
- { name: "text", internalType: "string", type: "string" },
2133
- { name: "referrer", internalType: "address", type: "address" },
2134
- { name: "deadline", internalType: "uint256", type: "uint256" },
2135
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
2136
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2137
- {
2138
- name: "destinationChainId",
2139
- internalType: "uint32",
2140
- type: "uint32"
2141
- }
2142
- ]
2143
- },
2144
- { name: "signature", internalType: "bytes", type: "bytes" }
2145
- ],
2146
- name: "permitComment",
2147
- outputs: []
2148
- },
2149
- {
2150
- stateMutability: "payable",
2151
- type: "function",
2152
- inputs: [
2153
- {
2154
- name: "permit",
2155
- internalType: "struct IComments.PermitSparkComment",
2156
- type: "tuple",
2157
- components: [
2158
- {
2159
- name: "comment",
2160
- internalType: "struct IComments.CommentIdentifier",
2161
- type: "tuple",
2162
- components: [
2163
- { name: "commenter", internalType: "address", type: "address" },
2164
- {
2165
- name: "contractAddress",
2166
- internalType: "address",
2167
- type: "address"
2168
- },
2169
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2170
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2171
- ]
2172
- },
2173
- { name: "sparker", internalType: "address", type: "address" },
2174
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2175
- { name: "deadline", internalType: "uint256", type: "uint256" },
2176
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
2177
- { name: "referrer", internalType: "address", type: "address" },
2178
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2179
- {
2180
- name: "destinationChainId",
2181
- internalType: "uint32",
2182
- type: "uint32"
2183
- }
2184
- ]
2185
- },
2186
- { name: "signature", internalType: "bytes", type: "bytes" }
2187
- ],
2188
- name: "permitSparkComment",
2189
- outputs: []
2190
- },
2191
- {
2192
- stateMutability: "view",
2193
- type: "function",
2194
- inputs: [],
2195
- name: "protocolRewards",
2196
- outputs: [
2197
- { name: "", internalType: "contract IProtocolRewards", type: "address" }
2198
- ]
2199
- },
2200
- {
2201
- stateMutability: "view",
2202
- type: "function",
2203
- inputs: [],
2204
- name: "proxiableUUID",
2205
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2206
- },
2207
- {
2208
- stateMutability: "nonpayable",
2209
- type: "function",
2210
- inputs: [
2211
- { name: "role", internalType: "bytes32", type: "bytes32" },
2212
- { name: "callerConfirmation", internalType: "address", type: "address" }
2213
- ],
2214
- name: "renounceRole",
2215
- outputs: []
2216
- },
2217
- {
2218
- stateMutability: "nonpayable",
2219
- type: "function",
2220
- inputs: [
2221
- { name: "role", internalType: "bytes32", type: "bytes32" },
2222
- { name: "account", internalType: "address", type: "address" }
2223
- ],
2224
- name: "revokeRole",
2225
- outputs: []
2226
- },
2227
- {
2228
- stateMutability: "payable",
2229
- type: "function",
2230
- inputs: [
2231
- {
2232
- name: "commentIdentifier",
2233
- internalType: "struct IComments.CommentIdentifier",
2234
- type: "tuple",
2235
- components: [
2236
- { name: "commenter", internalType: "address", type: "address" },
2237
- { name: "contractAddress", internalType: "address", type: "address" },
2238
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2239
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2240
- ]
2241
- },
2242
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2243
- { name: "referrer", internalType: "address", type: "address" }
2244
- ],
2245
- name: "sparkComment",
2246
- outputs: []
2247
- },
2248
- {
2249
- stateMutability: "view",
2250
- type: "function",
2251
- inputs: [],
2252
- name: "sparkValue",
2253
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2254
- },
2255
- {
2256
- stateMutability: "view",
2257
- type: "function",
2258
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
2259
- name: "supportsInterface",
2260
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
2261
- },
2262
- {
2263
- stateMutability: "payable",
2264
- type: "function",
2265
- inputs: [
2266
- { name: "newImplementation", internalType: "address", type: "address" },
2267
- { name: "data", internalType: "bytes", type: "bytes" }
2268
- ],
2269
- name: "upgradeToAndCall",
2270
- outputs: []
2271
- },
2272
- {
2273
- type: "event",
2274
- anonymous: false,
2275
- inputs: [
2276
- {
2277
- name: "commentId",
2278
- internalType: "bytes32",
2279
- type: "bytes32",
2280
- indexed: true
2281
- },
2282
- {
2283
- name: "commentIdentifier",
2284
- internalType: "struct IComments.CommentIdentifier",
2285
- type: "tuple",
2286
- components: [
2287
- { name: "commenter", internalType: "address", type: "address" },
2288
- { name: "contractAddress", internalType: "address", type: "address" },
2289
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2290
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2291
- ],
2292
- indexed: false
2293
- },
2294
- { name: "text", internalType: "string", type: "string", indexed: false },
2295
- {
2296
- name: "timestamp",
2297
- internalType: "uint256",
2298
- type: "uint256",
2299
- indexed: false
2300
- },
2301
- {
2302
- name: "originalTransactionId",
2303
- internalType: "bytes32",
2304
- type: "bytes32",
2305
- indexed: false
2306
- }
2307
- ],
2308
- name: "BackfilledComment"
2309
- },
2310
- {
2311
- type: "event",
2312
- anonymous: false,
2313
- inputs: [
2314
- {
2315
- name: "commentId",
2316
- internalType: "bytes32",
2317
- type: "bytes32",
2318
- indexed: true
2319
- },
2320
- {
2321
- name: "commentIdentifier",
2322
- internalType: "struct IComments.CommentIdentifier",
2323
- type: "tuple",
2324
- components: [
2325
- { name: "commenter", internalType: "address", type: "address" },
2326
- { name: "contractAddress", internalType: "address", type: "address" },
2327
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2328
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2329
- ],
2330
- indexed: false
2331
- },
2332
- {
2333
- name: "replyToId",
2334
- internalType: "bytes32",
2335
- type: "bytes32",
2336
- indexed: false
2337
- },
2338
- {
2339
- name: "replyTo",
2340
- internalType: "struct IComments.CommentIdentifier",
2341
- type: "tuple",
2342
- components: [
2343
- { name: "commenter", internalType: "address", type: "address" },
2344
- { name: "contractAddress", internalType: "address", type: "address" },
2345
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2346
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2347
- ],
2348
- indexed: false
2349
- },
2350
- {
2351
- name: "sparksQuantity",
2352
- internalType: "uint256",
2353
- type: "uint256",
2354
- indexed: false
2355
- },
2356
- { name: "text", internalType: "string", type: "string", indexed: false },
2357
- {
2358
- name: "timestamp",
2359
- internalType: "uint256",
2360
- type: "uint256",
2361
- indexed: false
2362
- },
2363
- {
2364
- name: "referrer",
2365
- internalType: "address",
2366
- type: "address",
2367
- indexed: false
2368
- }
2369
- ],
2370
- name: "Commented"
2371
- },
2372
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
2373
- {
2374
- type: "event",
2375
- anonymous: false,
2376
- inputs: [
2377
- {
2378
- name: "version",
2379
- internalType: "uint64",
2380
- type: "uint64",
2381
- indexed: false
2382
- }
2383
- ],
2384
- name: "Initialized"
2385
- },
2386
- {
2387
- type: "event",
2388
- anonymous: false,
2389
- inputs: [
2390
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
2391
- {
2392
- name: "previousAdminRole",
2393
- internalType: "bytes32",
2394
- type: "bytes32",
2395
- indexed: true
2396
- },
2397
- {
2398
- name: "newAdminRole",
2399
- internalType: "bytes32",
2400
- type: "bytes32",
2401
- indexed: true
2402
- }
2403
- ],
2404
- name: "RoleAdminChanged"
2405
- },
2406
- {
2407
- type: "event",
2408
- anonymous: false,
2409
- inputs: [
2410
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
2411
- {
2412
- name: "account",
2413
- internalType: "address",
2414
- type: "address",
2415
- indexed: true
2416
- },
2417
- {
2418
- name: "sender",
2419
- internalType: "address",
2420
- type: "address",
2421
- indexed: true
2422
- }
2423
- ],
2424
- name: "RoleGranted"
2425
- },
2426
- {
2427
- type: "event",
2428
- anonymous: false,
2429
- inputs: [
2430
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
2431
- {
2432
- name: "account",
2433
- internalType: "address",
2434
- type: "address",
2435
- indexed: true
2436
- },
2437
- {
2438
- name: "sender",
2439
- internalType: "address",
2440
- type: "address",
2441
- indexed: true
2442
- }
2443
- ],
2444
- name: "RoleRevoked"
2445
- },
2446
- {
2447
- type: "event",
2448
- anonymous: false,
2449
- inputs: [
2450
- {
2451
- name: "commentId",
2452
- internalType: "bytes32",
2453
- type: "bytes32",
2454
- indexed: true
2455
- },
2456
- {
2457
- name: "commentIdentifier",
2458
- internalType: "struct IComments.CommentIdentifier",
2459
- type: "tuple",
2460
- components: [
2461
- { name: "commenter", internalType: "address", type: "address" },
2462
- { name: "contractAddress", internalType: "address", type: "address" },
2463
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2464
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2465
- ],
2466
- indexed: false
2467
- },
2468
- {
2469
- name: "sparksQuantity",
2470
- internalType: "uint256",
2471
- type: "uint256",
2472
- indexed: false
2473
- },
2474
- {
2475
- name: "sparker",
2476
- internalType: "address",
2477
- type: "address",
2478
- indexed: false
2479
- },
2480
- {
2481
- name: "timestamp",
2482
- internalType: "uint256",
2483
- type: "uint256",
2484
- indexed: false
2485
- },
2486
- {
2487
- name: "referrer",
2488
- internalType: "address",
2489
- type: "address",
2490
- indexed: false
2491
- }
2492
- ],
2493
- name: "SparkedComment"
2494
- },
2495
- {
2496
- type: "event",
2497
- anonymous: false,
2498
- inputs: [
2499
- {
2500
- name: "implementation",
2501
- internalType: "address",
2502
- type: "address",
2503
- indexed: true
2504
- }
2505
- ],
2506
- name: "Upgraded"
2507
- },
2508
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
2509
- {
2510
- type: "error",
2511
- inputs: [
2512
- { name: "account", internalType: "address", type: "address" },
2513
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
2514
- ],
2515
- name: "AccessControlUnauthorizedAccount"
2516
- },
2517
- {
2518
- type: "error",
2519
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2520
- name: "AddressEmptyCode"
2521
- },
2522
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
2523
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
2524
- {
2525
- type: "error",
2526
- inputs: [
2527
- { name: "commentAddress", internalType: "address", type: "address" },
2528
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
2529
- { name: "replyAddress", internalType: "address", type: "address" },
2530
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
2531
- ],
2532
- name: "CommentAddressOrTokenIdsDoNotMatch"
2533
- },
2534
- { type: "error", inputs: [], name: "CommentDoesntExist" },
2535
- {
2536
- type: "error",
2537
- inputs: [
2538
- { name: "expected", internalType: "address", type: "address" },
2539
- { name: "actual", internalType: "address", type: "address" }
2540
- ],
2541
- name: "CommenterMismatch"
2542
- },
2543
- {
2544
- type: "error",
2545
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
2546
- name: "DuplicateComment"
2547
- },
2548
- {
2549
- type: "error",
2550
- inputs: [
2551
- { name: "implementation", internalType: "address", type: "address" }
2552
- ],
2553
- name: "ERC1967InvalidImplementation"
2554
- },
2555
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
2556
- {
2557
- type: "error",
2558
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2559
- name: "ERC2612ExpiredSignature"
2560
- },
2561
- { type: "error", inputs: [], name: "EmptyComment" },
2562
- { type: "error", inputs: [], name: "FailedInnerCall" },
2563
- {
2564
- type: "error",
2565
- inputs: [
2566
- {
2567
- name: "wrongDestinationChainId",
2568
- internalType: "uint256",
2569
- type: "uint256"
2570
- }
2571
- ],
2572
- name: "IncorrectDestinationChain"
2573
- },
2574
- {
2575
- type: "error",
2576
- inputs: [
2577
- { name: "actual", internalType: "uint256", type: "uint256" },
2578
- { name: "expected", internalType: "uint256", type: "uint256" }
2579
- ],
2580
- name: "IncorrectETHAmountForSparks"
2581
- },
2582
- {
2583
- type: "error",
2584
- inputs: [
2585
- { name: "account", internalType: "address", type: "address" },
2586
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2587
- ],
2588
- name: "InvalidAccountNonce"
2589
- },
2590
- { type: "error", inputs: [], name: "InvalidInitialization" },
2591
- { type: "error", inputs: [], name: "InvalidSignature" },
2592
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
2593
- { type: "error", inputs: [], name: "NoFundsRecipient" },
2594
- { type: "error", inputs: [], name: "NotInitializing" },
2595
- { type: "error", inputs: [], name: "NotSmartWallet" },
2596
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
2597
- { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
2598
- { type: "error", inputs: [], name: "OnlySparksContract" },
2599
- { type: "error", inputs: [], name: "TransferFailed" },
2600
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2601
- {
2602
- type: "error",
2603
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2604
- name: "UUPSUnsupportedProxiableUUID"
2605
- },
2606
- {
2607
- type: "error",
2608
- inputs: [
2609
- { name: "currentName", internalType: "string", type: "string" },
2610
- { name: "newName", internalType: "string", type: "string" }
2611
- ],
2612
- name: "UpgradeToMismatchedContractName"
2613
- }
2614
- ];
2615
- var commentsAddress = {
2616
- 7777777: "0x8C0757EFfD2Cc68F00810d2d144F729F6ed5CdA3",
2617
- 999999999: "0xA29a072Edd91CF501115f6B77D145417c498A09c"
2618
- };
2619
- var commentsConfig = {
2620
- address: commentsAddress,
2621
- abi: commentsABI
2622
- };
1558
+ // src/index.ts
1559
+ var src_exports = {};
1560
+ __export(src_exports, {
1561
+ PremintConfigVersion: () => PremintConfigVersion,
1562
+ contracts1155: () => __exports,
1563
+ encodePremintConfig: () => encodePremintConfig,
1564
+ erc20MinterABI: () => erc20MinterABI,
1565
+ erc20MinterAddress: () => erc20MinterAddress,
1566
+ erc20MinterConfig: () => erc20MinterConfig,
1567
+ erc20ZABI: () => erc20ZABI,
1568
+ erc20ZRoyaltiesABI: () => erc20ZRoyaltiesABI,
1569
+ erc20ZRoyaltiesAddress: () => erc20ZRoyaltiesAddress,
1570
+ erc20ZRoyaltiesConfig: () => erc20ZRoyaltiesConfig,
1571
+ iPremintDefinitionsABI: () => iPremintDefinitionsABI,
1572
+ iSponsoredSparksSpenderActionABI: () => iSponsoredSparksSpenderActionABI,
1573
+ iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
1574
+ mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
1575
+ mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
1576
+ mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1577
+ mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1578
+ mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1579
+ premintTypedDataDefinition: () => premintTypedDataDefinition,
1580
+ premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
1581
+ premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
1582
+ protocolRewardsABI: () => protocolRewardsABI,
1583
+ protocolRewardsAddress: () => protocolRewardsAddress,
1584
+ protocolRewardsConfig: () => protocolRewardsConfig,
1585
+ safeTransferSwapAbiParameters: () => safeTransferSwapAbiParameters,
1586
+ secondarySwapABI: () => secondarySwapABI,
1587
+ secondarySwapAddress: () => secondarySwapAddress,
1588
+ secondarySwapConfig: () => secondarySwapConfig,
1589
+ sparks: () => sparks_exports,
1590
+ sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
1591
+ sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
1592
+ sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
1593
+ sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
1594
+ sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
1595
+ upgradeGateABI: () => upgradeGateABI,
1596
+ upgradeGateAddress: () => upgradeGateAddress,
1597
+ upgradeGateConfig: () => upgradeGateConfig,
1598
+ wethABI: () => wethABI,
1599
+ wethAddress: () => wethAddress,
1600
+ wethConfig: () => wethConfig,
1601
+ zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
1602
+ zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
1603
+ zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
1604
+ zoraCreator1155ImplABI: () => zoraCreator1155ImplABI,
1605
+ zoraCreator1155PremintExecutorImplABI: () => zoraCreator1155PremintExecutorImplABI,
1606
+ zoraCreator1155PremintExecutorImplAddress: () => zoraCreator1155PremintExecutorImplAddress,
1607
+ zoraCreator1155PremintExecutorImplConfig: () => zoraCreator1155PremintExecutorImplConfig,
1608
+ zoraCreatorFixedPriceSaleStrategyABI: () => zoraCreatorFixedPriceSaleStrategyABI,
1609
+ zoraCreatorFixedPriceSaleStrategyAddress: () => zoraCreatorFixedPriceSaleStrategyAddress,
1610
+ zoraCreatorFixedPriceSaleStrategyConfig: () => zoraCreatorFixedPriceSaleStrategyConfig,
1611
+ zoraCreatorMerkleMinterStrategyABI: () => zoraCreatorMerkleMinterStrategyABI,
1612
+ zoraCreatorMerkleMinterStrategyAddress: () => zoraCreatorMerkleMinterStrategyAddress,
1613
+ zoraCreatorMerkleMinterStrategyConfig: () => zoraCreatorMerkleMinterStrategyConfig,
1614
+ zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
1615
+ zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
1616
+ zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
1617
+ zoraMints1155ABI: () => zoraMints1155ABI,
1618
+ zoraMints1155Address: () => zoraMints1155Address,
1619
+ zoraMints1155Config: () => zoraMints1155Config,
1620
+ zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
1621
+ zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
1622
+ zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
1623
+ zoraSparks1155ABI: () => zoraSparks1155ABI,
1624
+ zoraSparks1155Address: () => zoraSparks1155Address,
1625
+ zoraSparks1155Config: () => zoraSparks1155Config,
1626
+ zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
1627
+ zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
1628
+ zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig,
1629
+ zoraTimedSaleStrategyABI: () => zoraTimedSaleStrategyABI,
1630
+ zoraTimedSaleStrategyAddress: () => zoraTimedSaleStrategyAddress,
1631
+ zoraTimedSaleStrategyConfig: () => zoraTimedSaleStrategyConfig
1632
+ });
1633
+ module.exports = __toCommonJS(src_exports);
1634
+
1635
+ // src/generated/wagmi.ts
2623
1636
  var erc20MinterABI = [
2624
1637
  {
2625
1638
  stateMutability: "nonpayable",
@@ -6439,7 +5452,6 @@ var zoraCreator1155FactoryImplABI = [
6439
5452
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
6440
5453
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
6441
5454
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
6442
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
6443
5455
  { type: "error", inputs: [], name: "NotInitializing" },
6444
5456
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
6445
5457
  {
@@ -7861,7 +6873,6 @@ var zoraCreator1155ImplABI = [
7861
6873
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
7862
6874
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
7863
6875
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
7864
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
7865
6876
  { type: "error", inputs: [], name: "NotInitializing" },
7866
6877
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
7867
6878
  {
@@ -12369,17 +11380,7 @@ var zoraSparksManagerImplConfig = {
12369
11380
  abi: zoraSparksManagerImplABI
12370
11381
  };
12371
11382
  var zoraTimedSaleStrategyABI = [
12372
- {
12373
- stateMutability: "nonpayable",
12374
- type: "constructor",
12375
- inputs: [
12376
- {
12377
- name: "_comments",
12378
- internalType: "contract IComments",
12379
- type: "address"
12380
- }
12381
- ]
12382
- },
11383
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
12383
11384
  {
12384
11385
  stateMutability: "view",
12385
11386
  type: "function",
@@ -12428,15 +11429,6 @@ var zoraTimedSaleStrategyABI = [
12428
11429
  }
12429
11430
  ]
12430
11431
  },
12431
- {
12432
- stateMutability: "view",
12433
- type: "function",
12434
- inputs: [],
12435
- name: "comments",
12436
- outputs: [
12437
- { name: "", internalType: "contract IComments", type: "address" }
12438
- ]
12439
- },
12440
11432
  {
12441
11433
  stateMutability: "pure",
12442
11434
  type: "function",
@@ -12506,13 +11498,6 @@ var zoraTimedSaleStrategyABI = [
12506
11498
  { name: "createReferral", internalType: "address", type: "address" }
12507
11499
  ]
12508
11500
  },
12509
- {
12510
- stateMutability: "view",
12511
- type: "function",
12512
- inputs: [],
12513
- name: "implementation",
12514
- outputs: [{ name: "", internalType: "address", type: "address" }]
12515
- },
12516
11501
  {
12517
11502
  stateMutability: "nonpayable",
12518
11503
  type: "function",
@@ -12870,43 +11855,6 @@ var zoraTimedSaleStrategyABI = [
12870
11855
  ],
12871
11856
  name: "MintComment"
12872
11857
  },
12873
- {
12874
- type: "event",
12875
- anonymous: false,
12876
- inputs: [
12877
- {
12878
- name: "commentId",
12879
- internalType: "bytes32",
12880
- type: "bytes32",
12881
- indexed: true
12882
- },
12883
- {
12884
- name: "commentIdentifier",
12885
- internalType: "struct IComments.CommentIdentifier",
12886
- type: "tuple",
12887
- components: [
12888
- { name: "commenter", internalType: "address", type: "address" },
12889
- { name: "contractAddress", internalType: "address", type: "address" },
12890
- { name: "tokenId", internalType: "uint256", type: "uint256" },
12891
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
12892
- ],
12893
- indexed: false
12894
- },
12895
- {
12896
- name: "mintQuantity",
12897
- internalType: "uint256",
12898
- type: "uint256",
12899
- indexed: false
12900
- },
12901
- {
12902
- name: "comment",
12903
- internalType: "string",
12904
- type: "string",
12905
- indexed: false
12906
- }
12907
- ],
12908
- name: "MintedAndCommented"
12909
- },
12910
11858
  {
12911
11859
  type: "event",
12912
11860
  anonymous: false,
@@ -13183,7 +12131,6 @@ var zoraTimedSaleStrategyABI = [
13183
12131
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
13184
12132
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
13185
12133
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
13186
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
13187
12134
  { type: "error", inputs: [], name: "NotInitializing" },
13188
12135
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
13189
12136
  {
@@ -13237,57 +12184,6 @@ var zoraTimedSaleStrategyConfig = {
13237
12184
  abi: zoraTimedSaleStrategyABI
13238
12185
  };
13239
12186
 
13240
- // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/unit.js
13241
- init_base();
13242
- var InvalidDecimalNumberError = class extends BaseError {
13243
- constructor({ value }) {
13244
- super(`Number \`${value}\` is not a valid decimal number.`, {
13245
- name: "InvalidDecimalNumberError"
13246
- });
13247
- }
13248
- };
13249
-
13250
- // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseUnits.js
13251
- function parseUnits(value, decimals) {
13252
- if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
13253
- throw new InvalidDecimalNumberError({ value });
13254
- let [integer, fraction = "0"] = value.split(".");
13255
- const negative = integer.startsWith("-");
13256
- if (negative)
13257
- integer = integer.slice(1);
13258
- fraction = fraction.replace(/(0+)$/, "");
13259
- if (decimals === 0) {
13260
- if (Math.round(Number(`.${fraction}`)) === 1)
13261
- integer = `${BigInt(integer) + 1n}`;
13262
- fraction = "";
13263
- } else if (fraction.length > decimals) {
13264
- const [left, unit, right] = [
13265
- fraction.slice(0, decimals - 1),
13266
- fraction.slice(decimals - 1, decimals),
13267
- fraction.slice(decimals)
13268
- ];
13269
- const rounded = Math.round(Number(`${unit}.${right}`));
13270
- if (rounded > 9)
13271
- fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
13272
- else
13273
- fraction = `${left}${rounded}`;
13274
- if (fraction.length > decimals) {
13275
- fraction = fraction.slice(1);
13276
- integer = `${BigInt(integer) + 1n}`;
13277
- }
13278
- fraction = fraction.slice(0, decimals);
13279
- } else {
13280
- fraction = fraction.padEnd(decimals, "0");
13281
- }
13282
- return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
13283
- }
13284
-
13285
- // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
13286
- init_unit();
13287
- function parseEther(ether, unit = "wei") {
13288
- return parseUnits(ether, etherUnits[unit]);
13289
- }
13290
-
13291
12187
  // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
13292
12188
  init_encodeAbiParameters();
13293
12189
  init_getAbiItem();
@@ -13301,16 +12197,6 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
13301
12197
  PremintConfigVersion2["V3"] = "3";
13302
12198
  return PremintConfigVersion2;
13303
12199
  })(PremintConfigVersion || {});
13304
- var emptyCommentIdentifier = () => {
13305
- const zeroAddress = "0x0000000000000000000000000000000000000000";
13306
- const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
13307
- return {
13308
- commenter: zeroAddress,
13309
- contractAddress: zeroAddress,
13310
- tokenId: 0n,
13311
- nonce: zeroHash
13312
- };
13313
- };
13314
12200
 
13315
12201
  // src/typedData.ts
13316
12202
  var premintTypedDataDomain = ({
@@ -13601,71 +12487,6 @@ var sponsoredSparksBatchTypedDataDefinition = ({
13601
12487
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
13602
12488
  }
13603
12489
  });
13604
- var commentIdentifierType = [
13605
- { name: "contractAddress", type: "address" },
13606
- { name: "tokenId", type: "uint256" },
13607
- { name: "commenter", type: "address" },
13608
- { name: "nonce", type: "bytes32" }
13609
- ];
13610
- var permitCommentTypedDataType = {
13611
- PermitComment: [
13612
- { name: "contractAddress", type: "address" },
13613
- { name: "tokenId", type: "uint256" },
13614
- { name: "commenter", type: "address" },
13615
- { name: "replyTo", type: "CommentIdentifier" },
13616
- { name: "text", type: "string" },
13617
- { name: "deadline", type: "uint256" },
13618
- { name: "nonce", type: "bytes32" },
13619
- { name: "commenterSmartWallet", type: "address" },
13620
- { name: "referrer", type: "address" },
13621
- { name: "sourceChainId", type: "uint32" },
13622
- { name: "destinationChainId", type: "uint32" }
13623
- ],
13624
- CommentIdentifier: commentIdentifierType
13625
- };
13626
- var permitSparkCommentTypedDataType = {
13627
- PermitSparkComment: [
13628
- { name: "comment", type: "CommentIdentifier" },
13629
- { name: "sparker", type: "address" },
13630
- { name: "sparksQuantity", type: "uint256" },
13631
- { name: "deadline", type: "uint256" },
13632
- { name: "nonce", type: "bytes32" },
13633
- { name: "referrer", type: "address" },
13634
- { name: "sourceChainId", type: "uint32" },
13635
- { name: "destinationChainId", type: "uint32" }
13636
- ],
13637
- CommentIdentifier: commentIdentifierType
13638
- };
13639
- var commentsDomain = ({
13640
- signingChainId,
13641
- destinationChainId
13642
- }) => ({
13643
- chainId: signingChainId,
13644
- name: "Comments",
13645
- version: "1",
13646
- verifyingContract: commentsAddress[destinationChainId]
13647
- });
13648
- var permitCommentTypedDataDefinition = (message, signingAccount) => ({
13649
- types: permitCommentTypedDataType,
13650
- message,
13651
- primaryType: "PermitComment",
13652
- domain: commentsDomain({
13653
- signingChainId: message.sourceChainId,
13654
- destinationChainId: message.destinationChainId
13655
- }),
13656
- account: signingAccount || message.commenter
13657
- });
13658
- var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
13659
- types: permitSparkCommentTypedDataType,
13660
- message,
13661
- primaryType: "PermitSparkComment",
13662
- domain: commentsDomain({
13663
- signingChainId: message.sourceChainId,
13664
- destinationChainId: message.destinationChainId
13665
- }),
13666
- account: signingAccount || message.sparker
13667
- });
13668
- var sparkValue = () => parseEther("0.000001");
13669
12490
 
13670
12491
  // src/encoding.ts
13671
12492
  var safeTransferSwapAbiParameters = [
@@ -14005,11 +12826,7 @@ var addresses2 = {
14005
12826
  // Annotate the CommonJS export names for ESM import in node:
14006
12827
  0 && (module.exports = {
14007
12828
  PremintConfigVersion,
14008
- commentsABI,
14009
- commentsAddress,
14010
- commentsConfig,
14011
12829
  contracts1155,
14012
- emptyCommentIdentifier,
14013
12830
  encodePremintConfig,
14014
12831
  erc20MinterABI,
14015
12832
  erc20MinterAddress,
@@ -14026,8 +12843,6 @@ var addresses2 = {
14026
12843
  mintsEthUnwrapperAndCallerConfig,
14027
12844
  mintsSafeTransferBatchTypedDataDefinition,
14028
12845
  mintsSafeTransferTypedDataDefinition,
14029
- permitCommentTypedDataDefinition,
14030
- permitSparkCommentTypedDataDefinition,
14031
12846
  premintTypedDataDefinition,
14032
12847
  premintV1TypedDataDefinition,
14033
12848
  premintV2TypedDataDefinition,
@@ -14038,7 +12853,6 @@ var addresses2 = {
14038
12853
  secondarySwapABI,
14039
12854
  secondarySwapAddress,
14040
12855
  secondarySwapConfig,
14041
- sparkValue,
14042
12856
  sparks,
14043
12857
  sponsoredSparksBatchTransferTypedDataType,
14044
12858
  sponsoredSparksBatchTypedDataDefinition,