@zoralabs/protocol-deployments 0.3.4 → 0.3.5-COMMENTS.1
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/.turbo/turbo-build.log +21 -21
- package/CHANGELOG.md +16 -0
- package/dist/{ccip-42FQPB7J.js → ccip-TLVKUNHE.js} +2 -2
- package/dist/{chunk-YMRS2KON.js → chunk-IB365BT5.js} +3 -2
- package/dist/generated/wagmi.d.ts +2993 -2
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +1149 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1131 -2
- package/dist/index.js.map +1 -1
- package/dist/typedData.d.ts +128 -1
- package/dist/typedData.d.ts.map +1 -1
- package/dist/types.d.ts +21 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/wagmi.ts +1026 -1
- package/src/typedData.ts +124 -0
- package/src/types.ts +42 -0
- /package/dist/{ccip-42FQPB7J.js.map → ccip-TLVKUNHE.js.map} +0 -0
- /package/dist/{chunk-YMRS2KON.js.map → chunk-IB365BT5.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1609,11 +1609,27 @@ var init_getAbiItem = __esm({
|
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
|
|
1612
|
+
// ../../node_modules/.pnpm/viem@2.18.0_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
|
|
1613
|
+
var etherUnits;
|
|
1614
|
+
var init_unit = __esm({
|
|
1615
|
+
"../../node_modules/.pnpm/viem@2.18.0_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"() {
|
|
1616
|
+
"use strict";
|
|
1617
|
+
etherUnits = {
|
|
1618
|
+
gwei: 9,
|
|
1619
|
+
wei: 18
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
|
|
1612
1624
|
// src/index.ts
|
|
1613
1625
|
var src_exports = {};
|
|
1614
1626
|
__export(src_exports, {
|
|
1615
1627
|
PremintConfigVersion: () => PremintConfigVersion,
|
|
1628
|
+
commentsABI: () => commentsABI,
|
|
1629
|
+
commentsAddress: () => commentsAddress,
|
|
1630
|
+
commentsConfig: () => commentsConfig,
|
|
1616
1631
|
contracts1155: () => __exports,
|
|
1632
|
+
emptyCommentIdentifier: () => emptyCommentIdentifier,
|
|
1617
1633
|
encodePremintConfig: () => encodePremintConfig,
|
|
1618
1634
|
erc20MinterABI: () => erc20MinterABI,
|
|
1619
1635
|
erc20MinterAddress: () => erc20MinterAddress,
|
|
@@ -1630,6 +1646,8 @@ __export(src_exports, {
|
|
|
1630
1646
|
mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
|
|
1631
1647
|
mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
|
|
1632
1648
|
mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
|
|
1649
|
+
permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
|
|
1650
|
+
permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
|
|
1633
1651
|
premintTypedDataDefinition: () => premintTypedDataDefinition,
|
|
1634
1652
|
premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
|
|
1635
1653
|
premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
|
|
@@ -1640,6 +1658,7 @@ __export(src_exports, {
|
|
|
1640
1658
|
secondarySwapABI: () => secondarySwapABI,
|
|
1641
1659
|
secondarySwapAddress: () => secondarySwapAddress,
|
|
1642
1660
|
secondarySwapConfig: () => secondarySwapConfig,
|
|
1661
|
+
sparkValue: () => sparkValue,
|
|
1643
1662
|
sparks: () => sparks_exports,
|
|
1644
1663
|
sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
|
|
1645
1664
|
sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
|
|
@@ -1687,6 +1706,949 @@ __export(src_exports, {
|
|
|
1687
1706
|
module.exports = __toCommonJS(src_exports);
|
|
1688
1707
|
|
|
1689
1708
|
// src/generated/wagmi.ts
|
|
1709
|
+
var commentsABI = [
|
|
1710
|
+
{
|
|
1711
|
+
stateMutability: "nonpayable",
|
|
1712
|
+
type: "constructor",
|
|
1713
|
+
inputs: [
|
|
1714
|
+
{ name: "_sparkValue", internalType: "uint256", type: "uint256" },
|
|
1715
|
+
{ name: "_protocolRewards", internalType: "address", type: "address" }
|
|
1716
|
+
]
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
stateMutability: "view",
|
|
1720
|
+
type: "function",
|
|
1721
|
+
inputs: [],
|
|
1722
|
+
name: "BACKFILLER_ROLE",
|
|
1723
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
stateMutability: "view",
|
|
1727
|
+
type: "function",
|
|
1728
|
+
inputs: [],
|
|
1729
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
1730
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
stateMutability: "view",
|
|
1734
|
+
type: "function",
|
|
1735
|
+
inputs: [],
|
|
1736
|
+
name: "DELEGATE_COMMENTOR",
|
|
1737
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
stateMutability: "view",
|
|
1741
|
+
type: "function",
|
|
1742
|
+
inputs: [],
|
|
1743
|
+
name: "DOMAIN_NAME",
|
|
1744
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
stateMutability: "view",
|
|
1748
|
+
type: "function",
|
|
1749
|
+
inputs: [],
|
|
1750
|
+
name: "DOMAIN_VERSION",
|
|
1751
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
stateMutability: "view",
|
|
1755
|
+
type: "function",
|
|
1756
|
+
inputs: [],
|
|
1757
|
+
name: "PERMISSION_BIT_ADMIN",
|
|
1758
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
stateMutability: "view",
|
|
1762
|
+
type: "function",
|
|
1763
|
+
inputs: [],
|
|
1764
|
+
name: "REFERRER_REWARD_PCT",
|
|
1765
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
stateMutability: "view",
|
|
1769
|
+
type: "function",
|
|
1770
|
+
inputs: [],
|
|
1771
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
1772
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
stateMutability: "view",
|
|
1776
|
+
type: "function",
|
|
1777
|
+
inputs: [],
|
|
1778
|
+
name: "ZORA_REWARD_NO_REFERRER_PCT",
|
|
1779
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
stateMutability: "view",
|
|
1783
|
+
type: "function",
|
|
1784
|
+
inputs: [],
|
|
1785
|
+
name: "ZORA_REWARD_PCT",
|
|
1786
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
stateMutability: "nonpayable",
|
|
1790
|
+
type: "function",
|
|
1791
|
+
inputs: [
|
|
1792
|
+
{
|
|
1793
|
+
name: "commentIdentifiers",
|
|
1794
|
+
internalType: "struct IComments.CommentIdentifier[]",
|
|
1795
|
+
type: "tuple[]",
|
|
1796
|
+
components: [
|
|
1797
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1798
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1799
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1800
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1803
|
+
{ name: "texts", internalType: "string[]", type: "string[]" },
|
|
1804
|
+
{ name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
|
|
1805
|
+
{
|
|
1806
|
+
name: "originalTransactionHashes",
|
|
1807
|
+
internalType: "bytes32[]",
|
|
1808
|
+
type: "bytes32[]"
|
|
1809
|
+
}
|
|
1810
|
+
],
|
|
1811
|
+
name: "backfillBatchAddComment",
|
|
1812
|
+
outputs: []
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
stateMutability: "payable",
|
|
1816
|
+
type: "function",
|
|
1817
|
+
inputs: [
|
|
1818
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1819
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1820
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1821
|
+
{ name: "text", internalType: "string", type: "string" },
|
|
1822
|
+
{
|
|
1823
|
+
name: "replyTo",
|
|
1824
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1825
|
+
type: "tuple",
|
|
1826
|
+
components: [
|
|
1827
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1828
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1829
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1830
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1831
|
+
]
|
|
1832
|
+
},
|
|
1833
|
+
{ name: "referrer", internalType: "address", type: "address" }
|
|
1834
|
+
],
|
|
1835
|
+
name: "comment",
|
|
1836
|
+
outputs: [
|
|
1837
|
+
{
|
|
1838
|
+
name: "commentIdentifier",
|
|
1839
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1840
|
+
type: "tuple",
|
|
1841
|
+
components: [
|
|
1842
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1843
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1844
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1845
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1846
|
+
]
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
stateMutability: "view",
|
|
1852
|
+
type: "function",
|
|
1853
|
+
inputs: [
|
|
1854
|
+
{
|
|
1855
|
+
name: "commentIdentifier",
|
|
1856
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1857
|
+
type: "tuple",
|
|
1858
|
+
components: [
|
|
1859
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1860
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1861
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1862
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1863
|
+
]
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
name: "commentSparksQuantity",
|
|
1867
|
+
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
stateMutability: "pure",
|
|
1871
|
+
type: "function",
|
|
1872
|
+
inputs: [],
|
|
1873
|
+
name: "contractName",
|
|
1874
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
stateMutability: "pure",
|
|
1878
|
+
type: "function",
|
|
1879
|
+
inputs: [],
|
|
1880
|
+
name: "contractVersion",
|
|
1881
|
+
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
stateMutability: "nonpayable",
|
|
1885
|
+
type: "function",
|
|
1886
|
+
inputs: [
|
|
1887
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1888
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1889
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1890
|
+
{ name: "text", internalType: "string", type: "string" },
|
|
1891
|
+
{
|
|
1892
|
+
name: "replyTo",
|
|
1893
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1894
|
+
type: "tuple",
|
|
1895
|
+
components: [
|
|
1896
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1897
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1898
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1899
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1900
|
+
]
|
|
1901
|
+
}
|
|
1902
|
+
],
|
|
1903
|
+
name: "delegateComment",
|
|
1904
|
+
outputs: [
|
|
1905
|
+
{
|
|
1906
|
+
name: "commentIdentifier",
|
|
1907
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1908
|
+
type: "tuple",
|
|
1909
|
+
components: [
|
|
1910
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1911
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1912
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1913
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1914
|
+
]
|
|
1915
|
+
}
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
stateMutability: "view",
|
|
1920
|
+
type: "function",
|
|
1921
|
+
inputs: [],
|
|
1922
|
+
name: "eip712Domain",
|
|
1923
|
+
outputs: [
|
|
1924
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
1925
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
1926
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
1927
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
1928
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
1929
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
1930
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
1931
|
+
]
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
stateMutability: "view",
|
|
1935
|
+
type: "function",
|
|
1936
|
+
inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
|
|
1937
|
+
name: "getRoleAdmin",
|
|
1938
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
stateMutability: "nonpayable",
|
|
1942
|
+
type: "function",
|
|
1943
|
+
inputs: [
|
|
1944
|
+
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1945
|
+
{ name: "account", internalType: "address", type: "address" }
|
|
1946
|
+
],
|
|
1947
|
+
name: "grantRole",
|
|
1948
|
+
outputs: []
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
stateMutability: "view",
|
|
1952
|
+
type: "function",
|
|
1953
|
+
inputs: [
|
|
1954
|
+
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1955
|
+
{ name: "account", internalType: "address", type: "address" }
|
|
1956
|
+
],
|
|
1957
|
+
name: "hasRole",
|
|
1958
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
stateMutability: "view",
|
|
1962
|
+
type: "function",
|
|
1963
|
+
inputs: [
|
|
1964
|
+
{
|
|
1965
|
+
name: "commentIdentifier",
|
|
1966
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1967
|
+
type: "tuple",
|
|
1968
|
+
components: [
|
|
1969
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1970
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1971
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1972
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1973
|
+
]
|
|
1974
|
+
}
|
|
1975
|
+
],
|
|
1976
|
+
name: "hashAndCheckCommentExists",
|
|
1977
|
+
outputs: [
|
|
1978
|
+
{ name: "commentId", internalType: "bytes32", type: "bytes32" },
|
|
1979
|
+
{ name: "exists", internalType: "bool", type: "bool" }
|
|
1980
|
+
]
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
stateMutability: "view",
|
|
1984
|
+
type: "function",
|
|
1985
|
+
inputs: [
|
|
1986
|
+
{
|
|
1987
|
+
name: "commentIdentifier",
|
|
1988
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1989
|
+
type: "tuple",
|
|
1990
|
+
components: [
|
|
1991
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1992
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1993
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1994
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1995
|
+
]
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
name: "hashAndValidateCommentExists",
|
|
1999
|
+
outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
stateMutability: "pure",
|
|
2003
|
+
type: "function",
|
|
2004
|
+
inputs: [
|
|
2005
|
+
{
|
|
2006
|
+
name: "commentIdentifier",
|
|
2007
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2008
|
+
type: "tuple",
|
|
2009
|
+
components: [
|
|
2010
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2011
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2012
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2013
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2014
|
+
]
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
name: "hashCommentIdentifier",
|
|
2018
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
stateMutability: "view",
|
|
2022
|
+
type: "function",
|
|
2023
|
+
inputs: [
|
|
2024
|
+
{
|
|
2025
|
+
name: "permit",
|
|
2026
|
+
internalType: "struct IComments.PermitComment",
|
|
2027
|
+
type: "tuple",
|
|
2028
|
+
components: [
|
|
2029
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2030
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2031
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2032
|
+
{
|
|
2033
|
+
name: "replyTo",
|
|
2034
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2035
|
+
type: "tuple",
|
|
2036
|
+
components: [
|
|
2037
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2038
|
+
{
|
|
2039
|
+
name: "contractAddress",
|
|
2040
|
+
internalType: "address",
|
|
2041
|
+
type: "address"
|
|
2042
|
+
},
|
|
2043
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2044
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2045
|
+
]
|
|
2046
|
+
},
|
|
2047
|
+
{ name: "text", internalType: "string", type: "string" },
|
|
2048
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2049
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2050
|
+
{ name: "referrer", internalType: "address", type: "address" },
|
|
2051
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2052
|
+
{
|
|
2053
|
+
name: "destinationChainId",
|
|
2054
|
+
internalType: "uint32",
|
|
2055
|
+
type: "uint32"
|
|
2056
|
+
}
|
|
2057
|
+
]
|
|
2058
|
+
}
|
|
2059
|
+
],
|
|
2060
|
+
name: "hashPermitComment",
|
|
2061
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
stateMutability: "view",
|
|
2065
|
+
type: "function",
|
|
2066
|
+
inputs: [
|
|
2067
|
+
{
|
|
2068
|
+
name: "permit",
|
|
2069
|
+
internalType: "struct IComments.PermitSparkComment",
|
|
2070
|
+
type: "tuple",
|
|
2071
|
+
components: [
|
|
2072
|
+
{
|
|
2073
|
+
name: "comment",
|
|
2074
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2075
|
+
type: "tuple",
|
|
2076
|
+
components: [
|
|
2077
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2078
|
+
{
|
|
2079
|
+
name: "contractAddress",
|
|
2080
|
+
internalType: "address",
|
|
2081
|
+
type: "address"
|
|
2082
|
+
},
|
|
2083
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2084
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2085
|
+
]
|
|
2086
|
+
},
|
|
2087
|
+
{ name: "sparker", internalType: "address", type: "address" },
|
|
2088
|
+
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2089
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2090
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2091
|
+
{ name: "referrer", internalType: "address", type: "address" },
|
|
2092
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2093
|
+
{
|
|
2094
|
+
name: "destinationChainId",
|
|
2095
|
+
internalType: "uint32",
|
|
2096
|
+
type: "uint32"
|
|
2097
|
+
}
|
|
2098
|
+
]
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
name: "hashPermitSparkComment",
|
|
2102
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
stateMutability: "view",
|
|
2106
|
+
type: "function",
|
|
2107
|
+
inputs: [],
|
|
2108
|
+
name: "implementation",
|
|
2109
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
stateMutability: "nonpayable",
|
|
2113
|
+
type: "function",
|
|
2114
|
+
inputs: [
|
|
2115
|
+
{ name: "_zoraRecipient", internalType: "address", type: "address" },
|
|
2116
|
+
{ name: "defaultAdmin", internalType: "address", type: "address" },
|
|
2117
|
+
{ name: "backfiller", internalType: "address", type: "address" },
|
|
2118
|
+
{
|
|
2119
|
+
name: "delegateCommenters",
|
|
2120
|
+
internalType: "address[]",
|
|
2121
|
+
type: "address[]"
|
|
2122
|
+
}
|
|
2123
|
+
],
|
|
2124
|
+
name: "initialize",
|
|
2125
|
+
outputs: []
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
stateMutability: "view",
|
|
2129
|
+
type: "function",
|
|
2130
|
+
inputs: [],
|
|
2131
|
+
name: "nextNonce",
|
|
2132
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
stateMutability: "view",
|
|
2136
|
+
type: "function",
|
|
2137
|
+
inputs: [
|
|
2138
|
+
{ name: "owner", internalType: "address", type: "address" },
|
|
2139
|
+
{ name: "nonce", internalType: "uint256", type: "uint256" }
|
|
2140
|
+
],
|
|
2141
|
+
name: "nonceUsed",
|
|
2142
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
stateMutability: "payable",
|
|
2146
|
+
type: "function",
|
|
2147
|
+
inputs: [
|
|
2148
|
+
{
|
|
2149
|
+
name: "permit",
|
|
2150
|
+
internalType: "struct IComments.PermitComment",
|
|
2151
|
+
type: "tuple",
|
|
2152
|
+
components: [
|
|
2153
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2154
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2155
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2156
|
+
{
|
|
2157
|
+
name: "replyTo",
|
|
2158
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2159
|
+
type: "tuple",
|
|
2160
|
+
components: [
|
|
2161
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2162
|
+
{
|
|
2163
|
+
name: "contractAddress",
|
|
2164
|
+
internalType: "address",
|
|
2165
|
+
type: "address"
|
|
2166
|
+
},
|
|
2167
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2168
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2169
|
+
]
|
|
2170
|
+
},
|
|
2171
|
+
{ name: "text", internalType: "string", type: "string" },
|
|
2172
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2173
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2174
|
+
{ name: "referrer", internalType: "address", type: "address" },
|
|
2175
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2176
|
+
{
|
|
2177
|
+
name: "destinationChainId",
|
|
2178
|
+
internalType: "uint32",
|
|
2179
|
+
type: "uint32"
|
|
2180
|
+
}
|
|
2181
|
+
]
|
|
2182
|
+
},
|
|
2183
|
+
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
2184
|
+
],
|
|
2185
|
+
name: "permitComment",
|
|
2186
|
+
outputs: []
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
stateMutability: "payable",
|
|
2190
|
+
type: "function",
|
|
2191
|
+
inputs: [
|
|
2192
|
+
{
|
|
2193
|
+
name: "permit",
|
|
2194
|
+
internalType: "struct IComments.PermitSparkComment",
|
|
2195
|
+
type: "tuple",
|
|
2196
|
+
components: [
|
|
2197
|
+
{
|
|
2198
|
+
name: "comment",
|
|
2199
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2200
|
+
type: "tuple",
|
|
2201
|
+
components: [
|
|
2202
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2203
|
+
{
|
|
2204
|
+
name: "contractAddress",
|
|
2205
|
+
internalType: "address",
|
|
2206
|
+
type: "address"
|
|
2207
|
+
},
|
|
2208
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2209
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2210
|
+
]
|
|
2211
|
+
},
|
|
2212
|
+
{ name: "sparker", internalType: "address", type: "address" },
|
|
2213
|
+
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2214
|
+
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2215
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2216
|
+
{ name: "referrer", internalType: "address", type: "address" },
|
|
2217
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2218
|
+
{
|
|
2219
|
+
name: "destinationChainId",
|
|
2220
|
+
internalType: "uint32",
|
|
2221
|
+
type: "uint32"
|
|
2222
|
+
}
|
|
2223
|
+
]
|
|
2224
|
+
},
|
|
2225
|
+
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
2226
|
+
],
|
|
2227
|
+
name: "permitSparkComment",
|
|
2228
|
+
outputs: []
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
stateMutability: "view",
|
|
2232
|
+
type: "function",
|
|
2233
|
+
inputs: [],
|
|
2234
|
+
name: "protocolRewards",
|
|
2235
|
+
outputs: [
|
|
2236
|
+
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
stateMutability: "view",
|
|
2241
|
+
type: "function",
|
|
2242
|
+
inputs: [],
|
|
2243
|
+
name: "proxiableUUID",
|
|
2244
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
stateMutability: "nonpayable",
|
|
2248
|
+
type: "function",
|
|
2249
|
+
inputs: [
|
|
2250
|
+
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
2251
|
+
{ name: "callerConfirmation", internalType: "address", type: "address" }
|
|
2252
|
+
],
|
|
2253
|
+
name: "renounceRole",
|
|
2254
|
+
outputs: []
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
stateMutability: "nonpayable",
|
|
2258
|
+
type: "function",
|
|
2259
|
+
inputs: [
|
|
2260
|
+
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
2261
|
+
{ name: "account", internalType: "address", type: "address" }
|
|
2262
|
+
],
|
|
2263
|
+
name: "revokeRole",
|
|
2264
|
+
outputs: []
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
stateMutability: "payable",
|
|
2268
|
+
type: "function",
|
|
2269
|
+
inputs: [
|
|
2270
|
+
{
|
|
2271
|
+
name: "commentIdentifier",
|
|
2272
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2273
|
+
type: "tuple",
|
|
2274
|
+
components: [
|
|
2275
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2276
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2277
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2278
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2279
|
+
]
|
|
2280
|
+
},
|
|
2281
|
+
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2282
|
+
{ name: "referrer", internalType: "address", type: "address" }
|
|
2283
|
+
],
|
|
2284
|
+
name: "sparkComment",
|
|
2285
|
+
outputs: []
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
stateMutability: "view",
|
|
2289
|
+
type: "function",
|
|
2290
|
+
inputs: [],
|
|
2291
|
+
name: "sparkValue",
|
|
2292
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
stateMutability: "view",
|
|
2296
|
+
type: "function",
|
|
2297
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
2298
|
+
name: "supportsInterface",
|
|
2299
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
stateMutability: "payable",
|
|
2303
|
+
type: "function",
|
|
2304
|
+
inputs: [
|
|
2305
|
+
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
2306
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
2307
|
+
],
|
|
2308
|
+
name: "upgradeToAndCall",
|
|
2309
|
+
outputs: []
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
type: "event",
|
|
2313
|
+
anonymous: false,
|
|
2314
|
+
inputs: [
|
|
2315
|
+
{
|
|
2316
|
+
name: "commentId",
|
|
2317
|
+
internalType: "bytes32",
|
|
2318
|
+
type: "bytes32",
|
|
2319
|
+
indexed: true
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
name: "comment",
|
|
2323
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2324
|
+
type: "tuple",
|
|
2325
|
+
components: [
|
|
2326
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2327
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2328
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2329
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2330
|
+
],
|
|
2331
|
+
indexed: false
|
|
2332
|
+
},
|
|
2333
|
+
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
2334
|
+
{
|
|
2335
|
+
name: "timestamp",
|
|
2336
|
+
internalType: "uint256",
|
|
2337
|
+
type: "uint256",
|
|
2338
|
+
indexed: false
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
name: "originalTransactionId",
|
|
2342
|
+
internalType: "bytes32",
|
|
2343
|
+
type: "bytes32",
|
|
2344
|
+
indexed: false
|
|
2345
|
+
}
|
|
2346
|
+
],
|
|
2347
|
+
name: "BackfilledComment"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
type: "event",
|
|
2351
|
+
anonymous: false,
|
|
2352
|
+
inputs: [
|
|
2353
|
+
{
|
|
2354
|
+
name: "commentId",
|
|
2355
|
+
internalType: "bytes32",
|
|
2356
|
+
type: "bytes32",
|
|
2357
|
+
indexed: true
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
name: "comment",
|
|
2361
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2362
|
+
type: "tuple",
|
|
2363
|
+
components: [
|
|
2364
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2365
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2366
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2367
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2368
|
+
],
|
|
2369
|
+
indexed: false
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
name: "replyToId",
|
|
2373
|
+
internalType: "bytes32",
|
|
2374
|
+
type: "bytes32",
|
|
2375
|
+
indexed: false
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
name: "replyTo",
|
|
2379
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2380
|
+
type: "tuple",
|
|
2381
|
+
components: [
|
|
2382
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2383
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2384
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2385
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2386
|
+
],
|
|
2387
|
+
indexed: false
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
name: "sparksQuantity",
|
|
2391
|
+
internalType: "uint64",
|
|
2392
|
+
type: "uint64",
|
|
2393
|
+
indexed: false
|
|
2394
|
+
},
|
|
2395
|
+
{ name: "text", internalType: "string", type: "string", indexed: false },
|
|
2396
|
+
{
|
|
2397
|
+
name: "timestamp",
|
|
2398
|
+
internalType: "uint256",
|
|
2399
|
+
type: "uint256",
|
|
2400
|
+
indexed: false
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
name: "referrer",
|
|
2404
|
+
internalType: "address",
|
|
2405
|
+
type: "address",
|
|
2406
|
+
indexed: false
|
|
2407
|
+
}
|
|
2408
|
+
],
|
|
2409
|
+
name: "Commented"
|
|
2410
|
+
},
|
|
2411
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
2412
|
+
{
|
|
2413
|
+
type: "event",
|
|
2414
|
+
anonymous: false,
|
|
2415
|
+
inputs: [
|
|
2416
|
+
{
|
|
2417
|
+
name: "version",
|
|
2418
|
+
internalType: "uint64",
|
|
2419
|
+
type: "uint64",
|
|
2420
|
+
indexed: false
|
|
2421
|
+
}
|
|
2422
|
+
],
|
|
2423
|
+
name: "Initialized"
|
|
2424
|
+
},
|
|
2425
|
+
{
|
|
2426
|
+
type: "event",
|
|
2427
|
+
anonymous: false,
|
|
2428
|
+
inputs: [
|
|
2429
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2430
|
+
{
|
|
2431
|
+
name: "previousAdminRole",
|
|
2432
|
+
internalType: "bytes32",
|
|
2433
|
+
type: "bytes32",
|
|
2434
|
+
indexed: true
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
name: "newAdminRole",
|
|
2438
|
+
internalType: "bytes32",
|
|
2439
|
+
type: "bytes32",
|
|
2440
|
+
indexed: true
|
|
2441
|
+
}
|
|
2442
|
+
],
|
|
2443
|
+
name: "RoleAdminChanged"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
type: "event",
|
|
2447
|
+
anonymous: false,
|
|
2448
|
+
inputs: [
|
|
2449
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2450
|
+
{
|
|
2451
|
+
name: "account",
|
|
2452
|
+
internalType: "address",
|
|
2453
|
+
type: "address",
|
|
2454
|
+
indexed: true
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
name: "sender",
|
|
2458
|
+
internalType: "address",
|
|
2459
|
+
type: "address",
|
|
2460
|
+
indexed: true
|
|
2461
|
+
}
|
|
2462
|
+
],
|
|
2463
|
+
name: "RoleGranted"
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
type: "event",
|
|
2467
|
+
anonymous: false,
|
|
2468
|
+
inputs: [
|
|
2469
|
+
{ name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
|
|
2470
|
+
{
|
|
2471
|
+
name: "account",
|
|
2472
|
+
internalType: "address",
|
|
2473
|
+
type: "address",
|
|
2474
|
+
indexed: true
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
name: "sender",
|
|
2478
|
+
internalType: "address",
|
|
2479
|
+
type: "address",
|
|
2480
|
+
indexed: true
|
|
2481
|
+
}
|
|
2482
|
+
],
|
|
2483
|
+
name: "RoleRevoked"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
type: "event",
|
|
2487
|
+
anonymous: false,
|
|
2488
|
+
inputs: [
|
|
2489
|
+
{
|
|
2490
|
+
name: "commentId",
|
|
2491
|
+
internalType: "bytes32",
|
|
2492
|
+
type: "bytes32",
|
|
2493
|
+
indexed: true
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
name: "commentIdentifier",
|
|
2497
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
2498
|
+
type: "tuple",
|
|
2499
|
+
components: [
|
|
2500
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
2501
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
2502
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
2503
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
2504
|
+
],
|
|
2505
|
+
indexed: false
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
name: "sparksQuantity",
|
|
2509
|
+
internalType: "uint64",
|
|
2510
|
+
type: "uint64",
|
|
2511
|
+
indexed: false
|
|
2512
|
+
},
|
|
2513
|
+
{
|
|
2514
|
+
name: "sparker",
|
|
2515
|
+
internalType: "address",
|
|
2516
|
+
type: "address",
|
|
2517
|
+
indexed: false
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
name: "timestamp",
|
|
2521
|
+
internalType: "uint256",
|
|
2522
|
+
type: "uint256",
|
|
2523
|
+
indexed: false
|
|
2524
|
+
}
|
|
2525
|
+
],
|
|
2526
|
+
name: "SparkedComment"
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
type: "event",
|
|
2530
|
+
anonymous: false,
|
|
2531
|
+
inputs: [
|
|
2532
|
+
{
|
|
2533
|
+
name: "implementation",
|
|
2534
|
+
internalType: "address",
|
|
2535
|
+
type: "address",
|
|
2536
|
+
indexed: true
|
|
2537
|
+
}
|
|
2538
|
+
],
|
|
2539
|
+
name: "Upgraded"
|
|
2540
|
+
},
|
|
2541
|
+
{ type: "error", inputs: [], name: "AccessControlBadConfirmation" },
|
|
2542
|
+
{
|
|
2543
|
+
type: "error",
|
|
2544
|
+
inputs: [
|
|
2545
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
2546
|
+
{ name: "neededRole", internalType: "bytes32", type: "bytes32" }
|
|
2547
|
+
],
|
|
2548
|
+
name: "AccessControlUnauthorizedAccount"
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
type: "error",
|
|
2552
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
2553
|
+
name: "AddressEmptyCode"
|
|
2554
|
+
},
|
|
2555
|
+
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
2556
|
+
{ type: "error", inputs: [], name: "CannotSparkOwnComment" },
|
|
2557
|
+
{
|
|
2558
|
+
type: "error",
|
|
2559
|
+
inputs: [
|
|
2560
|
+
{ name: "commentAddress", internalType: "address", type: "address" },
|
|
2561
|
+
{ name: "commentTokenId", internalType: "uint256", type: "uint256" },
|
|
2562
|
+
{ name: "replyAddress", internalType: "address", type: "address" },
|
|
2563
|
+
{ name: "replyTokenId", internalType: "uint256", type: "uint256" }
|
|
2564
|
+
],
|
|
2565
|
+
name: "CommentAddressOrTokenIdsDoNotMatch"
|
|
2566
|
+
},
|
|
2567
|
+
{ type: "error", inputs: [], name: "CommentDoesntExist" },
|
|
2568
|
+
{
|
|
2569
|
+
type: "error",
|
|
2570
|
+
inputs: [
|
|
2571
|
+
{ name: "expected", internalType: "address", type: "address" },
|
|
2572
|
+
{ name: "actual", internalType: "address", type: "address" }
|
|
2573
|
+
],
|
|
2574
|
+
name: "CommenterMismatch"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
type: "error",
|
|
2578
|
+
inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
|
|
2579
|
+
name: "DuplicateComment"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
type: "error",
|
|
2583
|
+
inputs: [
|
|
2584
|
+
{ name: "implementation", internalType: "address", type: "address" }
|
|
2585
|
+
],
|
|
2586
|
+
name: "ERC1967InvalidImplementation"
|
|
2587
|
+
},
|
|
2588
|
+
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
2589
|
+
{
|
|
2590
|
+
type: "error",
|
|
2591
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
2592
|
+
name: "ERC2612ExpiredSignature"
|
|
2593
|
+
},
|
|
2594
|
+
{ type: "error", inputs: [], name: "EmptyComment" },
|
|
2595
|
+
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2596
|
+
{
|
|
2597
|
+
type: "error",
|
|
2598
|
+
inputs: [
|
|
2599
|
+
{
|
|
2600
|
+
name: "wrongDestinationChainId",
|
|
2601
|
+
internalType: "uint256",
|
|
2602
|
+
type: "uint256"
|
|
2603
|
+
}
|
|
2604
|
+
],
|
|
2605
|
+
name: "IncorrectDestinationChain"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
type: "error",
|
|
2609
|
+
inputs: [
|
|
2610
|
+
{ name: "actual", internalType: "uint256", type: "uint256" },
|
|
2611
|
+
{ name: "expected", internalType: "uint256", type: "uint256" }
|
|
2612
|
+
],
|
|
2613
|
+
name: "IncorrectETHAmountForSparks"
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
type: "error",
|
|
2617
|
+
inputs: [
|
|
2618
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
2619
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
2620
|
+
],
|
|
2621
|
+
name: "InvalidAccountNonce"
|
|
2622
|
+
},
|
|
2623
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
2624
|
+
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
2625
|
+
{ type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
|
|
2626
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
2627
|
+
{ type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
|
|
2628
|
+
{ type: "error", inputs: [], name: "OnlySparksContract" },
|
|
2629
|
+
{ type: "error", inputs: [], name: "TransferFailed" },
|
|
2630
|
+
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
2631
|
+
{
|
|
2632
|
+
type: "error",
|
|
2633
|
+
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
2634
|
+
name: "UUPSUnsupportedProxiableUUID"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
type: "error",
|
|
2638
|
+
inputs: [
|
|
2639
|
+
{ name: "currentName", internalType: "string", type: "string" },
|
|
2640
|
+
{ name: "newName", internalType: "string", type: "string" }
|
|
2641
|
+
],
|
|
2642
|
+
name: "UpgradeToMismatchedContractName"
|
|
2643
|
+
}
|
|
2644
|
+
];
|
|
2645
|
+
var commentsAddress = {
|
|
2646
|
+
999999999: "0x7777777bE14a1F7Fd6896B5FBDa5ceD5FC6e501a"
|
|
2647
|
+
};
|
|
2648
|
+
var commentsConfig = {
|
|
2649
|
+
address: commentsAddress,
|
|
2650
|
+
abi: commentsABI
|
|
2651
|
+
};
|
|
1690
2652
|
var erc20MinterABI = [
|
|
1691
2653
|
{
|
|
1692
2654
|
stateMutability: "nonpayable",
|
|
@@ -5506,6 +6468,7 @@ var zoraCreator1155FactoryImplABI = [
|
|
|
5506
6468
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
5507
6469
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
5508
6470
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
6471
|
+
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
5509
6472
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
5510
6473
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
5511
6474
|
{
|
|
@@ -6927,6 +7890,7 @@ var zoraCreator1155ImplABI = [
|
|
|
6927
7890
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
6928
7891
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
6929
7892
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
7893
|
+
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
6930
7894
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
6931
7895
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
6932
7896
|
{
|
|
@@ -11434,7 +12398,17 @@ var zoraSparksManagerImplConfig = {
|
|
|
11434
12398
|
abi: zoraSparksManagerImplABI
|
|
11435
12399
|
};
|
|
11436
12400
|
var zoraTimedSaleStrategyABI = [
|
|
11437
|
-
{
|
|
12401
|
+
{
|
|
12402
|
+
stateMutability: "nonpayable",
|
|
12403
|
+
type: "constructor",
|
|
12404
|
+
inputs: [
|
|
12405
|
+
{
|
|
12406
|
+
name: "_comments",
|
|
12407
|
+
internalType: "contract IComments",
|
|
12408
|
+
type: "address"
|
|
12409
|
+
}
|
|
12410
|
+
]
|
|
12411
|
+
},
|
|
11438
12412
|
{
|
|
11439
12413
|
stateMutability: "view",
|
|
11440
12414
|
type: "function",
|
|
@@ -11483,6 +12457,15 @@ var zoraTimedSaleStrategyABI = [
|
|
|
11483
12457
|
}
|
|
11484
12458
|
]
|
|
11485
12459
|
},
|
|
12460
|
+
{
|
|
12461
|
+
stateMutability: "view",
|
|
12462
|
+
type: "function",
|
|
12463
|
+
inputs: [],
|
|
12464
|
+
name: "comments",
|
|
12465
|
+
outputs: [
|
|
12466
|
+
{ name: "", internalType: "contract IComments", type: "address" }
|
|
12467
|
+
]
|
|
12468
|
+
},
|
|
11486
12469
|
{
|
|
11487
12470
|
stateMutability: "pure",
|
|
11488
12471
|
type: "function",
|
|
@@ -11552,6 +12535,13 @@ var zoraTimedSaleStrategyABI = [
|
|
|
11552
12535
|
{ name: "createReferral", internalType: "address", type: "address" }
|
|
11553
12536
|
]
|
|
11554
12537
|
},
|
|
12538
|
+
{
|
|
12539
|
+
stateMutability: "view",
|
|
12540
|
+
type: "function",
|
|
12541
|
+
inputs: [],
|
|
12542
|
+
name: "implementation",
|
|
12543
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
12544
|
+
},
|
|
11555
12545
|
{
|
|
11556
12546
|
stateMutability: "nonpayable",
|
|
11557
12547
|
type: "function",
|
|
@@ -11909,6 +12899,43 @@ var zoraTimedSaleStrategyABI = [
|
|
|
11909
12899
|
],
|
|
11910
12900
|
name: "MintComment"
|
|
11911
12901
|
},
|
|
12902
|
+
{
|
|
12903
|
+
type: "event",
|
|
12904
|
+
anonymous: false,
|
|
12905
|
+
inputs: [
|
|
12906
|
+
{
|
|
12907
|
+
name: "commentId",
|
|
12908
|
+
internalType: "bytes32",
|
|
12909
|
+
type: "bytes32",
|
|
12910
|
+
indexed: true
|
|
12911
|
+
},
|
|
12912
|
+
{
|
|
12913
|
+
name: "commentIdentifier",
|
|
12914
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
12915
|
+
type: "tuple",
|
|
12916
|
+
components: [
|
|
12917
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
12918
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
12919
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
12920
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
12921
|
+
],
|
|
12922
|
+
indexed: false
|
|
12923
|
+
},
|
|
12924
|
+
{
|
|
12925
|
+
name: "mintQuantity",
|
|
12926
|
+
internalType: "uint256",
|
|
12927
|
+
type: "uint256",
|
|
12928
|
+
indexed: false
|
|
12929
|
+
},
|
|
12930
|
+
{
|
|
12931
|
+
name: "comment",
|
|
12932
|
+
internalType: "string",
|
|
12933
|
+
type: "string",
|
|
12934
|
+
indexed: false
|
|
12935
|
+
}
|
|
12936
|
+
],
|
|
12937
|
+
name: "MintedAndCommented"
|
|
12938
|
+
},
|
|
11912
12939
|
{
|
|
11913
12940
|
type: "event",
|
|
11914
12941
|
anonymous: false,
|
|
@@ -12185,6 +13212,7 @@ var zoraTimedSaleStrategyABI = [
|
|
|
12185
13212
|
{ type: "error", inputs: [], name: "MarketMinimumNotReached" },
|
|
12186
13213
|
{ type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
|
|
12187
13214
|
{ type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
|
|
13215
|
+
{ type: "error", inputs: [], name: "NoCodeAtAddress" },
|
|
12188
13216
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
12189
13217
|
{ type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
|
|
12190
13218
|
{
|
|
@@ -12238,6 +13266,45 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
12238
13266
|
abi: zoraTimedSaleStrategyABI
|
|
12239
13267
|
};
|
|
12240
13268
|
|
|
13269
|
+
// ../../node_modules/.pnpm/viem@2.18.0_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
|
|
13270
|
+
function parseUnits(value, decimals) {
|
|
13271
|
+
let [integer, fraction = "0"] = value.split(".");
|
|
13272
|
+
const negative = integer.startsWith("-");
|
|
13273
|
+
if (negative)
|
|
13274
|
+
integer = integer.slice(1);
|
|
13275
|
+
fraction = fraction.replace(/(0+)$/, "");
|
|
13276
|
+
if (decimals === 0) {
|
|
13277
|
+
if (Math.round(Number(`.${fraction}`)) === 1)
|
|
13278
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
13279
|
+
fraction = "";
|
|
13280
|
+
} else if (fraction.length > decimals) {
|
|
13281
|
+
const [left, unit, right] = [
|
|
13282
|
+
fraction.slice(0, decimals - 1),
|
|
13283
|
+
fraction.slice(decimals - 1, decimals),
|
|
13284
|
+
fraction.slice(decimals)
|
|
13285
|
+
];
|
|
13286
|
+
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
13287
|
+
if (rounded > 9)
|
|
13288
|
+
fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
13289
|
+
else
|
|
13290
|
+
fraction = `${left}${rounded}`;
|
|
13291
|
+
if (fraction.length > decimals) {
|
|
13292
|
+
fraction = fraction.slice(1);
|
|
13293
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
13294
|
+
}
|
|
13295
|
+
fraction = fraction.slice(0, decimals);
|
|
13296
|
+
} else {
|
|
13297
|
+
fraction = fraction.padEnd(decimals, "0");
|
|
13298
|
+
}
|
|
13299
|
+
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
13300
|
+
}
|
|
13301
|
+
|
|
13302
|
+
// ../../node_modules/.pnpm/viem@2.18.0_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
|
|
13303
|
+
init_unit();
|
|
13304
|
+
function parseEther(ether, unit = "wei") {
|
|
13305
|
+
return parseUnits(ether, etherUnits[unit]);
|
|
13306
|
+
}
|
|
13307
|
+
|
|
12241
13308
|
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
|
|
12242
13309
|
init_encodeAbiParameters();
|
|
12243
13310
|
init_getAbiItem();
|
|
@@ -12251,6 +13318,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
|
|
|
12251
13318
|
PremintConfigVersion2["V3"] = "3";
|
|
12252
13319
|
return PremintConfigVersion2;
|
|
12253
13320
|
})(PremintConfigVersion || {});
|
|
13321
|
+
var emptyCommentIdentifier = () => {
|
|
13322
|
+
const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
13323
|
+
const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
13324
|
+
return {
|
|
13325
|
+
commenter: zeroAddress,
|
|
13326
|
+
contractAddress: zeroAddress,
|
|
13327
|
+
tokenId: 0n,
|
|
13328
|
+
nonce: zeroHash
|
|
13329
|
+
};
|
|
13330
|
+
};
|
|
12254
13331
|
|
|
12255
13332
|
// src/typedData.ts
|
|
12256
13333
|
var premintTypedDataDomain = ({
|
|
@@ -12541,6 +13618,70 @@ var sponsoredSparksBatchTypedDataDefinition = ({
|
|
|
12541
13618
|
verifyingContract: sponsoredSparksSpenderAddress[chainId]
|
|
12542
13619
|
}
|
|
12543
13620
|
});
|
|
13621
|
+
var commentIdentifierType = [
|
|
13622
|
+
{ name: "contractAddress", type: "address" },
|
|
13623
|
+
{ name: "tokenId", type: "uint256" },
|
|
13624
|
+
{ name: "commenter", type: "address" },
|
|
13625
|
+
{ name: "nonce", type: "bytes32" }
|
|
13626
|
+
];
|
|
13627
|
+
var permitCommentTypedDataType = {
|
|
13628
|
+
PermitComment: [
|
|
13629
|
+
{ name: "contractAddress", type: "address" },
|
|
13630
|
+
{ name: "tokenId", type: "uint256" },
|
|
13631
|
+
{ name: "commenter", type: "address" },
|
|
13632
|
+
{ name: "replyTo", type: "CommentIdentifier" },
|
|
13633
|
+
{ name: "text", type: "string" },
|
|
13634
|
+
{ name: "deadline", type: "uint256" },
|
|
13635
|
+
{ name: "nonce", type: "bytes32" },
|
|
13636
|
+
{ name: "referrer", type: "address" },
|
|
13637
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
13638
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
13639
|
+
],
|
|
13640
|
+
CommentIdentifier: commentIdentifierType
|
|
13641
|
+
};
|
|
13642
|
+
var permitSparkCommentTypedDataType = {
|
|
13643
|
+
PermitSparkComment: [
|
|
13644
|
+
{ name: "comment", type: "CommentIdentifier" },
|
|
13645
|
+
{ name: "sparker", type: "address" },
|
|
13646
|
+
{ name: "sparksQuantity", type: "uint64" },
|
|
13647
|
+
{ name: "deadline", type: "uint256" },
|
|
13648
|
+
{ name: "nonce", type: "bytes32" },
|
|
13649
|
+
{ name: "referrer", type: "address" },
|
|
13650
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
13651
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
13652
|
+
],
|
|
13653
|
+
CommentIdentifier: commentIdentifierType
|
|
13654
|
+
};
|
|
13655
|
+
var commentsDomain = ({
|
|
13656
|
+
signingChainId,
|
|
13657
|
+
destinationChainId
|
|
13658
|
+
}) => ({
|
|
13659
|
+
chainId: signingChainId,
|
|
13660
|
+
name: "Comments",
|
|
13661
|
+
version: "1",
|
|
13662
|
+
verifyingContract: commentsAddress[destinationChainId]
|
|
13663
|
+
});
|
|
13664
|
+
var permitCommentTypedDataDefinition = (message) => ({
|
|
13665
|
+
types: permitCommentTypedDataType,
|
|
13666
|
+
message,
|
|
13667
|
+
primaryType: "PermitComment",
|
|
13668
|
+
domain: commentsDomain({
|
|
13669
|
+
signingChainId: message.sourceChainId,
|
|
13670
|
+
destinationChainId: message.destinationChainId
|
|
13671
|
+
}),
|
|
13672
|
+
account: message.commenter
|
|
13673
|
+
});
|
|
13674
|
+
var permitSparkCommentTypedDataDefinition = (message) => ({
|
|
13675
|
+
types: permitSparkCommentTypedDataType,
|
|
13676
|
+
message,
|
|
13677
|
+
primaryType: "PermitSparkComment",
|
|
13678
|
+
domain: commentsDomain({
|
|
13679
|
+
signingChainId: message.sourceChainId,
|
|
13680
|
+
destinationChainId: message.destinationChainId
|
|
13681
|
+
}),
|
|
13682
|
+
account: message.sparker
|
|
13683
|
+
});
|
|
13684
|
+
var sparkValue = () => parseEther("0.000001");
|
|
12544
13685
|
|
|
12545
13686
|
// src/encoding.ts
|
|
12546
13687
|
var safeTransferSwapAbiParameters = [
|
|
@@ -12880,7 +14021,11 @@ var addresses2 = {
|
|
|
12880
14021
|
// Annotate the CommonJS export names for ESM import in node:
|
|
12881
14022
|
0 && (module.exports = {
|
|
12882
14023
|
PremintConfigVersion,
|
|
14024
|
+
commentsABI,
|
|
14025
|
+
commentsAddress,
|
|
14026
|
+
commentsConfig,
|
|
12883
14027
|
contracts1155,
|
|
14028
|
+
emptyCommentIdentifier,
|
|
12884
14029
|
encodePremintConfig,
|
|
12885
14030
|
erc20MinterABI,
|
|
12886
14031
|
erc20MinterAddress,
|
|
@@ -12897,6 +14042,8 @@ var addresses2 = {
|
|
|
12897
14042
|
mintsEthUnwrapperAndCallerConfig,
|
|
12898
14043
|
mintsSafeTransferBatchTypedDataDefinition,
|
|
12899
14044
|
mintsSafeTransferTypedDataDefinition,
|
|
14045
|
+
permitCommentTypedDataDefinition,
|
|
14046
|
+
permitSparkCommentTypedDataDefinition,
|
|
12900
14047
|
premintTypedDataDefinition,
|
|
12901
14048
|
premintV1TypedDataDefinition,
|
|
12902
14049
|
premintV2TypedDataDefinition,
|
|
@@ -12907,6 +14054,7 @@ var addresses2 = {
|
|
|
12907
14054
|
secondarySwapABI,
|
|
12908
14055
|
secondarySwapAddress,
|
|
12909
14056
|
secondarySwapConfig,
|
|
14057
|
+
sparkValue,
|
|
12910
14058
|
sparks,
|
|
12911
14059
|
sponsoredSparksBatchTransferTypedDataType,
|
|
12912
14060
|
sponsoredSparksBatchTypedDataDefinition,
|