@zoralabs/protocol-deployments 0.3.5-COMMENTS.1 → 0.3.5-COMMENTS.3
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 +12 -0
- package/dist/_esm-JXHAY2EM.js +4030 -0
- package/dist/_esm-JXHAY2EM.js.map +1 -0
- package/dist/ccip-MZCNL5YG.js +15 -0
- package/dist/chunk-FJ2PMLO3.js +132 -0
- package/dist/chunk-FJ2PMLO3.js.map +1 -0
- package/dist/chunk-MCOK75CU.js +3837 -0
- package/dist/chunk-MCOK75CU.js.map +1 -0
- package/dist/generated/wagmi.d.ts +259 -139
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +203 -219
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +65 -27
- package/dist/index.js.map +1 -1
- package/dist/secp256k1-NJATWSDZ.js +2395 -0
- package/dist/secp256k1-NJATWSDZ.js.map +1 -0
- package/dist/typedData.d.ts +12 -3
- package/dist/typedData.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/{dist/ccip-TLVKUNHE.js → package/dist/ccip-42FQPB7J.js} +2 -2
- 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/{dist/chunk-IB365BT5.js → package/dist/chunk-YMRS2KON.js} +2 -3
- 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/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 +4 -5
- package/src/generated/wagmi.ts +177 -92
- package/src/typedData.ts +12 -3
- /package/dist/{ccip-TLVKUNHE.js.map → ccip-MZCNL5YG.js.map} +0 -0
- /package/{dist → package/dist}/_esm-KB2T7G46.js +0 -0
- /package/{dist → package/dist}/_esm-KB2T7G46.js.map +0 -0
- /package/{dist → package/dist}/chunk-5JV63AHR.js +0 -0
- /package/{dist → package/dist}/chunk-5JV63AHR.js.map +0 -0
- /package/{dist/chunk-IB365BT5.js.map → package/dist/chunk-YMRS2KON.js.map} +0 -0
- /package/{dist → package/dist}/secp256k1-5CEPNAX3.js +0 -0
- /package/{dist → package/dist}/secp256k1-5CEPNAX3.js.map +0 -0
package/src/typedData.ts
CHANGED
|
@@ -434,6 +434,7 @@ const permitCommentTypedDataType = {
|
|
|
434
434
|
{ name: "text", type: "string" },
|
|
435
435
|
{ name: "deadline", type: "uint256" },
|
|
436
436
|
{ name: "nonce", type: "bytes32" },
|
|
437
|
+
{ name: "commenterSmartWallet", type: "address" },
|
|
437
438
|
{ name: "referrer", type: "address" },
|
|
438
439
|
{ name: "sourceChainId", type: "uint32" },
|
|
439
440
|
{ name: "destinationChainId", type: "uint32" },
|
|
@@ -445,7 +446,7 @@ const permitSparkCommentTypedDataType = {
|
|
|
445
446
|
PermitSparkComment: [
|
|
446
447
|
{ name: "comment", type: "CommentIdentifier" },
|
|
447
448
|
{ name: "sparker", type: "address" },
|
|
448
|
-
{ name: "sparksQuantity", type: "
|
|
449
|
+
{ name: "sparksQuantity", type: "uint256" },
|
|
449
450
|
{ name: "deadline", type: "uint256" },
|
|
450
451
|
{ name: "nonce", type: "bytes32" },
|
|
451
452
|
{ name: "referrer", type: "address" },
|
|
@@ -481,12 +482,16 @@ const commentsDomain = ({
|
|
|
481
482
|
* but be valid to be executed on the destination chain.
|
|
482
483
|
*
|
|
483
484
|
* @param message - The {@link PermitComment} containing the details of the comment permit.
|
|
485
|
+
* @param signingAccount - (optional) The account that is signing the message, if different thatn the commentor.
|
|
486
|
+
* Only needed if the commentor is a smart wallet; in this case the signing account should be an account
|
|
487
|
+
* that is one of the smart wallet owners.
|
|
484
488
|
* @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
|
|
485
489
|
* including types, message, primary type, domain, and the signer's account address, which is
|
|
486
490
|
* the commenter's address.
|
|
487
491
|
*/
|
|
488
492
|
export const permitCommentTypedDataDefinition = (
|
|
489
493
|
message: PermitComment,
|
|
494
|
+
signingAccount?: Address,
|
|
490
495
|
): TypedDataDefinition<typeof permitCommentTypedDataType, "PermitComment"> & {
|
|
491
496
|
account: Address;
|
|
492
497
|
} => ({
|
|
@@ -498,7 +503,7 @@ export const permitCommentTypedDataDefinition = (
|
|
|
498
503
|
destinationChainId:
|
|
499
504
|
message.destinationChainId as keyof typeof commentsAddress,
|
|
500
505
|
}),
|
|
501
|
-
account: message.commenter,
|
|
506
|
+
account: signingAccount || message.commenter,
|
|
502
507
|
});
|
|
503
508
|
|
|
504
509
|
/**
|
|
@@ -514,12 +519,16 @@ export const permitCommentTypedDataDefinition = (
|
|
|
514
519
|
* but be valid to be executed on the destination chain.
|
|
515
520
|
*
|
|
516
521
|
* @param message - The {@link PermitSparkComment} containing the details of the spark comment permit.
|
|
522
|
+
* @param signingAccount - (optional) The account that is signing the message, if different than the commenter.
|
|
523
|
+
* Only needed if the commenter is a smart wallet; in this case the signing account should be an account
|
|
524
|
+
* that is one of the smart wallet owners.
|
|
517
525
|
* @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
|
|
518
526
|
* including types, message, primary type, domain, and the signer's account address, which is
|
|
519
527
|
* the sparker's address.
|
|
520
528
|
*/
|
|
521
529
|
export const permitSparkCommentTypedDataDefinition = (
|
|
522
530
|
message: PermitSparkComment,
|
|
531
|
+
signingAccount?: Address,
|
|
523
532
|
): TypedDataDefinition<
|
|
524
533
|
typeof permitSparkCommentTypedDataType,
|
|
525
534
|
"PermitSparkComment"
|
|
@@ -532,7 +541,7 @@ export const permitSparkCommentTypedDataDefinition = (
|
|
|
532
541
|
destinationChainId:
|
|
533
542
|
message.destinationChainId as keyof typeof commentsAddress,
|
|
534
543
|
}),
|
|
535
|
-
account: message.sparker,
|
|
544
|
+
account: signingAccount || message.sparker,
|
|
536
545
|
});
|
|
537
546
|
|
|
538
547
|
// todo: explain
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|