@zoralabs/protocol-deployments 0.3.8 → 0.3.9

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,11 +1555,30 @@ 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
+
1558
1570
  // src/index.ts
1559
1571
  var src_exports = {};
1560
1572
  __export(src_exports, {
1561
1573
  PremintConfigVersion: () => PremintConfigVersion,
1574
+ callerAndCommenterABI: () => callerAndCommenterABI,
1575
+ callerAndCommenterAddress: () => callerAndCommenterAddress,
1576
+ callerAndCommenterConfig: () => callerAndCommenterConfig,
1577
+ commentsABI: () => commentsABI,
1578
+ commentsAddress: () => commentsAddress,
1579
+ commentsConfig: () => commentsConfig,
1562
1580
  contracts1155: () => __exports,
1581
+ emptyCommentIdentifier: () => emptyCommentIdentifier,
1563
1582
  encodePremintConfig: () => encodePremintConfig,
1564
1583
  erc20MinterABI: () => erc20MinterABI,
1565
1584
  erc20MinterAddress: () => erc20MinterAddress,
@@ -1576,6 +1595,10 @@ __export(src_exports, {
1576
1595
  mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1577
1596
  mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1578
1597
  mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1598
+ permitBuyOnSecondaryAndCommentTypedDataDefinition: () => permitBuyOnSecondaryAndCommentTypedDataDefinition,
1599
+ permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
1600
+ permitMintAndCommentTypedDataDefinition: () => permitMintAndCommentTypedDataDefinition,
1601
+ permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
1579
1602
  premintTypedDataDefinition: () => premintTypedDataDefinition,
1580
1603
  premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
1581
1604
  premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
@@ -1586,6 +1609,7 @@ __export(src_exports, {
1586
1609
  secondarySwapABI: () => secondarySwapABI,
1587
1610
  secondarySwapAddress: () => secondarySwapAddress,
1588
1611
  secondarySwapConfig: () => secondarySwapConfig,
1612
+ sparkValue: () => sparkValue,
1589
1613
  sparks: () => sparks_exports,
1590
1614
  sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
1591
1615
  sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
@@ -1633,6 +1657,2020 @@ __export(src_exports, {
1633
1657
  module.exports = __toCommonJS(src_exports);
1634
1658
 
1635
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: "OnlyAllowedForRegisteredMinter" },
2501
+ { type: "error", inputs: [], name: "OnlyAllowedForTimedSaleStrategy" },
2502
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
2503
+ { type: "error", inputs: [], name: "PremintDeleted" },
2504
+ {
2505
+ type: "error",
2506
+ inputs: [
2507
+ { name: "caller", internalType: "address", type: "address" },
2508
+ { name: "recipient", internalType: "address", type: "address" },
2509
+ { name: "amount", internalType: "uint256", type: "uint256" }
2510
+ ],
2511
+ name: "ProtocolRewardsWithdrawFailed"
2512
+ },
2513
+ {
2514
+ type: "error",
2515
+ inputs: [{ name: "renderer", internalType: "address", type: "address" }],
2516
+ name: "RendererNotValid"
2517
+ },
2518
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
2519
+ { type: "error", inputs: [], name: "SaleEnded" },
2520
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
2521
+ {
2522
+ type: "error",
2523
+ inputs: [
2524
+ { name: "targetContract", internalType: "address", type: "address" }
2525
+ ],
2526
+ name: "Sale_CannotCallNonSalesContract"
2527
+ },
2528
+ {
2529
+ type: "error",
2530
+ inputs: [
2531
+ { name: "expected", internalType: "uint256", type: "uint256" },
2532
+ { name: "actual", internalType: "uint256", type: "uint256" }
2533
+ ],
2534
+ name: "TokenIdMismatch"
2535
+ },
2536
+ {
2537
+ type: "error",
2538
+ inputs: [],
2539
+ name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
2540
+ },
2541
+ {
2542
+ type: "error",
2543
+ inputs: [
2544
+ { name: "user", internalType: "address", type: "address" },
2545
+ { name: "limit", internalType: "uint256", type: "uint256" },
2546
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
2547
+ ],
2548
+ name: "UserExceedsMintLimit"
2549
+ },
2550
+ {
2551
+ type: "error",
2552
+ inputs: [
2553
+ { name: "user", internalType: "address", type: "address" },
2554
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2555
+ { name: "role", internalType: "uint256", type: "uint256" }
2556
+ ],
2557
+ name: "UserMissingRoleForToken"
2558
+ },
2559
+ { type: "error", inputs: [], name: "WrongValueSent" },
2560
+ {
2561
+ type: "error",
2562
+ inputs: [],
2563
+ name: "premintSignerContractFailedToRecoverSigner"
2564
+ },
2565
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
2566
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
2567
+ {
2568
+ type: "error",
2569
+ inputs: [
2570
+ { name: "account", internalType: "address", type: "address" },
2571
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
2572
+ ],
2573
+ name: "AccessControlUnauthorizedAccount"
2574
+ },
2575
+ {
2576
+ type: "error",
2577
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
2578
+ name: "AddressEmptyCode"
2579
+ },
2580
+ { type: "error", inputs: [], name: "AddressZero" },
2581
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
2582
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
2583
+ {
2584
+ type: "error",
2585
+ inputs: [
2586
+ { name: "commentAddress", internalType: "address", type: "address" },
2587
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
2588
+ { name: "replyAddress", internalType: "address", type: "address" },
2589
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
2590
+ ],
2591
+ name: "CommentAddressOrTokenIdsDoNotMatch"
2592
+ },
2593
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
2594
+ {
2595
+ type: "error",
2596
+ inputs: [
2597
+ { name: "expected", internalType: "address", type: "address" },
2598
+ { name: "actual", internalType: "address", type: "address" }
2599
+ ],
2600
+ name: "CommenterMismatch"
2601
+ },
2602
+ {
2603
+ type: "error",
2604
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
2605
+ name: "DuplicateComment"
2606
+ },
2607
+ {
2608
+ type: "error",
2609
+ inputs: [
2610
+ { name: "implementation", internalType: "address", type: "address" }
2611
+ ],
2612
+ name: "ERC1967InvalidImplementation"
2613
+ },
2614
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
2615
+ {
2616
+ type: "error",
2617
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2618
+ name: "ERC2612ExpiredSignature"
2619
+ },
2620
+ { type: "error", inputs: [], name: "EmptyComment" },
2621
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2622
+ {
2623
+ type: "error",
2624
+ inputs: [
2625
+ {
2626
+ name: "wrongDestinationChainId",
2627
+ internalType: "uint256",
2628
+ type: "uint256"
2629
+ }
2630
+ ],
2631
+ name: "IncorrectDestinationChain"
2632
+ },
2633
+ {
2634
+ type: "error",
2635
+ inputs: [
2636
+ { name: "actual", internalType: "uint256", type: "uint256" },
2637
+ { name: "expected", internalType: "uint256", type: "uint256" }
2638
+ ],
2639
+ name: "IncorrectETHAmountForSparks"
2640
+ },
2641
+ {
2642
+ type: "error",
2643
+ inputs: [
2644
+ { name: "account", internalType: "address", type: "address" },
2645
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2646
+ ],
2647
+ name: "InvalidAccountNonce"
2648
+ },
2649
+ { type: "error", inputs: [], name: "InvalidInitialization" },
2650
+ { type: "error", inputs: [], name: "InvalidSignature" },
2651
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
2652
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
2653
+ { type: "error", inputs: [], name: "NotInitializing" },
2654
+ { type: "error", inputs: [], name: "NotSmartWallet" },
2655
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
2656
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
2657
+ { type: "error", inputs: [], name: "OnlySparksContract" },
2658
+ { type: "error", inputs: [], name: "TransferFailed" },
2659
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2660
+ {
2661
+ type: "error",
2662
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2663
+ name: "UUPSUnsupportedProxiableUUID"
2664
+ },
2665
+ {
2666
+ type: "error",
2667
+ inputs: [
2668
+ { name: "currentName", internalType: "string", type: "string" },
2669
+ { name: "newName", internalType: "string", type: "string" }
2670
+ ],
2671
+ name: "UpgradeToMismatchedContractName"
2672
+ }
2673
+ ];
2674
+ var callerAndCommenterAddress = {
2675
+ 1: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2676
+ 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2677
+ 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2678
+ 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2679
+ 81457: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2680
+ 84532: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2681
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2682
+ 11155111: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2683
+ 11155420: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2684
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
2685
+ };
2686
+ var callerAndCommenterConfig = {
2687
+ address: callerAndCommenterAddress,
2688
+ abi: callerAndCommenterABI
2689
+ };
2690
+ var commentsABI = [
2691
+ {
2692
+ stateMutability: "nonpayable",
2693
+ type: "constructor",
2694
+ inputs: [
2695
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
2696
+ { name: "_protocolRewards", internalType: "address", type: "address" },
2697
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
2698
+ ]
2699
+ },
2700
+ {
2701
+ stateMutability: "view",
2702
+ type: "function",
2703
+ inputs: [],
2704
+ name: "BACKFILLER_ROLE",
2705
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2706
+ },
2707
+ {
2708
+ stateMutability: "view",
2709
+ type: "function",
2710
+ inputs: [],
2711
+ name: "DEFAULT_ADMIN_ROLE",
2712
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2713
+ },
2714
+ {
2715
+ stateMutability: "view",
2716
+ type: "function",
2717
+ inputs: [],
2718
+ name: "DELEGATE_COMMENTER",
2719
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2720
+ },
2721
+ {
2722
+ stateMutability: "view",
2723
+ type: "function",
2724
+ inputs: [],
2725
+ name: "DOMAIN_NAME",
2726
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2727
+ },
2728
+ {
2729
+ stateMutability: "view",
2730
+ type: "function",
2731
+ inputs: [],
2732
+ name: "DOMAIN_VERSION",
2733
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2734
+ },
2735
+ {
2736
+ stateMutability: "view",
2737
+ type: "function",
2738
+ inputs: [],
2739
+ name: "PERMISSION_BIT_ADMIN",
2740
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2741
+ },
2742
+ {
2743
+ stateMutability: "view",
2744
+ type: "function",
2745
+ inputs: [],
2746
+ name: "REFERRER_REWARD_PCT",
2747
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2748
+ },
2749
+ {
2750
+ stateMutability: "view",
2751
+ type: "function",
2752
+ inputs: [],
2753
+ name: "UPGRADE_INTERFACE_VERSION",
2754
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2755
+ },
2756
+ {
2757
+ stateMutability: "view",
2758
+ type: "function",
2759
+ inputs: [],
2760
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
2761
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2762
+ },
2763
+ {
2764
+ stateMutability: "view",
2765
+ type: "function",
2766
+ inputs: [],
2767
+ name: "ZORA_REWARD_PCT",
2768
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2769
+ },
2770
+ {
2771
+ stateMutability: "nonpayable",
2772
+ type: "function",
2773
+ inputs: [
2774
+ {
2775
+ name: "commentIdentifiers",
2776
+ internalType: "struct IComments.CommentIdentifier[]",
2777
+ type: "tuple[]",
2778
+ components: [
2779
+ { name: "commenter", internalType: "address", type: "address" },
2780
+ { name: "contractAddress", internalType: "address", type: "address" },
2781
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2782
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2783
+ ]
2784
+ },
2785
+ { name: "texts", internalType: "string[]", type: "string[]" },
2786
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
2787
+ {
2788
+ name: "originalTransactionHashes",
2789
+ internalType: "bytes32[]",
2790
+ type: "bytes32[]"
2791
+ }
2792
+ ],
2793
+ name: "backfillBatchAddComment",
2794
+ outputs: []
2795
+ },
2796
+ {
2797
+ stateMutability: "payable",
2798
+ type: "function",
2799
+ inputs: [
2800
+ { name: "commenter", internalType: "address", type: "address" },
2801
+ { name: "contractAddress", internalType: "address", type: "address" },
2802
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2803
+ { name: "text", internalType: "string", type: "string" },
2804
+ {
2805
+ name: "replyTo",
2806
+ internalType: "struct IComments.CommentIdentifier",
2807
+ type: "tuple",
2808
+ components: [
2809
+ { name: "commenter", internalType: "address", type: "address" },
2810
+ { name: "contractAddress", internalType: "address", type: "address" },
2811
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2812
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2813
+ ]
2814
+ },
2815
+ {
2816
+ name: "commenterSmartWallet",
2817
+ internalType: "address",
2818
+ type: "address"
2819
+ },
2820
+ { name: "referrer", internalType: "address", type: "address" }
2821
+ ],
2822
+ name: "comment",
2823
+ outputs: [
2824
+ {
2825
+ name: "commentIdentifier",
2826
+ internalType: "struct IComments.CommentIdentifier",
2827
+ type: "tuple",
2828
+ components: [
2829
+ { name: "commenter", internalType: "address", type: "address" },
2830
+ { name: "contractAddress", internalType: "address", type: "address" },
2831
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2832
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2833
+ ]
2834
+ }
2835
+ ]
2836
+ },
2837
+ {
2838
+ stateMutability: "view",
2839
+ type: "function",
2840
+ inputs: [
2841
+ {
2842
+ name: "commentIdentifier",
2843
+ internalType: "struct IComments.CommentIdentifier",
2844
+ type: "tuple",
2845
+ components: [
2846
+ { name: "commenter", internalType: "address", type: "address" },
2847
+ { name: "contractAddress", internalType: "address", type: "address" },
2848
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2849
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2850
+ ]
2851
+ }
2852
+ ],
2853
+ name: "commentSparksQuantity",
2854
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2855
+ },
2856
+ {
2857
+ stateMutability: "pure",
2858
+ type: "function",
2859
+ inputs: [],
2860
+ name: "contractName",
2861
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2862
+ },
2863
+ {
2864
+ stateMutability: "pure",
2865
+ type: "function",
2866
+ inputs: [],
2867
+ name: "contractVersion",
2868
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2869
+ },
2870
+ {
2871
+ stateMutability: "payable",
2872
+ type: "function",
2873
+ inputs: [
2874
+ { name: "commenter", internalType: "address", type: "address" },
2875
+ { name: "contractAddress", internalType: "address", type: "address" },
2876
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2877
+ { name: "text", internalType: "string", type: "string" },
2878
+ {
2879
+ name: "replyTo",
2880
+ internalType: "struct IComments.CommentIdentifier",
2881
+ type: "tuple",
2882
+ components: [
2883
+ { name: "commenter", internalType: "address", type: "address" },
2884
+ { name: "contractAddress", internalType: "address", type: "address" },
2885
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2886
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2887
+ ]
2888
+ },
2889
+ {
2890
+ name: "commenterSmartWalletOwner",
2891
+ internalType: "address",
2892
+ type: "address"
2893
+ },
2894
+ { name: "referrer", internalType: "address", type: "address" }
2895
+ ],
2896
+ name: "delegateComment",
2897
+ outputs: [
2898
+ {
2899
+ name: "commentIdentifier",
2900
+ internalType: "struct IComments.CommentIdentifier",
2901
+ type: "tuple",
2902
+ components: [
2903
+ { name: "commenter", internalType: "address", type: "address" },
2904
+ { name: "contractAddress", internalType: "address", type: "address" },
2905
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2906
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2907
+ ]
2908
+ },
2909
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
2910
+ ]
2911
+ },
2912
+ {
2913
+ stateMutability: "view",
2914
+ type: "function",
2915
+ inputs: [],
2916
+ name: "eip712Domain",
2917
+ outputs: [
2918
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
2919
+ { name: "name", internalType: "string", type: "string" },
2920
+ { name: "version", internalType: "string", type: "string" },
2921
+ { name: "chainId", internalType: "uint256", type: "uint256" },
2922
+ { name: "verifyingContract", internalType: "address", type: "address" },
2923
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
2924
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
2925
+ ]
2926
+ },
2927
+ {
2928
+ stateMutability: "view",
2929
+ type: "function",
2930
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
2931
+ name: "getRoleAdmin",
2932
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2933
+ },
2934
+ {
2935
+ stateMutability: "nonpayable",
2936
+ type: "function",
2937
+ inputs: [
2938
+ { name: "role", internalType: "bytes32", type: "bytes32" },
2939
+ { name: "account", internalType: "address", type: "address" }
2940
+ ],
2941
+ name: "grantRole",
2942
+ outputs: []
2943
+ },
2944
+ {
2945
+ stateMutability: "view",
2946
+ type: "function",
2947
+ inputs: [
2948
+ { name: "role", internalType: "bytes32", type: "bytes32" },
2949
+ { name: "account", internalType: "address", type: "address" }
2950
+ ],
2951
+ name: "hasRole",
2952
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
2953
+ },
2954
+ {
2955
+ stateMutability: "view",
2956
+ type: "function",
2957
+ inputs: [
2958
+ {
2959
+ name: "commentIdentifier",
2960
+ internalType: "struct IComments.CommentIdentifier",
2961
+ type: "tuple",
2962
+ components: [
2963
+ { name: "commenter", internalType: "address", type: "address" },
2964
+ { name: "contractAddress", internalType: "address", type: "address" },
2965
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2966
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2967
+ ]
2968
+ }
2969
+ ],
2970
+ name: "hashAndCheckCommentExists",
2971
+ outputs: [
2972
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
2973
+ { name: "exists", internalType: "bool", type: "bool" }
2974
+ ]
2975
+ },
2976
+ {
2977
+ stateMutability: "view",
2978
+ type: "function",
2979
+ inputs: [
2980
+ {
2981
+ name: "commentIdentifier",
2982
+ internalType: "struct IComments.CommentIdentifier",
2983
+ type: "tuple",
2984
+ components: [
2985
+ { name: "commenter", internalType: "address", type: "address" },
2986
+ { name: "contractAddress", internalType: "address", type: "address" },
2987
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2988
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2989
+ ]
2990
+ }
2991
+ ],
2992
+ name: "hashAndValidateCommentExists",
2993
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
2994
+ },
2995
+ {
2996
+ stateMutability: "pure",
2997
+ type: "function",
2998
+ inputs: [
2999
+ {
3000
+ name: "commentIdentifier",
3001
+ internalType: "struct IComments.CommentIdentifier",
3002
+ type: "tuple",
3003
+ components: [
3004
+ { name: "commenter", internalType: "address", type: "address" },
3005
+ { name: "contractAddress", internalType: "address", type: "address" },
3006
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3007
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3008
+ ]
3009
+ }
3010
+ ],
3011
+ name: "hashCommentIdentifier",
3012
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3013
+ },
3014
+ {
3015
+ stateMutability: "view",
3016
+ type: "function",
3017
+ inputs: [
3018
+ {
3019
+ name: "permit",
3020
+ internalType: "struct IComments.PermitComment",
3021
+ type: "tuple",
3022
+ components: [
3023
+ { name: "commenter", internalType: "address", type: "address" },
3024
+ {
3025
+ name: "commenterSmartWallet",
3026
+ internalType: "address",
3027
+ type: "address"
3028
+ },
3029
+ { name: "contractAddress", internalType: "address", type: "address" },
3030
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3031
+ {
3032
+ name: "replyTo",
3033
+ internalType: "struct IComments.CommentIdentifier",
3034
+ type: "tuple",
3035
+ components: [
3036
+ { name: "commenter", internalType: "address", type: "address" },
3037
+ {
3038
+ name: "contractAddress",
3039
+ internalType: "address",
3040
+ type: "address"
3041
+ },
3042
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3043
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3044
+ ]
3045
+ },
3046
+ { name: "text", internalType: "string", type: "string" },
3047
+ { name: "referrer", internalType: "address", type: "address" },
3048
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3049
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
3050
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3051
+ {
3052
+ name: "destinationChainId",
3053
+ internalType: "uint32",
3054
+ type: "uint32"
3055
+ }
3056
+ ]
3057
+ }
3058
+ ],
3059
+ name: "hashPermitComment",
3060
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3061
+ },
3062
+ {
3063
+ stateMutability: "view",
3064
+ type: "function",
3065
+ inputs: [
3066
+ {
3067
+ name: "permit",
3068
+ internalType: "struct IComments.PermitSparkComment",
3069
+ type: "tuple",
3070
+ components: [
3071
+ {
3072
+ name: "comment",
3073
+ internalType: "struct IComments.CommentIdentifier",
3074
+ type: "tuple",
3075
+ components: [
3076
+ { name: "commenter", internalType: "address", type: "address" },
3077
+ {
3078
+ name: "contractAddress",
3079
+ internalType: "address",
3080
+ type: "address"
3081
+ },
3082
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3083
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3084
+ ]
3085
+ },
3086
+ { name: "sparker", internalType: "address", type: "address" },
3087
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3088
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3089
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
3090
+ { name: "referrer", internalType: "address", type: "address" },
3091
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3092
+ {
3093
+ name: "destinationChainId",
3094
+ internalType: "uint32",
3095
+ type: "uint32"
3096
+ }
3097
+ ]
3098
+ }
3099
+ ],
3100
+ name: "hashPermitSparkComment",
3101
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3102
+ },
3103
+ {
3104
+ stateMutability: "view",
3105
+ type: "function",
3106
+ inputs: [],
3107
+ name: "implementation",
3108
+ outputs: [{ name: "", internalType: "address", type: "address" }]
3109
+ },
3110
+ {
3111
+ stateMutability: "nonpayable",
3112
+ type: "function",
3113
+ inputs: [
3114
+ { name: "defaultAdmin", internalType: "address", type: "address" },
3115
+ { name: "backfiller", internalType: "address", type: "address" },
3116
+ {
3117
+ name: "delegateCommenters",
3118
+ internalType: "address[]",
3119
+ type: "address[]"
3120
+ }
3121
+ ],
3122
+ name: "initialize",
3123
+ outputs: []
3124
+ },
3125
+ {
3126
+ stateMutability: "view",
3127
+ type: "function",
3128
+ inputs: [],
3129
+ name: "nextNonce",
3130
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3131
+ },
3132
+ {
3133
+ stateMutability: "view",
3134
+ type: "function",
3135
+ inputs: [
3136
+ { name: "owner", internalType: "address", type: "address" },
3137
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3138
+ ],
3139
+ name: "nonceUsed",
3140
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
3141
+ },
3142
+ {
3143
+ stateMutability: "payable",
3144
+ type: "function",
3145
+ inputs: [
3146
+ {
3147
+ name: "permit",
3148
+ internalType: "struct IComments.PermitComment",
3149
+ type: "tuple",
3150
+ components: [
3151
+ { name: "commenter", internalType: "address", type: "address" },
3152
+ {
3153
+ name: "commenterSmartWallet",
3154
+ internalType: "address",
3155
+ type: "address"
3156
+ },
3157
+ { name: "contractAddress", internalType: "address", type: "address" },
3158
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3159
+ {
3160
+ name: "replyTo",
3161
+ internalType: "struct IComments.CommentIdentifier",
3162
+ type: "tuple",
3163
+ components: [
3164
+ { name: "commenter", internalType: "address", type: "address" },
3165
+ {
3166
+ name: "contractAddress",
3167
+ internalType: "address",
3168
+ type: "address"
3169
+ },
3170
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3171
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3172
+ ]
3173
+ },
3174
+ { name: "text", internalType: "string", type: "string" },
3175
+ { name: "referrer", internalType: "address", type: "address" },
3176
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3177
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
3178
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3179
+ {
3180
+ name: "destinationChainId",
3181
+ internalType: "uint32",
3182
+ type: "uint32"
3183
+ }
3184
+ ]
3185
+ },
3186
+ { name: "signature", internalType: "bytes", type: "bytes" }
3187
+ ],
3188
+ name: "permitComment",
3189
+ outputs: []
3190
+ },
3191
+ {
3192
+ stateMutability: "payable",
3193
+ type: "function",
3194
+ inputs: [
3195
+ {
3196
+ name: "permit",
3197
+ internalType: "struct IComments.PermitSparkComment",
3198
+ type: "tuple",
3199
+ components: [
3200
+ {
3201
+ name: "comment",
3202
+ internalType: "struct IComments.CommentIdentifier",
3203
+ type: "tuple",
3204
+ components: [
3205
+ { name: "commenter", internalType: "address", type: "address" },
3206
+ {
3207
+ name: "contractAddress",
3208
+ internalType: "address",
3209
+ type: "address"
3210
+ },
3211
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3212
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3213
+ ]
3214
+ },
3215
+ { name: "sparker", internalType: "address", type: "address" },
3216
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3217
+ { name: "deadline", internalType: "uint256", type: "uint256" },
3218
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
3219
+ { name: "referrer", internalType: "address", type: "address" },
3220
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
3221
+ {
3222
+ name: "destinationChainId",
3223
+ internalType: "uint32",
3224
+ type: "uint32"
3225
+ }
3226
+ ]
3227
+ },
3228
+ { name: "signature", internalType: "bytes", type: "bytes" }
3229
+ ],
3230
+ name: "permitSparkComment",
3231
+ outputs: []
3232
+ },
3233
+ {
3234
+ stateMutability: "view",
3235
+ type: "function",
3236
+ inputs: [],
3237
+ name: "protocolRewards",
3238
+ outputs: [
3239
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
3240
+ ]
3241
+ },
3242
+ {
3243
+ stateMutability: "view",
3244
+ type: "function",
3245
+ inputs: [],
3246
+ name: "proxiableUUID",
3247
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3248
+ },
3249
+ {
3250
+ stateMutability: "nonpayable",
3251
+ type: "function",
3252
+ inputs: [
3253
+ { name: "role", internalType: "bytes32", type: "bytes32" },
3254
+ { name: "callerConfirmation", internalType: "address", type: "address" }
3255
+ ],
3256
+ name: "renounceRole",
3257
+ outputs: []
3258
+ },
3259
+ {
3260
+ stateMutability: "nonpayable",
3261
+ type: "function",
3262
+ inputs: [
3263
+ { name: "role", internalType: "bytes32", type: "bytes32" },
3264
+ { name: "account", internalType: "address", type: "address" }
3265
+ ],
3266
+ name: "revokeRole",
3267
+ outputs: []
3268
+ },
3269
+ {
3270
+ stateMutability: "payable",
3271
+ type: "function",
3272
+ inputs: [
3273
+ {
3274
+ name: "commentIdentifier",
3275
+ internalType: "struct IComments.CommentIdentifier",
3276
+ type: "tuple",
3277
+ components: [
3278
+ { name: "commenter", internalType: "address", type: "address" },
3279
+ { name: "contractAddress", internalType: "address", type: "address" },
3280
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3281
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3282
+ ]
3283
+ },
3284
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3285
+ { name: "referrer", internalType: "address", type: "address" }
3286
+ ],
3287
+ name: "sparkComment",
3288
+ outputs: []
3289
+ },
3290
+ {
3291
+ stateMutability: "view",
3292
+ type: "function",
3293
+ inputs: [],
3294
+ name: "sparkValue",
3295
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
3296
+ },
3297
+ {
3298
+ stateMutability: "view",
3299
+ type: "function",
3300
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
3301
+ name: "supportsInterface",
3302
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
3303
+ },
3304
+ {
3305
+ stateMutability: "payable",
3306
+ type: "function",
3307
+ inputs: [
3308
+ { name: "newImplementation", internalType: "address", type: "address" },
3309
+ { name: "data", internalType: "bytes", type: "bytes" }
3310
+ ],
3311
+ name: "upgradeToAndCall",
3312
+ outputs: []
3313
+ },
3314
+ {
3315
+ type: "event",
3316
+ anonymous: false,
3317
+ inputs: [
3318
+ {
3319
+ name: "commentId",
3320
+ internalType: "bytes32",
3321
+ type: "bytes32",
3322
+ indexed: true
3323
+ },
3324
+ {
3325
+ name: "commentIdentifier",
3326
+ internalType: "struct IComments.CommentIdentifier",
3327
+ type: "tuple",
3328
+ components: [
3329
+ { name: "commenter", internalType: "address", type: "address" },
3330
+ { name: "contractAddress", internalType: "address", type: "address" },
3331
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3332
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3333
+ ],
3334
+ indexed: false
3335
+ },
3336
+ { name: "text", internalType: "string", type: "string", indexed: false },
3337
+ {
3338
+ name: "timestamp",
3339
+ internalType: "uint256",
3340
+ type: "uint256",
3341
+ indexed: false
3342
+ },
3343
+ {
3344
+ name: "originalTransactionId",
3345
+ internalType: "bytes32",
3346
+ type: "bytes32",
3347
+ indexed: false
3348
+ }
3349
+ ],
3350
+ name: "BackfilledComment"
3351
+ },
3352
+ {
3353
+ type: "event",
3354
+ anonymous: false,
3355
+ inputs: [
3356
+ {
3357
+ name: "commentId",
3358
+ internalType: "bytes32",
3359
+ type: "bytes32",
3360
+ indexed: true
3361
+ },
3362
+ {
3363
+ name: "commentIdentifier",
3364
+ internalType: "struct IComments.CommentIdentifier",
3365
+ type: "tuple",
3366
+ components: [
3367
+ { name: "commenter", internalType: "address", type: "address" },
3368
+ { name: "contractAddress", internalType: "address", type: "address" },
3369
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3370
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3371
+ ],
3372
+ indexed: false
3373
+ },
3374
+ {
3375
+ name: "replyToId",
3376
+ internalType: "bytes32",
3377
+ type: "bytes32",
3378
+ indexed: false
3379
+ },
3380
+ {
3381
+ name: "replyTo",
3382
+ internalType: "struct IComments.CommentIdentifier",
3383
+ type: "tuple",
3384
+ components: [
3385
+ { name: "commenter", internalType: "address", type: "address" },
3386
+ { name: "contractAddress", internalType: "address", type: "address" },
3387
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3388
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3389
+ ],
3390
+ indexed: false
3391
+ },
3392
+ {
3393
+ name: "sparksQuantity",
3394
+ internalType: "uint256",
3395
+ type: "uint256",
3396
+ indexed: false
3397
+ },
3398
+ { name: "text", internalType: "string", type: "string", indexed: false },
3399
+ {
3400
+ name: "timestamp",
3401
+ internalType: "uint256",
3402
+ type: "uint256",
3403
+ indexed: false
3404
+ },
3405
+ {
3406
+ name: "referrer",
3407
+ internalType: "address",
3408
+ type: "address",
3409
+ indexed: false
3410
+ }
3411
+ ],
3412
+ name: "Commented"
3413
+ },
3414
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
3415
+ {
3416
+ type: "event",
3417
+ anonymous: false,
3418
+ inputs: [
3419
+ {
3420
+ name: "version",
3421
+ internalType: "uint64",
3422
+ type: "uint64",
3423
+ indexed: false
3424
+ }
3425
+ ],
3426
+ name: "Initialized"
3427
+ },
3428
+ {
3429
+ type: "event",
3430
+ anonymous: false,
3431
+ inputs: [
3432
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3433
+ {
3434
+ name: "previousAdminRole",
3435
+ internalType: "bytes32",
3436
+ type: "bytes32",
3437
+ indexed: true
3438
+ },
3439
+ {
3440
+ name: "newAdminRole",
3441
+ internalType: "bytes32",
3442
+ type: "bytes32",
3443
+ indexed: true
3444
+ }
3445
+ ],
3446
+ name: "RoleAdminChanged"
3447
+ },
3448
+ {
3449
+ type: "event",
3450
+ anonymous: false,
3451
+ inputs: [
3452
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3453
+ {
3454
+ name: "account",
3455
+ internalType: "address",
3456
+ type: "address",
3457
+ indexed: true
3458
+ },
3459
+ {
3460
+ name: "sender",
3461
+ internalType: "address",
3462
+ type: "address",
3463
+ indexed: true
3464
+ }
3465
+ ],
3466
+ name: "RoleGranted"
3467
+ },
3468
+ {
3469
+ type: "event",
3470
+ anonymous: false,
3471
+ inputs: [
3472
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3473
+ {
3474
+ name: "account",
3475
+ internalType: "address",
3476
+ type: "address",
3477
+ indexed: true
3478
+ },
3479
+ {
3480
+ name: "sender",
3481
+ internalType: "address",
3482
+ type: "address",
3483
+ indexed: true
3484
+ }
3485
+ ],
3486
+ name: "RoleRevoked"
3487
+ },
3488
+ {
3489
+ type: "event",
3490
+ anonymous: false,
3491
+ inputs: [
3492
+ {
3493
+ name: "commentId",
3494
+ internalType: "bytes32",
3495
+ type: "bytes32",
3496
+ indexed: true
3497
+ },
3498
+ {
3499
+ name: "commentIdentifier",
3500
+ internalType: "struct IComments.CommentIdentifier",
3501
+ type: "tuple",
3502
+ components: [
3503
+ { name: "commenter", internalType: "address", type: "address" },
3504
+ { name: "contractAddress", internalType: "address", type: "address" },
3505
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3506
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3507
+ ],
3508
+ indexed: false
3509
+ },
3510
+ {
3511
+ name: "sparksQuantity",
3512
+ internalType: "uint256",
3513
+ type: "uint256",
3514
+ indexed: false
3515
+ },
3516
+ {
3517
+ name: "sparker",
3518
+ internalType: "address",
3519
+ type: "address",
3520
+ indexed: false
3521
+ },
3522
+ {
3523
+ name: "timestamp",
3524
+ internalType: "uint256",
3525
+ type: "uint256",
3526
+ indexed: false
3527
+ },
3528
+ {
3529
+ name: "referrer",
3530
+ internalType: "address",
3531
+ type: "address",
3532
+ indexed: false
3533
+ }
3534
+ ],
3535
+ name: "SparkedComment"
3536
+ },
3537
+ {
3538
+ type: "event",
3539
+ anonymous: false,
3540
+ inputs: [
3541
+ {
3542
+ name: "implementation",
3543
+ internalType: "address",
3544
+ type: "address",
3545
+ indexed: true
3546
+ }
3547
+ ],
3548
+ name: "Upgraded"
3549
+ },
3550
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
3551
+ {
3552
+ type: "error",
3553
+ inputs: [
3554
+ { name: "account", internalType: "address", type: "address" },
3555
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
3556
+ ],
3557
+ name: "AccessControlUnauthorizedAccount"
3558
+ },
3559
+ {
3560
+ type: "error",
3561
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
3562
+ name: "AddressEmptyCode"
3563
+ },
3564
+ { type: "error", inputs: [], name: "AddressZero" },
3565
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
3566
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
3567
+ {
3568
+ type: "error",
3569
+ inputs: [
3570
+ { name: "commentAddress", internalType: "address", type: "address" },
3571
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
3572
+ { name: "replyAddress", internalType: "address", type: "address" },
3573
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
3574
+ ],
3575
+ name: "CommentAddressOrTokenIdsDoNotMatch"
3576
+ },
3577
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
3578
+ {
3579
+ type: "error",
3580
+ inputs: [
3581
+ { name: "expected", internalType: "address", type: "address" },
3582
+ { name: "actual", internalType: "address", type: "address" }
3583
+ ],
3584
+ name: "CommenterMismatch"
3585
+ },
3586
+ {
3587
+ type: "error",
3588
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
3589
+ name: "DuplicateComment"
3590
+ },
3591
+ {
3592
+ type: "error",
3593
+ inputs: [
3594
+ { name: "implementation", internalType: "address", type: "address" }
3595
+ ],
3596
+ name: "ERC1967InvalidImplementation"
3597
+ },
3598
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
3599
+ {
3600
+ type: "error",
3601
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3602
+ name: "ERC2612ExpiredSignature"
3603
+ },
3604
+ { type: "error", inputs: [], name: "EmptyComment" },
3605
+ { type: "error", inputs: [], name: "FailedInnerCall" },
3606
+ {
3607
+ type: "error",
3608
+ inputs: [
3609
+ {
3610
+ name: "wrongDestinationChainId",
3611
+ internalType: "uint256",
3612
+ type: "uint256"
3613
+ }
3614
+ ],
3615
+ name: "IncorrectDestinationChain"
3616
+ },
3617
+ {
3618
+ type: "error",
3619
+ inputs: [
3620
+ { name: "actual", internalType: "uint256", type: "uint256" },
3621
+ { name: "expected", internalType: "uint256", type: "uint256" }
3622
+ ],
3623
+ name: "IncorrectETHAmountForSparks"
3624
+ },
3625
+ {
3626
+ type: "error",
3627
+ inputs: [
3628
+ { name: "account", internalType: "address", type: "address" },
3629
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
3630
+ ],
3631
+ name: "InvalidAccountNonce"
3632
+ },
3633
+ { type: "error", inputs: [], name: "InvalidInitialization" },
3634
+ { type: "error", inputs: [], name: "InvalidSignature" },
3635
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
3636
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
3637
+ { type: "error", inputs: [], name: "NotInitializing" },
3638
+ { type: "error", inputs: [], name: "NotSmartWallet" },
3639
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
3640
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
3641
+ { type: "error", inputs: [], name: "OnlySparksContract" },
3642
+ { type: "error", inputs: [], name: "TransferFailed" },
3643
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3644
+ {
3645
+ type: "error",
3646
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
3647
+ name: "UUPSUnsupportedProxiableUUID"
3648
+ },
3649
+ {
3650
+ type: "error",
3651
+ inputs: [
3652
+ { name: "currentName", internalType: "string", type: "string" },
3653
+ { name: "newName", internalType: "string", type: "string" }
3654
+ ],
3655
+ name: "UpgradeToMismatchedContractName"
3656
+ }
3657
+ ];
3658
+ var commentsAddress = {
3659
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
3660
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
3661
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
3662
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
3663
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
3664
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
3665
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
3666
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
3667
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
3668
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
3669
+ };
3670
+ var commentsConfig = {
3671
+ address: commentsAddress,
3672
+ abi: commentsABI
3673
+ };
1636
3674
  var erc20MinterABI = [
1637
3675
  {
1638
3676
  stateMutability: "nonpayable",
@@ -3167,6 +5205,7 @@ var erc20ZRoyaltiesAddress = {
3167
5205
  42161: "0x77777771DF91C56c5468746E80DFA8b880f9719F",
3168
5206
  81457: "0x77777771DF91C56c5468746E80DFA8b880f9719F",
3169
5207
  84532: "0x77777771DF91C56c5468746E80DFA8b880f9719F",
5208
+ 421614: "0x77777771DF91C56c5468746E80DFA8b880f9719F",
3170
5209
  7777777: "0x77777771DF91C56c5468746E80DFA8b880f9719F",
3171
5210
  11155111: "0x53a85FbD2955EF713AA489Ae0C48523E727a0c07",
3172
5211
  999999999: "0x77777771DF91C56c5468746E80DFA8b880f9719F"
@@ -3949,6 +5988,7 @@ var secondarySwapAddress = {
3949
5988
  42161: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3950
5989
  81457: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3951
5990
  84532: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
5991
+ 421614: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
3952
5992
  7777777: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3953
5993
  11155111: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3954
5994
  999999999: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1"
@@ -4721,6 +6761,7 @@ var wethAddress = {
4721
6761
  421614: "0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074",
4722
6762
  7777777: "0x4200000000000000000000000000000000000006",
4723
6763
  11155111: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
6764
+ 11155420: "0x4200000000000000000000000000000000000006",
4724
6765
  999999999: "0x4200000000000000000000000000000000000006"
4725
6766
  };
4726
6767
  var wethConfig = { address: wethAddress, abi: wethABI };
@@ -5761,6 +7802,13 @@ var zoraCreator1155ImplABI = [
5761
7802
  { name: "__gap3", internalType: "uint96", type: "uint96" }
5762
7803
  ]
5763
7804
  },
7805
+ {
7806
+ stateMutability: "view",
7807
+ type: "function",
7808
+ inputs: [],
7809
+ name: "contractName",
7810
+ outputs: [{ name: "", internalType: "string", type: "string" }]
7811
+ },
5764
7812
  {
5765
7813
  stateMutability: "view",
5766
7814
  type: "function",
@@ -11583,6 +13631,13 @@ var zoraTimedSaleStrategyABI = [
11583
13631
  { name: "createReferral", internalType: "address", type: "address" }
11584
13632
  ]
11585
13633
  },
13634
+ {
13635
+ stateMutability: "view",
13636
+ type: "function",
13637
+ inputs: [],
13638
+ name: "implementation",
13639
+ outputs: [{ name: "", internalType: "address", type: "address" }]
13640
+ },
11586
13641
  {
11587
13642
  stateMutability: "nonpayable",
11588
13643
  type: "function",
@@ -12260,6 +14315,7 @@ var zoraTimedSaleStrategyAddress = {
12260
14315
  42161: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
12261
14316
  81457: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
12262
14317
  84532: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
14318
+ 421614: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
12263
14319
  7777777: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
12264
14320
  11155111: "0x777777722D078c97c6ad07d9f36801e653E356Ae",
12265
14321
  999999999: "0x777777722D078c97c6ad07d9f36801e653E356Ae"
@@ -12269,6 +14325,57 @@ var zoraTimedSaleStrategyConfig = {
12269
14325
  abi: zoraTimedSaleStrategyABI
12270
14326
  };
12271
14327
 
14328
+ // ../../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
14329
+ init_base();
14330
+ var InvalidDecimalNumberError = class extends BaseError {
14331
+ constructor({ value }) {
14332
+ super(`Number \`${value}\` is not a valid decimal number.`, {
14333
+ name: "InvalidDecimalNumberError"
14334
+ });
14335
+ }
14336
+ };
14337
+
14338
+ // ../../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
14339
+ function parseUnits(value, decimals) {
14340
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
14341
+ throw new InvalidDecimalNumberError({ value });
14342
+ let [integer, fraction = "0"] = value.split(".");
14343
+ const negative = integer.startsWith("-");
14344
+ if (negative)
14345
+ integer = integer.slice(1);
14346
+ fraction = fraction.replace(/(0+)$/, "");
14347
+ if (decimals === 0) {
14348
+ if (Math.round(Number(`.${fraction}`)) === 1)
14349
+ integer = `${BigInt(integer) + 1n}`;
14350
+ fraction = "";
14351
+ } else if (fraction.length > decimals) {
14352
+ const [left, unit, right] = [
14353
+ fraction.slice(0, decimals - 1),
14354
+ fraction.slice(decimals - 1, decimals),
14355
+ fraction.slice(decimals)
14356
+ ];
14357
+ const rounded = Math.round(Number(`${unit}.${right}`));
14358
+ if (rounded > 9)
14359
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
14360
+ else
14361
+ fraction = `${left}${rounded}`;
14362
+ if (fraction.length > decimals) {
14363
+ fraction = fraction.slice(1);
14364
+ integer = `${BigInt(integer) + 1n}`;
14365
+ }
14366
+ fraction = fraction.slice(0, decimals);
14367
+ } else {
14368
+ fraction = fraction.padEnd(decimals, "0");
14369
+ }
14370
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
14371
+ }
14372
+
14373
+ // ../../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
14374
+ init_unit();
14375
+ function parseEther(ether, unit = "wei") {
14376
+ return parseUnits(ether, etherUnits[unit]);
14377
+ }
14378
+
12272
14379
  // ../../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
12273
14380
  init_encodeAbiParameters();
12274
14381
  init_getAbiItem();
@@ -12282,6 +14389,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
12282
14389
  PremintConfigVersion2["V3"] = "3";
12283
14390
  return PremintConfigVersion2;
12284
14391
  })(PremintConfigVersion || {});
14392
+ var emptyCommentIdentifier = () => {
14393
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
14394
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
14395
+ return {
14396
+ commenter: zeroAddress,
14397
+ contractAddress: zeroAddress,
14398
+ tokenId: 0n,
14399
+ nonce: zeroHash
14400
+ };
14401
+ };
12285
14402
 
12286
14403
  // src/typedData.ts
12287
14404
  var premintTypedDataDomain = ({
@@ -12572,6 +14689,146 @@ var sponsoredSparksBatchTypedDataDefinition = ({
12572
14689
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
12573
14690
  }
12574
14691
  });
14692
+ var commentIdentifierType = [
14693
+ { name: "contractAddress", type: "address" },
14694
+ { name: "tokenId", type: "uint256" },
14695
+ { name: "commenter", type: "address" },
14696
+ { name: "nonce", type: "bytes32" }
14697
+ ];
14698
+ var commentsDomain = ({
14699
+ signingChainId,
14700
+ destinationChainId
14701
+ }) => ({
14702
+ chainId: signingChainId,
14703
+ name: "Comments",
14704
+ version: "1",
14705
+ verifyingContract: commentsAddress[destinationChainId]
14706
+ });
14707
+ var permitCommentTypedDataDefinition = (message, signingAccount) => {
14708
+ const permitCommentTypedDataType = {
14709
+ PermitComment: [
14710
+ { name: "contractAddress", type: "address" },
14711
+ { name: "tokenId", type: "uint256" },
14712
+ { name: "commenter", type: "address" },
14713
+ { name: "replyTo", type: "CommentIdentifier" },
14714
+ { name: "text", type: "string" },
14715
+ { name: "deadline", type: "uint256" },
14716
+ { name: "nonce", type: "bytes32" },
14717
+ { name: "commenterSmartWallet", type: "address" },
14718
+ { name: "referrer", type: "address" },
14719
+ { name: "sourceChainId", type: "uint32" },
14720
+ { name: "destinationChainId", type: "uint32" }
14721
+ ],
14722
+ CommentIdentifier: commentIdentifierType
14723
+ };
14724
+ return {
14725
+ types: permitCommentTypedDataType,
14726
+ message,
14727
+ primaryType: "PermitComment",
14728
+ domain: commentsDomain({
14729
+ signingChainId: message.sourceChainId,
14730
+ destinationChainId: message.destinationChainId
14731
+ }),
14732
+ account: signingAccount || message.commenter
14733
+ };
14734
+ };
14735
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => {
14736
+ const permitSparkCommentTypedDataType = {
14737
+ PermitSparkComment: [
14738
+ { name: "comment", type: "CommentIdentifier" },
14739
+ { name: "sparker", type: "address" },
14740
+ { name: "sparksQuantity", type: "uint256" },
14741
+ { name: "deadline", type: "uint256" },
14742
+ { name: "nonce", type: "bytes32" },
14743
+ { name: "referrer", type: "address" },
14744
+ { name: "sourceChainId", type: "uint32" },
14745
+ { name: "destinationChainId", type: "uint32" }
14746
+ ],
14747
+ CommentIdentifier: commentIdentifierType
14748
+ };
14749
+ return {
14750
+ types: permitSparkCommentTypedDataType,
14751
+ message,
14752
+ primaryType: "PermitSparkComment",
14753
+ domain: commentsDomain({
14754
+ signingChainId: message.sourceChainId,
14755
+ destinationChainId: message.destinationChainId
14756
+ }),
14757
+ account: signingAccount || message.sparker
14758
+ };
14759
+ };
14760
+ var sparkValue = () => parseEther("0.000001");
14761
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => {
14762
+ const permitTimedSaleMintAndCommentTypedDataType = {
14763
+ PermitTimedSaleMintAndComment: [
14764
+ { name: "commenter", type: "address" },
14765
+ { name: "quantity", type: "uint256" },
14766
+ { name: "collection", type: "address" },
14767
+ { name: "tokenId", type: "uint256" },
14768
+ { name: "mintReferral", type: "address" },
14769
+ { name: "comment", type: "string" },
14770
+ { name: "deadline", type: "uint256" },
14771
+ { name: "nonce", type: "bytes32" },
14772
+ { name: "sourceChainId", type: "uint32" },
14773
+ { name: "destinationChainId", type: "uint32" }
14774
+ ]
14775
+ };
14776
+ const callerAndCommenterDomain = ({
14777
+ signingChainId,
14778
+ destinationChainId
14779
+ }) => ({
14780
+ name: "CallerAndCommenter",
14781
+ version: "1",
14782
+ chainId: signingChainId,
14783
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
14784
+ });
14785
+ return {
14786
+ types: permitTimedSaleMintAndCommentTypedDataType,
14787
+ message,
14788
+ primaryType: "PermitTimedSaleMintAndComment",
14789
+ domain: callerAndCommenterDomain({
14790
+ signingChainId: message.sourceChainId,
14791
+ destinationChainId: message.destinationChainId
14792
+ }),
14793
+ account: signingAccount || message.commenter
14794
+ };
14795
+ };
14796
+ var permitBuyOnSecondaryAndCommentTypedDataDefinition = (message, signingAccount) => {
14797
+ const permitBuyOnSecondaryAndCommentTypedDataType = {
14798
+ PermitBuyOnSecondaryAndComment: [
14799
+ { name: "commenter", type: "address" },
14800
+ { name: "quantity", type: "uint256" },
14801
+ { name: "collection", type: "address" },
14802
+ { name: "tokenId", type: "uint256" },
14803
+ { name: "maxEthToSpend", type: "uint256" },
14804
+ { name: "sqrtPriceLimitX96", type: "uint160" },
14805
+ { name: "comment", type: "string" },
14806
+ { name: "deadline", type: "uint256" },
14807
+ { name: "nonce", type: "bytes32" },
14808
+ { name: "sourceChainId", type: "uint32" },
14809
+ { name: "destinationChainId", type: "uint32" }
14810
+ ]
14811
+ };
14812
+ const callerAndCommenterDomain = ({
14813
+ signingChainId,
14814
+ destinationChainId
14815
+ }) => ({
14816
+ name: "CallerAndCommenter",
14817
+ version: "1",
14818
+ chainId: signingChainId,
14819
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
14820
+ });
14821
+ return {
14822
+ types: permitBuyOnSecondaryAndCommentTypedDataType,
14823
+ message,
14824
+ primaryType: "PermitBuyOnSecondaryAndComment",
14825
+ domain: callerAndCommenterDomain({
14826
+ signingChainId: message.sourceChainId,
14827
+ destinationChainId: message.destinationChainId
14828
+ }),
14829
+ account: signingAccount || message.commenter
14830
+ };
14831
+ };
12575
14832
 
12576
14833
  // src/encoding.ts
12577
14834
  var safeTransferSwapAbiParameters = [
@@ -12664,10 +14921,10 @@ var addresses = {
12664
14921
  timestamp: 1730734767
12665
14922
  },
12666
14923
  10: {
12667
- CONTRACT_1155_IMPL: "0x00802284A7976cE5bd200c7aBA2a8A8Fd52cFf1d",
12668
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
14924
+ CONTRACT_1155_IMPL: "0xF77330C8b1c41f2e44470763Cf9E3ACa78Db4381",
14925
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12669
14926
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12670
- FACTORY_IMPL: "0x26B92D5f3F81Bda06ea93619C535948131538bda",
14927
+ FACTORY_IMPL: "0x2008C05685F9fA15BBD75d80e9A44ab0c7230577",
12671
14928
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12672
14929
  FIXED_PRICE_SALE_STRATEGY: "0x3678862f04290E565cCA2EF163BAeb92Bb76790C",
12673
14930
  MERKLE_MINT_SALE_STRATEGY: "0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8",
@@ -12675,7 +14932,7 @@ var addresses = {
12675
14932
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12676
14933
  REDEEM_MINTER_FACTORY: "0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2",
12677
14934
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12678
- timestamp: 1729791004
14935
+ timestamp: 1731019615
12679
14936
  },
12680
14937
  999: {
12681
14938
  CONTRACT_1155_IMPL: "0x2022AdEF470DA3543a19fac8c9be80618112704D",
@@ -12691,10 +14948,10 @@ var addresses = {
12691
14948
  timestamp: 1704399834
12692
14949
  },
12693
14950
  8453: {
12694
- CONTRACT_1155_IMPL: "0x57f412Ea90b59ce4023AFDE95C251E3c747EB7F8",
12695
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
14951
+ CONTRACT_1155_IMPL: "0x5Eb5bABCEFEa846b220C82f222F00Df95934F5f0",
14952
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12696
14953
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12697
- FACTORY_IMPL: "0xc6bf69986859f0dC0b77f2cA6AD86F5b294c0443",
14954
+ FACTORY_IMPL: "0x97898683c6950a986911fdfFEa12739bad5D2581",
12698
14955
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12699
14956
  FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
12700
14957
  MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
@@ -12702,13 +14959,13 @@ var addresses = {
12702
14959
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12703
14960
  REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
12704
14961
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12705
- timestamp: 1729791239
14962
+ timestamp: 1730931491
12706
14963
  },
12707
14964
  42161: {
12708
- CONTRACT_1155_IMPL: "0xCf0B4Acab081169D12b729c3Bd1c6E7bbAB820Da",
12709
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
14965
+ CONTRACT_1155_IMPL: "0xC04050e04708b33302E30E5A0fB1e8c38F4EBbB0",
14966
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12710
14967
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12711
- FACTORY_IMPL: "0x8a5027ea12f45a13deb6CB96A07913c6e192BE84",
14968
+ FACTORY_IMPL: "0xe2606ac30752009ecec6FEaf5C2B4A6523256E7E",
12712
14969
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12713
14970
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
12714
14971
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -12716,13 +14973,13 @@ var addresses = {
12716
14973
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12717
14974
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
12718
14975
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12719
- timestamp: 1730736352
14976
+ timestamp: 1730931657
12720
14977
  },
12721
14978
  81457: {
12722
- CONTRACT_1155_IMPL: "0x7B59c0378F540c0356A5DAEF7574255A7C74EC76",
12723
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
14979
+ CONTRACT_1155_IMPL: "0x16cFE884B49E68Cae854f12Ea419Fb1F6Ad290A8",
14980
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12724
14981
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12725
- FACTORY_IMPL: "0x073ef87C54c192c21ddEf881fE18064b6161fAC9",
14982
+ FACTORY_IMPL: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
12726
14983
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12727
14984
  FIXED_PRICE_SALE_STRATEGY: "0x3EB144aee170BF62FdA1536e38aF51f08e34A5D0",
12728
14985
  MERKLE_MINT_SALE_STRATEGY: "0xB9C997FcC46a27331CC986cc2416ee99C1d506c3",
@@ -12730,13 +14987,13 @@ var addresses = {
12730
14987
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12731
14988
  REDEEM_MINTER_FACTORY: "0x7A0dE1B1f5420Df5D946878fBe2cF109011BE614",
12732
14989
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12733
- timestamp: 1730736883
14990
+ timestamp: 1730931749
12734
14991
  },
12735
14992
  84532: {
12736
- CONTRACT_1155_IMPL: "0xDD3295D6A2e772Bd3208c3d43a783533505a1EED",
12737
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
14993
+ CONTRACT_1155_IMPL: "0x695C9A141748D308d26Bd4f8E9F9A5df5F0623f8",
14994
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12738
14995
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12739
- FACTORY_IMPL: "0xF3a46845548bE811Ce37e65153563f4a0AaEbe31",
14996
+ FACTORY_IMPL: "0xd92F69d5581BF9536c77550aeA1d74DDaE88B5B7",
12740
14997
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12741
14998
  FIXED_PRICE_SALE_STRATEGY: "0xd34872BE0cdb6b09d45FCa067B07f04a1A9aE1aE",
12742
14999
  MERKLE_MINT_SALE_STRATEGY: "0x3E8524770adD176bE381a0529E09f1c6c3502A5a",
@@ -12744,13 +15001,13 @@ var addresses = {
12744
15001
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12745
15002
  REDEEM_MINTER_FACTORY: "0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea",
12746
15003
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12747
- timestamp: 1729790653
15004
+ timestamp: 1730928936
12748
15005
  },
12749
15006
  421614: {
12750
- CONTRACT_1155_IMPL: "0x8a5027ea12f45a13deb6CB96A07913c6e192BE84",
12751
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
15007
+ CONTRACT_1155_IMPL: "0x3Ed969bf88166B85608C13b633242611F6220a14",
15008
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12752
15009
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12753
- FACTORY_IMPL: "0x1Eb7Bf3a08784D7cB08CC2AE1448012C0c02bDa2",
15010
+ FACTORY_IMPL: "0xA75f980Fdf9F02718423FDFDFf1fccc74bdDBa95",
12754
15011
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12755
15012
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
12756
15013
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -12758,13 +15015,13 @@ var addresses = {
12758
15015
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12759
15016
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
12760
15017
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12761
- timestamp: 1730737132
15018
+ timestamp: 1730928848
12762
15019
  },
12763
15020
  7777777: {
12764
- CONTRACT_1155_IMPL: "0xf81C36213FB217c756504B56133b2c3CD4FbCBf9",
12765
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
15021
+ CONTRACT_1155_IMPL: "0xDB07C4525E82340A27077Ad258160928f271BB7F",
15022
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12766
15023
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12767
- FACTORY_IMPL: "0x64311A0AE41Ec5A804cdC87F826B646Afd131F24",
15024
+ FACTORY_IMPL: "0x517Ce60C6e66a4DB1ea705C98250770d01f9d0AE",
12768
15025
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12769
15026
  FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
12770
15027
  MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
@@ -12772,13 +15029,13 @@ var addresses = {
12772
15029
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12773
15030
  REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
12774
15031
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12775
- timestamp: 1729790913
15032
+ timestamp: 1730930939
12776
15033
  },
12777
15034
  11155111: {
12778
- CONTRACT_1155_IMPL: "0xe22C5ce67dc5077ca115FBe6ddbed1FB2703B125",
12779
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
15035
+ CONTRACT_1155_IMPL: "0x9b24FD165a371042e5CA81e8d066d25CAD11EDE7",
15036
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12780
15037
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
12781
- FACTORY_IMPL: "0x54A6a778ee0E5Cefc70C3963018606D4DF8Be960",
15038
+ FACTORY_IMPL: "0x3AE2804De4A54283601Db24a897856D9772eA0D8",
12782
15039
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12783
15040
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
12784
15041
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -12786,7 +15043,7 @@ var addresses = {
12786
15043
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12787
15044
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
12788
15045
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
12789
- timestamp: 1729790809
15046
+ timestamp: 1730928528
12790
15047
  },
12791
15048
  168587773: {
12792
15049
  CONTRACT_1155_IMPL: "0x192D663C3D6813a24a24582A76B8d872c4F6F7f9",
@@ -12803,10 +15060,10 @@ var addresses = {
12803
15060
  timestamp: 1722525339
12804
15061
  },
12805
15062
  999999999: {
12806
- CONTRACT_1155_IMPL: "0x78C5f846e1dfBdbAD7AD4B3010233757aB2A1e9B",
12807
- CONTRACT_1155_IMPL_VERSION: "2.13.0",
15063
+ CONTRACT_1155_IMPL: "0x695C9A141748D308d26Bd4f8E9F9A5df5F0623f8",
15064
+ CONTRACT_1155_IMPL_VERSION: "2.13.2",
12808
15065
  ERC20_MINTER: "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
12809
- FACTORY_IMPL: "0xfE55eF381A32fE9B8fE287a5CEB0A05A9873a018",
15066
+ FACTORY_IMPL: "0xd92F69d5581BF9536c77550aeA1d74DDaE88B5B7",
12810
15067
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
12811
15068
  FIXED_PRICE_SALE_STRATEGY: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
12812
15069
  MERKLE_MINT_SALE_STRATEGY: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
@@ -12814,7 +15071,7 @@ var addresses = {
12814
15071
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
12815
15072
  REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
12816
15073
  UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
12817
- timestamp: 1729790544
15074
+ timestamp: 1730928726
12818
15075
  }
12819
15076
  };
12820
15077
 
@@ -12888,6 +15145,13 @@ var chainConfigs2 = {
12888
15145
  ZORA_RECIPIENT: "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
12889
15146
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"
12890
15147
  },
15148
+ 11155420: {
15149
+ NONFUNGIBLE_POSITION_MANAGER: "0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",
15150
+ UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
15151
+ PROXY_ADMIN: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
15152
+ ZORA_RECIPIENT: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
15153
+ WETH: "0x4200000000000000000000000000000000000006"
15154
+ },
12891
15155
  999999999: {
12892
15156
  NONFUNGIBLE_POSITION_MANAGER: "0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",
12893
15157
  UNISWAP_SWAP_ROUTER: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a",
@@ -12958,7 +15222,14 @@ var addresses2 = {
12958
15222
  // Annotate the CommonJS export names for ESM import in node:
12959
15223
  0 && (module.exports = {
12960
15224
  PremintConfigVersion,
15225
+ callerAndCommenterABI,
15226
+ callerAndCommenterAddress,
15227
+ callerAndCommenterConfig,
15228
+ commentsABI,
15229
+ commentsAddress,
15230
+ commentsConfig,
12961
15231
  contracts1155,
15232
+ emptyCommentIdentifier,
12962
15233
  encodePremintConfig,
12963
15234
  erc20MinterABI,
12964
15235
  erc20MinterAddress,
@@ -12975,6 +15246,10 @@ var addresses2 = {
12975
15246
  mintsEthUnwrapperAndCallerConfig,
12976
15247
  mintsSafeTransferBatchTypedDataDefinition,
12977
15248
  mintsSafeTransferTypedDataDefinition,
15249
+ permitBuyOnSecondaryAndCommentTypedDataDefinition,
15250
+ permitCommentTypedDataDefinition,
15251
+ permitMintAndCommentTypedDataDefinition,
15252
+ permitSparkCommentTypedDataDefinition,
12978
15253
  premintTypedDataDefinition,
12979
15254
  premintV1TypedDataDefinition,
12980
15255
  premintV2TypedDataDefinition,
@@ -12985,6 +15260,7 @@ var addresses2 = {
12985
15260
  secondarySwapABI,
12986
15261
  secondarySwapAddress,
12987
15262
  secondarySwapConfig,
15263
+ sparkValue,
12988
15264
  sparks,
12989
15265
  sponsoredSparksBatchTransferTypedDataType,
12990
15266
  sponsoredSparksBatchTypedDataDefinition,