@zoralabs/protocol-deployments 0.3.8-COMMENTS.0 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1555,2116 +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
- callerAndCommenterABI: () => callerAndCommenterABI,
1575
- callerAndCommenterAddress: () => callerAndCommenterAddress,
1576
- callerAndCommenterConfig: () => callerAndCommenterConfig,
1577
- commentsABI: () => commentsABI,
1578
- commentsAddress: () => commentsAddress,
1579
- commentsConfig: () => commentsConfig,
1580
- contracts1155: () => __exports,
1581
- emptyCommentIdentifier: () => emptyCommentIdentifier,
1582
- encodePremintConfig: () => encodePremintConfig,
1583
- erc20MinterABI: () => erc20MinterABI,
1584
- erc20MinterAddress: () => erc20MinterAddress,
1585
- erc20MinterConfig: () => erc20MinterConfig,
1586
- erc20ZABI: () => erc20ZABI,
1587
- erc20ZRoyaltiesABI: () => erc20ZRoyaltiesABI,
1588
- erc20ZRoyaltiesAddress: () => erc20ZRoyaltiesAddress,
1589
- erc20ZRoyaltiesConfig: () => erc20ZRoyaltiesConfig,
1590
- iPremintDefinitionsABI: () => iPremintDefinitionsABI,
1591
- iSponsoredSparksSpenderActionABI: () => iSponsoredSparksSpenderActionABI,
1592
- iUnwrapAndForwardActionABI: () => iUnwrapAndForwardActionABI,
1593
- mintsEthUnwrapperAndCallerABI: () => mintsEthUnwrapperAndCallerABI,
1594
- mintsEthUnwrapperAndCallerAddress: () => mintsEthUnwrapperAndCallerAddress,
1595
- mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1596
- mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1597
- mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1598
- permitBuyOnSecondaryAndCommentTypedDataDefinition: () => permitBuyOnSecondaryAndCommentTypedDataDefinition,
1599
- permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
1600
- permitMintAndCommentTypedDataDefinition: () => permitMintAndCommentTypedDataDefinition,
1601
- permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
1602
- premintTypedDataDefinition: () => premintTypedDataDefinition,
1603
- premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
1604
- premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
1605
- protocolRewardsABI: () => protocolRewardsABI,
1606
- protocolRewardsAddress: () => protocolRewardsAddress,
1607
- protocolRewardsConfig: () => protocolRewardsConfig,
1608
- safeTransferSwapAbiParameters: () => safeTransferSwapAbiParameters,
1609
- secondarySwapABI: () => secondarySwapABI,
1610
- secondarySwapAddress: () => secondarySwapAddress,
1611
- secondarySwapConfig: () => secondarySwapConfig,
1612
- sparkValue: () => sparkValue,
1613
- sparks: () => sparks_exports,
1614
- sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
1615
- sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
1616
- sponsoredSparksSpenderABI: () => sponsoredSparksSpenderABI,
1617
- sponsoredSparksSpenderAddress: () => sponsoredSparksSpenderAddress,
1618
- sponsoredSparksSpenderConfig: () => sponsoredSparksSpenderConfig,
1619
- upgradeGateABI: () => upgradeGateABI,
1620
- upgradeGateAddress: () => upgradeGateAddress,
1621
- upgradeGateConfig: () => upgradeGateConfig,
1622
- wethABI: () => wethABI,
1623
- wethAddress: () => wethAddress,
1624
- wethConfig: () => wethConfig,
1625
- zoraCreator1155FactoryImplABI: () => zoraCreator1155FactoryImplABI,
1626
- zoraCreator1155FactoryImplAddress: () => zoraCreator1155FactoryImplAddress,
1627
- zoraCreator1155FactoryImplConfig: () => zoraCreator1155FactoryImplConfig,
1628
- zoraCreator1155ImplABI: () => zoraCreator1155ImplABI,
1629
- zoraCreator1155PremintExecutorImplABI: () => zoraCreator1155PremintExecutorImplABI,
1630
- zoraCreator1155PremintExecutorImplAddress: () => zoraCreator1155PremintExecutorImplAddress,
1631
- zoraCreator1155PremintExecutorImplConfig: () => zoraCreator1155PremintExecutorImplConfig,
1632
- zoraCreatorFixedPriceSaleStrategyABI: () => zoraCreatorFixedPriceSaleStrategyABI,
1633
- zoraCreatorFixedPriceSaleStrategyAddress: () => zoraCreatorFixedPriceSaleStrategyAddress,
1634
- zoraCreatorFixedPriceSaleStrategyConfig: () => zoraCreatorFixedPriceSaleStrategyConfig,
1635
- zoraCreatorMerkleMinterStrategyABI: () => zoraCreatorMerkleMinterStrategyABI,
1636
- zoraCreatorMerkleMinterStrategyAddress: () => zoraCreatorMerkleMinterStrategyAddress,
1637
- zoraCreatorMerkleMinterStrategyConfig: () => zoraCreatorMerkleMinterStrategyConfig,
1638
- zoraCreatorRedeemMinterFactoryABI: () => zoraCreatorRedeemMinterFactoryABI,
1639
- zoraCreatorRedeemMinterFactoryAddress: () => zoraCreatorRedeemMinterFactoryAddress,
1640
- zoraCreatorRedeemMinterFactoryConfig: () => zoraCreatorRedeemMinterFactoryConfig,
1641
- zoraMints1155ABI: () => zoraMints1155ABI,
1642
- zoraMints1155Address: () => zoraMints1155Address,
1643
- zoraMints1155Config: () => zoraMints1155Config,
1644
- zoraMintsManagerImplABI: () => zoraMintsManagerImplABI,
1645
- zoraMintsManagerImplAddress: () => zoraMintsManagerImplAddress,
1646
- zoraMintsManagerImplConfig: () => zoraMintsManagerImplConfig,
1647
- zoraSparks1155ABI: () => zoraSparks1155ABI,
1648
- zoraSparks1155Address: () => zoraSparks1155Address,
1649
- zoraSparks1155Config: () => zoraSparks1155Config,
1650
- zoraSparksManagerImplABI: () => zoraSparksManagerImplABI,
1651
- zoraSparksManagerImplAddress: () => zoraSparksManagerImplAddress,
1652
- zoraSparksManagerImplConfig: () => zoraSparksManagerImplConfig,
1653
- zoraTimedSaleStrategyABI: () => zoraTimedSaleStrategyABI,
1654
- zoraTimedSaleStrategyAddress: () => zoraTimedSaleStrategyAddress,
1655
- zoraTimedSaleStrategyConfig: () => zoraTimedSaleStrategyConfig
1656
- });
1657
- module.exports = __toCommonJS(src_exports);
1658
-
1659
- // src/generated/wagmi.ts
1660
- var callerAndCommenterABI = [
1661
- {
1662
- stateMutability: "nonpayable",
1663
- type: "constructor",
1664
- inputs: [
1665
- { name: "_comments", internalType: "address", type: "address" },
1666
- { name: "_zoraTimedSale", internalType: "address", type: "address" },
1667
- { name: "_swapHelper", internalType: "address", type: "address" },
1668
- { name: "_sparksValue", internalType: "uint256", type: "uint256" }
1669
- ]
1670
- },
1671
- {
1672
- stateMutability: "view",
1673
- type: "function",
1674
- inputs: [],
1675
- name: "UPGRADE_INTERFACE_VERSION",
1676
- outputs: [{ name: "", internalType: "string", type: "string" }]
1677
- },
1678
- {
1679
- stateMutability: "nonpayable",
1680
- type: "function",
1681
- inputs: [],
1682
- name: "acceptOwnership",
1683
- outputs: []
1684
- },
1685
- {
1686
- stateMutability: "payable",
1687
- type: "function",
1688
- inputs: [
1689
- { name: "commenter", internalType: "address", type: "address" },
1690
- { name: "quantity", internalType: "uint256", type: "uint256" },
1691
- { name: "collection", internalType: "address", type: "address" },
1692
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1693
- {
1694
- name: "excessRefundRecipient",
1695
- internalType: "address payable",
1696
- type: "address"
1697
- },
1698
- { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
1699
- { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
1700
- { name: "comment", internalType: "string", type: "string" }
1701
- ],
1702
- name: "buyOnSecondaryAndComment",
1703
- outputs: [
1704
- {
1705
- name: "",
1706
- internalType: "struct IComments.CommentIdentifier",
1707
- type: "tuple",
1708
- components: [
1709
- { name: "commenter", internalType: "address", type: "address" },
1710
- { name: "contractAddress", internalType: "address", type: "address" },
1711
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1712
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1713
- ]
1714
- }
1715
- ]
1716
- },
1717
- {
1718
- stateMutability: "view",
1719
- type: "function",
1720
- inputs: [],
1721
- name: "comments",
1722
- outputs: [
1723
- { name: "", internalType: "contract IComments", type: "address" }
1724
- ]
1725
- },
1726
- {
1727
- stateMutability: "pure",
1728
- type: "function",
1729
- inputs: [],
1730
- name: "contractName",
1731
- outputs: [{ name: "", internalType: "string", type: "string" }]
1732
- },
1733
- {
1734
- stateMutability: "pure",
1735
- type: "function",
1736
- inputs: [],
1737
- name: "contractVersion",
1738
- outputs: [{ name: "", internalType: "string", type: "string" }]
1739
- },
1740
- {
1741
- stateMutability: "view",
1742
- type: "function",
1743
- inputs: [],
1744
- name: "eip712Domain",
1745
- outputs: [
1746
- { name: "fields", internalType: "bytes1", type: "bytes1" },
1747
- { name: "name", internalType: "string", type: "string" },
1748
- { name: "version", internalType: "string", type: "string" },
1749
- { name: "chainId", internalType: "uint256", type: "uint256" },
1750
- { name: "verifyingContract", internalType: "address", type: "address" },
1751
- { name: "salt", internalType: "bytes32", type: "bytes32" },
1752
- { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1753
- ]
1754
- },
1755
- {
1756
- stateMutability: "view",
1757
- type: "function",
1758
- inputs: [
1759
- {
1760
- name: "permit",
1761
- internalType: "struct ICallerAndCommenter.PermitBuyOnSecondaryAndComment",
1762
- type: "tuple",
1763
- components: [
1764
- { name: "commenter", internalType: "address", type: "address" },
1765
- { name: "quantity", internalType: "uint256", type: "uint256" },
1766
- { name: "collection", internalType: "address", type: "address" },
1767
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1768
- { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
1769
- {
1770
- name: "sqrtPriceLimitX96",
1771
- internalType: "uint160",
1772
- type: "uint160"
1773
- },
1774
- { name: "comment", internalType: "string", type: "string" },
1775
- { name: "deadline", internalType: "uint256", type: "uint256" },
1776
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
1777
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1778
- {
1779
- name: "destinationChainId",
1780
- internalType: "uint32",
1781
- type: "uint32"
1782
- }
1783
- ]
1784
- }
1785
- ],
1786
- name: "hashPermitBuyOnSecondaryAndComment",
1787
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1788
- },
1789
- {
1790
- stateMutability: "view",
1791
- type: "function",
1792
- inputs: [
1793
- {
1794
- name: "permit",
1795
- internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
1796
- type: "tuple",
1797
- components: [
1798
- { name: "commenter", internalType: "address", type: "address" },
1799
- { name: "quantity", internalType: "uint256", type: "uint256" },
1800
- { name: "collection", internalType: "address", type: "address" },
1801
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1802
- { name: "mintReferral", internalType: "address", type: "address" },
1803
- { name: "comment", internalType: "string", type: "string" },
1804
- { name: "deadline", internalType: "uint256", type: "uint256" },
1805
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
1806
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1807
- {
1808
- name: "destinationChainId",
1809
- internalType: "uint32",
1810
- type: "uint32"
1811
- }
1812
- ]
1813
- }
1814
- ],
1815
- name: "hashPermitTimedSaleMintAndComment",
1816
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1817
- },
1818
- {
1819
- stateMutability: "nonpayable",
1820
- type: "function",
1821
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
1822
- name: "initialize",
1823
- outputs: []
1824
- },
1825
- {
1826
- stateMutability: "view",
1827
- type: "function",
1828
- inputs: [
1829
- { name: "owner", internalType: "address", type: "address" },
1830
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1831
- ],
1832
- name: "nonceUsed",
1833
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
1834
- },
1835
- {
1836
- stateMutability: "view",
1837
- type: "function",
1838
- inputs: [],
1839
- name: "owner",
1840
- outputs: [{ name: "", internalType: "address", type: "address" }]
1841
- },
1842
- {
1843
- stateMutability: "view",
1844
- type: "function",
1845
- inputs: [],
1846
- name: "pendingOwner",
1847
- outputs: [{ name: "", internalType: "address", type: "address" }]
1848
- },
1849
- {
1850
- stateMutability: "payable",
1851
- type: "function",
1852
- inputs: [
1853
- {
1854
- name: "permit",
1855
- internalType: "struct ICallerAndCommenter.PermitBuyOnSecondaryAndComment",
1856
- type: "tuple",
1857
- components: [
1858
- { name: "commenter", internalType: "address", type: "address" },
1859
- { name: "quantity", internalType: "uint256", type: "uint256" },
1860
- { name: "collection", internalType: "address", type: "address" },
1861
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1862
- { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
1863
- {
1864
- name: "sqrtPriceLimitX96",
1865
- internalType: "uint160",
1866
- type: "uint160"
1867
- },
1868
- { name: "comment", internalType: "string", type: "string" },
1869
- { name: "deadline", internalType: "uint256", type: "uint256" },
1870
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
1871
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1872
- {
1873
- name: "destinationChainId",
1874
- internalType: "uint32",
1875
- type: "uint32"
1876
- }
1877
- ]
1878
- },
1879
- { name: "signature", internalType: "bytes", type: "bytes" }
1880
- ],
1881
- name: "permitBuyOnSecondaryAndComment",
1882
- outputs: [
1883
- {
1884
- name: "",
1885
- internalType: "struct IComments.CommentIdentifier",
1886
- type: "tuple",
1887
- components: [
1888
- { name: "commenter", internalType: "address", type: "address" },
1889
- { name: "contractAddress", internalType: "address", type: "address" },
1890
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1891
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1892
- ]
1893
- }
1894
- ]
1895
- },
1896
- {
1897
- stateMutability: "payable",
1898
- type: "function",
1899
- inputs: [
1900
- {
1901
- name: "permit",
1902
- internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
1903
- type: "tuple",
1904
- components: [
1905
- { name: "commenter", internalType: "address", type: "address" },
1906
- { name: "quantity", internalType: "uint256", type: "uint256" },
1907
- { name: "collection", internalType: "address", type: "address" },
1908
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1909
- { name: "mintReferral", internalType: "address", type: "address" },
1910
- { name: "comment", internalType: "string", type: "string" },
1911
- { name: "deadline", internalType: "uint256", type: "uint256" },
1912
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
1913
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1914
- {
1915
- name: "destinationChainId",
1916
- internalType: "uint32",
1917
- type: "uint32"
1918
- }
1919
- ]
1920
- },
1921
- { name: "signature", internalType: "bytes", type: "bytes" }
1922
- ],
1923
- name: "permitTimedSaleMintAndComment",
1924
- outputs: [
1925
- {
1926
- name: "",
1927
- internalType: "struct IComments.CommentIdentifier",
1928
- type: "tuple",
1929
- components: [
1930
- { name: "commenter", internalType: "address", type: "address" },
1931
- { name: "contractAddress", internalType: "address", type: "address" },
1932
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1933
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1934
- ]
1935
- }
1936
- ]
1937
- },
1938
- {
1939
- stateMutability: "view",
1940
- type: "function",
1941
- inputs: [],
1942
- name: "proxiableUUID",
1943
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1944
- },
1945
- {
1946
- stateMutability: "nonpayable",
1947
- type: "function",
1948
- inputs: [],
1949
- name: "renounceOwnership",
1950
- outputs: []
1951
- },
1952
- {
1953
- stateMutability: "view",
1954
- type: "function",
1955
- inputs: [],
1956
- name: "secondarySwap",
1957
- outputs: [
1958
- { name: "", internalType: "contract ISecondarySwap", type: "address" }
1959
- ]
1960
- },
1961
- {
1962
- stateMutability: "payable",
1963
- type: "function",
1964
- inputs: [
1965
- { name: "commenter", internalType: "address", type: "address" },
1966
- { name: "quantity", internalType: "uint256", type: "uint256" },
1967
- { name: "collection", internalType: "address", type: "address" },
1968
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1969
- { name: "recipient", internalType: "address payable", type: "address" },
1970
- { name: "minEthToAcquire", internalType: "uint256", type: "uint256" },
1971
- { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
1972
- { name: "comment", internalType: "string", type: "string" }
1973
- ],
1974
- name: "sellOnSecondaryAndComment",
1975
- outputs: [
1976
- {
1977
- name: "commentIdentifier",
1978
- internalType: "struct IComments.CommentIdentifier",
1979
- type: "tuple",
1980
- components: [
1981
- { name: "commenter", internalType: "address", type: "address" },
1982
- { name: "contractAddress", internalType: "address", type: "address" },
1983
- { name: "tokenId", internalType: "uint256", type: "uint256" },
1984
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
1985
- ]
1986
- }
1987
- ]
1988
- },
1989
- {
1990
- stateMutability: "view",
1991
- type: "function",
1992
- inputs: [],
1993
- name: "sparkValue",
1994
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1995
- },
1996
- {
1997
- stateMutability: "payable",
1998
- type: "function",
1999
- inputs: [
2000
- { name: "commenter", internalType: "address", type: "address" },
2001
- { name: "quantity", internalType: "uint256", type: "uint256" },
2002
- { name: "collection", internalType: "address", type: "address" },
2003
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2004
- { name: "mintReferral", internalType: "address", type: "address" },
2005
- { name: "comment", internalType: "string", type: "string" }
2006
- ],
2007
- name: "timedSaleMintAndComment",
2008
- outputs: [
2009
- {
2010
- name: "",
2011
- internalType: "struct IComments.CommentIdentifier",
2012
- type: "tuple",
2013
- components: [
2014
- { name: "commenter", internalType: "address", type: "address" },
2015
- { name: "contractAddress", internalType: "address", type: "address" },
2016
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2017
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2018
- ]
2019
- }
2020
- ]
2021
- },
2022
- {
2023
- stateMutability: "nonpayable",
2024
- type: "function",
2025
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
2026
- name: "transferOwnership",
2027
- outputs: []
2028
- },
2029
- {
2030
- stateMutability: "payable",
2031
- type: "function",
2032
- inputs: [
2033
- { name: "newImplementation", internalType: "address", type: "address" },
2034
- { name: "data", internalType: "bytes", type: "bytes" }
2035
- ],
2036
- name: "upgradeToAndCall",
2037
- outputs: []
2038
- },
2039
- {
2040
- stateMutability: "view",
2041
- type: "function",
2042
- inputs: [],
2043
- name: "zoraTimedSale",
2044
- outputs: [
2045
- {
2046
- name: "",
2047
- internalType: "contract IZoraTimedSaleStrategy",
2048
- type: "address"
2049
- }
2050
- ]
2051
- },
2052
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
2053
- {
2054
- type: "event",
2055
- anonymous: false,
2056
- inputs: [
2057
- {
2058
- name: "version",
2059
- internalType: "uint64",
2060
- type: "uint64",
2061
- indexed: false
2062
- }
2063
- ],
2064
- name: "Initialized"
2065
- },
2066
- {
2067
- type: "event",
2068
- anonymous: false,
2069
- inputs: [
2070
- {
2071
- name: "commentId",
2072
- internalType: "bytes32",
2073
- type: "bytes32",
2074
- indexed: true
2075
- },
2076
- {
2077
- name: "commentIdentifier",
2078
- internalType: "struct IComments.CommentIdentifier",
2079
- type: "tuple",
2080
- components: [
2081
- { name: "commenter", internalType: "address", type: "address" },
2082
- { name: "contractAddress", internalType: "address", type: "address" },
2083
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2084
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2085
- ],
2086
- indexed: false
2087
- },
2088
- {
2089
- name: "quantity",
2090
- internalType: "uint256",
2091
- type: "uint256",
2092
- indexed: false
2093
- },
2094
- { name: "text", internalType: "string", type: "string", indexed: false }
2095
- ],
2096
- name: "MintedAndCommented"
2097
- },
2098
- {
2099
- type: "event",
2100
- anonymous: false,
2101
- inputs: [
2102
- {
2103
- name: "previousOwner",
2104
- internalType: "address",
2105
- type: "address",
2106
- indexed: true
2107
- },
2108
- {
2109
- name: "newOwner",
2110
- internalType: "address",
2111
- type: "address",
2112
- indexed: true
2113
- }
2114
- ],
2115
- name: "OwnershipTransferStarted"
2116
- },
2117
- {
2118
- type: "event",
2119
- anonymous: false,
2120
- inputs: [
2121
- {
2122
- name: "previousOwner",
2123
- internalType: "address",
2124
- type: "address",
2125
- indexed: true
2126
- },
2127
- {
2128
- name: "newOwner",
2129
- internalType: "address",
2130
- type: "address",
2131
- indexed: true
2132
- }
2133
- ],
2134
- name: "OwnershipTransferred"
2135
- },
2136
- {
2137
- type: "event",
2138
- anonymous: false,
2139
- inputs: [
2140
- {
2141
- name: "commentId",
2142
- internalType: "bytes32",
2143
- type: "bytes32",
2144
- indexed: true
2145
- },
2146
- {
2147
- name: "commentIdentifier",
2148
- internalType: "struct IComments.CommentIdentifier",
2149
- type: "tuple",
2150
- components: [
2151
- { name: "commenter", internalType: "address", type: "address" },
2152
- { name: "contractAddress", internalType: "address", type: "address" },
2153
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2154
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2155
- ],
2156
- indexed: false
2157
- },
2158
- {
2159
- name: "quantity",
2160
- internalType: "uint256",
2161
- type: "uint256",
2162
- indexed: true
2163
- },
2164
- {
2165
- name: "comment",
2166
- internalType: "string",
2167
- type: "string",
2168
- indexed: false
2169
- },
2170
- {
2171
- name: "swapDirection",
2172
- internalType: "enum ICallerAndCommenter.SwapDirection",
2173
- type: "uint8",
2174
- indexed: true
2175
- }
2176
- ],
2177
- name: "SwappedOnSecondaryAndCommented"
2178
- },
2179
- {
2180
- type: "event",
2181
- anonymous: false,
2182
- inputs: [
2183
- {
2184
- name: "implementation",
2185
- internalType: "address",
2186
- type: "address",
2187
- indexed: true
2188
- }
2189
- ],
2190
- name: "Upgraded"
2191
- },
2192
- {
2193
- type: "error",
2194
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2195
- name: "AddressEmptyCode"
2196
- },
2197
- {
2198
- type: "error",
2199
- inputs: [
2200
- { name: "expected", internalType: "address", type: "address" },
2201
- { name: "actual", internalType: "address", type: "address" }
2202
- ],
2203
- name: "CommenterMismatch"
2204
- },
2205
- {
2206
- type: "error",
2207
- inputs: [
2208
- { name: "implementation", internalType: "address", type: "address" }
2209
- ],
2210
- name: "ERC1967InvalidImplementation"
2211
- },
2212
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
2213
- {
2214
- type: "error",
2215
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2216
- name: "ERC2612ExpiredSignature"
2217
- },
2218
- { type: "error", inputs: [], name: "FailedInnerCall" },
2219
- {
2220
- type: "error",
2221
- inputs: [
2222
- {
2223
- name: "wrongDestinationChainId",
2224
- internalType: "uint256",
2225
- type: "uint256"
2226
- }
2227
- ],
2228
- name: "IncorrectDestinationChain"
2229
- },
2230
- {
2231
- type: "error",
2232
- inputs: [
2233
- { name: "account", internalType: "address", type: "address" },
2234
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2235
- ],
2236
- name: "InvalidAccountNonce"
2237
- },
2238
- { type: "error", inputs: [], name: "InvalidInitialization" },
2239
- { type: "error", inputs: [], name: "InvalidSignature" },
2240
- { type: "error", inputs: [], name: "NotInitializing" },
2241
- {
2242
- type: "error",
2243
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
2244
- name: "OwnableInvalidOwner"
2245
- },
2246
- {
2247
- type: "error",
2248
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2249
- name: "OwnableUnauthorizedAccount"
2250
- },
2251
- {
2252
- type: "error",
2253
- inputs: [
2254
- { name: "collection", internalType: "address", type: "address" },
2255
- { name: "tokenId", internalType: "uint256", type: "uint256" }
2256
- ],
2257
- name: "SaleNotSet"
2258
- },
2259
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2260
- {
2261
- type: "error",
2262
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2263
- name: "UUPSUnsupportedProxiableUUID"
2264
- },
2265
- {
2266
- type: "error",
2267
- inputs: [
2268
- { name: "currentName", internalType: "string", type: "string" },
2269
- { name: "newName", internalType: "string", type: "string" }
2270
- ],
2271
- name: "UpgradeToMismatchedContractName"
2272
- },
2273
- {
2274
- type: "error",
2275
- inputs: [
2276
- { name: "expected", internalType: "uint256", type: "uint256" },
2277
- { name: "actual", internalType: "uint256", type: "uint256" }
2278
- ],
2279
- name: "WrongValueSent"
2280
- },
2281
- {
2282
- type: "error",
2283
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2284
- name: "AddressEmptyCode"
2285
- },
2286
- {
2287
- type: "error",
2288
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2289
- name: "AddressInsufficientBalance"
2290
- },
2291
- { type: "error", inputs: [], name: "AddressZero" },
2292
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
2293
- {
2294
- type: "error",
2295
- inputs: [
2296
- { name: "implementation", internalType: "address", type: "address" }
2297
- ],
2298
- name: "ERC1967InvalidImplementation"
2299
- },
2300
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
2301
- { type: "error", inputs: [], name: "EndTimeCannotBeInThePast" },
2302
- { type: "error", inputs: [], name: "FailedInnerCall" },
2303
- { type: "error", inputs: [], name: "InsufficientFunds" },
2304
- { type: "error", inputs: [], name: "InvalidInitialization" },
2305
- { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
2306
- { type: "error", inputs: [], name: "MarketMinimumNotReached" },
2307
- { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
2308
- { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
2309
- { type: "error", inputs: [], name: "NotInitializing" },
2310
- { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
2311
- {
2312
- type: "error",
2313
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
2314
- name: "OwnableInvalidOwner"
2315
- },
2316
- {
2317
- type: "error",
2318
- inputs: [{ name: "account", internalType: "address", type: "address" }],
2319
- name: "OwnableUnauthorizedAccount"
2320
- },
2321
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
2322
- { type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
2323
- { type: "error", inputs: [], name: "ResetSaleNotAvailable" },
2324
- { type: "error", inputs: [], name: "SaleAlreadySet" },
2325
- { type: "error", inputs: [], name: "SaleEnded" },
2326
- { type: "error", inputs: [], name: "SaleHasNotStarted" },
2327
- { type: "error", inputs: [], name: "SaleInProgress" },
2328
- { type: "error", inputs: [], name: "SaleNotSet" },
2329
- { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
2330
- { type: "error", inputs: [], name: "SaleV2Ended" },
2331
- { type: "error", inputs: [], name: "SaleV2NotSet" },
2332
- { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
2333
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2334
- {
2335
- type: "error",
2336
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2337
- name: "UUPSUnsupportedProxiableUUID"
2338
- },
2339
- { type: "error", inputs: [], name: "WrongValueSent" },
2340
- {
2341
- type: "error",
2342
- inputs: [],
2343
- name: "ZoraCreator1155ContractNeedsToSupportReduceSupply"
2344
- },
2345
- { type: "error", inputs: [], name: "ADDRESS_DELEGATECALL_TO_NON_CONTRACT" },
2346
- { type: "error", inputs: [], name: "ADDRESS_LOW_LEVEL_CALL_FAILED" },
2347
- {
2348
- type: "error",
2349
- inputs: [
2350
- { name: "operator", internalType: "address", type: "address" },
2351
- { name: "user", internalType: "address", type: "address" }
2352
- ],
2353
- name: "Burn_NotOwnerOrApproved"
2354
- },
2355
- { type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
2356
- {
2357
- type: "error",
2358
- inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
2359
- name: "CallFailed"
2360
- },
2361
- { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
2362
- { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
2363
- { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
2364
- {
2365
- type: "error",
2366
- inputs: [
2367
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2368
- { name: "quantity", internalType: "uint256", type: "uint256" },
2369
- { name: "totalMinted", internalType: "uint256", type: "uint256" },
2370
- { name: "maxSupply", internalType: "uint256", type: "uint256" }
2371
- ],
2372
- name: "CannotMintMoreTokens"
2373
- },
2374
- { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
2375
- {
2376
- type: "error",
2377
- inputs: [
2378
- { name: "proposedAddress", internalType: "address", type: "address" }
2379
- ],
2380
- name: "Config_TransferHookNotSupported"
2381
- },
2382
- {
2383
- type: "error",
2384
- inputs: [],
2385
- name: "ERC1155_ACCOUNTS_AND_IDS_LENGTH_MISMATCH"
2386
- },
2387
- {
2388
- type: "error",
2389
- inputs: [],
2390
- name: "ERC1155_ADDRESS_ZERO_IS_NOT_A_VALID_OWNER"
2391
- },
2392
- { type: "error", inputs: [], name: "ERC1155_BURN_AMOUNT_EXCEEDS_BALANCE" },
2393
- { type: "error", inputs: [], name: "ERC1155_BURN_FROM_ZERO_ADDRESS" },
2394
- {
2395
- type: "error",
2396
- inputs: [],
2397
- name: "ERC1155_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED"
2398
- },
2399
- {
2400
- type: "error",
2401
- inputs: [],
2402
- name: "ERC1155_ERC1155RECEIVER_REJECTED_TOKENS"
2403
- },
2404
- {
2405
- type: "error",
2406
- inputs: [],
2407
- name: "ERC1155_IDS_AND_AMOUNTS_LENGTH_MISMATCH"
2408
- },
2409
- {
2410
- type: "error",
2411
- inputs: [],
2412
- name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER"
2413
- },
2414
- { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
2415
- { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
2416
- { type: "error", inputs: [], name: "ERC1155_SETTING_APPROVAL_FOR_SELF" },
2417
- {
2418
- type: "error",
2419
- inputs: [],
2420
- name: "ERC1155_TRANSFER_TO_NON_ERC1155RECEIVER_IMPLEMENTER"
2421
- },
2422
- { type: "error", inputs: [], name: "ERC1155_TRANSFER_TO_ZERO_ADDRESS" },
2423
- { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
2424
- { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
2425
- { type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
2426
- {
2427
- type: "error",
2428
- inputs: [
2429
- { name: "recipient", internalType: "address", type: "address" },
2430
- { name: "amount", internalType: "uint256", type: "uint256" }
2431
- ],
2432
- name: "ETHWithdrawFailed"
2433
- },
2434
- {
2435
- type: "error",
2436
- inputs: [],
2437
- name: "FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY"
2438
- },
2439
- {
2440
- type: "error",
2441
- inputs: [],
2442
- name: "FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL"
2443
- },
2444
- { type: "error", inputs: [], name: "FirstMinterAddressZero" },
2445
- {
2446
- type: "error",
2447
- inputs: [
2448
- { name: "amount", internalType: "uint256", type: "uint256" },
2449
- { name: "contractValue", internalType: "uint256", type: "uint256" }
2450
- ],
2451
- name: "FundsWithdrawInsolvent"
2452
- },
2453
- {
2454
- type: "error",
2455
- inputs: [],
2456
- name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED"
2457
- },
2458
- {
2459
- type: "error",
2460
- inputs: [],
2461
- name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
2462
- },
2463
- { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
2464
- { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
2465
- {
2466
- type: "error",
2467
- inputs: [
2468
- { name: "mintTo", internalType: "address", type: "address" },
2469
- { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
2470
- { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
2471
- ],
2472
- name: "InvalidMerkleProof"
2473
- },
2474
- { type: "error", inputs: [], name: "InvalidMintSchedule" },
2475
- { type: "error", inputs: [], name: "InvalidMintSchedule" },
2476
- { type: "error", inputs: [], name: "InvalidPremintVersion" },
2477
- { type: "error", inputs: [], name: "InvalidSignature" },
2478
- { type: "error", inputs: [], name: "InvalidSignatureVersion" },
2479
- {
2480
- type: "error",
2481
- inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
2482
- name: "InvalidSigner"
2483
- },
2484
- { type: "error", inputs: [], name: "MintNotYetStarted" },
2485
- { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
2486
- { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
2487
- { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
2488
- { type: "error", inputs: [], name: "Mint_UnknownCommand" },
2489
- { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
2490
- { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2491
- { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2492
- { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
2493
- {
2494
- type: "error",
2495
- inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
2496
- name: "NoRendererForToken"
2497
- },
2498
- { type: "error", inputs: [], name: "NonEthRedemption" },
2499
- { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
2500
- { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
2501
- { type: "error", inputs: [], name: "PremintDeleted" },
2502
- {
2503
- type: "error",
2504
- inputs: [
2505
- { name: "caller", internalType: "address", type: "address" },
2506
- { name: "recipient", internalType: "address", type: "address" },
2507
- { name: "amount", internalType: "uint256", type: "uint256" }
2508
- ],
2509
- name: "ProtocolRewardsWithdrawFailed"
2510
- },
2511
- {
2512
- type: "error",
2513
- inputs: [{ name: "renderer", internalType: "address", type: "address" }],
2514
- name: "RendererNotValid"
2515
- },
2516
- { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
2517
- { type: "error", inputs: [], name: "SaleEnded" },
2518
- { type: "error", inputs: [], name: "SaleHasNotStarted" },
2519
- {
2520
- type: "error",
2521
- inputs: [
2522
- { name: "targetContract", internalType: "address", type: "address" }
2523
- ],
2524
- name: "Sale_CannotCallNonSalesContract"
2525
- },
2526
- {
2527
- type: "error",
2528
- inputs: [
2529
- { name: "expected", internalType: "uint256", type: "uint256" },
2530
- { name: "actual", internalType: "uint256", type: "uint256" }
2531
- ],
2532
- name: "TokenIdMismatch"
2533
- },
2534
- {
2535
- type: "error",
2536
- inputs: [],
2537
- name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
2538
- },
2539
- {
2540
- type: "error",
2541
- inputs: [
2542
- { name: "user", internalType: "address", type: "address" },
2543
- { name: "limit", internalType: "uint256", type: "uint256" },
2544
- { name: "requestedAmount", internalType: "uint256", type: "uint256" }
2545
- ],
2546
- name: "UserExceedsMintLimit"
2547
- },
2548
- {
2549
- type: "error",
2550
- inputs: [
2551
- { name: "user", internalType: "address", type: "address" },
2552
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2553
- { name: "role", internalType: "uint256", type: "uint256" }
2554
- ],
2555
- name: "UserMissingRoleForToken"
2556
- },
2557
- { type: "error", inputs: [], name: "WrongValueSent" },
2558
- {
2559
- type: "error",
2560
- inputs: [],
2561
- name: "premintSignerContractFailedToRecoverSigner"
2562
- },
2563
- { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
2564
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
2565
- {
2566
- type: "error",
2567
- inputs: [
2568
- { name: "account", internalType: "address", type: "address" },
2569
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
2570
- ],
2571
- name: "AccessControlUnauthorizedAccount"
2572
- },
2573
- {
2574
- type: "error",
2575
- inputs: [{ name: "target", internalType: "address", type: "address" }],
2576
- name: "AddressEmptyCode"
2577
- },
2578
- { type: "error", inputs: [], name: "AddressZero" },
2579
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
2580
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
2581
- {
2582
- type: "error",
2583
- inputs: [
2584
- { name: "commentAddress", internalType: "address", type: "address" },
2585
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
2586
- { name: "replyAddress", internalType: "address", type: "address" },
2587
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
2588
- ],
2589
- name: "CommentAddressOrTokenIdsDoNotMatch"
2590
- },
2591
- { type: "error", inputs: [], name: "CommentDoesntExist" },
2592
- {
2593
- type: "error",
2594
- inputs: [
2595
- { name: "expected", internalType: "address", type: "address" },
2596
- { name: "actual", internalType: "address", type: "address" }
2597
- ],
2598
- name: "CommenterMismatch"
2599
- },
2600
- {
2601
- type: "error",
2602
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
2603
- name: "DuplicateComment"
2604
- },
2605
- {
2606
- type: "error",
2607
- inputs: [
2608
- { name: "implementation", internalType: "address", type: "address" }
2609
- ],
2610
- name: "ERC1967InvalidImplementation"
2611
- },
2612
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
2613
- {
2614
- type: "error",
2615
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2616
- name: "ERC2612ExpiredSignature"
2617
- },
2618
- { type: "error", inputs: [], name: "EmptyComment" },
2619
- { type: "error", inputs: [], name: "FailedInnerCall" },
2620
- {
2621
- type: "error",
2622
- inputs: [
2623
- {
2624
- name: "wrongDestinationChainId",
2625
- internalType: "uint256",
2626
- type: "uint256"
2627
- }
2628
- ],
2629
- name: "IncorrectDestinationChain"
2630
- },
2631
- {
2632
- type: "error",
2633
- inputs: [
2634
- { name: "actual", internalType: "uint256", type: "uint256" },
2635
- { name: "expected", internalType: "uint256", type: "uint256" }
2636
- ],
2637
- name: "IncorrectETHAmountForSparks"
2638
- },
2639
- {
2640
- type: "error",
2641
- inputs: [
2642
- { name: "account", internalType: "address", type: "address" },
2643
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2644
- ],
2645
- name: "InvalidAccountNonce"
2646
- },
2647
- { type: "error", inputs: [], name: "InvalidInitialization" },
2648
- { type: "error", inputs: [], name: "InvalidSignature" },
2649
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
2650
- { type: "error", inputs: [], name: "NoFundsRecipient" },
2651
- { type: "error", inputs: [], name: "NotInitializing" },
2652
- { type: "error", inputs: [], name: "NotSmartWallet" },
2653
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
2654
- { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
2655
- { type: "error", inputs: [], name: "OnlySparksContract" },
2656
- { type: "error", inputs: [], name: "TransferFailed" },
2657
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2658
- {
2659
- type: "error",
2660
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2661
- name: "UUPSUnsupportedProxiableUUID"
2662
- },
2663
- {
2664
- type: "error",
2665
- inputs: [
2666
- { name: "currentName", internalType: "string", type: "string" },
2667
- { name: "newName", internalType: "string", type: "string" }
2668
- ],
2669
- name: "UpgradeToMismatchedContractName"
2670
- }
2671
- ];
2672
- var callerAndCommenterAddress = {
2673
- 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2674
- 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2675
- 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2676
- 84532: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2677
- 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2678
- 11155111: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2679
- 11155420: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2680
- 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
2681
- };
2682
- var callerAndCommenterConfig = {
2683
- address: callerAndCommenterAddress,
2684
- abi: callerAndCommenterABI
2685
- };
2686
- var commentsABI = [
2687
- {
2688
- stateMutability: "nonpayable",
2689
- type: "constructor",
2690
- inputs: [
2691
- { name: "_sparkValue", internalType: "uint256", type: "uint256" },
2692
- { name: "_protocolRewards", internalType: "address", type: "address" },
2693
- { name: "_zoraRecipient", internalType: "address", type: "address" }
2694
- ]
2695
- },
2696
- {
2697
- stateMutability: "view",
2698
- type: "function",
2699
- inputs: [],
2700
- name: "BACKFILLER_ROLE",
2701
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2702
- },
2703
- {
2704
- stateMutability: "view",
2705
- type: "function",
2706
- inputs: [],
2707
- name: "DEFAULT_ADMIN_ROLE",
2708
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2709
- },
2710
- {
2711
- stateMutability: "view",
2712
- type: "function",
2713
- inputs: [],
2714
- name: "DELEGATE_COMMENTER",
2715
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2716
- },
2717
- {
2718
- stateMutability: "view",
2719
- type: "function",
2720
- inputs: [],
2721
- name: "DOMAIN_NAME",
2722
- outputs: [{ name: "", internalType: "string", type: "string" }]
2723
- },
2724
- {
2725
- stateMutability: "view",
2726
- type: "function",
2727
- inputs: [],
2728
- name: "DOMAIN_VERSION",
2729
- outputs: [{ name: "", internalType: "string", type: "string" }]
2730
- },
2731
- {
2732
- stateMutability: "view",
2733
- type: "function",
2734
- inputs: [],
2735
- name: "PERMISSION_BIT_ADMIN",
2736
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2737
- },
2738
- {
2739
- stateMutability: "view",
2740
- type: "function",
2741
- inputs: [],
2742
- name: "REFERRER_REWARD_PCT",
2743
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2744
- },
2745
- {
2746
- stateMutability: "view",
2747
- type: "function",
2748
- inputs: [],
2749
- name: "UPGRADE_INTERFACE_VERSION",
2750
- outputs: [{ name: "", internalType: "string", type: "string" }]
2751
- },
2752
- {
2753
- stateMutability: "view",
2754
- type: "function",
2755
- inputs: [],
2756
- name: "ZORA_REWARD_NO_REFERRER_PCT",
2757
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2758
- },
2759
- {
2760
- stateMutability: "view",
2761
- type: "function",
2762
- inputs: [],
2763
- name: "ZORA_REWARD_PCT",
2764
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2765
- },
2766
- {
2767
- stateMutability: "nonpayable",
2768
- type: "function",
2769
- inputs: [
2770
- {
2771
- name: "commentIdentifiers",
2772
- internalType: "struct IComments.CommentIdentifier[]",
2773
- type: "tuple[]",
2774
- components: [
2775
- { name: "commenter", internalType: "address", type: "address" },
2776
- { name: "contractAddress", internalType: "address", type: "address" },
2777
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2778
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2779
- ]
2780
- },
2781
- { name: "texts", internalType: "string[]", type: "string[]" },
2782
- { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
2783
- {
2784
- name: "originalTransactionHashes",
2785
- internalType: "bytes32[]",
2786
- type: "bytes32[]"
2787
- }
2788
- ],
2789
- name: "backfillBatchAddComment",
2790
- outputs: []
2791
- },
2792
- {
2793
- stateMutability: "payable",
2794
- type: "function",
2795
- inputs: [
2796
- { name: "commenter", internalType: "address", type: "address" },
2797
- { name: "contractAddress", internalType: "address", type: "address" },
2798
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2799
- { name: "text", internalType: "string", type: "string" },
2800
- {
2801
- name: "replyTo",
2802
- internalType: "struct IComments.CommentIdentifier",
2803
- type: "tuple",
2804
- components: [
2805
- { name: "commenter", internalType: "address", type: "address" },
2806
- { name: "contractAddress", internalType: "address", type: "address" },
2807
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2808
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2809
- ]
2810
- },
2811
- {
2812
- name: "commenterSmartWallet",
2813
- internalType: "address",
2814
- type: "address"
2815
- },
2816
- { name: "referrer", internalType: "address", type: "address" }
2817
- ],
2818
- name: "comment",
2819
- outputs: [
2820
- {
2821
- name: "commentIdentifier",
2822
- internalType: "struct IComments.CommentIdentifier",
2823
- type: "tuple",
2824
- components: [
2825
- { name: "commenter", internalType: "address", type: "address" },
2826
- { name: "contractAddress", internalType: "address", type: "address" },
2827
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2828
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2829
- ]
2830
- }
2831
- ]
2832
- },
2833
- {
2834
- stateMutability: "view",
2835
- type: "function",
2836
- inputs: [
2837
- {
2838
- name: "commentIdentifier",
2839
- internalType: "struct IComments.CommentIdentifier",
2840
- type: "tuple",
2841
- components: [
2842
- { name: "commenter", internalType: "address", type: "address" },
2843
- { name: "contractAddress", internalType: "address", type: "address" },
2844
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2845
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2846
- ]
2847
- }
2848
- ],
2849
- name: "commentSparksQuantity",
2850
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2851
- },
2852
- {
2853
- stateMutability: "pure",
2854
- type: "function",
2855
- inputs: [],
2856
- name: "contractName",
2857
- outputs: [{ name: "", internalType: "string", type: "string" }]
2858
- },
2859
- {
2860
- stateMutability: "pure",
2861
- type: "function",
2862
- inputs: [],
2863
- name: "contractVersion",
2864
- outputs: [{ name: "", internalType: "string", type: "string" }]
2865
- },
2866
- {
2867
- stateMutability: "payable",
2868
- type: "function",
2869
- inputs: [
2870
- { name: "commenter", internalType: "address", type: "address" },
2871
- { name: "contractAddress", internalType: "address", type: "address" },
2872
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2873
- { name: "text", internalType: "string", type: "string" },
2874
- {
2875
- name: "replyTo",
2876
- internalType: "struct IComments.CommentIdentifier",
2877
- type: "tuple",
2878
- components: [
2879
- { name: "commenter", internalType: "address", type: "address" },
2880
- { name: "contractAddress", internalType: "address", type: "address" },
2881
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2882
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2883
- ]
2884
- },
2885
- {
2886
- name: "commenterSmartWalletOwner",
2887
- internalType: "address",
2888
- type: "address"
2889
- },
2890
- { name: "referrer", internalType: "address", type: "address" }
2891
- ],
2892
- name: "delegateComment",
2893
- outputs: [
2894
- {
2895
- name: "commentIdentifier",
2896
- internalType: "struct IComments.CommentIdentifier",
2897
- type: "tuple",
2898
- components: [
2899
- { name: "commenter", internalType: "address", type: "address" },
2900
- { name: "contractAddress", internalType: "address", type: "address" },
2901
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2902
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2903
- ]
2904
- },
2905
- { name: "commentId", internalType: "bytes32", type: "bytes32" }
2906
- ]
2907
- },
2908
- {
2909
- stateMutability: "view",
2910
- type: "function",
2911
- inputs: [],
2912
- name: "eip712Domain",
2913
- outputs: [
2914
- { name: "fields", internalType: "bytes1", type: "bytes1" },
2915
- { name: "name", internalType: "string", type: "string" },
2916
- { name: "version", internalType: "string", type: "string" },
2917
- { name: "chainId", internalType: "uint256", type: "uint256" },
2918
- { name: "verifyingContract", internalType: "address", type: "address" },
2919
- { name: "salt", internalType: "bytes32", type: "bytes32" },
2920
- { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
2921
- ]
2922
- },
2923
- {
2924
- stateMutability: "view",
2925
- type: "function",
2926
- inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
2927
- name: "getRoleAdmin",
2928
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2929
- },
2930
- {
2931
- stateMutability: "nonpayable",
2932
- type: "function",
2933
- inputs: [
2934
- { name: "role", internalType: "bytes32", type: "bytes32" },
2935
- { name: "account", internalType: "address", type: "address" }
2936
- ],
2937
- name: "grantRole",
2938
- outputs: []
2939
- },
2940
- {
2941
- stateMutability: "view",
2942
- type: "function",
2943
- inputs: [
2944
- { name: "role", internalType: "bytes32", type: "bytes32" },
2945
- { name: "account", internalType: "address", type: "address" }
2946
- ],
2947
- name: "hasRole",
2948
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
2949
- },
2950
- {
2951
- stateMutability: "view",
2952
- type: "function",
2953
- inputs: [
2954
- {
2955
- name: "commentIdentifier",
2956
- internalType: "struct IComments.CommentIdentifier",
2957
- type: "tuple",
2958
- components: [
2959
- { name: "commenter", internalType: "address", type: "address" },
2960
- { name: "contractAddress", internalType: "address", type: "address" },
2961
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2962
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2963
- ]
2964
- }
2965
- ],
2966
- name: "hashAndCheckCommentExists",
2967
- outputs: [
2968
- { name: "commentId", internalType: "bytes32", type: "bytes32" },
2969
- { name: "exists", internalType: "bool", type: "bool" }
2970
- ]
2971
- },
2972
- {
2973
- stateMutability: "view",
2974
- type: "function",
2975
- inputs: [
2976
- {
2977
- name: "commentIdentifier",
2978
- internalType: "struct IComments.CommentIdentifier",
2979
- type: "tuple",
2980
- components: [
2981
- { name: "commenter", internalType: "address", type: "address" },
2982
- { name: "contractAddress", internalType: "address", type: "address" },
2983
- { name: "tokenId", internalType: "uint256", type: "uint256" },
2984
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
2985
- ]
2986
- }
2987
- ],
2988
- name: "hashAndValidateCommentExists",
2989
- outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
2990
- },
2991
- {
2992
- stateMutability: "pure",
2993
- type: "function",
2994
- inputs: [
2995
- {
2996
- name: "commentIdentifier",
2997
- internalType: "struct IComments.CommentIdentifier",
2998
- type: "tuple",
2999
- components: [
3000
- { name: "commenter", internalType: "address", type: "address" },
3001
- { name: "contractAddress", internalType: "address", type: "address" },
3002
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3003
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3004
- ]
3005
- }
3006
- ],
3007
- name: "hashCommentIdentifier",
3008
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3009
- },
3010
- {
3011
- stateMutability: "view",
3012
- type: "function",
3013
- inputs: [
3014
- {
3015
- name: "permit",
3016
- internalType: "struct IComments.PermitComment",
3017
- type: "tuple",
3018
- components: [
3019
- { name: "commenter", internalType: "address", type: "address" },
3020
- {
3021
- name: "commenterSmartWallet",
3022
- internalType: "address",
3023
- type: "address"
3024
- },
3025
- { name: "contractAddress", internalType: "address", type: "address" },
3026
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3027
- {
3028
- name: "replyTo",
3029
- internalType: "struct IComments.CommentIdentifier",
3030
- type: "tuple",
3031
- components: [
3032
- { name: "commenter", internalType: "address", type: "address" },
3033
- {
3034
- name: "contractAddress",
3035
- internalType: "address",
3036
- type: "address"
3037
- },
3038
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3039
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3040
- ]
3041
- },
3042
- { name: "text", internalType: "string", type: "string" },
3043
- { name: "referrer", internalType: "address", type: "address" },
3044
- { name: "deadline", internalType: "uint256", type: "uint256" },
3045
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
3046
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3047
- {
3048
- name: "destinationChainId",
3049
- internalType: "uint32",
3050
- type: "uint32"
3051
- }
3052
- ]
3053
- }
3054
- ],
3055
- name: "hashPermitComment",
3056
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3057
- },
3058
- {
3059
- stateMutability: "view",
3060
- type: "function",
3061
- inputs: [
3062
- {
3063
- name: "permit",
3064
- internalType: "struct IComments.PermitSparkComment",
3065
- type: "tuple",
3066
- components: [
3067
- {
3068
- name: "comment",
3069
- internalType: "struct IComments.CommentIdentifier",
3070
- type: "tuple",
3071
- components: [
3072
- { name: "commenter", internalType: "address", type: "address" },
3073
- {
3074
- name: "contractAddress",
3075
- internalType: "address",
3076
- type: "address"
3077
- },
3078
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3079
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3080
- ]
3081
- },
3082
- { name: "sparker", internalType: "address", type: "address" },
3083
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3084
- { name: "deadline", internalType: "uint256", type: "uint256" },
3085
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
3086
- { name: "referrer", internalType: "address", type: "address" },
3087
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3088
- {
3089
- name: "destinationChainId",
3090
- internalType: "uint32",
3091
- type: "uint32"
3092
- }
3093
- ]
3094
- }
3095
- ],
3096
- name: "hashPermitSparkComment",
3097
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3098
- },
3099
- {
3100
- stateMutability: "view",
3101
- type: "function",
3102
- inputs: [],
3103
- name: "implementation",
3104
- outputs: [{ name: "", internalType: "address", type: "address" }]
3105
- },
3106
- {
3107
- stateMutability: "nonpayable",
3108
- type: "function",
3109
- inputs: [
3110
- { name: "defaultAdmin", internalType: "address", type: "address" },
3111
- { name: "backfiller", internalType: "address", type: "address" },
3112
- {
3113
- name: "delegateCommenters",
3114
- internalType: "address[]",
3115
- type: "address[]"
3116
- }
3117
- ],
3118
- name: "initialize",
3119
- outputs: []
3120
- },
3121
- {
3122
- stateMutability: "view",
3123
- type: "function",
3124
- inputs: [],
3125
- name: "nextNonce",
3126
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3127
- },
3128
- {
3129
- stateMutability: "view",
3130
- type: "function",
3131
- inputs: [
3132
- { name: "owner", internalType: "address", type: "address" },
3133
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3134
- ],
3135
- name: "nonceUsed",
3136
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
3137
- },
3138
- {
3139
- stateMutability: "payable",
3140
- type: "function",
3141
- inputs: [
3142
- {
3143
- name: "permit",
3144
- internalType: "struct IComments.PermitComment",
3145
- type: "tuple",
3146
- components: [
3147
- { name: "commenter", internalType: "address", type: "address" },
3148
- {
3149
- name: "commenterSmartWallet",
3150
- internalType: "address",
3151
- type: "address"
3152
- },
3153
- { name: "contractAddress", internalType: "address", type: "address" },
3154
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3155
- {
3156
- name: "replyTo",
3157
- internalType: "struct IComments.CommentIdentifier",
3158
- type: "tuple",
3159
- components: [
3160
- { name: "commenter", internalType: "address", type: "address" },
3161
- {
3162
- name: "contractAddress",
3163
- internalType: "address",
3164
- type: "address"
3165
- },
3166
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3167
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3168
- ]
3169
- },
3170
- { name: "text", internalType: "string", type: "string" },
3171
- { name: "referrer", internalType: "address", type: "address" },
3172
- { name: "deadline", internalType: "uint256", type: "uint256" },
3173
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
3174
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3175
- {
3176
- name: "destinationChainId",
3177
- internalType: "uint32",
3178
- type: "uint32"
3179
- }
3180
- ]
3181
- },
3182
- { name: "signature", internalType: "bytes", type: "bytes" }
3183
- ],
3184
- name: "permitComment",
3185
- outputs: []
3186
- },
3187
- {
3188
- stateMutability: "payable",
3189
- type: "function",
3190
- inputs: [
3191
- {
3192
- name: "permit",
3193
- internalType: "struct IComments.PermitSparkComment",
3194
- type: "tuple",
3195
- components: [
3196
- {
3197
- name: "comment",
3198
- internalType: "struct IComments.CommentIdentifier",
3199
- type: "tuple",
3200
- components: [
3201
- { name: "commenter", internalType: "address", type: "address" },
3202
- {
3203
- name: "contractAddress",
3204
- internalType: "address",
3205
- type: "address"
3206
- },
3207
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3208
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3209
- ]
3210
- },
3211
- { name: "sparker", internalType: "address", type: "address" },
3212
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3213
- { name: "deadline", internalType: "uint256", type: "uint256" },
3214
- { name: "nonce", internalType: "bytes32", type: "bytes32" },
3215
- { name: "referrer", internalType: "address", type: "address" },
3216
- { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3217
- {
3218
- name: "destinationChainId",
3219
- internalType: "uint32",
3220
- type: "uint32"
3221
- }
3222
- ]
3223
- },
3224
- { name: "signature", internalType: "bytes", type: "bytes" }
3225
- ],
3226
- name: "permitSparkComment",
3227
- outputs: []
3228
- },
3229
- {
3230
- stateMutability: "view",
3231
- type: "function",
3232
- inputs: [],
3233
- name: "protocolRewards",
3234
- outputs: [
3235
- { name: "", internalType: "contract IProtocolRewards", type: "address" }
3236
- ]
3237
- },
3238
- {
3239
- stateMutability: "view",
3240
- type: "function",
3241
- inputs: [],
3242
- name: "proxiableUUID",
3243
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3244
- },
3245
- {
3246
- stateMutability: "nonpayable",
3247
- type: "function",
3248
- inputs: [
3249
- { name: "role", internalType: "bytes32", type: "bytes32" },
3250
- { name: "callerConfirmation", internalType: "address", type: "address" }
3251
- ],
3252
- name: "renounceRole",
3253
- outputs: []
3254
- },
3255
- {
3256
- stateMutability: "nonpayable",
3257
- type: "function",
3258
- inputs: [
3259
- { name: "role", internalType: "bytes32", type: "bytes32" },
3260
- { name: "account", internalType: "address", type: "address" }
3261
- ],
3262
- name: "revokeRole",
3263
- outputs: []
3264
- },
3265
- {
3266
- stateMutability: "payable",
3267
- type: "function",
3268
- inputs: [
3269
- {
3270
- name: "commentIdentifier",
3271
- internalType: "struct IComments.CommentIdentifier",
3272
- type: "tuple",
3273
- components: [
3274
- { name: "commenter", internalType: "address", type: "address" },
3275
- { name: "contractAddress", internalType: "address", type: "address" },
3276
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3277
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3278
- ]
3279
- },
3280
- { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3281
- { name: "referrer", internalType: "address", type: "address" }
3282
- ],
3283
- name: "sparkComment",
3284
- outputs: []
3285
- },
3286
- {
3287
- stateMutability: "view",
3288
- type: "function",
3289
- inputs: [],
3290
- name: "sparkValue",
3291
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
3292
- },
3293
- {
3294
- stateMutability: "view",
3295
- type: "function",
3296
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
3297
- name: "supportsInterface",
3298
- outputs: [{ name: "", internalType: "bool", type: "bool" }]
3299
- },
3300
- {
3301
- stateMutability: "payable",
3302
- type: "function",
3303
- inputs: [
3304
- { name: "newImplementation", internalType: "address", type: "address" },
3305
- { name: "data", internalType: "bytes", type: "bytes" }
3306
- ],
3307
- name: "upgradeToAndCall",
3308
- outputs: []
3309
- },
3310
- {
3311
- type: "event",
3312
- anonymous: false,
3313
- inputs: [
3314
- {
3315
- name: "commentId",
3316
- internalType: "bytes32",
3317
- type: "bytes32",
3318
- indexed: true
3319
- },
3320
- {
3321
- name: "commentIdentifier",
3322
- internalType: "struct IComments.CommentIdentifier",
3323
- type: "tuple",
3324
- components: [
3325
- { name: "commenter", internalType: "address", type: "address" },
3326
- { name: "contractAddress", internalType: "address", type: "address" },
3327
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3328
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3329
- ],
3330
- indexed: false
3331
- },
3332
- { name: "text", internalType: "string", type: "string", indexed: false },
3333
- {
3334
- name: "timestamp",
3335
- internalType: "uint256",
3336
- type: "uint256",
3337
- indexed: false
3338
- },
3339
- {
3340
- name: "originalTransactionId",
3341
- internalType: "bytes32",
3342
- type: "bytes32",
3343
- indexed: false
3344
- }
3345
- ],
3346
- name: "BackfilledComment"
3347
- },
3348
- {
3349
- type: "event",
3350
- anonymous: false,
3351
- inputs: [
3352
- {
3353
- name: "commentId",
3354
- internalType: "bytes32",
3355
- type: "bytes32",
3356
- indexed: true
3357
- },
3358
- {
3359
- name: "commentIdentifier",
3360
- internalType: "struct IComments.CommentIdentifier",
3361
- type: "tuple",
3362
- components: [
3363
- { name: "commenter", internalType: "address", type: "address" },
3364
- { name: "contractAddress", internalType: "address", type: "address" },
3365
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3366
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3367
- ],
3368
- indexed: false
3369
- },
3370
- {
3371
- name: "replyToId",
3372
- internalType: "bytes32",
3373
- type: "bytes32",
3374
- indexed: false
3375
- },
3376
- {
3377
- name: "replyTo",
3378
- internalType: "struct IComments.CommentIdentifier",
3379
- type: "tuple",
3380
- components: [
3381
- { name: "commenter", internalType: "address", type: "address" },
3382
- { name: "contractAddress", internalType: "address", type: "address" },
3383
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3384
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3385
- ],
3386
- indexed: false
3387
- },
3388
- {
3389
- name: "sparksQuantity",
3390
- internalType: "uint256",
3391
- type: "uint256",
3392
- indexed: false
3393
- },
3394
- { name: "text", internalType: "string", type: "string", indexed: false },
3395
- {
3396
- name: "timestamp",
3397
- internalType: "uint256",
3398
- type: "uint256",
3399
- indexed: false
3400
- },
3401
- {
3402
- name: "referrer",
3403
- internalType: "address",
3404
- type: "address",
3405
- indexed: false
3406
- }
3407
- ],
3408
- name: "Commented"
3409
- },
3410
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
3411
- {
3412
- type: "event",
3413
- anonymous: false,
3414
- inputs: [
3415
- {
3416
- name: "version",
3417
- internalType: "uint64",
3418
- type: "uint64",
3419
- indexed: false
3420
- }
3421
- ],
3422
- name: "Initialized"
3423
- },
3424
- {
3425
- type: "event",
3426
- anonymous: false,
3427
- inputs: [
3428
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3429
- {
3430
- name: "previousAdminRole",
3431
- internalType: "bytes32",
3432
- type: "bytes32",
3433
- indexed: true
3434
- },
3435
- {
3436
- name: "newAdminRole",
3437
- internalType: "bytes32",
3438
- type: "bytes32",
3439
- indexed: true
3440
- }
3441
- ],
3442
- name: "RoleAdminChanged"
3443
- },
3444
- {
3445
- type: "event",
3446
- anonymous: false,
3447
- inputs: [
3448
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3449
- {
3450
- name: "account",
3451
- internalType: "address",
3452
- type: "address",
3453
- indexed: true
3454
- },
3455
- {
3456
- name: "sender",
3457
- internalType: "address",
3458
- type: "address",
3459
- indexed: true
3460
- }
3461
- ],
3462
- name: "RoleGranted"
3463
- },
3464
- {
3465
- type: "event",
3466
- anonymous: false,
3467
- inputs: [
3468
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3469
- {
3470
- name: "account",
3471
- internalType: "address",
3472
- type: "address",
3473
- indexed: true
3474
- },
3475
- {
3476
- name: "sender",
3477
- internalType: "address",
3478
- type: "address",
3479
- indexed: true
3480
- }
3481
- ],
3482
- name: "RoleRevoked"
3483
- },
3484
- {
3485
- type: "event",
3486
- anonymous: false,
3487
- inputs: [
3488
- {
3489
- name: "commentId",
3490
- internalType: "bytes32",
3491
- type: "bytes32",
3492
- indexed: true
3493
- },
3494
- {
3495
- name: "commentIdentifier",
3496
- internalType: "struct IComments.CommentIdentifier",
3497
- type: "tuple",
3498
- components: [
3499
- { name: "commenter", internalType: "address", type: "address" },
3500
- { name: "contractAddress", internalType: "address", type: "address" },
3501
- { name: "tokenId", internalType: "uint256", type: "uint256" },
3502
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
3503
- ],
3504
- indexed: false
3505
- },
3506
- {
3507
- name: "sparksQuantity",
3508
- internalType: "uint256",
3509
- type: "uint256",
3510
- indexed: false
3511
- },
3512
- {
3513
- name: "sparker",
3514
- internalType: "address",
3515
- type: "address",
3516
- indexed: false
3517
- },
3518
- {
3519
- name: "timestamp",
3520
- internalType: "uint256",
3521
- type: "uint256",
3522
- indexed: false
3523
- },
3524
- {
3525
- name: "referrer",
3526
- internalType: "address",
3527
- type: "address",
3528
- indexed: false
3529
- }
3530
- ],
3531
- name: "SparkedComment"
3532
- },
3533
- {
3534
- type: "event",
3535
- anonymous: false,
3536
- inputs: [
3537
- {
3538
- name: "implementation",
3539
- internalType: "address",
3540
- type: "address",
3541
- indexed: true
3542
- }
3543
- ],
3544
- name: "Upgraded"
3545
- },
3546
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
3547
- {
3548
- type: "error",
3549
- inputs: [
3550
- { name: "account", internalType: "address", type: "address" },
3551
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
3552
- ],
3553
- name: "AccessControlUnauthorizedAccount"
3554
- },
3555
- {
3556
- type: "error",
3557
- inputs: [{ name: "target", internalType: "address", type: "address" }],
3558
- name: "AddressEmptyCode"
3559
- },
3560
- { type: "error", inputs: [], name: "AddressZero" },
3561
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
3562
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
3563
- {
3564
- type: "error",
3565
- inputs: [
3566
- { name: "commentAddress", internalType: "address", type: "address" },
3567
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
3568
- { name: "replyAddress", internalType: "address", type: "address" },
3569
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
3570
- ],
3571
- name: "CommentAddressOrTokenIdsDoNotMatch"
3572
- },
3573
- { type: "error", inputs: [], name: "CommentDoesntExist" },
3574
- {
3575
- type: "error",
3576
- inputs: [
3577
- { name: "expected", internalType: "address", type: "address" },
3578
- { name: "actual", internalType: "address", type: "address" }
3579
- ],
3580
- name: "CommenterMismatch"
3581
- },
3582
- {
3583
- type: "error",
3584
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
3585
- name: "DuplicateComment"
3586
- },
3587
- {
3588
- type: "error",
3589
- inputs: [
3590
- { name: "implementation", internalType: "address", type: "address" }
3591
- ],
3592
- name: "ERC1967InvalidImplementation"
3593
- },
3594
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
3595
- {
3596
- type: "error",
3597
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3598
- name: "ERC2612ExpiredSignature"
3599
- },
3600
- { type: "error", inputs: [], name: "EmptyComment" },
3601
- { type: "error", inputs: [], name: "FailedInnerCall" },
3602
- {
3603
- type: "error",
3604
- inputs: [
3605
- {
3606
- name: "wrongDestinationChainId",
3607
- internalType: "uint256",
3608
- type: "uint256"
3609
- }
3610
- ],
3611
- name: "IncorrectDestinationChain"
3612
- },
3613
- {
3614
- type: "error",
3615
- inputs: [
3616
- { name: "actual", internalType: "uint256", type: "uint256" },
3617
- { name: "expected", internalType: "uint256", type: "uint256" }
3618
- ],
3619
- name: "IncorrectETHAmountForSparks"
3620
- },
3621
- {
3622
- type: "error",
3623
- inputs: [
3624
- { name: "account", internalType: "address", type: "address" },
3625
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
3626
- ],
3627
- name: "InvalidAccountNonce"
3628
- },
3629
- { type: "error", inputs: [], name: "InvalidInitialization" },
3630
- { type: "error", inputs: [], name: "InvalidSignature" },
3631
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
3632
- { type: "error", inputs: [], name: "NoFundsRecipient" },
3633
- { type: "error", inputs: [], name: "NotInitializing" },
3634
- { type: "error", inputs: [], name: "NotSmartWallet" },
3635
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
3636
- { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
3637
- { type: "error", inputs: [], name: "OnlySparksContract" },
3638
- { type: "error", inputs: [], name: "TransferFailed" },
3639
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3640
- {
3641
- type: "error",
3642
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
3643
- name: "UUPSUnsupportedProxiableUUID"
3644
- },
3645
- {
3646
- type: "error",
3647
- inputs: [
3648
- { name: "currentName", internalType: "string", type: "string" },
3649
- { name: "newName", internalType: "string", type: "string" }
3650
- ],
3651
- name: "UpgradeToMismatchedContractName"
3652
- }
3653
- ];
3654
- var commentsAddress = {
3655
- 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
3656
- 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
3657
- 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
3658
- 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
3659
- 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
3660
- 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
3661
- 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
3662
- 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
3663
- };
3664
- var commentsConfig = {
3665
- address: commentsAddress,
3666
- abi: commentsABI
3667
- };
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
3668
1636
  var erc20MinterABI = [
3669
1637
  {
3670
1638
  stateMutability: "nonpayable",
@@ -6753,7 +4721,6 @@ var wethAddress = {
6753
4721
  421614: "0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074",
6754
4722
  7777777: "0x4200000000000000000000000000000000000006",
6755
4723
  11155111: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
6756
- 11155420: "0x4200000000000000000000000000000000000006",
6757
4724
  999999999: "0x4200000000000000000000000000000000000006"
6758
4725
  };
6759
4726
  var wethConfig = { address: wethAddress, abi: wethABI };
@@ -7471,6 +5438,8 @@ var zoraCreator1155FactoryImplABI = [
7471
5438
  },
7472
5439
  { type: "error", inputs: [], name: "NonEthRedemption" },
7473
5440
  { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
5441
+ { type: "error", inputs: [], name: "OnlyAllowedForRegisteredMinter" },
5442
+ { type: "error", inputs: [], name: "OnlyAllowedForTimedSaleStrategy" },
7474
5443
  { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
7475
5444
  { type: "error", inputs: [], name: "PremintDeleted" },
7476
5445
  {
@@ -7625,7 +5594,8 @@ var zoraCreator1155ImplABI = [
7625
5594
  inputs: [
7626
5595
  { name: "_mintFeeRecipient", internalType: "address", type: "address" },
7627
5596
  { name: "_upgradeGate", internalType: "address", type: "address" },
7628
- { name: "_protocolRewards", internalType: "address", type: "address" }
5597
+ { name: "_protocolRewards", internalType: "address", type: "address" },
5598
+ { name: "_timedSaleStrategy", internalType: "address", type: "address" }
7629
5599
  ]
7630
5600
  },
7631
5601
  { stateMutability: "payable", type: "receive" },
@@ -8892,6 +6862,8 @@ var zoraCreator1155ImplABI = [
8892
6862
  },
8893
6863
  { type: "error", inputs: [], name: "NonEthRedemption" },
8894
6864
  { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
6865
+ { type: "error", inputs: [], name: "OnlyAllowedForRegisteredMinter" },
6866
+ { type: "error", inputs: [], name: "OnlyAllowedForTimedSaleStrategy" },
8895
6867
  { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
8896
6868
  { type: "error", inputs: [], name: "PremintDeleted" },
8897
6869
  {
@@ -9914,6 +7886,8 @@ var zoraCreator1155PremintExecutorImplABI = [
9914
7886
  { type: "error", inputs: [], name: "ONLY_OWNER" },
9915
7887
  { type: "error", inputs: [], name: "ONLY_PENDING_OWNER" },
9916
7888
  { type: "error", inputs: [], name: "OWNER_CANNOT_BE_ZERO_ADDRESS" },
7889
+ { type: "error", inputs: [], name: "OnlyAllowedForRegisteredMinter" },
7890
+ { type: "error", inputs: [], name: "OnlyAllowedForTimedSaleStrategy" },
9917
7891
  { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
9918
7892
  { type: "error", inputs: [], name: "PremintDeleted" },
9919
7893
  {
@@ -14295,57 +12269,6 @@ var zoraTimedSaleStrategyConfig = {
14295
12269
  abi: zoraTimedSaleStrategyABI
14296
12270
  };
14297
12271
 
14298
- // ../../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
14299
- init_base();
14300
- var InvalidDecimalNumberError = class extends BaseError {
14301
- constructor({ value }) {
14302
- super(`Number \`${value}\` is not a valid decimal number.`, {
14303
- name: "InvalidDecimalNumberError"
14304
- });
14305
- }
14306
- };
14307
-
14308
- // ../../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
14309
- function parseUnits(value, decimals) {
14310
- if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
14311
- throw new InvalidDecimalNumberError({ value });
14312
- let [integer, fraction = "0"] = value.split(".");
14313
- const negative = integer.startsWith("-");
14314
- if (negative)
14315
- integer = integer.slice(1);
14316
- fraction = fraction.replace(/(0+)$/, "");
14317
- if (decimals === 0) {
14318
- if (Math.round(Number(`.${fraction}`)) === 1)
14319
- integer = `${BigInt(integer) + 1n}`;
14320
- fraction = "";
14321
- } else if (fraction.length > decimals) {
14322
- const [left, unit, right] = [
14323
- fraction.slice(0, decimals - 1),
14324
- fraction.slice(decimals - 1, decimals),
14325
- fraction.slice(decimals)
14326
- ];
14327
- const rounded = Math.round(Number(`${unit}.${right}`));
14328
- if (rounded > 9)
14329
- fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
14330
- else
14331
- fraction = `${left}${rounded}`;
14332
- if (fraction.length > decimals) {
14333
- fraction = fraction.slice(1);
14334
- integer = `${BigInt(integer) + 1n}`;
14335
- }
14336
- fraction = fraction.slice(0, decimals);
14337
- } else {
14338
- fraction = fraction.padEnd(decimals, "0");
14339
- }
14340
- return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
14341
- }
14342
-
14343
- // ../../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
14344
- init_unit();
14345
- function parseEther(ether, unit = "wei") {
14346
- return parseUnits(ether, etherUnits[unit]);
14347
- }
14348
-
14349
12272
  // ../../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
14350
12273
  init_encodeAbiParameters();
14351
12274
  init_getAbiItem();
@@ -14359,16 +12282,6 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
14359
12282
  PremintConfigVersion2["V3"] = "3";
14360
12283
  return PremintConfigVersion2;
14361
12284
  })(PremintConfigVersion || {});
14362
- var emptyCommentIdentifier = () => {
14363
- const zeroAddress = "0x0000000000000000000000000000000000000000";
14364
- const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
14365
- return {
14366
- commenter: zeroAddress,
14367
- contractAddress: zeroAddress,
14368
- tokenId: 0n,
14369
- nonce: zeroHash
14370
- };
14371
- };
14372
12285
 
14373
12286
  // src/typedData.ts
14374
12287
  var premintTypedDataDomain = ({
@@ -14659,146 +12572,6 @@ var sponsoredSparksBatchTypedDataDefinition = ({
14659
12572
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
14660
12573
  }
14661
12574
  });
14662
- var commentIdentifierType = [
14663
- { name: "contractAddress", type: "address" },
14664
- { name: "tokenId", type: "uint256" },
14665
- { name: "commenter", type: "address" },
14666
- { name: "nonce", type: "bytes32" }
14667
- ];
14668
- var commentsDomain = ({
14669
- signingChainId,
14670
- destinationChainId
14671
- }) => ({
14672
- chainId: signingChainId,
14673
- name: "Comments",
14674
- version: "1",
14675
- verifyingContract: commentsAddress[destinationChainId]
14676
- });
14677
- var permitCommentTypedDataDefinition = (message, signingAccount) => {
14678
- const permitCommentTypedDataType = {
14679
- PermitComment: [
14680
- { name: "contractAddress", type: "address" },
14681
- { name: "tokenId", type: "uint256" },
14682
- { name: "commenter", type: "address" },
14683
- { name: "replyTo", type: "CommentIdentifier" },
14684
- { name: "text", type: "string" },
14685
- { name: "deadline", type: "uint256" },
14686
- { name: "nonce", type: "bytes32" },
14687
- { name: "commenterSmartWallet", type: "address" },
14688
- { name: "referrer", type: "address" },
14689
- { name: "sourceChainId", type: "uint32" },
14690
- { name: "destinationChainId", type: "uint32" }
14691
- ],
14692
- CommentIdentifier: commentIdentifierType
14693
- };
14694
- return {
14695
- types: permitCommentTypedDataType,
14696
- message,
14697
- primaryType: "PermitComment",
14698
- domain: commentsDomain({
14699
- signingChainId: message.sourceChainId,
14700
- destinationChainId: message.destinationChainId
14701
- }),
14702
- account: signingAccount || message.commenter
14703
- };
14704
- };
14705
- var permitSparkCommentTypedDataDefinition = (message, signingAccount) => {
14706
- const permitSparkCommentTypedDataType = {
14707
- PermitSparkComment: [
14708
- { name: "comment", type: "CommentIdentifier" },
14709
- { name: "sparker", type: "address" },
14710
- { name: "sparksQuantity", type: "uint256" },
14711
- { name: "deadline", type: "uint256" },
14712
- { name: "nonce", type: "bytes32" },
14713
- { name: "referrer", type: "address" },
14714
- { name: "sourceChainId", type: "uint32" },
14715
- { name: "destinationChainId", type: "uint32" }
14716
- ],
14717
- CommentIdentifier: commentIdentifierType
14718
- };
14719
- return {
14720
- types: permitSparkCommentTypedDataType,
14721
- message,
14722
- primaryType: "PermitSparkComment",
14723
- domain: commentsDomain({
14724
- signingChainId: message.sourceChainId,
14725
- destinationChainId: message.destinationChainId
14726
- }),
14727
- account: signingAccount || message.sparker
14728
- };
14729
- };
14730
- var sparkValue = () => parseEther("0.000001");
14731
- var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => {
14732
- const permitTimedSaleMintAndCommentTypedDataType = {
14733
- PermitTimedSaleMintAndComment: [
14734
- { name: "commenter", type: "address" },
14735
- { name: "quantity", type: "uint256" },
14736
- { name: "collection", type: "address" },
14737
- { name: "tokenId", type: "uint256" },
14738
- { name: "mintReferral", type: "address" },
14739
- { name: "comment", type: "string" },
14740
- { name: "deadline", type: "uint256" },
14741
- { name: "nonce", type: "bytes32" },
14742
- { name: "sourceChainId", type: "uint32" },
14743
- { name: "destinationChainId", type: "uint32" }
14744
- ]
14745
- };
14746
- const callerAndCommenterDomain = ({
14747
- signingChainId,
14748
- destinationChainId
14749
- }) => ({
14750
- name: "CallerAndCommenter",
14751
- version: "1",
14752
- chainId: signingChainId,
14753
- verifyingContract: callerAndCommenterAddress[destinationChainId]
14754
- });
14755
- return {
14756
- types: permitTimedSaleMintAndCommentTypedDataType,
14757
- message,
14758
- primaryType: "PermitTimedSaleMintAndComment",
14759
- domain: callerAndCommenterDomain({
14760
- signingChainId: message.sourceChainId,
14761
- destinationChainId: message.destinationChainId
14762
- }),
14763
- account: signingAccount || message.commenter
14764
- };
14765
- };
14766
- var permitBuyOnSecondaryAndCommentTypedDataDefinition = (message, signingAccount) => {
14767
- const permitBuyOnSecondaryAndCommentTypedDataType = {
14768
- PermitBuyOnSecondaryAndComment: [
14769
- { name: "commenter", type: "address" },
14770
- { name: "quantity", type: "uint256" },
14771
- { name: "collection", type: "address" },
14772
- { name: "tokenId", type: "uint256" },
14773
- { name: "maxEthToSpend", type: "uint256" },
14774
- { name: "sqrtPriceLimitX96", type: "uint160" },
14775
- { name: "comment", type: "string" },
14776
- { name: "deadline", type: "uint256" },
14777
- { name: "nonce", type: "bytes32" },
14778
- { name: "sourceChainId", type: "uint32" },
14779
- { name: "destinationChainId", type: "uint32" }
14780
- ]
14781
- };
14782
- const callerAndCommenterDomain = ({
14783
- signingChainId,
14784
- destinationChainId
14785
- }) => ({
14786
- name: "CallerAndCommenter",
14787
- version: "1",
14788
- chainId: signingChainId,
14789
- verifyingContract: callerAndCommenterAddress[destinationChainId]
14790
- });
14791
- return {
14792
- types: permitBuyOnSecondaryAndCommentTypedDataType,
14793
- message,
14794
- primaryType: "PermitBuyOnSecondaryAndComment",
14795
- domain: callerAndCommenterDomain({
14796
- signingChainId: message.sourceChainId,
14797
- destinationChainId: message.destinationChainId
14798
- }),
14799
- account: signingAccount || message.commenter
14800
- };
14801
- };
14802
12575
 
14803
12576
  // src/encoding.ts
14804
12577
  var safeTransferSwapAbiParameters = [
@@ -14877,10 +12650,10 @@ var chainConfigs = {
14877
12650
  };
14878
12651
  var addresses = {
14879
12652
  1: {
14880
- CONTRACT_1155_IMPL: "0x24dFa406bC27Bc717419c35330D0332E444CF07C",
14881
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
12653
+ CONTRACT_1155_IMPL: "0x7FB277e8a6584D76bBbc72980719F36936825e29",
12654
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
14882
12655
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
14883
- FACTORY_IMPL: "0xA0CFBEA2fe941EaE373aEB3359b0171f3F194c35",
12656
+ FACTORY_IMPL: "0x0379e37302e9d57fFd657F87e1180273826CE84F",
14884
12657
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
14885
12658
  FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
14886
12659
  MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
@@ -14888,7 +12661,7 @@ var addresses = {
14888
12661
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
14889
12662
  REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
14890
12663
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
14891
- timestamp: 1722801891
12664
+ timestamp: 1730734767
14892
12665
  },
14893
12666
  10: {
14894
12667
  CONTRACT_1155_IMPL: "0x00802284A7976cE5bd200c7aBA2a8A8Fd52cFf1d",
@@ -14932,10 +12705,10 @@ var addresses = {
14932
12705
  timestamp: 1729791239
14933
12706
  },
14934
12707
  42161: {
14935
- CONTRACT_1155_IMPL: "0x3678862f04290E565cCA2EF163BAeb92Bb76790C",
14936
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
12708
+ CONTRACT_1155_IMPL: "0xCf0B4Acab081169D12b729c3Bd1c6E7bbAB820Da",
12709
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
14937
12710
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
14938
- FACTORY_IMPL: "0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8",
12711
+ FACTORY_IMPL: "0x8a5027ea12f45a13deb6CB96A07913c6e192BE84",
14939
12712
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
14940
12713
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
14941
12714
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -14943,13 +12716,13 @@ var addresses = {
14943
12716
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
14944
12717
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
14945
12718
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
14946
- timestamp: 1722524613
12719
+ timestamp: 1730736352
14947
12720
  },
14948
12721
  81457: {
14949
- CONTRACT_1155_IMPL: "0x3Ed969bf88166B85608C13b633242611F6220a14",
14950
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
12722
+ CONTRACT_1155_IMPL: "0x7B59c0378F540c0356A5DAEF7574255A7C74EC76",
12723
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
14951
12724
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
14952
- FACTORY_IMPL: "0xA75f980Fdf9F02718423FDFDFf1fccc74bdDBa95",
12725
+ FACTORY_IMPL: "0x073ef87C54c192c21ddEf881fE18064b6161fAC9",
14953
12726
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
14954
12727
  FIXED_PRICE_SALE_STRATEGY: "0x3EB144aee170BF62FdA1536e38aF51f08e34A5D0",
14955
12728
  MERKLE_MINT_SALE_STRATEGY: "0xB9C997FcC46a27331CC986cc2416ee99C1d506c3",
@@ -14957,7 +12730,7 @@ var addresses = {
14957
12730
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
14958
12731
  REDEEM_MINTER_FACTORY: "0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614",
14959
12732
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
14960
- timestamp: 1722612949
12733
+ timestamp: 1730736883
14961
12734
  },
14962
12735
  84532: {
14963
12736
  CONTRACT_1155_IMPL: "0xDD3295D6A2e772Bd3208c3d43a783533505a1EED",
@@ -14974,10 +12747,10 @@ var addresses = {
14974
12747
  timestamp: 1729790653
14975
12748
  },
14976
12749
  421614: {
14977
- CONTRACT_1155_IMPL: "0xC7598f8eAA1455f5b2B3f206A9af55B2BA248e3E",
14978
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
12750
+ CONTRACT_1155_IMPL: "0x8a5027ea12f45a13deb6CB96A07913c6e192BE84",
12751
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
14979
12752
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
14980
- FACTORY_IMPL: "0xCf0B4Acab081169D12b729c3Bd1c6E7bbAB820Da",
12753
+ FACTORY_IMPL: "0x1Eb7Bf3a08784D7cB08CC2AE1448012C0c02bDa2",
14981
12754
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
14982
12755
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
14983
12756
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -14985,7 +12758,7 @@ var addresses = {
14985
12758
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
14986
12759
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
14987
12760
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
14988
- timestamp: 1722821095
12761
+ timestamp: 1730737132
14989
12762
  },
14990
12763
  7777777: {
14991
12764
  CONTRACT_1155_IMPL: "0xf81C36213FB217c756504B56133b2c3CD4FbCBf9",
@@ -15115,13 +12888,6 @@ var chainConfigs2 = {
15115
12888
  ZORA_RECIPIENT: "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
15116
12889
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"
15117
12890
  },
15118
- 11155420: {
15119
- NONFUNGIBLE_POSITION_MANAGER: "0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",
15120
- UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
15121
- PROXY_ADMIN: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
15122
- ZORA_RECIPIENT: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
15123
- WETH: "0x4200000000000000000000000000000000000006"
15124
- },
15125
12891
  999999999: {
15126
12892
  NONFUNGIBLE_POSITION_MANAGER: "0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",
15127
12893
  UNISWAP_SWAP_ROUTER: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a",
@@ -15192,14 +12958,7 @@ var addresses2 = {
15192
12958
  // Annotate the CommonJS export names for ESM import in node:
15193
12959
  0 && (module.exports = {
15194
12960
  PremintConfigVersion,
15195
- callerAndCommenterABI,
15196
- callerAndCommenterAddress,
15197
- callerAndCommenterConfig,
15198
- commentsABI,
15199
- commentsAddress,
15200
- commentsConfig,
15201
12961
  contracts1155,
15202
- emptyCommentIdentifier,
15203
12962
  encodePremintConfig,
15204
12963
  erc20MinterABI,
15205
12964
  erc20MinterAddress,
@@ -15216,10 +12975,6 @@ var addresses2 = {
15216
12975
  mintsEthUnwrapperAndCallerConfig,
15217
12976
  mintsSafeTransferBatchTypedDataDefinition,
15218
12977
  mintsSafeTransferTypedDataDefinition,
15219
- permitBuyOnSecondaryAndCommentTypedDataDefinition,
15220
- permitCommentTypedDataDefinition,
15221
- permitMintAndCommentTypedDataDefinition,
15222
- permitSparkCommentTypedDataDefinition,
15223
12978
  premintTypedDataDefinition,
15224
12979
  premintV1TypedDataDefinition,
15225
12980
  premintV2TypedDataDefinition,
@@ -15230,7 +12985,6 @@ var addresses2 = {
15230
12985
  secondarySwapABI,
15231
12986
  secondarySwapAddress,
15232
12987
  secondarySwapConfig,
15233
- sparkValue,
15234
12988
  sparks,
15235
12989
  sponsoredSparksBatchTransferTypedDataType,
15236
12990
  sponsoredSparksBatchTypedDataDefinition,