@zoralabs/protocol-sdk 0.5.11 → 0.5.13
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 +4 -4
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +70 -235
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -184
- package/dist/index.js.map +1 -1
- package/dist/mints/mints-contracts.d.ts +3 -128
- package/dist/mints/mints-contracts.d.ts.map +1 -1
- package/dist/mints/mints-eth-unwrapper-and-caller.d.ts +1 -24
- package/dist/mints/mints-eth-unwrapper-and-caller.d.ts.map +1 -1
- package/dist/premint/contract-types.d.ts +0 -93
- package/dist/premint/contract-types.d.ts.map +1 -1
- package/dist/premint/preminter.d.ts.map +1 -1
- package/dist/preminter.d.ts +1 -1
- package/package.json +1 -1
- package/src/mints/mints-contracts.ts +14 -126
- package/src/mints/mints-eth-unwrapper-and-caller.test.ts +4 -4
- package/src/premint/contract-types.ts +0 -52
- package/src/premint/preminter.ts +12 -20
|
@@ -2564,30 +2564,7 @@ export declare function makePermitTransferBatchAndTypeData({ tokenIds, quantitie
|
|
|
2564
2564
|
deadline: bigint;
|
|
2565
2565
|
nonce: bigint;
|
|
2566
2566
|
};
|
|
2567
|
-
typedData: SignTypedDataParameters
|
|
2568
|
-
readonly Permit: readonly [{
|
|
2569
|
-
readonly name: "owner";
|
|
2570
|
-
readonly type: "address";
|
|
2571
|
-
}, {
|
|
2572
|
-
readonly name: "to";
|
|
2573
|
-
readonly type: "address";
|
|
2574
|
-
}, {
|
|
2575
|
-
readonly name: "tokenIds";
|
|
2576
|
-
readonly type: "uint256[]";
|
|
2577
|
-
}, {
|
|
2578
|
-
readonly name: "quantities";
|
|
2579
|
-
readonly type: "uint256[]";
|
|
2580
|
-
}, {
|
|
2581
|
-
readonly name: "safeTransferData";
|
|
2582
|
-
readonly type: "bytes";
|
|
2583
|
-
}, {
|
|
2584
|
-
readonly name: "nonce";
|
|
2585
|
-
readonly type: "uint256";
|
|
2586
|
-
}, {
|
|
2587
|
-
readonly name: "deadline";
|
|
2588
|
-
readonly type: "uint256";
|
|
2589
|
-
}];
|
|
2590
|
-
}, "Permit">;
|
|
2567
|
+
typedData: SignTypedDataParameters;
|
|
2591
2568
|
};
|
|
2592
2569
|
/**
|
|
2593
2570
|
* Builds the permit data and typed data to sign for permitting a transfer of a MINTs for a single MINTs token id
|
|
@@ -2620,30 +2597,7 @@ export declare function makePermitTransferTypeData({ tokenId, quantity, chainId,
|
|
|
2620
2597
|
deadline: bigint;
|
|
2621
2598
|
nonce: bigint;
|
|
2622
2599
|
};
|
|
2623
|
-
typedData: SignTypedDataParameters
|
|
2624
|
-
readonly PermitSafeTransfer: readonly [{
|
|
2625
|
-
readonly name: "owner";
|
|
2626
|
-
readonly type: "address";
|
|
2627
|
-
}, {
|
|
2628
|
-
readonly name: "to";
|
|
2629
|
-
readonly type: "address";
|
|
2630
|
-
}, {
|
|
2631
|
-
readonly name: "tokenId";
|
|
2632
|
-
readonly type: "uint256";
|
|
2633
|
-
}, {
|
|
2634
|
-
readonly name: "quantity";
|
|
2635
|
-
readonly type: "uint256";
|
|
2636
|
-
}, {
|
|
2637
|
-
readonly name: "safeTransferData";
|
|
2638
|
-
readonly type: "bytes";
|
|
2639
|
-
}, {
|
|
2640
|
-
readonly name: "nonce";
|
|
2641
|
-
readonly type: "uint256";
|
|
2642
|
-
}, {
|
|
2643
|
-
readonly name: "deadline";
|
|
2644
|
-
readonly type: "uint256";
|
|
2645
|
-
}];
|
|
2646
|
-
}, "PermitSafeTransfer">;
|
|
2600
|
+
typedData: SignTypedDataParameters;
|
|
2647
2601
|
};
|
|
2648
2602
|
type PremintOnManagerParams = {
|
|
2649
2603
|
tokenIds: bigint[];
|
|
@@ -2684,30 +2638,7 @@ export declare const makePermitToCollectPremintOrNonPremint: ({ mintsOwner, chai
|
|
|
2684
2638
|
deadline: bigint;
|
|
2685
2639
|
nonce: bigint;
|
|
2686
2640
|
};
|
|
2687
|
-
typedData: SignTypedDataParameters
|
|
2688
|
-
readonly Permit: readonly [{
|
|
2689
|
-
readonly name: "owner";
|
|
2690
|
-
readonly type: "address";
|
|
2691
|
-
}, {
|
|
2692
|
-
readonly name: "to";
|
|
2693
|
-
readonly type: "address";
|
|
2694
|
-
}, {
|
|
2695
|
-
readonly name: "tokenIds";
|
|
2696
|
-
readonly type: "uint256[]";
|
|
2697
|
-
}, {
|
|
2698
|
-
readonly name: "quantities";
|
|
2699
|
-
readonly type: "uint256[]";
|
|
2700
|
-
}, {
|
|
2701
|
-
readonly name: "safeTransferData";
|
|
2702
|
-
readonly type: "bytes";
|
|
2703
|
-
}, {
|
|
2704
|
-
readonly name: "nonce";
|
|
2705
|
-
readonly type: "uint256";
|
|
2706
|
-
}, {
|
|
2707
|
-
readonly name: "deadline";
|
|
2708
|
-
readonly type: "uint256";
|
|
2709
|
-
}];
|
|
2710
|
-
}, "Permit">;
|
|
2641
|
+
typedData: SignTypedDataParameters;
|
|
2711
2642
|
};
|
|
2712
2643
|
/**
|
|
2713
2644
|
* Constructs the parameters to collect a premint using MINTs an account owns.
|
|
@@ -3970,62 +3901,6 @@ export declare function collectPremintV2WithMintsParams({ tokenIds, quantities,
|
|
|
3970
3901
|
export type PermitSafeTransferBatch = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof zoraMints1155Config.abi, "permitSafeTransferBatch">["inputs"]>[0];
|
|
3971
3902
|
export type PermitSafeTransfer = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof zoraMints1155Config.abi, "permitSafeTransfer">["inputs"]>[0];
|
|
3972
3903
|
export type CollectMintArguments = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof zoraMintsManagerImplConfig.abi, "collect">["inputs"]>[3];
|
|
3973
|
-
export declare function permitBatchTypedDataDefinition({ permit, chainId, account, }: {
|
|
3974
|
-
permit: PermitSafeTransferBatch;
|
|
3975
|
-
chainId: keyof typeof zoraMints1155Config.address;
|
|
3976
|
-
account: Account | Address;
|
|
3977
|
-
}): SignTypedDataParameters<{
|
|
3978
|
-
readonly Permit: readonly [{
|
|
3979
|
-
readonly name: "owner";
|
|
3980
|
-
readonly type: "address";
|
|
3981
|
-
}, {
|
|
3982
|
-
readonly name: "to";
|
|
3983
|
-
readonly type: "address";
|
|
3984
|
-
}, {
|
|
3985
|
-
readonly name: "tokenIds";
|
|
3986
|
-
readonly type: "uint256[]";
|
|
3987
|
-
}, {
|
|
3988
|
-
readonly name: "quantities";
|
|
3989
|
-
readonly type: "uint256[]";
|
|
3990
|
-
}, {
|
|
3991
|
-
readonly name: "safeTransferData";
|
|
3992
|
-
readonly type: "bytes";
|
|
3993
|
-
}, {
|
|
3994
|
-
readonly name: "nonce";
|
|
3995
|
-
readonly type: "uint256";
|
|
3996
|
-
}, {
|
|
3997
|
-
readonly name: "deadline";
|
|
3998
|
-
readonly type: "uint256";
|
|
3999
|
-
}];
|
|
4000
|
-
}, "Permit">;
|
|
4001
|
-
export declare function permitTransferTypedDataDefinition({ permit, chainId, account, }: {
|
|
4002
|
-
permit: PermitSafeTransfer;
|
|
4003
|
-
chainId: keyof typeof zoraMints1155Config.address;
|
|
4004
|
-
account: Account | Address;
|
|
4005
|
-
}): SignTypedDataParameters<{
|
|
4006
|
-
readonly PermitSafeTransfer: readonly [{
|
|
4007
|
-
readonly name: "owner";
|
|
4008
|
-
readonly type: "address";
|
|
4009
|
-
}, {
|
|
4010
|
-
readonly name: "to";
|
|
4011
|
-
readonly type: "address";
|
|
4012
|
-
}, {
|
|
4013
|
-
readonly name: "tokenId";
|
|
4014
|
-
readonly type: "uint256";
|
|
4015
|
-
}, {
|
|
4016
|
-
readonly name: "quantity";
|
|
4017
|
-
readonly type: "uint256";
|
|
4018
|
-
}, {
|
|
4019
|
-
readonly name: "safeTransferData";
|
|
4020
|
-
readonly type: "bytes";
|
|
4021
|
-
}, {
|
|
4022
|
-
readonly name: "nonce";
|
|
4023
|
-
readonly type: "uint256";
|
|
4024
|
-
}, {
|
|
4025
|
-
readonly name: "deadline";
|
|
4026
|
-
readonly type: "uint256";
|
|
4027
|
-
}];
|
|
4028
|
-
}, "PermitSafeTransfer">;
|
|
4029
3904
|
/**
|
|
4030
3905
|
* Can be used to decode an a CallFailed error from the ZoraMints1155 contract when it has called a function on the ZoraMintsManager.
|
|
4031
3906
|
* @param error
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mints-contracts.d.ts","sourceRoot":"","sources":["../../src/mints/mints-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mints-contracts.d.ts","sourceRoot":"","sources":["../../src/mints/mints-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAGnB,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EACL,aAAa,IAAI,oBAAoB,EACrC,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EACL,OAAO,EACP,OAAO,EACP,6BAA6B,EAC7B,GAAG,EACH,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EAIxB,MAAM,MAAM,CAAC;AAKd;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;cAOlB,MAAM;;aAEP,MAAM,OAAO,oBAAoB,OAAO;kBACnC,MAAM;aACX,OAAO,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
};
|
|
52
|
-
typedData: import("viem").SignTypedDataParameters
|
|
53
|
-
readonly Permit: readonly [{
|
|
54
|
-
readonly name: "owner";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "to";
|
|
58
|
-
readonly type: "address";
|
|
59
|
-
}, {
|
|
60
|
-
readonly name: "tokenIds";
|
|
61
|
-
readonly type: "uint256[]";
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "quantities";
|
|
64
|
-
readonly type: "uint256[]";
|
|
65
|
-
}, {
|
|
66
|
-
readonly name: "safeTransferData";
|
|
67
|
-
readonly type: "bytes";
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: "nonce";
|
|
70
|
-
readonly type: "uint256";
|
|
71
|
-
}, {
|
|
72
|
-
readonly name: "deadline";
|
|
73
|
-
readonly type: "uint256";
|
|
74
|
-
}];
|
|
75
|
-
}, "Permit">;
|
|
52
|
+
typedData: import("viem").SignTypedDataParameters;
|
|
76
53
|
};
|
|
77
54
|
export {};
|
|
78
55
|
//# sourceMappingURL=mints-eth-unwrapper-and-caller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mints-eth-unwrapper-and-caller.d.ts","sourceRoot":"","sources":["../../src/mints/mints-eth-unwrapper-and-caller.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAsB,MAAM,MAAM,CAAC;AAGjE,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,0EAIzC,iBAAiB,kBAKhB,CAAC;AAEL;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+CAA+C;cAUhD,MAAM,EAAE;gBACN,MAAM,EAAE;aACX,MAAM,OAAO,oBAAoB,OAAO;UAE3C,OAAO,GAAG,OAAO;cACb,MAAM;WACT,MAAM;;iBAGI,iBAAiB;uBACX,SAAS;;kBAGd,SAAS;sBACL,GAAG
|
|
1
|
+
{"version":3,"file":"mints-eth-unwrapper-and-caller.d.ts","sourceRoot":"","sources":["../../src/mints/mints-eth-unwrapper-and-caller.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAsB,MAAM,MAAM,CAAC;AAGjE,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,0EAIzC,iBAAiB,kBAKhB,CAAC;AAEL;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+CAA+C;cAUhD,MAAM,EAAE;gBACN,MAAM,EAAE;aACX,MAAM,OAAO,oBAAoB,OAAO;UAE3C,OAAO,GAAG,OAAO;cACb,MAAM;WACT,MAAM;;iBAGI,iBAAiB;uBACX,SAAS;;kBAGd,SAAS;sBACL,GAAG;;;;;;;;;;;;CAavB,CAAC"}
|
|
@@ -10,99 +10,6 @@ type PremintV2Inputs = ExtractAbiFunction<typeof preminterAbi, "premintV2">["inp
|
|
|
10
10
|
type PremintV2HashDataTypes = AbiParametersToPrimitiveTypes<PremintV2Inputs>;
|
|
11
11
|
export type PremintConfigV2 = PremintV2HashDataTypes[1];
|
|
12
12
|
export type TokenCreationConfigV2 = PremintConfigV2["tokenConfig"];
|
|
13
|
-
export declare const v1Types: {
|
|
14
|
-
readonly CreatorAttribution: readonly [{
|
|
15
|
-
readonly name: "tokenConfig";
|
|
16
|
-
readonly type: "TokenCreationConfig";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "uid";
|
|
19
|
-
readonly type: "uint32";
|
|
20
|
-
}, {
|
|
21
|
-
readonly name: "version";
|
|
22
|
-
readonly type: "uint32";
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "deleted";
|
|
25
|
-
readonly type: "bool";
|
|
26
|
-
}];
|
|
27
|
-
readonly TokenCreationConfig: readonly [{
|
|
28
|
-
readonly name: "tokenURI";
|
|
29
|
-
readonly type: "string";
|
|
30
|
-
}, {
|
|
31
|
-
readonly name: "maxSupply";
|
|
32
|
-
readonly type: "uint256";
|
|
33
|
-
}, {
|
|
34
|
-
readonly name: "maxTokensPerAddress";
|
|
35
|
-
readonly type: "uint64";
|
|
36
|
-
}, {
|
|
37
|
-
readonly name: "pricePerToken";
|
|
38
|
-
readonly type: "uint96";
|
|
39
|
-
}, {
|
|
40
|
-
readonly name: "mintStart";
|
|
41
|
-
readonly type: "uint64";
|
|
42
|
-
}, {
|
|
43
|
-
readonly name: "mintDuration";
|
|
44
|
-
readonly type: "uint64";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "royaltyMintSchedule";
|
|
47
|
-
readonly type: "uint32";
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "royaltyBPS";
|
|
50
|
-
readonly type: "uint32";
|
|
51
|
-
}, {
|
|
52
|
-
readonly name: "royaltyRecipient";
|
|
53
|
-
readonly type: "address";
|
|
54
|
-
}, {
|
|
55
|
-
readonly name: "fixedPriceMinter";
|
|
56
|
-
readonly type: "address";
|
|
57
|
-
}];
|
|
58
|
-
};
|
|
59
|
-
export declare const v2Types: {
|
|
60
|
-
readonly CreatorAttribution: readonly [{
|
|
61
|
-
readonly name: "tokenConfig";
|
|
62
|
-
readonly type: "TokenCreationConfig";
|
|
63
|
-
}, {
|
|
64
|
-
readonly name: "uid";
|
|
65
|
-
readonly type: "uint32";
|
|
66
|
-
}, {
|
|
67
|
-
readonly name: "version";
|
|
68
|
-
readonly type: "uint32";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "deleted";
|
|
71
|
-
readonly type: "bool";
|
|
72
|
-
}];
|
|
73
|
-
readonly TokenCreationConfig: readonly [{
|
|
74
|
-
readonly name: "tokenURI";
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
}, {
|
|
77
|
-
readonly name: "maxSupply";
|
|
78
|
-
readonly type: "uint256";
|
|
79
|
-
}, {
|
|
80
|
-
readonly name: "maxTokensPerAddress";
|
|
81
|
-
readonly type: "uint64";
|
|
82
|
-
}, {
|
|
83
|
-
readonly name: "pricePerToken";
|
|
84
|
-
readonly type: "uint96";
|
|
85
|
-
}, {
|
|
86
|
-
readonly name: "mintStart";
|
|
87
|
-
readonly type: "uint64";
|
|
88
|
-
}, {
|
|
89
|
-
readonly name: "mintDuration";
|
|
90
|
-
readonly type: "uint64";
|
|
91
|
-
}, {
|
|
92
|
-
readonly name: "royaltyBPS";
|
|
93
|
-
readonly type: "uint32";
|
|
94
|
-
}, {
|
|
95
|
-
readonly name: "payoutRecipient";
|
|
96
|
-
readonly type: "address";
|
|
97
|
-
}, {
|
|
98
|
-
readonly name: "fixedPriceMinter";
|
|
99
|
-
readonly type: "address";
|
|
100
|
-
}, {
|
|
101
|
-
readonly name: "createReferral";
|
|
102
|
-
readonly type: "address";
|
|
103
|
-
}];
|
|
104
|
-
};
|
|
105
|
-
export declare const PreminterDomain = "Preminter";
|
|
106
13
|
export declare enum PremintConfigVersion {
|
|
107
14
|
V1 = "1",
|
|
108
15
|
V2 = "2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-types.d.ts","sourceRoot":"","sources":["../../src/premint/contract-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,qCAAqC,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEvG,KAAK,eAAe,GAAG,kBAAkB,CACvC,OAAO,YAAY,EACnB,WAAW,CACZ,CAAC,QAAQ,CAAC,CAAC;AAEZ,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,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preminter.d.ts","sourceRoot":"","sources":["../../src/premint/preminter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAEL,sBAAsB,EAIvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EAEnB,GAAG,EACH,YAAY,EAMZ,YAAY,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,mCAAmC,EACnC,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"preminter.d.ts","sourceRoot":"","sources":["../../src/premint/preminter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAEL,sBAAsB,EAIvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EAEnB,GAAG,EACH,YAAY,EAMZ,YAAY,EAEb,MAAM,MAAM,CAAC;AACd,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,mCAAmC,EACnC,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,eAAO,MAAM,yBAAyB,oDACU,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;uBAMlB,OAAO;aACjB,MAAM;oCACiB,mBAgBjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,wBAAsB,2BAA2B,CAAC,EAChD,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,MAAM,GACP,EAAE;IACD,UAAU,EAAE,sBAAsB,C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CAC5B,GAAG,OAAO,CAAC,SAAS,CAAC,CAQrB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,YAA0B,EAC1B,gBAA8B,GAC/B,EAAE;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,OAAO,EAAE,CAEZ;AAED,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI1E"}
|
package/dist/preminter.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const preminterTypedDataDefinition: ({ verifyingContract, premint
|
|
|
23
23
|
}[];
|
|
24
24
|
};
|
|
25
25
|
} & {
|
|
26
|
-
primaryType: "
|
|
26
|
+
primaryType: "CreatorAttribution" | "TokenCreationConfig";
|
|
27
27
|
domain?: {
|
|
28
28
|
chainId?: number | undefined;
|
|
29
29
|
name?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
mintsSafeTransferBatchTypedDataDefinition,
|
|
3
|
+
mintsSafeTransferTypedDataDefinition,
|
|
2
4
|
zoraMints1155Config,
|
|
3
5
|
zoraMintsManagerImplABI,
|
|
4
6
|
zoraMintsManagerImplAddress,
|
|
@@ -19,7 +21,6 @@ import {
|
|
|
19
21
|
PublicClient,
|
|
20
22
|
ReadContractParameters,
|
|
21
23
|
SignTypedDataParameters,
|
|
22
|
-
TypedData,
|
|
23
24
|
decodeErrorResult,
|
|
24
25
|
encodeFunctionData,
|
|
25
26
|
zeroAddress,
|
|
@@ -230,11 +231,13 @@ export function makePermitTransferBatchAndTypeData({
|
|
|
230
231
|
safeTransferData,
|
|
231
232
|
};
|
|
232
233
|
|
|
233
|
-
const typedData =
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
const typedData: SignTypedDataParameters = {
|
|
235
|
+
...mintsSafeTransferBatchTypedDataDefinition({
|
|
236
|
+
chainId,
|
|
237
|
+
message: permit,
|
|
238
|
+
}),
|
|
236
239
|
account: mintsOwner,
|
|
237
|
-
}
|
|
240
|
+
};
|
|
238
241
|
|
|
239
242
|
return {
|
|
240
243
|
permit,
|
|
@@ -283,11 +286,13 @@ export function makePermitTransferTypeData({
|
|
|
283
286
|
safeTransferData,
|
|
284
287
|
};
|
|
285
288
|
|
|
286
|
-
const typedData =
|
|
287
|
-
|
|
288
|
-
|
|
289
|
+
const typedData: SignTypedDataParameters = {
|
|
290
|
+
...mintsSafeTransferTypedDataDefinition({
|
|
291
|
+
chainId,
|
|
292
|
+
message: permit,
|
|
293
|
+
}),
|
|
289
294
|
account: mintsOwner,
|
|
290
|
-
}
|
|
295
|
+
};
|
|
291
296
|
|
|
292
297
|
return {
|
|
293
298
|
permit,
|
|
@@ -439,123 +444,6 @@ export type CollectMintArguments = AbiParametersToPrimitiveTypes<
|
|
|
439
444
|
ExtractAbiFunction<typeof zoraMintsManagerImplConfig.abi, "collect">["inputs"]
|
|
440
445
|
>[3];
|
|
441
446
|
|
|
442
|
-
function makeTypeData<
|
|
443
|
-
const TTypedData extends TypedData | { [key: string]: unknown },
|
|
444
|
-
TPrimaryType extends string,
|
|
445
|
-
>(args: SignTypedDataParameters<TTypedData, TPrimaryType>) {
|
|
446
|
-
return args;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export function permitBatchTypedDataDefinition({
|
|
450
|
-
permit,
|
|
451
|
-
chainId,
|
|
452
|
-
account,
|
|
453
|
-
}: {
|
|
454
|
-
permit: PermitSafeTransferBatch;
|
|
455
|
-
chainId: keyof typeof zoraMints1155Config.address;
|
|
456
|
-
account: Account | Address;
|
|
457
|
-
}) {
|
|
458
|
-
return makeTypeData({
|
|
459
|
-
primaryType: "Permit",
|
|
460
|
-
types: {
|
|
461
|
-
Permit: [
|
|
462
|
-
{
|
|
463
|
-
name: "owner",
|
|
464
|
-
type: "address",
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
name: "to",
|
|
468
|
-
type: "address",
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
name: "tokenIds",
|
|
472
|
-
type: "uint256[]",
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
name: "quantities",
|
|
476
|
-
type: "uint256[]",
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
name: "safeTransferData",
|
|
480
|
-
type: "bytes",
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: "nonce",
|
|
484
|
-
type: "uint256",
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
name: "deadline",
|
|
488
|
-
type: "uint256",
|
|
489
|
-
},
|
|
490
|
-
],
|
|
491
|
-
},
|
|
492
|
-
message: permit,
|
|
493
|
-
domain: {
|
|
494
|
-
chainId,
|
|
495
|
-
name: "Mints",
|
|
496
|
-
version: "1",
|
|
497
|
-
verifyingContract: zoraMints1155Config.address[chainId],
|
|
498
|
-
},
|
|
499
|
-
// signing account must be permit owner
|
|
500
|
-
account,
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export function permitTransferTypedDataDefinition({
|
|
505
|
-
permit,
|
|
506
|
-
chainId,
|
|
507
|
-
account,
|
|
508
|
-
}: {
|
|
509
|
-
permit: PermitSafeTransfer;
|
|
510
|
-
chainId: keyof typeof zoraMints1155Config.address;
|
|
511
|
-
account: Account | Address;
|
|
512
|
-
}) {
|
|
513
|
-
return makeTypeData({
|
|
514
|
-
primaryType: "PermitSafeTransfer",
|
|
515
|
-
types: {
|
|
516
|
-
PermitSafeTransfer: [
|
|
517
|
-
{
|
|
518
|
-
name: "owner",
|
|
519
|
-
type: "address",
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
name: "to",
|
|
523
|
-
type: "address",
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
name: "tokenId",
|
|
527
|
-
type: "uint256",
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
name: "quantity",
|
|
531
|
-
type: "uint256",
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
name: "safeTransferData",
|
|
535
|
-
type: "bytes",
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
name: "nonce",
|
|
539
|
-
type: "uint256",
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
name: "deadline",
|
|
543
|
-
type: "uint256",
|
|
544
|
-
},
|
|
545
|
-
],
|
|
546
|
-
},
|
|
547
|
-
message: permit,
|
|
548
|
-
domain: {
|
|
549
|
-
chainId,
|
|
550
|
-
name: "Mints",
|
|
551
|
-
version: "1",
|
|
552
|
-
verifyingContract: zoraMints1155Config.address[chainId],
|
|
553
|
-
},
|
|
554
|
-
// signing account must be permit owner
|
|
555
|
-
account,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
|
|
559
447
|
/**
|
|
560
448
|
* Can be used to decode an a CallFailed error from the ZoraMints1155 contract when it has called a function on the ZoraMintsManager.
|
|
561
449
|
* @param error
|
|
@@ -224,7 +224,7 @@ describe("MintsEthUnwrapperAndCaller", () => {
|
|
|
224
224
|
quantityToMint: initialMintsQuantityToMint,
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
const tokenId =
|
|
227
|
+
const tokenId = 6n;
|
|
228
228
|
|
|
229
229
|
const quantityToMint = 3n;
|
|
230
230
|
|
|
@@ -232,7 +232,7 @@ describe("MintsEthUnwrapperAndCaller", () => {
|
|
|
232
232
|
|
|
233
233
|
// address of the 1155 contract on the other chain that will be called
|
|
234
234
|
const destinationContractAddress =
|
|
235
|
-
"
|
|
235
|
+
"0x5f69da5da41e5472afb88fc291e7a92b7f15fbc5" as Address;
|
|
236
236
|
|
|
237
237
|
const { mintCall, mintFee: mintFeeOnOtherChain } =
|
|
238
238
|
await makeLegacy1155MintCall({
|
|
@@ -379,7 +379,7 @@ describe("MintsEthUnwrapperAndCaller", () => {
|
|
|
379
379
|
quantityToMint: initialMintsQuantityToMint,
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
const tokenId =
|
|
382
|
+
const tokenId = 6n;
|
|
383
383
|
|
|
384
384
|
const quantityToMint = 3n;
|
|
385
385
|
|
|
@@ -387,7 +387,7 @@ describe("MintsEthUnwrapperAndCaller", () => {
|
|
|
387
387
|
|
|
388
388
|
// address of the 1155 contract on the other chain that will be called
|
|
389
389
|
const destinationContractAddress =
|
|
390
|
-
"
|
|
390
|
+
"0x5f69da5da41e5472afb88fc291e7a92b7f15fbc5" as Address;
|
|
391
391
|
|
|
392
392
|
const { mintCall, mintFee: mintFeeOnOtherChain } =
|
|
393
393
|
await makeLegacy1155MintCall({
|
|
@@ -25,58 +25,6 @@ type PremintV2HashDataTypes = AbiParametersToPrimitiveTypes<PremintV2Inputs>;
|
|
|
25
25
|
export type PremintConfigV2 = PremintV2HashDataTypes[1];
|
|
26
26
|
export type TokenCreationConfigV2 = PremintConfigV2["tokenConfig"];
|
|
27
27
|
|
|
28
|
-
export const v1Types = {
|
|
29
|
-
CreatorAttribution: [
|
|
30
|
-
{ name: "tokenConfig", type: "TokenCreationConfig" },
|
|
31
|
-
// unique id scoped to the contract and token to create.
|
|
32
|
-
// ensure that a signature can be replaced, as long as the replacement
|
|
33
|
-
// has the same uid, and a newer version.
|
|
34
|
-
{ name: "uid", type: "uint32" },
|
|
35
|
-
{ name: "version", type: "uint32" },
|
|
36
|
-
// if this update should result in the signature being deleted.
|
|
37
|
-
{ name: "deleted", type: "bool" },
|
|
38
|
-
],
|
|
39
|
-
TokenCreationConfig: [
|
|
40
|
-
{ name: "tokenURI", type: "string" },
|
|
41
|
-
{ name: "maxSupply", type: "uint256" },
|
|
42
|
-
{ name: "maxTokensPerAddress", type: "uint64" },
|
|
43
|
-
{ name: "pricePerToken", type: "uint96" },
|
|
44
|
-
{ name: "mintStart", type: "uint64" },
|
|
45
|
-
{ name: "mintDuration", type: "uint64" },
|
|
46
|
-
{ name: "royaltyMintSchedule", type: "uint32" },
|
|
47
|
-
{ name: "royaltyBPS", type: "uint32" },
|
|
48
|
-
{ name: "royaltyRecipient", type: "address" },
|
|
49
|
-
{ name: "fixedPriceMinter", type: "address" },
|
|
50
|
-
],
|
|
51
|
-
} as const;
|
|
52
|
-
|
|
53
|
-
export const v2Types = {
|
|
54
|
-
CreatorAttribution: [
|
|
55
|
-
{ name: "tokenConfig", type: "TokenCreationConfig" },
|
|
56
|
-
// unique id scoped to the contract and token to create.
|
|
57
|
-
// ensure that a signature can be replaced, as long as the replacement
|
|
58
|
-
// has the same uid, and a newer version.
|
|
59
|
-
{ name: "uid", type: "uint32" },
|
|
60
|
-
{ name: "version", type: "uint32" },
|
|
61
|
-
// if this update should result in the signature being deleted.
|
|
62
|
-
{ name: "deleted", type: "bool" },
|
|
63
|
-
],
|
|
64
|
-
TokenCreationConfig: [
|
|
65
|
-
{ name: "tokenURI", type: "string" },
|
|
66
|
-
{ name: "maxSupply", type: "uint256" },
|
|
67
|
-
{ name: "maxTokensPerAddress", type: "uint64" },
|
|
68
|
-
{ name: "pricePerToken", type: "uint96" },
|
|
69
|
-
{ name: "mintStart", type: "uint64" },
|
|
70
|
-
{ name: "mintDuration", type: "uint64" },
|
|
71
|
-
{ name: "royaltyBPS", type: "uint32" },
|
|
72
|
-
{ name: "payoutRecipient", type: "address" },
|
|
73
|
-
{ name: "fixedPriceMinter", type: "address" },
|
|
74
|
-
{ name: "createReferral", type: "address" },
|
|
75
|
-
],
|
|
76
|
-
} as const;
|
|
77
|
-
|
|
78
|
-
export const PreminterDomain = "Preminter";
|
|
79
|
-
|
|
80
28
|
export enum PremintConfigVersion {
|
|
81
29
|
V1 = "1",
|
|
82
30
|
V2 = "2",
|