@zoralabs/protocol-deployments 0.3.5-COMMENTS.0 → 0.3.5-COMMENTS.2
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 +48 -48
- package/CHANGELOG.md +16 -0
- package/dist/ccip-TLVKUNHE.js +15 -0
- package/dist/chunk-IB365BT5.js +3957 -0
- package/dist/generated/wagmi.d.ts +228 -59
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +190 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +176 -17
- package/dist/index.js.map +1 -1
- package/dist/typedData.d.ts +137 -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/json/1155.json +212 -0
- package/json/mints.json +46 -0
- package/package/.turbo/turbo-build.log +48 -0
- package/package/dist/_esm-KB2T7G46.js +3923 -0
- package/package/dist/_esm-KB2T7G46.js.map +1 -0
- package/package/dist/ccip-42FQPB7J.js.map +1 -0
- package/package/dist/chunk-3EJPJMEH.js +44 -0
- package/package/dist/chunk-3EJPJMEH.js.map +1 -0
- package/package/dist/chunk-5JV63AHR.js +129 -0
- package/package/dist/chunk-5JV63AHR.js.map +1 -0
- package/package/dist/chunk-YMRS2KON.js.map +1 -0
- package/package/dist/encoding.d.ts +15 -0
- package/package/dist/encoding.d.ts.map +1 -0
- package/package/dist/generated/1155.d.ts +232 -0
- package/package/dist/generated/1155.d.ts.map +1 -0
- package/package/dist/generated/sparks.d.ts +85 -0
- package/package/dist/generated/sparks.d.ts.map +1 -0
- package/package/dist/generated/wagmi.d.ts +27548 -0
- package/package/dist/generated/wagmi.d.ts.map +1 -0
- package/package/dist/index.cjs +12957 -0
- package/package/dist/index.cjs.map +1 -0
- package/package/dist/index.d.ts +7 -0
- package/package/dist/index.d.ts.map +1 -0
- package/package/dist/index.js +11268 -0
- package/package/dist/index.js.map +1 -0
- package/package/dist/secp256k1-5CEPNAX3.js +2244 -0
- package/package/dist/secp256k1-5CEPNAX3.js.map +1 -0
- package/package/dist/typedData.d.ts +234 -0
- package/package/dist/typedData.d.ts.map +1 -0
- package/package/dist/types.d.ts +45 -0
- package/package/dist/types.d.ts.map +1 -0
- package/package/package/.turbo/turbo-build.log +48 -0
- package/package/package/dist/_esm-KB2T7G46.js +3923 -0
- package/package/package/dist/_esm-KB2T7G46.js.map +1 -0
- package/package/package/dist/ccip-42FQPB7J.js +15 -0
- package/package/package/dist/ccip-42FQPB7J.js.map +1 -0
- package/package/package/dist/chunk-3EJPJMEH.js +44 -0
- package/package/package/dist/chunk-3EJPJMEH.js.map +1 -0
- package/package/package/dist/chunk-5JV63AHR.js +129 -0
- package/package/package/dist/chunk-5JV63AHR.js.map +1 -0
- package/package/package/dist/chunk-YMRS2KON.js +3956 -0
- package/package/package/dist/chunk-YMRS2KON.js.map +1 -0
- package/package/package/dist/encoding.d.ts +15 -0
- package/package/package/dist/encoding.d.ts.map +1 -0
- package/package/package/dist/generated/1155.d.ts +232 -0
- package/package/package/dist/generated/1155.d.ts.map +1 -0
- package/package/package/dist/generated/sparks.d.ts +85 -0
- package/package/package/dist/generated/sparks.d.ts.map +1 -0
- package/package/package/dist/generated/wagmi.d.ts +27548 -0
- package/package/package/dist/generated/wagmi.d.ts.map +1 -0
- package/package/package/dist/index.cjs +12957 -0
- package/package/package/dist/index.cjs.map +1 -0
- package/package/package/dist/index.d.ts +7 -0
- package/package/package/dist/index.d.ts.map +1 -0
- package/package/package/dist/index.js +11268 -0
- package/package/package/dist/index.js.map +1 -0
- package/package/package/dist/secp256k1-5CEPNAX3.js +2244 -0
- package/package/package/dist/secp256k1-5CEPNAX3.js.map +1 -0
- package/package/package/dist/typedData.d.ts +234 -0
- package/package/package/dist/typedData.d.ts.map +1 -0
- package/package/package/dist/types.d.ts +45 -0
- package/package/package/dist/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/generated/wagmi.ts +74 -19
- package/src/typedData.ts +133 -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 → package/dist}/ccip-42FQPB7J.js +0 -0
- /package/{dist → package/dist}/chunk-YMRS2KON.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeAbiParameters,
|
|
3
|
+
etherUnits,
|
|
3
4
|
getAbiItem,
|
|
4
5
|
keccak256,
|
|
5
6
|
toHex
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IB365BT5.js";
|
|
7
8
|
import "./chunk-5JV63AHR.js";
|
|
8
9
|
import {
|
|
9
10
|
__export
|
|
@@ -134,6 +135,11 @@ var commentsABI = [
|
|
|
134
135
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
135
136
|
]
|
|
136
137
|
},
|
|
138
|
+
{
|
|
139
|
+
name: "commenterSmartWallet",
|
|
140
|
+
internalType: "address",
|
|
141
|
+
type: "address"
|
|
142
|
+
},
|
|
137
143
|
{ name: "referrer", internalType: "address", type: "address" }
|
|
138
144
|
],
|
|
139
145
|
name: "comment",
|
|
@@ -154,7 +160,19 @@ var commentsABI = [
|
|
|
154
160
|
{
|
|
155
161
|
stateMutability: "view",
|
|
156
162
|
type: "function",
|
|
157
|
-
inputs: [
|
|
163
|
+
inputs: [
|
|
164
|
+
{
|
|
165
|
+
name: "commentIdentifier",
|
|
166
|
+
internalType: "struct IComments.CommentIdentifier",
|
|
167
|
+
type: "tuple",
|
|
168
|
+
components: [
|
|
169
|
+
{ name: "commenter", internalType: "address", type: "address" },
|
|
170
|
+
{ name: "contractAddress", internalType: "address", type: "address" },
|
|
171
|
+
{ name: "tokenId", internalType: "uint256", type: "uint256" },
|
|
172
|
+
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
],
|
|
158
176
|
name: "commentSparksQuantity",
|
|
159
177
|
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
160
178
|
},
|
|
@@ -207,6 +225,21 @@ var commentsABI = [
|
|
|
207
225
|
}
|
|
208
226
|
]
|
|
209
227
|
},
|
|
228
|
+
{
|
|
229
|
+
stateMutability: "view",
|
|
230
|
+
type: "function",
|
|
231
|
+
inputs: [],
|
|
232
|
+
name: "eip712Domain",
|
|
233
|
+
outputs: [
|
|
234
|
+
{ name: "fields", internalType: "bytes1", type: "bytes1" },
|
|
235
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
236
|
+
{ name: "version", internalType: "string", type: "string" },
|
|
237
|
+
{ name: "chainId", internalType: "uint256", type: "uint256" },
|
|
238
|
+
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
239
|
+
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
240
|
+
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
241
|
+
]
|
|
242
|
+
},
|
|
210
243
|
{
|
|
211
244
|
stateMutability: "view",
|
|
212
245
|
type: "function",
|
|
@@ -322,15 +355,19 @@ var commentsABI = [
|
|
|
322
355
|
]
|
|
323
356
|
},
|
|
324
357
|
{ name: "text", internalType: "string", type: "string" },
|
|
325
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
326
358
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
327
359
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
328
360
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
329
|
-
{ name: "sourceChainId", internalType: "
|
|
361
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
330
362
|
{
|
|
331
363
|
name: "destinationChainId",
|
|
332
|
-
internalType: "
|
|
333
|
-
type: "
|
|
364
|
+
internalType: "uint32",
|
|
365
|
+
type: "uint32"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "commenterSmartWallet",
|
|
369
|
+
internalType: "address",
|
|
370
|
+
type: "address"
|
|
334
371
|
}
|
|
335
372
|
]
|
|
336
373
|
}
|
|
@@ -367,11 +404,11 @@ var commentsABI = [
|
|
|
367
404
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
368
405
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
369
406
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
370
|
-
{ name: "sourceChainId", internalType: "
|
|
407
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
371
408
|
{
|
|
372
409
|
name: "destinationChainId",
|
|
373
|
-
internalType: "
|
|
374
|
-
type: "
|
|
410
|
+
internalType: "uint32",
|
|
411
|
+
type: "uint32"
|
|
375
412
|
}
|
|
376
413
|
]
|
|
377
414
|
}
|
|
@@ -379,6 +416,13 @@ var commentsABI = [
|
|
|
379
416
|
name: "hashPermitSparkComment",
|
|
380
417
|
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
381
418
|
},
|
|
419
|
+
{
|
|
420
|
+
stateMutability: "view",
|
|
421
|
+
type: "function",
|
|
422
|
+
inputs: [],
|
|
423
|
+
name: "implementation",
|
|
424
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
425
|
+
},
|
|
382
426
|
{
|
|
383
427
|
stateMutability: "nonpayable",
|
|
384
428
|
type: "function",
|
|
@@ -440,15 +484,19 @@ var commentsABI = [
|
|
|
440
484
|
]
|
|
441
485
|
},
|
|
442
486
|
{ name: "text", internalType: "string", type: "string" },
|
|
443
|
-
{ name: "sparksQuantity", internalType: "uint64", type: "uint64" },
|
|
444
487
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
445
488
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
446
489
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
447
|
-
{ name: "sourceChainId", internalType: "
|
|
490
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
448
491
|
{
|
|
449
492
|
name: "destinationChainId",
|
|
450
|
-
internalType: "
|
|
451
|
-
type: "
|
|
493
|
+
internalType: "uint32",
|
|
494
|
+
type: "uint32"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: "commenterSmartWallet",
|
|
498
|
+
internalType: "address",
|
|
499
|
+
type: "address"
|
|
452
500
|
}
|
|
453
501
|
]
|
|
454
502
|
},
|
|
@@ -486,11 +534,11 @@ var commentsABI = [
|
|
|
486
534
|
{ name: "deadline", internalType: "uint256", type: "uint256" },
|
|
487
535
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" },
|
|
488
536
|
{ name: "referrer", internalType: "address", type: "address" },
|
|
489
|
-
{ name: "sourceChainId", internalType: "
|
|
537
|
+
{ name: "sourceChainId", internalType: "uint32", type: "uint32" },
|
|
490
538
|
{
|
|
491
539
|
name: "destinationChainId",
|
|
492
|
-
internalType: "
|
|
493
|
-
type: "
|
|
540
|
+
internalType: "uint32",
|
|
541
|
+
type: "uint32"
|
|
494
542
|
}
|
|
495
543
|
]
|
|
496
544
|
},
|
|
@@ -680,6 +728,7 @@ var commentsABI = [
|
|
|
680
728
|
],
|
|
681
729
|
name: "Commented"
|
|
682
730
|
},
|
|
731
|
+
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
683
732
|
{
|
|
684
733
|
type: "event",
|
|
685
734
|
anonymous: false,
|
|
@@ -894,7 +943,10 @@ var commentsABI = [
|
|
|
894
943
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
895
944
|
{ type: "error", inputs: [], name: "InvalidSignature" },
|
|
896
945
|
{ type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
|
|
946
|
+
{ type: "error", inputs: [], name: "NoFundsRecipient" },
|
|
897
947
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
948
|
+
{ type: "error", inputs: [], name: "NotSmartWallet" },
|
|
949
|
+
{ type: "error", inputs: [], name: "NotSmartWalletOwner" },
|
|
898
950
|
{ type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
|
|
899
951
|
{ type: "error", inputs: [], name: "OnlySparksContract" },
|
|
900
952
|
{ type: "error", inputs: [], name: "TransferFailed" },
|
|
@@ -914,7 +966,8 @@ var commentsABI = [
|
|
|
914
966
|
}
|
|
915
967
|
];
|
|
916
968
|
var commentsAddress = {
|
|
917
|
-
|
|
969
|
+
7777777: "0x8C0757EFfD2Cc68F00810d2d144F729F6ed5CdA3",
|
|
970
|
+
999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
|
|
918
971
|
};
|
|
919
972
|
var commentsConfig = {
|
|
920
973
|
address: commentsAddress,
|
|
@@ -11537,6 +11590,44 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
11537
11590
|
abi: zoraTimedSaleStrategyABI
|
|
11538
11591
|
};
|
|
11539
11592
|
|
|
11593
|
+
// ../../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
|
|
11594
|
+
function parseUnits(value, decimals) {
|
|
11595
|
+
let [integer, fraction = "0"] = value.split(".");
|
|
11596
|
+
const negative = integer.startsWith("-");
|
|
11597
|
+
if (negative)
|
|
11598
|
+
integer = integer.slice(1);
|
|
11599
|
+
fraction = fraction.replace(/(0+)$/, "");
|
|
11600
|
+
if (decimals === 0) {
|
|
11601
|
+
if (Math.round(Number(`.${fraction}`)) === 1)
|
|
11602
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
11603
|
+
fraction = "";
|
|
11604
|
+
} else if (fraction.length > decimals) {
|
|
11605
|
+
const [left, unit, right] = [
|
|
11606
|
+
fraction.slice(0, decimals - 1),
|
|
11607
|
+
fraction.slice(decimals - 1, decimals),
|
|
11608
|
+
fraction.slice(decimals)
|
|
11609
|
+
];
|
|
11610
|
+
const rounded = Math.round(Number(`${unit}.${right}`));
|
|
11611
|
+
if (rounded > 9)
|
|
11612
|
+
fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
|
|
11613
|
+
else
|
|
11614
|
+
fraction = `${left}${rounded}`;
|
|
11615
|
+
if (fraction.length > decimals) {
|
|
11616
|
+
fraction = fraction.slice(1);
|
|
11617
|
+
integer = `${BigInt(integer) + 1n}`;
|
|
11618
|
+
}
|
|
11619
|
+
fraction = fraction.slice(0, decimals);
|
|
11620
|
+
} else {
|
|
11621
|
+
fraction = fraction.padEnd(decimals, "0");
|
|
11622
|
+
}
|
|
11623
|
+
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
11624
|
+
}
|
|
11625
|
+
|
|
11626
|
+
// ../../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
|
|
11627
|
+
function parseEther(ether, unit = "wei") {
|
|
11628
|
+
return parseUnits(ether, etherUnits[unit]);
|
|
11629
|
+
}
|
|
11630
|
+
|
|
11540
11631
|
// src/types.ts
|
|
11541
11632
|
var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
|
|
11542
11633
|
PremintConfigVersion2["V1"] = "1";
|
|
@@ -11844,6 +11935,71 @@ var sponsoredSparksBatchTypedDataDefinition = ({
|
|
|
11844
11935
|
verifyingContract: sponsoredSparksSpenderAddress[chainId]
|
|
11845
11936
|
}
|
|
11846
11937
|
});
|
|
11938
|
+
var commentIdentifierType = [
|
|
11939
|
+
{ name: "contractAddress", type: "address" },
|
|
11940
|
+
{ name: "tokenId", type: "uint256" },
|
|
11941
|
+
{ name: "commenter", type: "address" },
|
|
11942
|
+
{ name: "nonce", type: "bytes32" }
|
|
11943
|
+
];
|
|
11944
|
+
var permitCommentTypedDataType = {
|
|
11945
|
+
PermitComment: [
|
|
11946
|
+
{ name: "contractAddress", type: "address" },
|
|
11947
|
+
{ name: "tokenId", type: "uint256" },
|
|
11948
|
+
{ name: "commenter", type: "address" },
|
|
11949
|
+
{ name: "replyTo", type: "CommentIdentifier" },
|
|
11950
|
+
{ name: "text", type: "string" },
|
|
11951
|
+
{ name: "deadline", type: "uint256" },
|
|
11952
|
+
{ name: "nonce", type: "bytes32" },
|
|
11953
|
+
{ name: "commenterSmartWallet", type: "address" },
|
|
11954
|
+
{ name: "referrer", type: "address" },
|
|
11955
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
11956
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
11957
|
+
],
|
|
11958
|
+
CommentIdentifier: commentIdentifierType
|
|
11959
|
+
};
|
|
11960
|
+
var permitSparkCommentTypedDataType = {
|
|
11961
|
+
PermitSparkComment: [
|
|
11962
|
+
{ name: "comment", type: "CommentIdentifier" },
|
|
11963
|
+
{ name: "sparker", type: "address" },
|
|
11964
|
+
{ name: "sparksQuantity", type: "uint64" },
|
|
11965
|
+
{ name: "deadline", type: "uint256" },
|
|
11966
|
+
{ name: "nonce", type: "bytes32" },
|
|
11967
|
+
{ name: "referrer", type: "address" },
|
|
11968
|
+
{ name: "sourceChainId", type: "uint32" },
|
|
11969
|
+
{ name: "destinationChainId", type: "uint32" }
|
|
11970
|
+
],
|
|
11971
|
+
CommentIdentifier: commentIdentifierType
|
|
11972
|
+
};
|
|
11973
|
+
var commentsDomain = ({
|
|
11974
|
+
signingChainId,
|
|
11975
|
+
destinationChainId
|
|
11976
|
+
}) => ({
|
|
11977
|
+
chainId: signingChainId,
|
|
11978
|
+
name: "Comments",
|
|
11979
|
+
version: "1",
|
|
11980
|
+
verifyingContract: commentsAddress[destinationChainId]
|
|
11981
|
+
});
|
|
11982
|
+
var permitCommentTypedDataDefinition = (message, signingAccount) => ({
|
|
11983
|
+
types: permitCommentTypedDataType,
|
|
11984
|
+
message,
|
|
11985
|
+
primaryType: "PermitComment",
|
|
11986
|
+
domain: commentsDomain({
|
|
11987
|
+
signingChainId: message.sourceChainId,
|
|
11988
|
+
destinationChainId: message.destinationChainId
|
|
11989
|
+
}),
|
|
11990
|
+
account: signingAccount || message.commenter
|
|
11991
|
+
});
|
|
11992
|
+
var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
|
|
11993
|
+
types: permitSparkCommentTypedDataType,
|
|
11994
|
+
message,
|
|
11995
|
+
primaryType: "PermitSparkComment",
|
|
11996
|
+
domain: commentsDomain({
|
|
11997
|
+
signingChainId: message.sourceChainId,
|
|
11998
|
+
destinationChainId: message.destinationChainId
|
|
11999
|
+
}),
|
|
12000
|
+
account: signingAccount || message.sparker
|
|
12001
|
+
});
|
|
12002
|
+
var sparkValue = () => parseEther("0.000001");
|
|
11847
12003
|
|
|
11848
12004
|
// src/encoding.ts
|
|
11849
12005
|
var safeTransferSwapAbiParameters = [
|
|
@@ -12203,6 +12359,8 @@ export {
|
|
|
12203
12359
|
mintsEthUnwrapperAndCallerConfig,
|
|
12204
12360
|
mintsSafeTransferBatchTypedDataDefinition,
|
|
12205
12361
|
mintsSafeTransferTypedDataDefinition,
|
|
12362
|
+
permitCommentTypedDataDefinition,
|
|
12363
|
+
permitSparkCommentTypedDataDefinition,
|
|
12206
12364
|
premintTypedDataDefinition,
|
|
12207
12365
|
premintV1TypedDataDefinition,
|
|
12208
12366
|
premintV2TypedDataDefinition,
|
|
@@ -12213,6 +12371,7 @@ export {
|
|
|
12213
12371
|
secondarySwapABI,
|
|
12214
12372
|
secondarySwapAddress,
|
|
12215
12373
|
secondarySwapConfig,
|
|
12374
|
+
sparkValue,
|
|
12216
12375
|
sparks_exports as sparks,
|
|
12217
12376
|
sponsoredSparksBatchTransferTypedDataType,
|
|
12218
12377
|
sponsoredSparksBatchTypedDataDefinition,
|