@zoralabs/protocol-sdk 0.5.3-mints.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-sdk",
3
- "version": "0.5.3-mints.0",
3
+ "version": "0.5.3",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "lint": "prettier --check 'src/**/*.ts' 'test-integration/**/*.ts'"
17
17
  },
18
18
  "dependencies": {
19
- "@zoralabs/1155-deployments": "0.0.14-mints.0",
19
+ "@zoralabs/protocol-deployments": "*",
20
20
  "abitype": "^0.10.3",
21
21
  "vite": "4.5.0"
22
22
  },
@@ -3,7 +3,7 @@ import {
3
3
  zoraCreator1155FactoryImplAddress,
4
4
  zoraCreator1155ImplABI,
5
5
  zoraCreatorFixedPriceSaleStrategyABI,
6
- } from "@zoralabs/1155-deployments";
6
+ } from "@zoralabs/protocol-deployments";
7
7
  import type {
8
8
  Address,
9
9
  Hex,
@@ -2,7 +2,7 @@ import { Address, parseAbi, parseEther } from "viem";
2
2
  import { zora } from "viem/chains";
3
3
  import { describe, expect } from "vitest";
4
4
  import { createMintClient } from "./mint-client";
5
- import { zoraCreator1155ImplABI } from "@zoralabs/1155-deployments";
5
+ import { zoraCreator1155ImplABI } from "@zoralabs/protocol-deployments";
6
6
  import { anvilTest, forkUrls, makeAnvilTest } from "src/anvil";
7
7
 
8
8
  const erc721ABI = parseAbi([
@@ -14,7 +14,7 @@ import { SimulateContractParameters } from "viem";
14
14
  import {
15
15
  zoraCreator1155ImplABI,
16
16
  zoraCreatorFixedPriceSaleStrategyAddress,
17
- } from "@zoralabs/1155-deployments";
17
+ } from "@zoralabs/protocol-deployments";
18
18
  import { GenericTokenIdTypes } from "src/types";
19
19
  import { zora721Abi } from "src/constants";
20
20
 
@@ -1,5 +1,5 @@
1
1
  import { ExtractAbiFunction, AbiParametersToPrimitiveTypes } from "abitype";
2
- import { zoraCreator1155PremintExecutorImplABI as preminterAbi } from "@zoralabs/1155-deployments";
2
+ import { zoraCreator1155PremintExecutorImplABI as preminterAbi } from "@zoralabs/protocol-deployments";
3
3
 
4
4
  type PremintV1Inputs = ExtractAbiFunction<
5
5
  typeof preminterAbi,
@@ -9,7 +9,7 @@ import type {
9
9
  TransactionReceipt,
10
10
  WalletClient,
11
11
  } from "viem";
12
- import { zoraCreator1155PremintExecutorImplABI } from "@zoralabs/1155-deployments";
12
+ import { zoraCreator1155PremintExecutorImplABI } from "@zoralabs/protocol-deployments";
13
13
  import {
14
14
  getPremintCollectionAddress,
15
15
  premintTypedDataDefinition,
@@ -325,7 +325,7 @@ class PremintClient {
325
325
  uid,
326
326
  checkSignature = false,
327
327
  }: {
328
- creatorAccount: Address;
328
+ creatorAccount: Address | Account;
329
329
  checkSignature?: boolean;
330
330
  walletClient: WalletClient;
331
331
  collection: ContractCreationConfig;
@@ -364,7 +364,10 @@ class PremintClient {
364
364
  tokenConfig: makeTokenConfigWithDefaults({
365
365
  premintConfigVersion: actualVersion,
366
366
  tokenCreationConfig,
367
- creatorAccount,
367
+ creatorAccount:
368
+ typeof creatorAccount === "string"
369
+ ? creatorAccount
370
+ : creatorAccount.address,
368
371
  chainId: this.chain.id,
369
372
  }),
370
373
  uid: uidToUse,
@@ -7,7 +7,7 @@ import {
7
7
  zoraCreator1155ImplABI,
8
8
  zoraCreator1155FactoryImplAddress,
9
9
  zoraCreator1155FactoryImplConfig,
10
- } from "@zoralabs/1155-deployments";
10
+ } from "@zoralabs/protocol-deployments";
11
11
 
12
12
  import {
13
13
  premintTypedDataDefinition,
@@ -5,7 +5,7 @@ import {
5
5
  zoraCreator1155PremintExecutorImplABI,
6
6
  zoraCreator1155PremintExecutorImplAddress,
7
7
  zoraCreatorFixedPriceSaleStrategyAddress,
8
- } from "@zoralabs/1155-deployments";
8
+ } from "@zoralabs/protocol-deployments";
9
9
  import {
10
10
  TypedDataDefinition,
11
11
  recoverTypedDataAddress,
package/src/preminter.ts CHANGED
@@ -3,7 +3,7 @@ import { ExtractAbiFunction, AbiParametersToPrimitiveTypes } from "abitype";
3
3
  import {
4
4
  zoraCreator1155PremintExecutorImplABI as preminterAbi,
5
5
  zoraCreator1155PremintExecutorImplAddress,
6
- } from "@zoralabs/1155-deployments";
6
+ } from "@zoralabs/protocol-deployments";
7
7
  import {
8
8
  TypedDataDefinition,
9
9
  recoverTypedDataAddress,