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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1571,6 +1571,9 @@ var init_unit = __esm({
1571
1571
  var src_exports = {};
1572
1572
  __export(src_exports, {
1573
1573
  PremintConfigVersion: () => PremintConfigVersion,
1574
+ callerAndCommenterABI: () => callerAndCommenterABI,
1575
+ callerAndCommenterAddress: () => callerAndCommenterAddress,
1576
+ callerAndCommenterConfig: () => callerAndCommenterConfig,
1574
1577
  commentsABI: () => commentsABI,
1575
1578
  commentsAddress: () => commentsAddress,
1576
1579
  commentsConfig: () => commentsConfig,
@@ -1593,6 +1596,7 @@ __export(src_exports, {
1593
1596
  mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1594
1597
  mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1595
1598
  permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
1599
+ permitMintAndCommentTypedDataDefinition: () => permitMintAndCommentTypedDataDefinition,
1596
1600
  permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
1597
1601
  premintTypedDataDefinition: () => premintTypedDataDefinition,
1598
1602
  premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
@@ -1652,6 +1656,808 @@ __export(src_exports, {
1652
1656
  module.exports = __toCommonJS(src_exports);
1653
1657
 
1654
1658
  // src/generated/wagmi.ts
1659
+ var callerAndCommenterABI = [
1660
+ {
1661
+ stateMutability: "nonpayable",
1662
+ type: "constructor",
1663
+ inputs: [
1664
+ { name: "_comments", internalType: "address", type: "address" },
1665
+ { name: "_zoraTimedSale", internalType: "address", type: "address" }
1666
+ ]
1667
+ },
1668
+ {
1669
+ stateMutability: "view",
1670
+ type: "function",
1671
+ inputs: [],
1672
+ name: "UPGRADE_INTERFACE_VERSION",
1673
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1674
+ },
1675
+ {
1676
+ stateMutability: "nonpayable",
1677
+ type: "function",
1678
+ inputs: [],
1679
+ name: "acceptOwnership",
1680
+ outputs: []
1681
+ },
1682
+ {
1683
+ stateMutability: "view",
1684
+ type: "function",
1685
+ inputs: [],
1686
+ name: "comments",
1687
+ outputs: [
1688
+ { name: "", internalType: "contract IComments", type: "address" }
1689
+ ]
1690
+ },
1691
+ {
1692
+ stateMutability: "pure",
1693
+ type: "function",
1694
+ inputs: [],
1695
+ name: "contractName",
1696
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1697
+ },
1698
+ {
1699
+ stateMutability: "pure",
1700
+ type: "function",
1701
+ inputs: [],
1702
+ name: "contractVersion",
1703
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1704
+ },
1705
+ {
1706
+ stateMutability: "view",
1707
+ type: "function",
1708
+ inputs: [],
1709
+ name: "eip712Domain",
1710
+ outputs: [
1711
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
1712
+ { name: "name", internalType: "string", type: "string" },
1713
+ { name: "version", internalType: "string", type: "string" },
1714
+ { name: "chainId", internalType: "uint256", type: "uint256" },
1715
+ { name: "verifyingContract", internalType: "address", type: "address" },
1716
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1717
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1718
+ ]
1719
+ },
1720
+ {
1721
+ stateMutability: "view",
1722
+ type: "function",
1723
+ inputs: [
1724
+ {
1725
+ name: "permit",
1726
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
1727
+ type: "tuple",
1728
+ components: [
1729
+ { name: "commenter", internalType: "address", type: "address" },
1730
+ { name: "quantity", internalType: "uint256", type: "uint256" },
1731
+ { name: "collection", internalType: "address", type: "address" },
1732
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1733
+ { name: "mintReferral", internalType: "address", type: "address" },
1734
+ { name: "comment", internalType: "string", type: "string" },
1735
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1736
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1737
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1738
+ {
1739
+ name: "destinationChainId",
1740
+ internalType: "uint32",
1741
+ type: "uint32"
1742
+ }
1743
+ ]
1744
+ }
1745
+ ],
1746
+ name: "hashPermitTimedSaleMintAndComment",
1747
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1748
+ },
1749
+ {
1750
+ stateMutability: "nonpayable",
1751
+ type: "function",
1752
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
1753
+ name: "initialize",
1754
+ outputs: []
1755
+ },
1756
+ {
1757
+ stateMutability: "view",
1758
+ type: "function",
1759
+ inputs: [
1760
+ { name: "owner", internalType: "address", type: "address" },
1761
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1762
+ ],
1763
+ name: "nonceUsed",
1764
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1765
+ },
1766
+ {
1767
+ stateMutability: "view",
1768
+ type: "function",
1769
+ inputs: [],
1770
+ name: "owner",
1771
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1772
+ },
1773
+ {
1774
+ stateMutability: "view",
1775
+ type: "function",
1776
+ inputs: [],
1777
+ name: "pendingOwner",
1778
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1779
+ },
1780
+ {
1781
+ stateMutability: "payable",
1782
+ type: "function",
1783
+ inputs: [
1784
+ {
1785
+ name: "permit",
1786
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
1787
+ type: "tuple",
1788
+ components: [
1789
+ { name: "commenter", internalType: "address", type: "address" },
1790
+ { name: "quantity", internalType: "uint256", type: "uint256" },
1791
+ { name: "collection", internalType: "address", type: "address" },
1792
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1793
+ { name: "mintReferral", internalType: "address", type: "address" },
1794
+ { name: "comment", internalType: "string", type: "string" },
1795
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1796
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1797
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1798
+ {
1799
+ name: "destinationChainId",
1800
+ internalType: "uint32",
1801
+ type: "uint32"
1802
+ }
1803
+ ]
1804
+ },
1805
+ { name: "signature", internalType: "bytes", type: "bytes" }
1806
+ ],
1807
+ name: "permitTimedSaleMintAndComment",
1808
+ outputs: [
1809
+ {
1810
+ name: "",
1811
+ internalType: "struct IComments.CommentIdentifier",
1812
+ type: "tuple",
1813
+ components: [
1814
+ { name: "commenter", internalType: "address", type: "address" },
1815
+ { name: "contractAddress", internalType: "address", type: "address" },
1816
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1817
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1818
+ ]
1819
+ }
1820
+ ]
1821
+ },
1822
+ {
1823
+ stateMutability: "view",
1824
+ type: "function",
1825
+ inputs: [],
1826
+ name: "proxiableUUID",
1827
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1828
+ },
1829
+ {
1830
+ stateMutability: "nonpayable",
1831
+ type: "function",
1832
+ inputs: [],
1833
+ name: "renounceOwnership",
1834
+ outputs: []
1835
+ },
1836
+ {
1837
+ stateMutability: "payable",
1838
+ type: "function",
1839
+ inputs: [
1840
+ { name: "commenter", internalType: "address", type: "address" },
1841
+ { name: "quantity", internalType: "uint256", type: "uint256" },
1842
+ { name: "collection", internalType: "address", type: "address" },
1843
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1844
+ { name: "mintReferral", internalType: "address", type: "address" },
1845
+ { name: "comment", internalType: "string", type: "string" }
1846
+ ],
1847
+ name: "timedSaleMintAndComment",
1848
+ outputs: [
1849
+ {
1850
+ name: "",
1851
+ internalType: "struct IComments.CommentIdentifier",
1852
+ type: "tuple",
1853
+ components: [
1854
+ { name: "commenter", internalType: "address", type: "address" },
1855
+ { name: "contractAddress", internalType: "address", type: "address" },
1856
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1857
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1858
+ ]
1859
+ }
1860
+ ]
1861
+ },
1862
+ {
1863
+ stateMutability: "nonpayable",
1864
+ type: "function",
1865
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
1866
+ name: "transferOwnership",
1867
+ outputs: []
1868
+ },
1869
+ {
1870
+ stateMutability: "payable",
1871
+ type: "function",
1872
+ inputs: [
1873
+ { name: "newImplementation", internalType: "address", type: "address" },
1874
+ { name: "data", internalType: "bytes", type: "bytes" }
1875
+ ],
1876
+ name: "upgradeToAndCall",
1877
+ outputs: []
1878
+ },
1879
+ {
1880
+ stateMutability: "view",
1881
+ type: "function",
1882
+ inputs: [],
1883
+ name: "zoraTimedSale",
1884
+ outputs: [
1885
+ {
1886
+ name: "",
1887
+ internalType: "contract IZoraTimedSaleStrategy",
1888
+ type: "address"
1889
+ }
1890
+ ]
1891
+ },
1892
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
1893
+ {
1894
+ type: "event",
1895
+ anonymous: false,
1896
+ inputs: [
1897
+ {
1898
+ name: "version",
1899
+ internalType: "uint64",
1900
+ type: "uint64",
1901
+ indexed: false
1902
+ }
1903
+ ],
1904
+ name: "Initialized"
1905
+ },
1906
+ {
1907
+ type: "event",
1908
+ anonymous: false,
1909
+ inputs: [
1910
+ {
1911
+ name: "commentId",
1912
+ internalType: "bytes32",
1913
+ type: "bytes32",
1914
+ indexed: true
1915
+ },
1916
+ {
1917
+ name: "commentIdentifier",
1918
+ internalType: "struct IComments.CommentIdentifier",
1919
+ type: "tuple",
1920
+ components: [
1921
+ { name: "commenter", internalType: "address", type: "address" },
1922
+ { name: "contractAddress", internalType: "address", type: "address" },
1923
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1924
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1925
+ ],
1926
+ indexed: false
1927
+ },
1928
+ {
1929
+ name: "quantity",
1930
+ internalType: "uint256",
1931
+ type: "uint256",
1932
+ indexed: false
1933
+ },
1934
+ { name: "text", internalType: "string", type: "string", indexed: false }
1935
+ ],
1936
+ name: "MintedAndCommented"
1937
+ },
1938
+ {
1939
+ type: "event",
1940
+ anonymous: false,
1941
+ inputs: [
1942
+ {
1943
+ name: "previousOwner",
1944
+ internalType: "address",
1945
+ type: "address",
1946
+ indexed: true
1947
+ },
1948
+ {
1949
+ name: "newOwner",
1950
+ internalType: "address",
1951
+ type: "address",
1952
+ indexed: true
1953
+ }
1954
+ ],
1955
+ name: "OwnershipTransferStarted"
1956
+ },
1957
+ {
1958
+ type: "event",
1959
+ anonymous: false,
1960
+ inputs: [
1961
+ {
1962
+ name: "previousOwner",
1963
+ internalType: "address",
1964
+ type: "address",
1965
+ indexed: true
1966
+ },
1967
+ {
1968
+ name: "newOwner",
1969
+ internalType: "address",
1970
+ type: "address",
1971
+ indexed: true
1972
+ }
1973
+ ],
1974
+ name: "OwnershipTransferred"
1975
+ },
1976
+ {
1977
+ type: "event",
1978
+ anonymous: false,
1979
+ inputs: [
1980
+ {
1981
+ name: "implementation",
1982
+ internalType: "address",
1983
+ type: "address",
1984
+ indexed: true
1985
+ }
1986
+ ],
1987
+ name: "Upgraded"
1988
+ },
1989
+ {
1990
+ type: "error",
1991
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
1992
+ name: "AddressEmptyCode"
1993
+ },
1994
+ {
1995
+ type: "error",
1996
+ inputs: [
1997
+ { name: "expected", internalType: "address", type: "address" },
1998
+ { name: "actual", internalType: "address", type: "address" }
1999
+ ],
2000
+ name: "CommenterMismatch"
2001
+ },
2002
+ {
2003
+ type: "error",
2004
+ inputs: [
2005
+ { name: "implementation", internalType: "address", type: "address" }
2006
+ ],
2007
+ name: "ERC1967InvalidImplementation"
2008
+ },
2009
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
2010
+ {
2011
+ type: "error",
2012
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2013
+ name: "ERC2612ExpiredSignature"
2014
+ },
2015
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2016
+ {
2017
+ type: "error",
2018
+ inputs: [
2019
+ {
2020
+ name: "wrongDestinationChainId",
2021
+ internalType: "uint256",
2022
+ type: "uint256"
2023
+ }
2024
+ ],
2025
+ name: "IncorrectDestinationChain"
2026
+ },
2027
+ {
2028
+ type: "error",
2029
+ inputs: [
2030
+ { name: "account", internalType: "address", type: "address" },
2031
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2032
+ ],
2033
+ name: "InvalidAccountNonce"
2034
+ },
2035
+ { type: "error", inputs: [], name: "InvalidInitialization" },
2036
+ { type: "error", inputs: [], name: "InvalidSignature" },
2037
+ { type: "error", inputs: [], name: "NotInitializing" },
2038
+ {
2039
+ type: "error",
2040
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
2041
+ name: "OwnableInvalidOwner"
2042
+ },
2043
+ {
2044
+ type: "error",
2045
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
2046
+ name: "OwnableUnauthorizedAccount"
2047
+ },
2048
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2049
+ {
2050
+ type: "error",
2051
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2052
+ name: "UUPSUnsupportedProxiableUUID"
2053
+ },
2054
+ {
2055
+ type: "error",
2056
+ inputs: [
2057
+ { name: "currentName", internalType: "string", type: "string" },
2058
+ { name: "newName", internalType: "string", type: "string" }
2059
+ ],
2060
+ name: "UpgradeToMismatchedContractName"
2061
+ },
2062
+ {
2063
+ type: "error",
2064
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
2065
+ name: "AddressEmptyCode"
2066
+ },
2067
+ {
2068
+ type: "error",
2069
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
2070
+ name: "AddressInsufficientBalance"
2071
+ },
2072
+ { type: "error", inputs: [], name: "AddressZero" },
2073
+ { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
2074
+ {
2075
+ type: "error",
2076
+ inputs: [
2077
+ { name: "implementation", internalType: "address", type: "address" }
2078
+ ],
2079
+ name: "ERC1967InvalidImplementation"
2080
+ },
2081
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
2082
+ { type: "error", inputs: [], name: "EndTimeCannotBeInThePast" },
2083
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2084
+ { type: "error", inputs: [], name: "InsufficientFunds" },
2085
+ { type: "error", inputs: [], name: "InvalidInitialization" },
2086
+ { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
2087
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
2088
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
2089
+ { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
2090
+ { type: "error", inputs: [], name: "NotInitializing" },
2091
+ { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
2092
+ {
2093
+ type: "error",
2094
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
2095
+ name: "OwnableInvalidOwner"
2096
+ },
2097
+ {
2098
+ type: "error",
2099
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
2100
+ name: "OwnableUnauthorizedAccount"
2101
+ },
2102
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
2103
+ { type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
2104
+ { type: "error", inputs: [], name: "ResetSaleNotAvailable" },
2105
+ { type: "error", inputs: [], name: "SaleAlreadySet" },
2106
+ { type: "error", inputs: [], name: "SaleEnded" },
2107
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
2108
+ { type: "error", inputs: [], name: "SaleInProgress" },
2109
+ { type: "error", inputs: [], name: "SaleNotSet" },
2110
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
2111
+ { type: "error", inputs: [], name: "SaleV2Ended" },
2112
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
2113
+ { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
2114
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2115
+ {
2116
+ type: "error",
2117
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2118
+ name: "UUPSUnsupportedProxiableUUID"
2119
+ },
2120
+ { type: "error", inputs: [], name: "WrongValueSent" },
2121
+ {
2122
+ type: "error",
2123
+ inputs: [],
2124
+ name: "ZoraCreator1155ContractNeedsToSupportReduceSupply"
2125
+ },
2126
+ { type: "error", inputs: [], name: "ADDRESS_DELEGATECALL_TO_NON_CONTRACT" },
2127
+ { type: "error", inputs: [], name: "ADDRESS_LOW_LEVEL_CALL_FAILED" },
2128
+ {
2129
+ type: "error",
2130
+ inputs: [
2131
+ { name: "operator", internalType: "address", type: "address" },
2132
+ { name: "user", internalType: "address", type: "address" }
2133
+ ],
2134
+ name: "Burn_NotOwnerOrApproved"
2135
+ },
2136
+ { type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
2137
+ {
2138
+ type: "error",
2139
+ inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
2140
+ name: "CallFailed"
2141
+ },
2142
+ { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
2143
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
2144
+ { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
2145
+ {
2146
+ type: "error",
2147
+ inputs: [
2148
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2149
+ { name: "quantity", internalType: "uint256", type: "uint256" },
2150
+ { name: "totalMinted", internalType: "uint256", type: "uint256" },
2151
+ { name: "maxSupply", internalType: "uint256", type: "uint256" }
2152
+ ],
2153
+ name: "CannotMintMoreTokens"
2154
+ },
2155
+ { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
2156
+ {
2157
+ type: "error",
2158
+ inputs: [
2159
+ { name: "proposedAddress", internalType: "address", type: "address" }
2160
+ ],
2161
+ name: "Config_TransferHookNotSupported"
2162
+ },
2163
+ {
2164
+ type: "error",
2165
+ inputs: [],
2166
+ name: "ERC1155_ACCOUNTS_AND_IDS_LENGTH_MISMATCH"
2167
+ },
2168
+ {
2169
+ type: "error",
2170
+ inputs: [],
2171
+ name: "ERC1155_ADDRESS_ZERO_IS_NOT_A_VALID_OWNER"
2172
+ },
2173
+ { type: "error", inputs: [], name: "ERC1155_BURN_AMOUNT_EXCEEDS_BALANCE" },
2174
+ { type: "error", inputs: [], name: "ERC1155_BURN_FROM_ZERO_ADDRESS" },
2175
+ {
2176
+ type: "error",
2177
+ inputs: [],
2178
+ name: "ERC1155_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED"
2179
+ },
2180
+ {
2181
+ type: "error",
2182
+ inputs: [],
2183
+ name: "ERC1155_ERC1155RECEIVER_REJECTED_TOKENS"
2184
+ },
2185
+ {
2186
+ type: "error",
2187
+ inputs: [],
2188
+ name: "ERC1155_IDS_AND_AMOUNTS_LENGTH_MISMATCH"
2189
+ },
2190
+ {
2191
+ type: "error",
2192
+ inputs: [],
2193
+ name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER"
2194
+ },
2195
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
2196
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
2197
+ { type: "error", inputs: [], name: "ERC1155_SETTING_APPROVAL_FOR_SELF" },
2198
+ {
2199
+ type: "error",
2200
+ inputs: [],
2201
+ name: "ERC1155_TRANSFER_TO_NON_ERC1155RECEIVER_IMPLEMENTER"
2202
+ },
2203
+ { type: "error", inputs: [], name: "ERC1155_TRANSFER_TO_ZERO_ADDRESS" },
2204
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
2205
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
2206
+ { type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
2207
+ {
2208
+ type: "error",
2209
+ inputs: [
2210
+ { name: "recipient", internalType: "address", type: "address" },
2211
+ { name: "amount", internalType: "uint256", type: "uint256" }
2212
+ ],
2213
+ name: "ETHWithdrawFailed"
2214
+ },
2215
+ {
2216
+ type: "error",
2217
+ inputs: [],
2218
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY"
2219
+ },
2220
+ {
2221
+ type: "error",
2222
+ inputs: [],
2223
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL"
2224
+ },
2225
+ { type: "error", inputs: [], name: "FirstMinterAddressZero" },
2226
+ {
2227
+ type: "error",
2228
+ inputs: [
2229
+ { name: "amount", internalType: "uint256", type: "uint256" },
2230
+ { name: "contractValue", internalType: "uint256", type: "uint256" }
2231
+ ],
2232
+ name: "FundsWithdrawInsolvent"
2233
+ },
2234
+ {
2235
+ type: "error",
2236
+ inputs: [],
2237
+ name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED"
2238
+ },
2239
+ {
2240
+ type: "error",
2241
+ inputs: [],
2242
+ name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
2243
+ },
2244
+ { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
2245
+ { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
2246
+ {
2247
+ type: "error",
2248
+ inputs: [
2249
+ { name: "mintTo", internalType: "address", type: "address" },
2250
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
2251
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
2252
+ ],
2253
+ name: "InvalidMerkleProof"
2254
+ },
2255
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
2256
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
2257
+ { type: "error", inputs: [], name: "InvalidPremintVersion" },
2258
+ { type: "error", inputs: [], name: "InvalidSignature" },
2259
+ { type: "error", inputs: [], name: "InvalidSignatureVersion" },
2260
+ {
2261
+ type: "error",
2262
+ inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
2263
+ name: "InvalidSigner"
2264
+ },
2265
+ { type: "error", inputs: [], name: "MintNotYetStarted" },
2266
+ { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
2267
+ { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
2268
+ { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
2269
+ { type: "error", inputs: [], name: "Mint_UnknownCommand" },
2270
+ { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
2271
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
2272
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
2273
+ { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
2274
+ {
2275
+ type: "error",
2276
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
2277
+ name: "NoRendererForToken"
2278
+ },
2279
+ { type: "error", inputs: [], name: "NonEthRedemption" },
2280
+ { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
2281
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
2282
+ { type: "error", inputs: [], name: "PremintDeleted" },
2283
+ {
2284
+ type: "error",
2285
+ inputs: [
2286
+ { name: "caller", internalType: "address", type: "address" },
2287
+ { name: "recipient", internalType: "address", type: "address" },
2288
+ { name: "amount", internalType: "uint256", type: "uint256" }
2289
+ ],
2290
+ name: "ProtocolRewardsWithdrawFailed"
2291
+ },
2292
+ {
2293
+ type: "error",
2294
+ inputs: [{ name: "renderer", internalType: "address", type: "address" }],
2295
+ name: "RendererNotValid"
2296
+ },
2297
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
2298
+ { type: "error", inputs: [], name: "SaleEnded" },
2299
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
2300
+ {
2301
+ type: "error",
2302
+ inputs: [
2303
+ { name: "targetContract", internalType: "address", type: "address" }
2304
+ ],
2305
+ name: "Sale_CannotCallNonSalesContract"
2306
+ },
2307
+ {
2308
+ type: "error",
2309
+ inputs: [
2310
+ { name: "expected", internalType: "uint256", type: "uint256" },
2311
+ { name: "actual", internalType: "uint256", type: "uint256" }
2312
+ ],
2313
+ name: "TokenIdMismatch"
2314
+ },
2315
+ {
2316
+ type: "error",
2317
+ inputs: [],
2318
+ name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
2319
+ },
2320
+ {
2321
+ type: "error",
2322
+ inputs: [
2323
+ { name: "user", internalType: "address", type: "address" },
2324
+ { name: "limit", internalType: "uint256", type: "uint256" },
2325
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
2326
+ ],
2327
+ name: "UserExceedsMintLimit"
2328
+ },
2329
+ {
2330
+ type: "error",
2331
+ inputs: [
2332
+ { name: "user", internalType: "address", type: "address" },
2333
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2334
+ { name: "role", internalType: "uint256", type: "uint256" }
2335
+ ],
2336
+ name: "UserMissingRoleForToken"
2337
+ },
2338
+ { type: "error", inputs: [], name: "WrongValueSent" },
2339
+ {
2340
+ type: "error",
2341
+ inputs: [],
2342
+ name: "premintSignerContractFailedToRecoverSigner"
2343
+ },
2344
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
2345
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
2346
+ {
2347
+ type: "error",
2348
+ inputs: [
2349
+ { name: "account", internalType: "address", type: "address" },
2350
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
2351
+ ],
2352
+ name: "AccessControlUnauthorizedAccount"
2353
+ },
2354
+ {
2355
+ type: "error",
2356
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
2357
+ name: "AddressEmptyCode"
2358
+ },
2359
+ { type: "error", inputs: [], name: "AddressZero" },
2360
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
2361
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
2362
+ {
2363
+ type: "error",
2364
+ inputs: [
2365
+ { name: "commentAddress", internalType: "address", type: "address" },
2366
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
2367
+ { name: "replyAddress", internalType: "address", type: "address" },
2368
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
2369
+ ],
2370
+ name: "CommentAddressOrTokenIdsDoNotMatch"
2371
+ },
2372
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
2373
+ {
2374
+ type: "error",
2375
+ inputs: [
2376
+ { name: "expected", internalType: "address", type: "address" },
2377
+ { name: "actual", internalType: "address", type: "address" }
2378
+ ],
2379
+ name: "CommenterMismatch"
2380
+ },
2381
+ {
2382
+ type: "error",
2383
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
2384
+ name: "DuplicateComment"
2385
+ },
2386
+ {
2387
+ type: "error",
2388
+ inputs: [
2389
+ { name: "implementation", internalType: "address", type: "address" }
2390
+ ],
2391
+ name: "ERC1967InvalidImplementation"
2392
+ },
2393
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
2394
+ {
2395
+ type: "error",
2396
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
2397
+ name: "ERC2612ExpiredSignature"
2398
+ },
2399
+ { type: "error", inputs: [], name: "EmptyComment" },
2400
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2401
+ {
2402
+ type: "error",
2403
+ inputs: [
2404
+ {
2405
+ name: "wrongDestinationChainId",
2406
+ internalType: "uint256",
2407
+ type: "uint256"
2408
+ }
2409
+ ],
2410
+ name: "IncorrectDestinationChain"
2411
+ },
2412
+ {
2413
+ type: "error",
2414
+ inputs: [
2415
+ { name: "actual", internalType: "uint256", type: "uint256" },
2416
+ { name: "expected", internalType: "uint256", type: "uint256" }
2417
+ ],
2418
+ name: "IncorrectETHAmountForSparks"
2419
+ },
2420
+ {
2421
+ type: "error",
2422
+ inputs: [
2423
+ { name: "account", internalType: "address", type: "address" },
2424
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2425
+ ],
2426
+ name: "InvalidAccountNonce"
2427
+ },
2428
+ { type: "error", inputs: [], name: "InvalidInitialization" },
2429
+ { type: "error", inputs: [], name: "InvalidSignature" },
2430
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
2431
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
2432
+ { type: "error", inputs: [], name: "NotInitializing" },
2433
+ { type: "error", inputs: [], name: "NotSmartWallet" },
2434
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
2435
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
2436
+ { type: "error", inputs: [], name: "OnlySparksContract" },
2437
+ { type: "error", inputs: [], name: "TransferFailed" },
2438
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
2439
+ {
2440
+ type: "error",
2441
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2442
+ name: "UUPSUnsupportedProxiableUUID"
2443
+ },
2444
+ {
2445
+ type: "error",
2446
+ inputs: [
2447
+ { name: "currentName", internalType: "string", type: "string" },
2448
+ { name: "newName", internalType: "string", type: "string" }
2449
+ ],
2450
+ name: "UpgradeToMismatchedContractName"
2451
+ }
2452
+ ];
2453
+ var callerAndCommenterAddress = {
2454
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2455
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
2456
+ };
2457
+ var callerAndCommenterConfig = {
2458
+ address: callerAndCommenterAddress,
2459
+ abi: callerAndCommenterABI
2460
+ };
1655
2461
  var commentsABI = [
1656
2462
  {
1657
2463
  stateMutability: "nonpayable",
@@ -1833,7 +2639,7 @@ var commentsABI = [
1833
2639
  outputs: [{ name: "", internalType: "string", type: "string" }]
1834
2640
  },
1835
2641
  {
1836
- stateMutability: "nonpayable",
2642
+ stateMutability: "payable",
1837
2643
  type: "function",
1838
2644
  inputs: [
1839
2645
  { name: "commenter", internalType: "address", type: "address" },
@@ -1850,7 +2656,13 @@ var commentsABI = [
1850
2656
  { name: "tokenId", internalType: "uint256", type: "uint256" },
1851
2657
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
1852
2658
  ]
1853
- }
2659
+ },
2660
+ {
2661
+ name: "commenterSmartWalletOwner",
2662
+ internalType: "address",
2663
+ type: "address"
2664
+ },
2665
+ { name: "referrer", internalType: "address", type: "address" }
1854
2666
  ],
1855
2667
  name: "delegateComment",
1856
2668
  outputs: [
@@ -1864,7 +2676,8 @@ var commentsABI = [
1864
2676
  { name: "tokenId", internalType: "uint256", type: "uint256" },
1865
2677
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
1866
2678
  ]
1867
- }
2679
+ },
2680
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
1868
2681
  ]
1869
2682
  },
1870
2683
  {
@@ -2519,6 +3332,7 @@ var commentsABI = [
2519
3332
  inputs: [{ name: "target", internalType: "address", type: "address" }],
2520
3333
  name: "AddressEmptyCode"
2521
3334
  },
3335
+ { type: "error", inputs: [], name: "AddressZero" },
2522
3336
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
2523
3337
  { type: "error", inputs: [], name: "CannotSparkOwnComment" },
2524
3338
  {
@@ -2613,8 +3427,8 @@ var commentsABI = [
2613
3427
  }
2614
3428
  ];
2615
3429
  var commentsAddress = {
2616
- 7777777: "0x8C0757EFfD2Cc68F00810d2d144F729F6ed5CdA3",
2617
- 999999999: "0xA29a072Edd91CF501115f6B77D145417c498A09c"
3430
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
3431
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
2618
3432
  };
2619
3433
  var commentsConfig = {
2620
3434
  address: commentsAddress,
@@ -6439,7 +7253,6 @@ var zoraCreator1155FactoryImplABI = [
6439
7253
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
6440
7254
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
6441
7255
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
6442
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
6443
7256
  { type: "error", inputs: [], name: "NotInitializing" },
6444
7257
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
6445
7258
  {
@@ -7861,7 +8674,6 @@ var zoraCreator1155ImplABI = [
7861
8674
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
7862
8675
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
7863
8676
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
7864
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
7865
8677
  { type: "error", inputs: [], name: "NotInitializing" },
7866
8678
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
7867
8679
  {
@@ -12369,17 +13181,7 @@ var zoraSparksManagerImplConfig = {
12369
13181
  abi: zoraSparksManagerImplABI
12370
13182
  };
12371
13183
  var zoraTimedSaleStrategyABI = [
12372
- {
12373
- stateMutability: "nonpayable",
12374
- type: "constructor",
12375
- inputs: [
12376
- {
12377
- name: "_comments",
12378
- internalType: "contract IComments",
12379
- type: "address"
12380
- }
12381
- ]
12382
- },
13184
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
12383
13185
  {
12384
13186
  stateMutability: "view",
12385
13187
  type: "function",
@@ -12428,15 +13230,6 @@ var zoraTimedSaleStrategyABI = [
12428
13230
  }
12429
13231
  ]
12430
13232
  },
12431
- {
12432
- stateMutability: "view",
12433
- type: "function",
12434
- inputs: [],
12435
- name: "comments",
12436
- outputs: [
12437
- { name: "", internalType: "contract IComments", type: "address" }
12438
- ]
12439
- },
12440
13233
  {
12441
13234
  stateMutability: "pure",
12442
13235
  type: "function",
@@ -12506,13 +13299,6 @@ var zoraTimedSaleStrategyABI = [
12506
13299
  { name: "createReferral", internalType: "address", type: "address" }
12507
13300
  ]
12508
13301
  },
12509
- {
12510
- stateMutability: "view",
12511
- type: "function",
12512
- inputs: [],
12513
- name: "implementation",
12514
- outputs: [{ name: "", internalType: "address", type: "address" }]
12515
- },
12516
13302
  {
12517
13303
  stateMutability: "nonpayable",
12518
13304
  type: "function",
@@ -12870,43 +13656,6 @@ var zoraTimedSaleStrategyABI = [
12870
13656
  ],
12871
13657
  name: "MintComment"
12872
13658
  },
12873
- {
12874
- type: "event",
12875
- anonymous: false,
12876
- inputs: [
12877
- {
12878
- name: "commentId",
12879
- internalType: "bytes32",
12880
- type: "bytes32",
12881
- indexed: true
12882
- },
12883
- {
12884
- name: "commentIdentifier",
12885
- internalType: "struct IComments.CommentIdentifier",
12886
- type: "tuple",
12887
- components: [
12888
- { name: "commenter", internalType: "address", type: "address" },
12889
- { name: "contractAddress", internalType: "address", type: "address" },
12890
- { name: "tokenId", internalType: "uint256", type: "uint256" },
12891
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
12892
- ],
12893
- indexed: false
12894
- },
12895
- {
12896
- name: "mintQuantity",
12897
- internalType: "uint256",
12898
- type: "uint256",
12899
- indexed: false
12900
- },
12901
- {
12902
- name: "comment",
12903
- internalType: "string",
12904
- type: "string",
12905
- indexed: false
12906
- }
12907
- ],
12908
- name: "MintedAndCommented"
12909
- },
12910
13659
  {
12911
13660
  type: "event",
12912
13661
  anonymous: false,
@@ -13183,7 +13932,6 @@ var zoraTimedSaleStrategyABI = [
13183
13932
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
13184
13933
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
13185
13934
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
13186
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
13187
13935
  { type: "error", inputs: [], name: "NotInitializing" },
13188
13936
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
13189
13937
  {
@@ -13666,6 +14414,39 @@ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
13666
14414
  account: signingAccount || message.sparker
13667
14415
  });
13668
14416
  var sparkValue = () => parseEther("0.000001");
14417
+ var permitTimedSaleMintAndCommentTypedDataType = {
14418
+ PermitTimedSaleMintAndComment: [
14419
+ { name: "commenter", type: "address" },
14420
+ { name: "quantity", type: "uint256" },
14421
+ { name: "collection", type: "address" },
14422
+ { name: "tokenId", type: "uint256" },
14423
+ { name: "mintReferral", type: "address" },
14424
+ { name: "comment", type: "string" },
14425
+ { name: "deadline", type: "uint256" },
14426
+ { name: "nonce", type: "bytes32" },
14427
+ { name: "sourceChainId", type: "uint32" },
14428
+ { name: "destinationChainId", type: "uint32" }
14429
+ ]
14430
+ };
14431
+ var callerAndCommenterDomain = ({
14432
+ signingChainId,
14433
+ destinationChainId
14434
+ }) => ({
14435
+ name: "CallerAndCommenter",
14436
+ version: "1",
14437
+ chainId: signingChainId,
14438
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
14439
+ });
14440
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => ({
14441
+ types: permitTimedSaleMintAndCommentTypedDataType,
14442
+ message,
14443
+ primaryType: "PermitTimedSaleMintAndComment",
14444
+ domain: callerAndCommenterDomain({
14445
+ signingChainId: message.sourceChainId,
14446
+ destinationChainId: message.destinationChainId
14447
+ }),
14448
+ account: signingAccount || message.commenter
14449
+ });
13669
14450
 
13670
14451
  // src/encoding.ts
13671
14452
  var safeTransferSwapAbiParameters = [
@@ -14005,6 +14786,9 @@ var addresses2 = {
14005
14786
  // Annotate the CommonJS export names for ESM import in node:
14006
14787
  0 && (module.exports = {
14007
14788
  PremintConfigVersion,
14789
+ callerAndCommenterABI,
14790
+ callerAndCommenterAddress,
14791
+ callerAndCommenterConfig,
14008
14792
  commentsABI,
14009
14793
  commentsAddress,
14010
14794
  commentsConfig,
@@ -14027,6 +14811,7 @@ var addresses2 = {
14027
14811
  mintsSafeTransferBatchTypedDataDefinition,
14028
14812
  mintsSafeTransferTypedDataDefinition,
14029
14813
  permitCommentTypedDataDefinition,
14814
+ permitMintAndCommentTypedDataDefinition,
14030
14815
  permitSparkCommentTypedDataDefinition,
14031
14816
  premintTypedDataDefinition,
14032
14817
  premintV1TypedDataDefinition,