@zoralabs/protocol-deployments 0.3.5-COMMENTS.0 → 0.3.5-COMMENTS.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +20 -20
- package/CHANGELOG.md +10 -0
- package/dist/{ccip-42FQPB7J.js → ccip-TLVKUNHE.js} +2 -2
- package/dist/{chunk-YMRS2KON.js → chunk-IB365BT5.js} +3 -2
- package/dist/generated/wagmi.d.ts +170 -54
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +169 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +155 -16
- package/dist/index.js.map +1 -1
- package/dist/typedData.d.ts +128 -1
- package/dist/typedData.d.ts.map +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/wagmi.ts +48 -15
- package/src/typedData.ts +124 -0
- package/src/types.ts +24 -0
- /package/dist/{ccip-42FQPB7J.js.map → ccip-TLVKUNHE.js.map} +0 -0
- /package/dist/{chunk-YMRS2KON.js.map → chunk-IB365BT5.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1609,6 +1609,18 @@ var init_getAbiItem = __esm({
|
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
|
|
1612
|
+
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
|
|
1613
|
+
var etherUnits;
|
|
1614
|
+
var init_unit = __esm({
|
|
1615
|
+
"../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js"() {
|
|
1616
|
+
"use strict";
|
|
1617
|
+
etherUnits = {
|
|
1618
|
+
gwei: 9,
|
|
1619
|
+
wei: 18
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
|
|
1612
1624
|
// src/index.ts
|
|
1613
1625
|
var src_exports = {};
|
|
1614
1626
|
__export(src_exports, {
|
|
@@ -1634,6 +1646,8 @@ __export(src_exports, {
|
|
|
1634
1646
|
mintsEthUnwrapperAndCallerConfig: () => mintsEthUnwrapperAndCallerConfig,
|
|
1635
1647
|
mintsSafeTransferBatchTypedDataDefinition: () => mintsSafeTransferBatchTypedDataDefinition,
|
|
1636
1648
|
mintsSafeTransferTypedDataDefinition: () => mintsSafeTransferTypedDataDefinition,
|
|
1649
|
+
permitCommentTypedDataDefinition: () => permitCommentTypedDataDefinition,
|
|
1650
|
+
permitSparkCommentTypedDataDefinition: () => permitSparkCommentTypedDataDefinition,
|
|
1637
1651
|
premintTypedDataDefinition: () => premintTypedDataDefinition,
|
|
1638
1652
|
premintV1TypedDataDefinition: () => premintV1TypedDataDefinition,
|
|
1639
1653
|
premintV2TypedDataDefinition: () => premintV2TypedDataDefinition,
|
|
@@ -1644,6 +1658,7 @@ __export(src_exports, {
|
|
|
1644
1658
|
secondarySwapABI: () => secondarySwapABI,
|
|
1645
1659
|
secondarySwapAddress: () => secondarySwapAddress,
|
|
1646
1660
|
secondarySwapConfig: () => secondarySwapConfig,
|
|
1661
|
+
sparkValue: () => sparkValue,
|
|
1647
1662
|
sparks: () => sparks_exports,
|
|
1648
1663
|
sponsoredSparksBatchTransferTypedDataType: () => sponsoredSparksBatchTransferTypedDataType,
|
|
1649
1664
|
sponsoredSparksBatchTypedDataDefinition: () => sponsoredSparksBatchTypedDataDefinition,
|
|
@@ -1835,7 +1850,19 @@ var commentsABI = [
|
|
|
1835
1850
|
{
|
|
1836
1851
|
stateMutability: "view",
|
|
1837
1852
|
type: "function",
|
|
1838
|
-
inputs: [
|
|
1853
|
+
inputs: [
|
|
1854
|
+
{
|
|
1855
|
+
name: "commentIdentifier",
|
|
1856
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
1857
|
+
type: "tuple",
|
|
1858
|
+
components: [
|
|
1859
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
1860
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
1861
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
1862
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1863
|
+
]
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1839
1866
|
name: "commentSparksQuantity",
|
|
1840
1867
|
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
1841
1868
|
},
|
|
@@ -1888,6 +1915,21 @@ var commentsABI = [
|
|
|
1888
1915
|
}
|
|
1889
1916
|
]
|
|
1890
1917
|
},
|
|
1918
|
+
{
|
|
1919
|
+
stateMutability: "view",
|
|
1920
|
+
type: "function",
|
|
1921
|
+
inputs: [],
|
|
1922
|
+
name: "eip712Domain",
|
|
1923
|
+
outputs: [
|
|
1924
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
1925
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
1926
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
1927
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
1928
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
1929
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
1930
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
1931
|
+
]
|
|
1932
|
+
},
|
|
1891
1933
|
{
|
|
1892
1934
|
stateMutability: "view",
|
|
1893
1935
|
type: "function",
|
|
@@ -2003,15 +2045,14 @@ var commentsABI = [
|
|
|
2003
2045
|
]
|
|
2004
2046
|
},
|
|
2005
2047
|
{ name: "text", internalType: "string", type: "string" },
|
|
2006
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2007
2048
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2008
2049
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2009
2050
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
2010
|
-
{ name: "sourceChainId", internalType: "
|
|
2051
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2011
2052
|
{
|
|
2012
2053
|
name: "destinationChainId",
|
|
2013
|
-
internalType: "
|
|
2014
|
-
type: "
|
|
2054
|
+
internalType: "uint32",
|
|
2055
|
+
type: "uint32"
|
|
2015
2056
|
}
|
|
2016
2057
|
]
|
|
2017
2058
|
}
|
|
@@ -2048,11 +2089,11 @@ var commentsABI = [
|
|
|
2048
2089
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2049
2090
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2050
2091
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
2051
|
-
{ name: "sourceChainId", internalType: "
|
|
2092
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2052
2093
|
{
|
|
2053
2094
|
name: "destinationChainId",
|
|
2054
|
-
internalType: "
|
|
2055
|
-
type: "
|
|
2095
|
+
internalType: "uint32",
|
|
2096
|
+
type: "uint32"
|
|
2056
2097
|
}
|
|
2057
2098
|
]
|
|
2058
2099
|
}
|
|
@@ -2060,6 +2101,13 @@ var commentsABI = [
|
|
|
2060
2101
|
name: "hashPermitSparkComment",
|
|
2061
2102
|
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
2062
2103
|
},
|
|
2104
|
+
{
|
|
2105
|
+
stateMutability: "view",
|
|
2106
|
+
type: "function",
|
|
2107
|
+
inputs: [],
|
|
2108
|
+
name: "implementation",
|
|
2109
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
2110
|
+
},
|
|
2063
2111
|
{
|
|
2064
2112
|
stateMutability: "nonpayable",
|
|
2065
2113
|
type: "function",
|
|
@@ -2121,15 +2169,14 @@ var commentsABI = [
|
|
|
2121
2169
|
]
|
|
2122
2170
|
},
|
|
2123
2171
|
{ name: "text", internalType: "string", type: "string" },
|
|
2124
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
2125
2172
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2126
2173
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2127
2174
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
2128
|
-
{ name: "sourceChainId", internalType: "
|
|
2175
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2129
2176
|
{
|
|
2130
2177
|
name: "destinationChainId",
|
|
2131
|
-
internalType: "
|
|
2132
|
-
type: "
|
|
2178
|
+
internalType: "uint32",
|
|
2179
|
+
type: "uint32"
|
|
2133
2180
|
}
|
|
2134
2181
|
]
|
|
2135
2182
|
},
|
|
@@ -2167,11 +2214,11 @@ var commentsABI = [
|
|
|
2167
2214
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
2168
2215
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
2169
2216
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
2170
|
-
{ name: "sourceChainId", internalType: "
|
|
2217
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
2171
2218
|
{
|
|
2172
2219
|
name: "destinationChainId",
|
|
2173
|
-
internalType: "
|
|
2174
|
-
type: "
|
|
2220
|
+
internalType: "uint32",
|
|
2221
|
+
type: "uint32"
|
|
2175
2222
|
}
|
|
2176
2223
|
]
|
|
2177
2224
|
},
|
|
@@ -2361,6 +2408,7 @@ var commentsABI = [
|
|
|
2361
2408
|
],
|
|
2362
2409
|
name: "Commented"
|
|
2363
2410
|
},
|
|
2411
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
2364
2412
|
{
|
|
2365
2413
|
type: "event",
|
|
2366
2414
|
anonymous: false,
|
|
@@ -13218,6 +13266,45 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
13218
13266
|
abi: zoraTimedSaleStrategyABI
|
|
13219
13267
|
};
|
|
13220
13268
|
|
|
13269
|
+
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
13270
|
+
function parseUnits(value, decimals) {
|
|
13271
|
+
let [integer, fraction = "0"] = value.split(".");
|
|
13272
|
+
const negative = integer.startsWith("-");
|
|
13273
|
+
if (negative)
|
|
13274
|
+
integer = integer.slice(1);
|
|
13275
|
+
fraction = fraction.replace(/(0+)$/, "");
|
|
13276
|
+
if (decimals === 0) {
|
|
13277
|
+
if (Math.round(Number(`.${fraction}`)) === 1)
|
|
13278
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
13279
|
+
fraction = "";
|
|
13280
|
+
} else if (fraction.length > decimals) {
|
|
13281
|
+
const [left, unit, right] = [
|
|
13282
|
+
fraction.slice(0, decimals - 1),
|
|
13283
|
+
fraction.slice(decimals - 1, decimals),
|
|
13284
|
+
fraction.slice(decimals)
|
|
13285
|
+
];
|
|
13286
|
+
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
13287
|
+
if (rounded > 9)
|
|
13288
|
+
fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
13289
|
+
else
|
|
13290
|
+
fraction = `${left}${rounded}`;
|
|
13291
|
+
if (fraction.length > decimals) {
|
|
13292
|
+
fraction = fraction.slice(1);
|
|
13293
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
13294
|
+
}
|
|
13295
|
+
fraction = fraction.slice(0, decimals);
|
|
13296
|
+
} else {
|
|
13297
|
+
fraction = fraction.padEnd(decimals, "0");
|
|
13298
|
+
}
|
|
13299
|
+
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
13300
|
+
}
|
|
13301
|
+
|
|
13302
|
+
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
13303
|
+
init_unit();
|
|
13304
|
+
function parseEther(ether, unit = "wei") {
|
|
13305
|
+
return parseUnits(ether, etherUnits[unit]);
|
|
13306
|
+
}
|
|
13307
|
+
|
|
13221
13308
|
// ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
|
|
13222
13309
|
init_encodeAbiParameters();
|
|
13223
13310
|
init_getAbiItem();
|
|
@@ -13531,6 +13618,70 @@ var sponsoredSparksBatchTypedDataDefinition = ({
|
|
|
13531
13618
|
verifyingContract: sponsoredSparksSpenderAddress[chainId]
|
|
13532
13619
|
}
|
|
13533
13620
|
});
|
|
13621
|
+
var commentIdentifierType = [
|
|
13622
|
+
{ name: "contractAddress", type: "address" },
|
|
13623
|
+
{ name: "tokenId", type: "uint256" },
|
|
13624
|
+
{ name: "commenter", type: "address" },
|
|
13625
|
+
{ name: "nonce", type: "bytes32" }
|
|
13626
|
+
];
|
|
13627
|
+
var permitCommentTypedDataType = {
|
|
13628
|
+
PermitComment: [
|
|
13629
|
+
{ name: "contractAddress", type: "address" },
|
|
13630
|
+
{ name: "tokenId", type: "uint256" },
|
|
13631
|
+
{ name: "commenter", type: "address" },
|
|
13632
|
+
{ name: "replyTo", type: "CommentIdentifier" },
|
|
13633
|
+
{ name: "text", type: "string" },
|
|
13634
|
+
{ name: "deadline", type: "uint256" },
|
|
13635
|
+
{ name: "nonce", type: "bytes32" },
|
|
13636
|
+
{ name: "referrer", type: "address" },
|
|
13637
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
13638
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
13639
|
+
],
|
|
13640
|
+
CommentIdentifier: commentIdentifierType
|
|
13641
|
+
};
|
|
13642
|
+
var permitSparkCommentTypedDataType = {
|
|
13643
|
+
PermitSparkComment: [
|
|
13644
|
+
{ name: "comment", type: "CommentIdentifier" },
|
|
13645
|
+
{ name: "sparker", type: "address" },
|
|
13646
|
+
{ name: "sparksQuantity", type: "uint64" },
|
|
13647
|
+
{ name: "deadline", type: "uint256" },
|
|
13648
|
+
{ name: "nonce", type: "bytes32" },
|
|
13649
|
+
{ name: "referrer", type: "address" },
|
|
13650
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
13651
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
13652
|
+
],
|
|
13653
|
+
CommentIdentifier: commentIdentifierType
|
|
13654
|
+
};
|
|
13655
|
+
var commentsDomain = ({
|
|
13656
|
+
signingChainId,
|
|
13657
|
+
destinationChainId
|
|
13658
|
+
}) => ({
|
|
13659
|
+
chainId: signingChainId,
|
|
13660
|
+
name: "Comments",
|
|
13661
|
+
version: "1",
|
|
13662
|
+
verifyingContract: commentsAddress[destinationChainId]
|
|
13663
|
+
});
|
|
13664
|
+
var permitCommentTypedDataDefinition = (message) => ({
|
|
13665
|
+
types: permitCommentTypedDataType,
|
|
13666
|
+
message,
|
|
13667
|
+
primaryType: "PermitComment",
|
|
13668
|
+
domain: commentsDomain({
|
|
13669
|
+
signingChainId: message.sourceChainId,
|
|
13670
|
+
destinationChainId: message.destinationChainId
|
|
13671
|
+
}),
|
|
13672
|
+
account: message.commenter
|
|
13673
|
+
});
|
|
13674
|
+
var permitSparkCommentTypedDataDefinition = (message) => ({
|
|
13675
|
+
types: permitSparkCommentTypedDataType,
|
|
13676
|
+
message,
|
|
13677
|
+
primaryType: "PermitSparkComment",
|
|
13678
|
+
domain: commentsDomain({
|
|
13679
|
+
signingChainId: message.sourceChainId,
|
|
13680
|
+
destinationChainId: message.destinationChainId
|
|
13681
|
+
}),
|
|
13682
|
+
account: message.sparker
|
|
13683
|
+
});
|
|
13684
|
+
var sparkValue = () => parseEther("0.000001");
|
|
13534
13685
|
|
|
13535
13686
|
// src/encoding.ts
|
|
13536
13687
|
var safeTransferSwapAbiParameters = [
|
|
@@ -13891,6 +14042,8 @@ var addresses2 = {
|
|
|
13891
14042
|
mintsEthUnwrapperAndCallerConfig,
|
|
13892
14043
|
mintsSafeTransferBatchTypedDataDefinition,
|
|
13893
14044
|
mintsSafeTransferTypedDataDefinition,
|
|
14045
|
+
permitCommentTypedDataDefinition,
|
|
14046
|
+
permitSparkCommentTypedDataDefinition,
|
|
13894
14047
|
premintTypedDataDefinition,
|
|
13895
14048
|
premintV1TypedDataDefinition,
|
|
13896
14049
|
premintV2TypedDataDefinition,
|
|
@@ -13901,6 +14054,7 @@ var addresses2 = {
|
|
|
13901
14054
|
secondarySwapABI,
|
|
13902
14055
|
secondarySwapAddress,
|
|
13903
14056
|
secondarySwapConfig,
|
|
14057
|
+
sparkValue,
|
|
13904
14058
|
sparks,
|
|
13905
14059
|
sponsoredSparksBatchTransferTypedDataType,
|
|
13906
14060
|
sponsoredSparksBatchTypedDataDefinition,
|