@zoralabs/protocol-deployments 0.3.5 → 0.3.6-COMMENTS.0

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,9 @@ __export(src_exports, {
1576
1595
  mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
1577
1596
  mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
1578
1597
  mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
1598
+ permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
1599
+ permitMintAndCommentTypedDataDefinition: () => permitMintAndCommentTypedDataDefinition,
1600
+ permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
1579
1601
  premintTypedDataDefinition: () => premintTypedDataDefinition,
1580
1602
  premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
1581
1603
  premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
@@ -1586,6 +1608,7 @@ __export(src_exports, {
1586
1608
  secondarySwapABI: () => secondarySwapABI,
1587
1609
  secondarySwapAddress: () => secondarySwapAddress,
1588
1610
  secondarySwapConfig: () => secondarySwapConfig,
1611
+ sparkValue: () => sparkValue,
1589
1612
  sparks: () => sparks_exports,
1590
1613
  sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
1591
1614
  sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
@@ -1633,6 +1656,1790 @@ __export(src_exports, {
1633
1656
  module.exports = __toCommonJS(src_exports);
1634
1657
 
1635
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
+ 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2455
+ 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2456
+ 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2457
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
2458
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
2459
+ };
2460
+ var callerAndCommenterConfig = {
2461
+ address: callerAndCommenterAddress,
2462
+ abi: callerAndCommenterABI
2463
+ };
2464
+ var commentsABI = [
2465
+ {
2466
+ stateMutability: "nonpayable",
2467
+ type: "constructor",
2468
+ inputs: [
2469
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
2470
+ { name: "_protocolRewards", internalType: "address", type: "address" },
2471
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
2472
+ ]
2473
+ },
2474
+ {
2475
+ stateMutability: "view",
2476
+ type: "function",
2477
+ inputs: [],
2478
+ name: "BACKFILLER_ROLE",
2479
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2480
+ },
2481
+ {
2482
+ stateMutability: "view",
2483
+ type: "function",
2484
+ inputs: [],
2485
+ name: "DEFAULT_ADMIN_ROLE",
2486
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2487
+ },
2488
+ {
2489
+ stateMutability: "view",
2490
+ type: "function",
2491
+ inputs: [],
2492
+ name: "DELEGATE_COMMENTER",
2493
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2494
+ },
2495
+ {
2496
+ stateMutability: "view",
2497
+ type: "function",
2498
+ inputs: [],
2499
+ name: "DOMAIN_NAME",
2500
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2501
+ },
2502
+ {
2503
+ stateMutability: "view",
2504
+ type: "function",
2505
+ inputs: [],
2506
+ name: "DOMAIN_VERSION",
2507
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2508
+ },
2509
+ {
2510
+ stateMutability: "view",
2511
+ type: "function",
2512
+ inputs: [],
2513
+ name: "PERMISSION_BIT_ADMIN",
2514
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2515
+ },
2516
+ {
2517
+ stateMutability: "view",
2518
+ type: "function",
2519
+ inputs: [],
2520
+ name: "REFERRER_REWARD_PCT",
2521
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2522
+ },
2523
+ {
2524
+ stateMutability: "view",
2525
+ type: "function",
2526
+ inputs: [],
2527
+ name: "UPGRADE_INTERFACE_VERSION",
2528
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2529
+ },
2530
+ {
2531
+ stateMutability: "view",
2532
+ type: "function",
2533
+ inputs: [],
2534
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
2535
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2536
+ },
2537
+ {
2538
+ stateMutability: "view",
2539
+ type: "function",
2540
+ inputs: [],
2541
+ name: "ZORA_REWARD_PCT",
2542
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2543
+ },
2544
+ {
2545
+ stateMutability: "nonpayable",
2546
+ type: "function",
2547
+ inputs: [
2548
+ {
2549
+ name: "commentIdentifiers",
2550
+ internalType: "struct IComments.CommentIdentifier[]",
2551
+ type: "tuple[]",
2552
+ components: [
2553
+ { name: "commenter", internalType: "address", type: "address" },
2554
+ { name: "contractAddress", internalType: "address", type: "address" },
2555
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2556
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2557
+ ]
2558
+ },
2559
+ { name: "texts", internalType: "string[]", type: "string[]" },
2560
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
2561
+ {
2562
+ name: "originalTransactionHashes",
2563
+ internalType: "bytes32[]",
2564
+ type: "bytes32[]"
2565
+ }
2566
+ ],
2567
+ name: "backfillBatchAddComment",
2568
+ outputs: []
2569
+ },
2570
+ {
2571
+ stateMutability: "payable",
2572
+ type: "function",
2573
+ inputs: [
2574
+ { name: "commenter", internalType: "address", type: "address" },
2575
+ { name: "contractAddress", internalType: "address", type: "address" },
2576
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2577
+ { name: "text", internalType: "string", type: "string" },
2578
+ {
2579
+ name: "replyTo",
2580
+ internalType: "struct IComments.CommentIdentifier",
2581
+ type: "tuple",
2582
+ components: [
2583
+ { name: "commenter", internalType: "address", type: "address" },
2584
+ { name: "contractAddress", internalType: "address", type: "address" },
2585
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2586
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2587
+ ]
2588
+ },
2589
+ {
2590
+ name: "commenterSmartWallet",
2591
+ internalType: "address",
2592
+ type: "address"
2593
+ },
2594
+ { name: "referrer", internalType: "address", type: "address" }
2595
+ ],
2596
+ name: "comment",
2597
+ outputs: [
2598
+ {
2599
+ name: "commentIdentifier",
2600
+ internalType: "struct IComments.CommentIdentifier",
2601
+ type: "tuple",
2602
+ components: [
2603
+ { name: "commenter", internalType: "address", type: "address" },
2604
+ { name: "contractAddress", internalType: "address", type: "address" },
2605
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2606
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2607
+ ]
2608
+ }
2609
+ ]
2610
+ },
2611
+ {
2612
+ stateMutability: "view",
2613
+ type: "function",
2614
+ inputs: [
2615
+ {
2616
+ name: "commentIdentifier",
2617
+ internalType: "struct IComments.CommentIdentifier",
2618
+ type: "tuple",
2619
+ components: [
2620
+ { name: "commenter", internalType: "address", type: "address" },
2621
+ { name: "contractAddress", internalType: "address", type: "address" },
2622
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2623
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2624
+ ]
2625
+ }
2626
+ ],
2627
+ name: "commentSparksQuantity",
2628
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2629
+ },
2630
+ {
2631
+ stateMutability: "pure",
2632
+ type: "function",
2633
+ inputs: [],
2634
+ name: "contractName",
2635
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2636
+ },
2637
+ {
2638
+ stateMutability: "pure",
2639
+ type: "function",
2640
+ inputs: [],
2641
+ name: "contractVersion",
2642
+ outputs: [{ name: "", internalType: "string", type: "string" }]
2643
+ },
2644
+ {
2645
+ stateMutability: "payable",
2646
+ type: "function",
2647
+ inputs: [
2648
+ { name: "commenter", internalType: "address", type: "address" },
2649
+ { name: "contractAddress", internalType: "address", type: "address" },
2650
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2651
+ { name: "text", internalType: "string", type: "string" },
2652
+ {
2653
+ name: "replyTo",
2654
+ internalType: "struct IComments.CommentIdentifier",
2655
+ type: "tuple",
2656
+ components: [
2657
+ { name: "commenter", internalType: "address", type: "address" },
2658
+ { name: "contractAddress", internalType: "address", type: "address" },
2659
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2660
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2661
+ ]
2662
+ },
2663
+ {
2664
+ name: "commenterSmartWalletOwner",
2665
+ internalType: "address",
2666
+ type: "address"
2667
+ },
2668
+ { name: "referrer", internalType: "address", type: "address" }
2669
+ ],
2670
+ name: "delegateComment",
2671
+ outputs: [
2672
+ {
2673
+ name: "commentIdentifier",
2674
+ internalType: "struct IComments.CommentIdentifier",
2675
+ type: "tuple",
2676
+ components: [
2677
+ { name: "commenter", internalType: "address", type: "address" },
2678
+ { name: "contractAddress", internalType: "address", type: "address" },
2679
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2680
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2681
+ ]
2682
+ },
2683
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
2684
+ ]
2685
+ },
2686
+ {
2687
+ stateMutability: "view",
2688
+ type: "function",
2689
+ inputs: [],
2690
+ name: "eip712Domain",
2691
+ outputs: [
2692
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
2693
+ { name: "name", internalType: "string", type: "string" },
2694
+ { name: "version", internalType: "string", type: "string" },
2695
+ { name: "chainId", internalType: "uint256", type: "uint256" },
2696
+ { name: "verifyingContract", internalType: "address", type: "address" },
2697
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
2698
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
2699
+ ]
2700
+ },
2701
+ {
2702
+ stateMutability: "view",
2703
+ type: "function",
2704
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
2705
+ name: "getRoleAdmin",
2706
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2707
+ },
2708
+ {
2709
+ stateMutability: "nonpayable",
2710
+ type: "function",
2711
+ inputs: [
2712
+ { name: "role", internalType: "bytes32", type: "bytes32" },
2713
+ { name: "account", internalType: "address", type: "address" }
2714
+ ],
2715
+ name: "grantRole",
2716
+ outputs: []
2717
+ },
2718
+ {
2719
+ stateMutability: "view",
2720
+ type: "function",
2721
+ inputs: [
2722
+ { name: "role", internalType: "bytes32", type: "bytes32" },
2723
+ { name: "account", internalType: "address", type: "address" }
2724
+ ],
2725
+ name: "hasRole",
2726
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
2727
+ },
2728
+ {
2729
+ stateMutability: "view",
2730
+ type: "function",
2731
+ inputs: [
2732
+ {
2733
+ name: "commentIdentifier",
2734
+ internalType: "struct IComments.CommentIdentifier",
2735
+ type: "tuple",
2736
+ components: [
2737
+ { name: "commenter", internalType: "address", type: "address" },
2738
+ { name: "contractAddress", internalType: "address", type: "address" },
2739
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2740
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2741
+ ]
2742
+ }
2743
+ ],
2744
+ name: "hashAndCheckCommentExists",
2745
+ outputs: [
2746
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
2747
+ { name: "exists", internalType: "bool", type: "bool" }
2748
+ ]
2749
+ },
2750
+ {
2751
+ stateMutability: "view",
2752
+ type: "function",
2753
+ inputs: [
2754
+ {
2755
+ name: "commentIdentifier",
2756
+ internalType: "struct IComments.CommentIdentifier",
2757
+ type: "tuple",
2758
+ components: [
2759
+ { name: "commenter", internalType: "address", type: "address" },
2760
+ { name: "contractAddress", internalType: "address", type: "address" },
2761
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2762
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2763
+ ]
2764
+ }
2765
+ ],
2766
+ name: "hashAndValidateCommentExists",
2767
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
2768
+ },
2769
+ {
2770
+ stateMutability: "pure",
2771
+ type: "function",
2772
+ inputs: [
2773
+ {
2774
+ name: "commentIdentifier",
2775
+ internalType: "struct IComments.CommentIdentifier",
2776
+ type: "tuple",
2777
+ components: [
2778
+ { name: "commenter", internalType: "address", type: "address" },
2779
+ { name: "contractAddress", internalType: "address", type: "address" },
2780
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2781
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2782
+ ]
2783
+ }
2784
+ ],
2785
+ name: "hashCommentIdentifier",
2786
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2787
+ },
2788
+ {
2789
+ stateMutability: "view",
2790
+ type: "function",
2791
+ inputs: [
2792
+ {
2793
+ name: "permit",
2794
+ internalType: "struct IComments.PermitComment",
2795
+ type: "tuple",
2796
+ components: [
2797
+ { name: "commenter", internalType: "address", type: "address" },
2798
+ {
2799
+ name: "commenterSmartWallet",
2800
+ internalType: "address",
2801
+ type: "address"
2802
+ },
2803
+ { name: "contractAddress", internalType: "address", type: "address" },
2804
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2805
+ {
2806
+ name: "replyTo",
2807
+ internalType: "struct IComments.CommentIdentifier",
2808
+ type: "tuple",
2809
+ components: [
2810
+ { name: "commenter", internalType: "address", type: "address" },
2811
+ {
2812
+ name: "contractAddress",
2813
+ internalType: "address",
2814
+ type: "address"
2815
+ },
2816
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2817
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2818
+ ]
2819
+ },
2820
+ { name: "text", internalType: "string", type: "string" },
2821
+ { name: "referrer", internalType: "address", type: "address" },
2822
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2823
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
2824
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2825
+ {
2826
+ name: "destinationChainId",
2827
+ internalType: "uint32",
2828
+ type: "uint32"
2829
+ }
2830
+ ]
2831
+ }
2832
+ ],
2833
+ name: "hashPermitComment",
2834
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2835
+ },
2836
+ {
2837
+ stateMutability: "view",
2838
+ type: "function",
2839
+ inputs: [
2840
+ {
2841
+ name: "permit",
2842
+ internalType: "struct IComments.PermitSparkComment",
2843
+ type: "tuple",
2844
+ components: [
2845
+ {
2846
+ name: "comment",
2847
+ internalType: "struct IComments.CommentIdentifier",
2848
+ type: "tuple",
2849
+ components: [
2850
+ { name: "commenter", internalType: "address", type: "address" },
2851
+ {
2852
+ name: "contractAddress",
2853
+ internalType: "address",
2854
+ type: "address"
2855
+ },
2856
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2857
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2858
+ ]
2859
+ },
2860
+ { name: "sparker", internalType: "address", type: "address" },
2861
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2862
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2863
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
2864
+ { name: "referrer", internalType: "address", type: "address" },
2865
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2866
+ {
2867
+ name: "destinationChainId",
2868
+ internalType: "uint32",
2869
+ type: "uint32"
2870
+ }
2871
+ ]
2872
+ }
2873
+ ],
2874
+ name: "hashPermitSparkComment",
2875
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2876
+ },
2877
+ {
2878
+ stateMutability: "view",
2879
+ type: "function",
2880
+ inputs: [],
2881
+ name: "implementation",
2882
+ outputs: [{ name: "", internalType: "address", type: "address" }]
2883
+ },
2884
+ {
2885
+ stateMutability: "nonpayable",
2886
+ type: "function",
2887
+ inputs: [
2888
+ { name: "defaultAdmin", internalType: "address", type: "address" },
2889
+ { name: "backfiller", internalType: "address", type: "address" },
2890
+ {
2891
+ name: "delegateCommenters",
2892
+ internalType: "address[]",
2893
+ type: "address[]"
2894
+ }
2895
+ ],
2896
+ name: "initialize",
2897
+ outputs: []
2898
+ },
2899
+ {
2900
+ stateMutability: "view",
2901
+ type: "function",
2902
+ inputs: [],
2903
+ name: "nextNonce",
2904
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
2905
+ },
2906
+ {
2907
+ stateMutability: "view",
2908
+ type: "function",
2909
+ inputs: [
2910
+ { name: "owner", internalType: "address", type: "address" },
2911
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2912
+ ],
2913
+ name: "nonceUsed",
2914
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
2915
+ },
2916
+ {
2917
+ stateMutability: "payable",
2918
+ type: "function",
2919
+ inputs: [
2920
+ {
2921
+ name: "permit",
2922
+ internalType: "struct IComments.PermitComment",
2923
+ type: "tuple",
2924
+ components: [
2925
+ { name: "commenter", internalType: "address", type: "address" },
2926
+ {
2927
+ name: "commenterSmartWallet",
2928
+ internalType: "address",
2929
+ type: "address"
2930
+ },
2931
+ { name: "contractAddress", internalType: "address", type: "address" },
2932
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2933
+ {
2934
+ name: "replyTo",
2935
+ internalType: "struct IComments.CommentIdentifier",
2936
+ type: "tuple",
2937
+ components: [
2938
+ { name: "commenter", internalType: "address", type: "address" },
2939
+ {
2940
+ name: "contractAddress",
2941
+ internalType: "address",
2942
+ type: "address"
2943
+ },
2944
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2945
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2946
+ ]
2947
+ },
2948
+ { name: "text", internalType: "string", type: "string" },
2949
+ { name: "referrer", internalType: "address", type: "address" },
2950
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2951
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
2952
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2953
+ {
2954
+ name: "destinationChainId",
2955
+ internalType: "uint32",
2956
+ type: "uint32"
2957
+ }
2958
+ ]
2959
+ },
2960
+ { name: "signature", internalType: "bytes", type: "bytes" }
2961
+ ],
2962
+ name: "permitComment",
2963
+ outputs: []
2964
+ },
2965
+ {
2966
+ stateMutability: "payable",
2967
+ type: "function",
2968
+ inputs: [
2969
+ {
2970
+ name: "permit",
2971
+ internalType: "struct IComments.PermitSparkComment",
2972
+ type: "tuple",
2973
+ components: [
2974
+ {
2975
+ name: "comment",
2976
+ internalType: "struct IComments.CommentIdentifier",
2977
+ type: "tuple",
2978
+ components: [
2979
+ { name: "commenter", internalType: "address", type: "address" },
2980
+ {
2981
+ name: "contractAddress",
2982
+ internalType: "address",
2983
+ type: "address"
2984
+ },
2985
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
2986
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2987
+ ]
2988
+ },
2989
+ { name: "sparker", internalType: "address", type: "address" },
2990
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2991
+ { name: "deadline", internalType: "uint256", type: "uint256" },
2992
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
2993
+ { name: "referrer", internalType: "address", type: "address" },
2994
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2995
+ {
2996
+ name: "destinationChainId",
2997
+ internalType: "uint32",
2998
+ type: "uint32"
2999
+ }
3000
+ ]
3001
+ },
3002
+ { name: "signature", internalType: "bytes", type: "bytes" }
3003
+ ],
3004
+ name: "permitSparkComment",
3005
+ outputs: []
3006
+ },
3007
+ {
3008
+ stateMutability: "view",
3009
+ type: "function",
3010
+ inputs: [],
3011
+ name: "protocolRewards",
3012
+ outputs: [
3013
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
3014
+ ]
3015
+ },
3016
+ {
3017
+ stateMutability: "view",
3018
+ type: "function",
3019
+ inputs: [],
3020
+ name: "proxiableUUID",
3021
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
3022
+ },
3023
+ {
3024
+ stateMutability: "nonpayable",
3025
+ type: "function",
3026
+ inputs: [
3027
+ { name: "role", internalType: "bytes32", type: "bytes32" },
3028
+ { name: "callerConfirmation", internalType: "address", type: "address" }
3029
+ ],
3030
+ name: "renounceRole",
3031
+ outputs: []
3032
+ },
3033
+ {
3034
+ stateMutability: "nonpayable",
3035
+ type: "function",
3036
+ inputs: [
3037
+ { name: "role", internalType: "bytes32", type: "bytes32" },
3038
+ { name: "account", internalType: "address", type: "address" }
3039
+ ],
3040
+ name: "revokeRole",
3041
+ outputs: []
3042
+ },
3043
+ {
3044
+ stateMutability: "payable",
3045
+ type: "function",
3046
+ inputs: [
3047
+ {
3048
+ name: "commentIdentifier",
3049
+ internalType: "struct IComments.CommentIdentifier",
3050
+ type: "tuple",
3051
+ components: [
3052
+ { name: "commenter", internalType: "address", type: "address" },
3053
+ { name: "contractAddress", internalType: "address", type: "address" },
3054
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3055
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3056
+ ]
3057
+ },
3058
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
3059
+ { name: "referrer", internalType: "address", type: "address" }
3060
+ ],
3061
+ name: "sparkComment",
3062
+ outputs: []
3063
+ },
3064
+ {
3065
+ stateMutability: "view",
3066
+ type: "function",
3067
+ inputs: [],
3068
+ name: "sparkValue",
3069
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
3070
+ },
3071
+ {
3072
+ stateMutability: "view",
3073
+ type: "function",
3074
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
3075
+ name: "supportsInterface",
3076
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
3077
+ },
3078
+ {
3079
+ stateMutability: "payable",
3080
+ type: "function",
3081
+ inputs: [
3082
+ { name: "newImplementation", internalType: "address", type: "address" },
3083
+ { name: "data", internalType: "bytes", type: "bytes" }
3084
+ ],
3085
+ name: "upgradeToAndCall",
3086
+ outputs: []
3087
+ },
3088
+ {
3089
+ type: "event",
3090
+ anonymous: false,
3091
+ inputs: [
3092
+ {
3093
+ name: "commentId",
3094
+ internalType: "bytes32",
3095
+ type: "bytes32",
3096
+ indexed: true
3097
+ },
3098
+ {
3099
+ name: "commentIdentifier",
3100
+ internalType: "struct IComments.CommentIdentifier",
3101
+ type: "tuple",
3102
+ components: [
3103
+ { name: "commenter", internalType: "address", type: "address" },
3104
+ { name: "contractAddress", internalType: "address", type: "address" },
3105
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3106
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3107
+ ],
3108
+ indexed: false
3109
+ },
3110
+ { name: "text", internalType: "string", type: "string", indexed: false },
3111
+ {
3112
+ name: "timestamp",
3113
+ internalType: "uint256",
3114
+ type: "uint256",
3115
+ indexed: false
3116
+ },
3117
+ {
3118
+ name: "originalTransactionId",
3119
+ internalType: "bytes32",
3120
+ type: "bytes32",
3121
+ indexed: false
3122
+ }
3123
+ ],
3124
+ name: "BackfilledComment"
3125
+ },
3126
+ {
3127
+ type: "event",
3128
+ anonymous: false,
3129
+ inputs: [
3130
+ {
3131
+ name: "commentId",
3132
+ internalType: "bytes32",
3133
+ type: "bytes32",
3134
+ indexed: true
3135
+ },
3136
+ {
3137
+ name: "commentIdentifier",
3138
+ internalType: "struct IComments.CommentIdentifier",
3139
+ type: "tuple",
3140
+ components: [
3141
+ { name: "commenter", internalType: "address", type: "address" },
3142
+ { name: "contractAddress", internalType: "address", type: "address" },
3143
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3144
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3145
+ ],
3146
+ indexed: false
3147
+ },
3148
+ {
3149
+ name: "replyToId",
3150
+ internalType: "bytes32",
3151
+ type: "bytes32",
3152
+ indexed: false
3153
+ },
3154
+ {
3155
+ name: "replyTo",
3156
+ internalType: "struct IComments.CommentIdentifier",
3157
+ type: "tuple",
3158
+ components: [
3159
+ { name: "commenter", internalType: "address", type: "address" },
3160
+ { name: "contractAddress", internalType: "address", type: "address" },
3161
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3162
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3163
+ ],
3164
+ indexed: false
3165
+ },
3166
+ {
3167
+ name: "sparksQuantity",
3168
+ internalType: "uint256",
3169
+ type: "uint256",
3170
+ indexed: false
3171
+ },
3172
+ { name: "text", internalType: "string", type: "string", indexed: false },
3173
+ {
3174
+ name: "timestamp",
3175
+ internalType: "uint256",
3176
+ type: "uint256",
3177
+ indexed: false
3178
+ },
3179
+ {
3180
+ name: "referrer",
3181
+ internalType: "address",
3182
+ type: "address",
3183
+ indexed: false
3184
+ }
3185
+ ],
3186
+ name: "Commented"
3187
+ },
3188
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
3189
+ {
3190
+ type: "event",
3191
+ anonymous: false,
3192
+ inputs: [
3193
+ {
3194
+ name: "version",
3195
+ internalType: "uint64",
3196
+ type: "uint64",
3197
+ indexed: false
3198
+ }
3199
+ ],
3200
+ name: "Initialized"
3201
+ },
3202
+ {
3203
+ type: "event",
3204
+ anonymous: false,
3205
+ inputs: [
3206
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3207
+ {
3208
+ name: "previousAdminRole",
3209
+ internalType: "bytes32",
3210
+ type: "bytes32",
3211
+ indexed: true
3212
+ },
3213
+ {
3214
+ name: "newAdminRole",
3215
+ internalType: "bytes32",
3216
+ type: "bytes32",
3217
+ indexed: true
3218
+ }
3219
+ ],
3220
+ name: "RoleAdminChanged"
3221
+ },
3222
+ {
3223
+ type: "event",
3224
+ anonymous: false,
3225
+ inputs: [
3226
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3227
+ {
3228
+ name: "account",
3229
+ internalType: "address",
3230
+ type: "address",
3231
+ indexed: true
3232
+ },
3233
+ {
3234
+ name: "sender",
3235
+ internalType: "address",
3236
+ type: "address",
3237
+ indexed: true
3238
+ }
3239
+ ],
3240
+ name: "RoleGranted"
3241
+ },
3242
+ {
3243
+ type: "event",
3244
+ anonymous: false,
3245
+ inputs: [
3246
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
3247
+ {
3248
+ name: "account",
3249
+ internalType: "address",
3250
+ type: "address",
3251
+ indexed: true
3252
+ },
3253
+ {
3254
+ name: "sender",
3255
+ internalType: "address",
3256
+ type: "address",
3257
+ indexed: true
3258
+ }
3259
+ ],
3260
+ name: "RoleRevoked"
3261
+ },
3262
+ {
3263
+ type: "event",
3264
+ anonymous: false,
3265
+ inputs: [
3266
+ {
3267
+ name: "commentId",
3268
+ internalType: "bytes32",
3269
+ type: "bytes32",
3270
+ indexed: true
3271
+ },
3272
+ {
3273
+ name: "commentIdentifier",
3274
+ internalType: "struct IComments.CommentIdentifier",
3275
+ type: "tuple",
3276
+ components: [
3277
+ { name: "commenter", internalType: "address", type: "address" },
3278
+ { name: "contractAddress", internalType: "address", type: "address" },
3279
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
3280
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
3281
+ ],
3282
+ indexed: false
3283
+ },
3284
+ {
3285
+ name: "sparksQuantity",
3286
+ internalType: "uint256",
3287
+ type: "uint256",
3288
+ indexed: false
3289
+ },
3290
+ {
3291
+ name: "sparker",
3292
+ internalType: "address",
3293
+ type: "address",
3294
+ indexed: false
3295
+ },
3296
+ {
3297
+ name: "timestamp",
3298
+ internalType: "uint256",
3299
+ type: "uint256",
3300
+ indexed: false
3301
+ },
3302
+ {
3303
+ name: "referrer",
3304
+ internalType: "address",
3305
+ type: "address",
3306
+ indexed: false
3307
+ }
3308
+ ],
3309
+ name: "SparkedComment"
3310
+ },
3311
+ {
3312
+ type: "event",
3313
+ anonymous: false,
3314
+ inputs: [
3315
+ {
3316
+ name: "implementation",
3317
+ internalType: "address",
3318
+ type: "address",
3319
+ indexed: true
3320
+ }
3321
+ ],
3322
+ name: "Upgraded"
3323
+ },
3324
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
3325
+ {
3326
+ type: "error",
3327
+ inputs: [
3328
+ { name: "account", internalType: "address", type: "address" },
3329
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
3330
+ ],
3331
+ name: "AccessControlUnauthorizedAccount"
3332
+ },
3333
+ {
3334
+ type: "error",
3335
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
3336
+ name: "AddressEmptyCode"
3337
+ },
3338
+ { type: "error", inputs: [], name: "AddressZero" },
3339
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
3340
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
3341
+ {
3342
+ type: "error",
3343
+ inputs: [
3344
+ { name: "commentAddress", internalType: "address", type: "address" },
3345
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
3346
+ { name: "replyAddress", internalType: "address", type: "address" },
3347
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
3348
+ ],
3349
+ name: "CommentAddressOrTokenIdsDoNotMatch"
3350
+ },
3351
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
3352
+ {
3353
+ type: "error",
3354
+ inputs: [
3355
+ { name: "expected", internalType: "address", type: "address" },
3356
+ { name: "actual", internalType: "address", type: "address" }
3357
+ ],
3358
+ name: "CommenterMismatch"
3359
+ },
3360
+ {
3361
+ type: "error",
3362
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
3363
+ name: "DuplicateComment"
3364
+ },
3365
+ {
3366
+ type: "error",
3367
+ inputs: [
3368
+ { name: "implementation", internalType: "address", type: "address" }
3369
+ ],
3370
+ name: "ERC1967InvalidImplementation"
3371
+ },
3372
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
3373
+ {
3374
+ type: "error",
3375
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
3376
+ name: "ERC2612ExpiredSignature"
3377
+ },
3378
+ { type: "error", inputs: [], name: "EmptyComment" },
3379
+ { type: "error", inputs: [], name: "FailedInnerCall" },
3380
+ {
3381
+ type: "error",
3382
+ inputs: [
3383
+ {
3384
+ name: "wrongDestinationChainId",
3385
+ internalType: "uint256",
3386
+ type: "uint256"
3387
+ }
3388
+ ],
3389
+ name: "IncorrectDestinationChain"
3390
+ },
3391
+ {
3392
+ type: "error",
3393
+ inputs: [
3394
+ { name: "actual", internalType: "uint256", type: "uint256" },
3395
+ { name: "expected", internalType: "uint256", type: "uint256" }
3396
+ ],
3397
+ name: "IncorrectETHAmountForSparks"
3398
+ },
3399
+ {
3400
+ type: "error",
3401
+ inputs: [
3402
+ { name: "account", internalType: "address", type: "address" },
3403
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
3404
+ ],
3405
+ name: "InvalidAccountNonce"
3406
+ },
3407
+ { type: "error", inputs: [], name: "InvalidInitialization" },
3408
+ { type: "error", inputs: [], name: "InvalidSignature" },
3409
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
3410
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
3411
+ { type: "error", inputs: [], name: "NotInitializing" },
3412
+ { type: "error", inputs: [], name: "NotSmartWallet" },
3413
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
3414
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
3415
+ { type: "error", inputs: [], name: "OnlySparksContract" },
3416
+ { type: "error", inputs: [], name: "TransferFailed" },
3417
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3418
+ {
3419
+ type: "error",
3420
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
3421
+ name: "UUPSUnsupportedProxiableUUID"
3422
+ },
3423
+ {
3424
+ type: "error",
3425
+ inputs: [
3426
+ { name: "currentName", internalType: "string", type: "string" },
3427
+ { name: "newName", internalType: "string", type: "string" }
3428
+ ],
3429
+ name: "UpgradeToMismatchedContractName"
3430
+ }
3431
+ ];
3432
+ var commentsAddress = {
3433
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
3434
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
3435
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
3436
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
3437
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
3438
+ };
3439
+ var commentsConfig = {
3440
+ address: commentsAddress,
3441
+ abi: commentsABI
3442
+ };
1636
3443
  var erc20MinterABI = [
1637
3444
  {
1638
3445
  stateMutability: "nonpayable",
@@ -12184,6 +13991,57 @@ var zoraTimedSaleStrategyConfig = {
12184
13991
  abi: zoraTimedSaleStrategyABI
12185
13992
  };
12186
13993
 
13994
+ // ../../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
13995
+ init_base();
13996
+ var InvalidDecimalNumberError = class extends BaseError {
13997
+ constructor({ value }) {
13998
+ super(`Number \`${value}\` is not a valid decimal number.`, {
13999
+ name: "InvalidDecimalNumberError"
14000
+ });
14001
+ }
14002
+ };
14003
+
14004
+ // ../../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
14005
+ function parseUnits(value, decimals) {
14006
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
14007
+ throw new InvalidDecimalNumberError({ value });
14008
+ let [integer, fraction = "0"] = value.split(".");
14009
+ const negative = integer.startsWith("-");
14010
+ if (negative)
14011
+ integer = integer.slice(1);
14012
+ fraction = fraction.replace(/(0+)$/, "");
14013
+ if (decimals === 0) {
14014
+ if (Math.round(Number(`.${fraction}`)) === 1)
14015
+ integer = `${BigInt(integer) + 1n}`;
14016
+ fraction = "";
14017
+ } else if (fraction.length > decimals) {
14018
+ const [left, unit, right] = [
14019
+ fraction.slice(0, decimals - 1),
14020
+ fraction.slice(decimals - 1, decimals),
14021
+ fraction.slice(decimals)
14022
+ ];
14023
+ const rounded = Math.round(Number(`${unit}.${right}`));
14024
+ if (rounded > 9)
14025
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
14026
+ else
14027
+ fraction = `${left}${rounded}`;
14028
+ if (fraction.length > decimals) {
14029
+ fraction = fraction.slice(1);
14030
+ integer = `${BigInt(integer) + 1n}`;
14031
+ }
14032
+ fraction = fraction.slice(0, decimals);
14033
+ } else {
14034
+ fraction = fraction.padEnd(decimals, "0");
14035
+ }
14036
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
14037
+ }
14038
+
14039
+ // ../../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
14040
+ init_unit();
14041
+ function parseEther(ether, unit = "wei") {
14042
+ return parseUnits(ether, etherUnits[unit]);
14043
+ }
14044
+
12187
14045
  // ../../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
12188
14046
  init_encodeAbiParameters();
12189
14047
  init_getAbiItem();
@@ -12197,6 +14055,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
12197
14055
  PremintConfigVersion2["V3"] = "3";
12198
14056
  return PremintConfigVersion2;
12199
14057
  })(PremintConfigVersion || {});
14058
+ var emptyCommentIdentifier = () => {
14059
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
14060
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
14061
+ return {
14062
+ commenter: zeroAddress,
14063
+ contractAddress: zeroAddress,
14064
+ tokenId: 0n,
14065
+ nonce: zeroHash
14066
+ };
14067
+ };
12200
14068
 
12201
14069
  // src/typedData.ts
12202
14070
  var premintTypedDataDomain = ({
@@ -12487,6 +14355,104 @@ var sponsoredSparksBatchTypedDataDefinition = ({
12487
14355
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
12488
14356
  }
12489
14357
  });
14358
+ var commentIdentifierType = [
14359
+ { name: "contractAddress", type: "address" },
14360
+ { name: "tokenId", type: "uint256" },
14361
+ { name: "commenter", type: "address" },
14362
+ { name: "nonce", type: "bytes32" }
14363
+ ];
14364
+ var permitCommentTypedDataType = {
14365
+ PermitComment: [
14366
+ { name: "contractAddress", type: "address" },
14367
+ { name: "tokenId", type: "uint256" },
14368
+ { name: "commenter", type: "address" },
14369
+ { name: "replyTo", type: "CommentIdentifier" },
14370
+ { name: "text", type: "string" },
14371
+ { name: "deadline", type: "uint256" },
14372
+ { name: "nonce", type: "bytes32" },
14373
+ { name: "commenterSmartWallet", type: "address" },
14374
+ { name: "referrer", type: "address" },
14375
+ { name: "sourceChainId", type: "uint32" },
14376
+ { name: "destinationChainId", type: "uint32" }
14377
+ ],
14378
+ CommentIdentifier: commentIdentifierType
14379
+ };
14380
+ var permitSparkCommentTypedDataType = {
14381
+ PermitSparkComment: [
14382
+ { name: "comment", type: "CommentIdentifier" },
14383
+ { name: "sparker", type: "address" },
14384
+ { name: "sparksQuantity", type: "uint256" },
14385
+ { name: "deadline", type: "uint256" },
14386
+ { name: "nonce", type: "bytes32" },
14387
+ { name: "referrer", type: "address" },
14388
+ { name: "sourceChainId", type: "uint32" },
14389
+ { name: "destinationChainId", type: "uint32" }
14390
+ ],
14391
+ CommentIdentifier: commentIdentifierType
14392
+ };
14393
+ var commentsDomain = ({
14394
+ signingChainId,
14395
+ destinationChainId
14396
+ }) => ({
14397
+ chainId: signingChainId,
14398
+ name: "Comments",
14399
+ version: "1",
14400
+ verifyingContract: commentsAddress[destinationChainId]
14401
+ });
14402
+ var permitCommentTypedDataDefinition = (message, signingAccount) => ({
14403
+ types: permitCommentTypedDataType,
14404
+ message,
14405
+ primaryType: "PermitComment",
14406
+ domain: commentsDomain({
14407
+ signingChainId: message.sourceChainId,
14408
+ destinationChainId: message.destinationChainId
14409
+ }),
14410
+ account: signingAccount || message.commenter
14411
+ });
14412
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
14413
+ types: permitSparkCommentTypedDataType,
14414
+ message,
14415
+ primaryType: "PermitSparkComment",
14416
+ domain: commentsDomain({
14417
+ signingChainId: message.sourceChainId,
14418
+ destinationChainId: message.destinationChainId
14419
+ }),
14420
+ account: signingAccount || message.sparker
14421
+ });
14422
+ var sparkValue = () => parseEther("0.000001");
14423
+ var permitTimedSaleMintAndCommentTypedDataType = {
14424
+ PermitTimedSaleMintAndComment: [
14425
+ { name: "commenter", type: "address" },
14426
+ { name: "quantity", type: "uint256" },
14427
+ { name: "collection", type: "address" },
14428
+ { name: "tokenId", type: "uint256" },
14429
+ { name: "mintReferral", type: "address" },
14430
+ { name: "comment", type: "string" },
14431
+ { name: "deadline", type: "uint256" },
14432
+ { name: "nonce", type: "bytes32" },
14433
+ { name: "sourceChainId", type: "uint32" },
14434
+ { name: "destinationChainId", type: "uint32" }
14435
+ ]
14436
+ };
14437
+ var callerAndCommenterDomain = ({
14438
+ signingChainId,
14439
+ destinationChainId
14440
+ }) => ({
14441
+ name: "CallerAndCommenter",
14442
+ version: "1",
14443
+ chainId: signingChainId,
14444
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
14445
+ });
14446
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => ({
14447
+ types: permitTimedSaleMintAndCommentTypedDataType,
14448
+ message,
14449
+ primaryType: "PermitTimedSaleMintAndComment",
14450
+ domain: callerAndCommenterDomain({
14451
+ signingChainId: message.sourceChainId,
14452
+ destinationChainId: message.destinationChainId
14453
+ }),
14454
+ account: signingAccount || message.commenter
14455
+ });
12490
14456
 
12491
14457
  // src/encoding.ts
12492
14458
  var safeTransferSwapAbiParameters = [
@@ -12826,7 +14792,14 @@ var addresses2 = {
12826
14792
  // Annotate the CommonJS export names for ESM import in node:
12827
14793
  0 && (module.exports = {
12828
14794
  PremintConfigVersion,
14795
+ callerAndCommenterABI,
14796
+ callerAndCommenterAddress,
14797
+ callerAndCommenterConfig,
14798
+ commentsABI,
14799
+ commentsAddress,
14800
+ commentsConfig,
12829
14801
  contracts1155,
14802
+ emptyCommentIdentifier,
12830
14803
  encodePremintConfig,
12831
14804
  erc20MinterABI,
12832
14805
  erc20MinterAddress,
@@ -12843,6 +14816,9 @@ var addresses2 = {
12843
14816
  mintsEthUnwrapperAndCallerConfig,
12844
14817
  mintsSafeTransferBatchTypedDataDefinition,
12845
14818
  mintsSafeTransferTypedDataDefinition,
14819
+ permitCommentTypedDataDefinition,
14820
+ permitMintAndCommentTypedDataDefinition,
14821
+ permitSparkCommentTypedDataDefinition,
12846
14822
  premintTypedDataDefinition,
12847
14823
  premintV1TypedDataDefinition,
12848
14824
  premintV2TypedDataDefinition,
@@ -12853,6 +14829,7 @@ var addresses2 = {
12853
14829
  secondarySwapABI,
12854
14830
  secondarySwapAddress,
12855
14831
  secondarySwapConfig,
14832
+ sparkValue,
12856
14833
  sparks,
12857
14834
  sponsoredSparksBatchTransferTypedDataType,
12858
14835
  sponsoredSparksBatchTypedDataDefinition,