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