@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.
@@ -1,7 +1,7 @@
1
1
  import { Address, TypedDataToPrimitiveTypes } from "abitype";
2
2
  import { TypedDataDefinition } from "viem";
3
3
  import { zoraMints1155Address, sponsoredSparksSpenderAddress } from "./generated/wagmi";
4
- import { PremintConfigEncoded, PremintConfigV1, PremintConfigV2, PremintConfigVersion, PremintConfigWithVersion } from "./types";
4
+ import { PremintConfigEncoded, PremintConfigV1, PremintConfigV2, PremintConfigVersion, PremintConfigWithVersion, PermitComment, PermitSparkComment, PermitMintAndComment, PermitBuyOnSecondaryAndComment } from "./types";
5
5
  declare const premintV1TypedDataType: {
6
6
  readonly CreatorAttribution: readonly [{
7
7
  readonly name: "tokenConfig";
@@ -230,5 +230,238 @@ export declare const sponsoredSparksBatchTypedDataDefinition: ({ chainId, messag
230
230
  chainId: keyof typeof sponsoredSparksSpenderAddress;
231
231
  message: TypedDataToPrimitiveTypes<typeof sponsoredSparksBatchTransferTypedDataType>["SponsoredMintBatch"];
232
232
  }) => TypedDataDefinition<typeof sponsoredSparksBatchTransferTypedDataType, "SponsoredMintBatch">;
233
+ /**
234
+ * Generates the typed data definition for a permit comment, for cross-chain commenting.
235
+ *
236
+ * The permit allows a user to sign a comment message on one chain, which can then be
237
+ * submitted by anyone on the destination chain to execute the comment action.
238
+ *
239
+ * The permit includes details such as the comment text, the commenter's address,
240
+ * the comment being replied to, and chain IDs for the source and destination chains.
241
+ *
242
+ * The typed data is generated in a way that makes the signature happen on the source chain
243
+ * but be valid to be executed on the destination chain.
244
+ *
245
+ * @param message - The {@link PermitComment} containing the details of the comment permit.
246
+ * @param signingAccount - (optional) The account that is signing the message, if different thatn the commentor.
247
+ * Only needed if the commentor is a smart wallet; in this case the signing account should be an account
248
+ * that is one of the smart wallet owners.
249
+ * @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
250
+ * including types, message, primary type, domain, and the signer's account address, which is
251
+ * the commenter's address.
252
+ */
253
+ export declare const permitCommentTypedDataDefinition: (message: PermitComment, signingAccount?: Address) => TypedDataDefinition<{
254
+ readonly PermitComment: readonly [{
255
+ readonly name: "contractAddress";
256
+ readonly type: "address";
257
+ }, {
258
+ readonly name: "tokenId";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly name: "commenter";
262
+ readonly type: "address";
263
+ }, {
264
+ readonly name: "replyTo";
265
+ readonly type: "CommentIdentifier";
266
+ }, {
267
+ readonly name: "text";
268
+ readonly type: "string";
269
+ }, {
270
+ readonly name: "deadline";
271
+ readonly type: "uint256";
272
+ }, {
273
+ readonly name: "nonce";
274
+ readonly type: "bytes32";
275
+ }, {
276
+ readonly name: "commenterSmartWallet";
277
+ readonly type: "address";
278
+ }, {
279
+ readonly name: "referrer";
280
+ readonly type: "address";
281
+ }, {
282
+ readonly name: "sourceChainId";
283
+ readonly type: "uint32";
284
+ }, {
285
+ readonly name: "destinationChainId";
286
+ readonly type: "uint32";
287
+ }];
288
+ readonly CommentIdentifier: readonly [{
289
+ readonly name: "contractAddress";
290
+ readonly type: "address";
291
+ }, {
292
+ readonly name: "tokenId";
293
+ readonly type: "uint256";
294
+ }, {
295
+ readonly name: "commenter";
296
+ readonly type: "address";
297
+ }, {
298
+ readonly name: "nonce";
299
+ readonly type: "bytes32";
300
+ }];
301
+ }, "PermitComment"> & {
302
+ account: Address;
303
+ };
304
+ /**
305
+ * Generates the typed data definition for a permit spark comment, for cross-chain sparking (liking with value) of comments.
306
+ *
307
+ * The permit allows a user to sign a spark comment message on one chain, which can then be
308
+ * submitted by anyone on the destination chain to execute the spark action.
309
+ *
310
+ * The permit includes details such as the comment to be sparked, the sparker's address,
311
+ * the quantity of sparks, and the source and destination chain ids.
312
+ *
313
+ * The typed data is generated in a way that makes the signature happen on the source chain
314
+ * but be valid to be executed on the destination chain.
315
+ *
316
+ * @param message - The {@link PermitSparkComment} containing the details of the spark comment permit.
317
+ * @param signingAccount - (optional) The account that is signing the message, if different than the commenter.
318
+ * Only needed if the commenter is a smart wallet; in this case the signing account should be an account
319
+ * that is one of the smart wallet owners.
320
+ * @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
321
+ * including types, message, primary type, domain, and the signer's account address, which is
322
+ * the sparker's address.
323
+ */
324
+ export declare const permitSparkCommentTypedDataDefinition: (message: PermitSparkComment, signingAccount?: Address) => TypedDataDefinition<{
325
+ readonly PermitSparkComment: readonly [{
326
+ readonly name: "comment";
327
+ readonly type: "CommentIdentifier";
328
+ }, {
329
+ readonly name: "sparker";
330
+ readonly type: "address";
331
+ }, {
332
+ readonly name: "sparksQuantity";
333
+ readonly type: "uint256";
334
+ }, {
335
+ readonly name: "deadline";
336
+ readonly type: "uint256";
337
+ }, {
338
+ readonly name: "nonce";
339
+ readonly type: "bytes32";
340
+ }, {
341
+ readonly name: "referrer";
342
+ readonly type: "address";
343
+ }, {
344
+ readonly name: "sourceChainId";
345
+ readonly type: "uint32";
346
+ }, {
347
+ readonly name: "destinationChainId";
348
+ readonly type: "uint32";
349
+ }];
350
+ readonly CommentIdentifier: readonly [{
351
+ readonly name: "contractAddress";
352
+ readonly type: "address";
353
+ }, {
354
+ readonly name: "tokenId";
355
+ readonly type: "uint256";
356
+ }, {
357
+ readonly name: "commenter";
358
+ readonly type: "address";
359
+ }, {
360
+ readonly name: "nonce";
361
+ readonly type: "bytes32";
362
+ }];
363
+ }, "PermitSparkComment"> & {
364
+ account: Address;
365
+ };
366
+ export declare const sparkValue: () => bigint;
367
+ /**
368
+ * Generates the typed data definition for a permit timed sale mint and comment operation.
369
+ *
370
+ * This function creates a structured data object that can be used for EIP-712 signing,
371
+ * allowing users to sign a message on one chain that permits a timed sale mint and comment
372
+ * action to be executed on another chain.
373
+ *
374
+ * @param message - The {@link PermitMintAndComment} containing the details of the permit.
375
+ * @param signingAccount - (optional) The account that is signing the message, if different from the commenter.
376
+ * This is typically used when the commenter is a smart wallet, and the signing account is one of its owners.
377
+ * @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
378
+ * including types, message, primary type, domain, and the signer's account address.
379
+ */
380
+ export declare const permitMintAndCommentTypedDataDefinition: (message: PermitMintAndComment, signingAccount?: Address) => TypedDataDefinition<{
381
+ readonly PermitTimedSaleMintAndComment: readonly [{
382
+ readonly name: "commenter";
383
+ readonly type: "address";
384
+ }, {
385
+ readonly name: "quantity";
386
+ readonly type: "uint256";
387
+ }, {
388
+ readonly name: "collection";
389
+ readonly type: "address";
390
+ }, {
391
+ readonly name: "tokenId";
392
+ readonly type: "uint256";
393
+ }, {
394
+ readonly name: "mintReferral";
395
+ readonly type: "address";
396
+ }, {
397
+ readonly name: "comment";
398
+ readonly type: "string";
399
+ }, {
400
+ readonly name: "deadline";
401
+ readonly type: "uint256";
402
+ }, {
403
+ readonly name: "nonce";
404
+ readonly type: "bytes32";
405
+ }, {
406
+ readonly name: "sourceChainId";
407
+ readonly type: "uint32";
408
+ }, {
409
+ readonly name: "destinationChainId";
410
+ readonly type: "uint32";
411
+ }];
412
+ }, "PermitTimedSaleMintAndComment"> & {
413
+ account: Address;
414
+ };
415
+ /**
416
+ * Generates the typed data definition for a permit buy on secondary and comment operation.
417
+ *
418
+ * This function creates a structured data object that can be used for EIP-712 signing,
419
+ * allowing users to sign a message on one chain that permits a buy on secondary market and comment
420
+ * action to be executed on another chain.
421
+ *
422
+ * @param message - The {@link PermitBuyOnSecondaryAndComment} containing the details of the permit.
423
+ * @param signingAccount - (optional) The account that is signing the message, if different from the commenter.
424
+ * This is typically used when the commenter is a smart wallet, and the signing account is one of its owners.
425
+ * @returns A {@link TypedDataDefinition} object compatible with EIP-712 for structured data hashing and signing,
426
+ * including types, message, primary type, domain, and the signer's account address.
427
+ */
428
+ export declare const permitBuyOnSecondaryAndCommentTypedDataDefinition: (message: PermitBuyOnSecondaryAndComment, signingAccount?: Address) => TypedDataDefinition<{
429
+ readonly PermitBuyOnSecondaryAndComment: readonly [{
430
+ readonly name: "commenter";
431
+ readonly type: "address";
432
+ }, {
433
+ readonly name: "quantity";
434
+ readonly type: "uint256";
435
+ }, {
436
+ readonly name: "collection";
437
+ readonly type: "address";
438
+ }, {
439
+ readonly name: "tokenId";
440
+ readonly type: "uint256";
441
+ }, {
442
+ readonly name: "maxEthToSpend";
443
+ readonly type: "uint256";
444
+ }, {
445
+ readonly name: "sqrtPriceLimitX96";
446
+ readonly type: "uint160";
447
+ }, {
448
+ readonly name: "comment";
449
+ readonly type: "string";
450
+ }, {
451
+ readonly name: "deadline";
452
+ readonly type: "uint256";
453
+ }, {
454
+ readonly name: "nonce";
455
+ readonly type: "bytes32";
456
+ }, {
457
+ readonly name: "sourceChainId";
458
+ readonly type: "uint32";
459
+ }, {
460
+ readonly name: "destinationChainId";
461
+ readonly type: "uint32";
462
+ }];
463
+ }, "PermitBuyOnSecondaryAndComment"> & {
464
+ account: Address;
465
+ };
233
466
  export {};
234
467
  //# sourceMappingURL=typedData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../src/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAGP,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,mBAAmB,EAKpB,MAAM,MAAM,CAAC;AACd,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EAKzB,MAAM,SAAS,CAAC;AAiBjB,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBE,CAAC;AA8C/B,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,oBAAoB,4CAG/D,wBAAwB,CAAC,CAAC,CAAC,KAAG,oBAahC,CAAC;AAEF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,CACjC,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAyCrB,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ExtractAbiFunction, AbiParametersToPrimitiveTypes } from "abitype";
2
2
  import { zoraCreator1155PremintExecutorImplABI, iPremintDefinitionsABI, sponsoredSparksSpenderABI } from "./generated/wagmi";
3
3
  import { Address } from "viem";
4
+ import { commentsABI, callerAndCommenterABI } from "./generated/wagmi";
4
5
  export declare enum PremintConfigVersion {
5
6
  V1 = "1",
6
7
  V2 = "2",
@@ -41,5 +42,39 @@ export type TokenConfigWithVersion<T extends PremintConfigVersion> = {
41
42
  premintConfigVersion: T;
42
43
  };
43
44
  export type SponsoredSparksBatch = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof sponsoredSparksSpenderABI, "hashSponsoredMint">["inputs"]>[0];
45
+ export type CommentIdentifier = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof commentsABI, "hashCommentIdentifier">["inputs"]>[0];
46
+ export declare const emptyCommentIdentifier: () => CommentIdentifier;
47
+ /**
48
+ * The PermitComment type represents the data structure for a permit comment,
49
+ * for cross-chain commenting, where a user can sign a comment message on one chain,
50
+ * which can then be submitted by anyone on the destination chain to execute the comment action.
51
+ *
52
+ * The permit includes details such as the comment text, the commenter's address,
53
+ * the comment being replied to, and chain IDs for the source and destination chains.
54
+ */
55
+ export type PermitComment = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof commentsABI, "hashPermitComment">["inputs"]>[0];
56
+ /**
57
+ * The PermitSparkComment type represents the data structure for a permit spark comment,
58
+ * for cross-chain sparking (liking with value) of comments, where a user can sign a spark comment message on one chain,
59
+ * which can then be submitted by anyone on the destination chain to execute the spark action.
60
+ *
61
+ * The permit includes details such as the comment to be sparked, the sparker's address,
62
+ * the quantity of sparks, and chain IDs for the source and destination chains.
63
+ */
64
+ export type PermitSparkComment = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof commentsABI, "hashPermitSparkComment">["inputs"]>[0];
65
+ /**
66
+ * The PermitTimedSaleMintAndComment type represents the data structure for a permit timed sale mint and comment,
67
+ * where a user can sign a message to mint during a timed sale and leave a comment in a single transaction.
68
+ * This can be executed on the destination chain by anyone.
69
+ *
70
+ * The permit includes details such as the minting parameters, comment text, and chain IDs for the source and destination chains.
71
+ */
72
+ export type PermitMintAndComment = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof callerAndCommenterABI, "hashPermitTimedSaleMintAndComment">["inputs"]>[0];
73
+ /**
74
+ * The PermitBuyOnSecondaryAndComment type represents the data structure for a permit buy on secondary market and comment,
75
+ * where a user can sign a message to buy on secondary market and leave a comment in a single transaction.
76
+ * This can be executed on the destination chain by anyone.
77
+ */
78
+ export type PermitBuyOnSecondaryAndComment = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof callerAndCommenterABI, "hashPermitBuyOnSecondaryAndComment">["inputs"]>[0];
44
79
  export {};
45
80
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE5E,OAAO,EACL,qCAAqC,EACrC,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,oBAAY,oBAAoB;IAC9B,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;CACT;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,6BAA6B,CAC3B,kBAAkB,CAChB,OAAO,qCAAqC,EAC5C,SAAS,CACV,CAAC,QAAQ,CAAC,CACZ,CAAC,CAAC,CAAC,EACJ,kBAAkB,CACnB,GAAG;IACF,gBAAgB,EAAE,OAAO,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAA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s/protocol-deployments",
3
- "version": "0.3.8",
3
+ "version": "0.3.9-COMMENTS.0",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -62,6 +62,13 @@ export const chainConfigs = {
62
62
  ZORA_RECIPIENT: "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
63
63
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
64
64
  },
65
+ 11155420: {
66
+ NONFUNGIBLE_POSITION_MANAGER: "0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",
67
+ UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
68
+ PROXY_ADMIN: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
69
+ ZORA_RECIPIENT: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
70
+ WETH: "0x4200000000000000000000000000000000000006",
71
+ },
65
72
  999999999: {
66
73
  NONFUNGIBLE_POSITION_MANAGER: "0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",
67
74
  UNISWAP_SWAP_ROUTER: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a",