@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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +2 -2
- package/dist/index.cjs +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/premint/contract-types.d.ts +1 -1
- package/dist/premint/contract-types.d.ts.map +1 -1
- package/dist/premint/premint-client.d.ts +2 -2
- package/dist/premint/premint-client.d.ts.map +1 -1
- package/dist/premint/preminter.d.ts +1 -1
- package/dist/premint/preminter.d.ts.map +1 -1
- package/dist/preminter.d.ts +1 -1
- package/dist/preminter.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/create/1155-create-helper.ts +1 -1
- package/src/mint/mint-client.test.ts +1 -1
- package/src/mint/mint-client.ts +1 -1
- package/src/premint/contract-types.ts +1 -1
- package/src/premint/premint-client.ts +6 -3
- package/src/premint/preminter.test.ts +1 -1
- package/src/premint/preminter.ts +1 -1
- package/src/preminter.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-sdk",
|
|
3
|
-
"version": "0.5.3
|
|
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/
|
|
19
|
+
"@zoralabs/protocol-deployments": "*",
|
|
20
20
|
"abitype": "^0.10.3",
|
|
21
21
|
"vite": "4.5.0"
|
|
22
22
|
},
|
|
@@ -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/
|
|
5
|
+
import { zoraCreator1155ImplABI } from "@zoralabs/protocol-deployments";
|
|
6
6
|
import { anvilTest, forkUrls, makeAnvilTest } from "src/anvil";
|
|
7
7
|
|
|
8
8
|
const erc721ABI = parseAbi([
|
package/src/mint/mint-client.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { SimulateContractParameters } from "viem";
|
|
|
14
14
|
import {
|
|
15
15
|
zoraCreator1155ImplABI,
|
|
16
16
|
zoraCreatorFixedPriceSaleStrategyAddress,
|
|
17
|
-
} from "@zoralabs/
|
|
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/
|
|
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/
|
|
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,
|
package/src/premint/preminter.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
zoraCreator1155PremintExecutorImplABI,
|
|
6
6
|
zoraCreator1155PremintExecutorImplAddress,
|
|
7
7
|
zoraCreatorFixedPriceSaleStrategyAddress,
|
|
8
|
-
} from "@zoralabs/
|
|
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/
|
|
6
|
+
} from "@zoralabs/protocol-deployments";
|
|
7
7
|
import {
|
|
8
8
|
TypedDataDefinition,
|
|
9
9
|
recoverTypedDataAddress,
|