@zoralabs/protocol-sdk 0.5.12 → 0.5.14
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 +16 -0
- package/dist/apis/chain-constants.d.ts.map +1 -1
- package/dist/apis/generated/premint-api-types.d.ts +1 -1
- package/dist/apis/generated/premint-api-types.d.ts.map +1 -1
- package/dist/index.cjs +1482 -11683
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1468 -11678
- package/dist/index.js.map +1 -1
- package/dist/mints/mints-contracts.d.ts +127 -154
- 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/mints/mints-queries.d.ts.map +1 -1
- package/dist/premint/contract-types.d.ts +2 -121
- package/dist/premint/contract-types.d.ts.map +1 -1
- package/dist/premint/conversions.d.ts +15 -35
- package/dist/premint/conversions.d.ts.map +1 -1
- package/dist/premint/premint-api-client.d.ts +1 -1
- package/dist/premint/premint-api-client.d.ts.map +1 -1
- package/dist/premint/premint-client.d.ts +2717 -4
- package/dist/premint/premint-client.d.ts.map +1 -1
- package/dist/premint/preminter.d.ts +3 -17
- package/dist/premint/preminter.d.ts.map +1 -1
- package/dist/preminter.d.ts +1 -1
- package/package.json +2 -3
- package/src/apis/chain-constants.ts +8 -0
- package/src/apis/generated/premint-api-types.ts +1 -0
- package/src/mint/mint-api-client.ts +3 -3
- package/src/mints/mints-contracts.test.ts +3 -5
- package/src/mints/mints-contracts.ts +16 -128
- package/src/mints/mints-queries.ts +1 -2
- package/src/premint/contract-types.ts +4 -106
- package/src/premint/conversions.ts +2 -1
- package/src/premint/premint-api-client.ts +1 -1
- package/src/premint/premint-client.test.ts +17 -6
- package/src/premint/premint-client.ts +28 -23
- package/src/premint/preminter.test.ts +239 -143
- package/src/premint/preminter.ts +11 -64
- package/test-integration/premint-client.test.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { zoraMints1155Config, zoraMintsManagerImplConfig } from "@zoralabs/protocol-deployments";
|
|
2
2
|
import { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
|
|
3
|
-
import {
|
|
3
|
+
import { PremintMintArguments, PremintConfigV2 } from "@zoralabs/protocol-deployments";
|
|
4
4
|
import { ContractCreationConfig } from "src/preminter";
|
|
5
5
|
import { Account, Address, ContractFunctionRevertedError, Hex, PublicClient, ReadContractParameters, SignTypedDataParameters } from "viem";
|
|
6
6
|
/**
|
|
@@ -25,7 +25,7 @@ export declare const mintWithEthParams: ({ quantity, recipient, chainId, pricePe
|
|
|
25
25
|
readonly type: "constructor";
|
|
26
26
|
readonly inputs: readonly [{
|
|
27
27
|
readonly name: "_premintExecutor";
|
|
28
|
-
readonly internalType: "contract
|
|
28
|
+
readonly internalType: "contract IZoraCreator1155PremintExecutorAllVersions";
|
|
29
29
|
readonly type: "address";
|
|
30
30
|
}];
|
|
31
31
|
}, {
|
|
@@ -131,6 +131,104 @@ export declare const mintWithEthParams: ({ quantity, recipient, chainId, pricePe
|
|
|
131
131
|
}];
|
|
132
132
|
readonly name: "collect";
|
|
133
133
|
readonly outputs: readonly [];
|
|
134
|
+
}, {
|
|
135
|
+
readonly stateMutability: "payable";
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly name: "contractConfig";
|
|
139
|
+
readonly internalType: "struct ContractWithAdditionalAdminsCreationConfig";
|
|
140
|
+
readonly type: "tuple";
|
|
141
|
+
readonly components: readonly [{
|
|
142
|
+
readonly name: "contractAdmin";
|
|
143
|
+
readonly internalType: "address";
|
|
144
|
+
readonly type: "address";
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "contractURI";
|
|
147
|
+
readonly internalType: "string";
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "contractName";
|
|
151
|
+
readonly internalType: "string";
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "additionalAdmins";
|
|
155
|
+
readonly internalType: "address[]";
|
|
156
|
+
readonly type: "address[]";
|
|
157
|
+
}];
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "tokenContract";
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "premintConfig";
|
|
164
|
+
readonly internalType: "struct PremintConfigEncoded";
|
|
165
|
+
readonly type: "tuple";
|
|
166
|
+
readonly components: readonly [{
|
|
167
|
+
readonly name: "uid";
|
|
168
|
+
readonly internalType: "uint32";
|
|
169
|
+
readonly type: "uint32";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "version";
|
|
172
|
+
readonly internalType: "uint32";
|
|
173
|
+
readonly type: "uint32";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "deleted";
|
|
176
|
+
readonly internalType: "bool";
|
|
177
|
+
readonly type: "bool";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "tokenConfig";
|
|
180
|
+
readonly internalType: "bytes";
|
|
181
|
+
readonly type: "bytes";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "premintConfigVersion";
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
readonly type: "bytes32";
|
|
186
|
+
}];
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "signature";
|
|
189
|
+
readonly internalType: "bytes";
|
|
190
|
+
readonly type: "bytes";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "mintArguments";
|
|
193
|
+
readonly internalType: "struct MintArguments";
|
|
194
|
+
readonly type: "tuple";
|
|
195
|
+
readonly components: readonly [{
|
|
196
|
+
readonly name: "mintRecipient";
|
|
197
|
+
readonly internalType: "address";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "mintComment";
|
|
201
|
+
readonly internalType: "string";
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "mintRewardsRecipients";
|
|
205
|
+
readonly internalType: "address[]";
|
|
206
|
+
readonly type: "address[]";
|
|
207
|
+
}];
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "signerContract";
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}];
|
|
213
|
+
readonly name: "collectPremint";
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly name: "result";
|
|
216
|
+
readonly internalType: "struct PremintResult";
|
|
217
|
+
readonly type: "tuple";
|
|
218
|
+
readonly components: readonly [{
|
|
219
|
+
readonly name: "contractAddress";
|
|
220
|
+
readonly internalType: "address";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "tokenId";
|
|
224
|
+
readonly internalType: "uint256";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "createdNewContract";
|
|
228
|
+
readonly internalType: "bool";
|
|
229
|
+
readonly type: "bool";
|
|
230
|
+
}];
|
|
231
|
+
}];
|
|
134
232
|
}, {
|
|
135
233
|
readonly stateMutability: "payable";
|
|
136
234
|
readonly type: "function";
|
|
@@ -2564,30 +2662,7 @@ export declare function makePermitTransferBatchAndTypeData({ tokenIds, quantitie
|
|
|
2564
2662
|
deadline: bigint;
|
|
2565
2663
|
nonce: bigint;
|
|
2566
2664
|
};
|
|
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">;
|
|
2665
|
+
typedData: SignTypedDataParameters;
|
|
2591
2666
|
};
|
|
2592
2667
|
/**
|
|
2593
2668
|
* Builds the permit data and typed data to sign for permitting a transfer of a MINTs for a single MINTs token id
|
|
@@ -2620,30 +2695,7 @@ export declare function makePermitTransferTypeData({ tokenId, quantity, chainId,
|
|
|
2620
2695
|
deadline: bigint;
|
|
2621
2696
|
nonce: bigint;
|
|
2622
2697
|
};
|
|
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">;
|
|
2698
|
+
typedData: SignTypedDataParameters;
|
|
2647
2699
|
};
|
|
2648
2700
|
type PremintOnManagerParams = {
|
|
2649
2701
|
tokenIds: bigint[];
|
|
@@ -2684,30 +2736,7 @@ export declare const makePermitToCollectPremintOrNonPremint: ({ mintsOwner, chai
|
|
|
2684
2736
|
deadline: bigint;
|
|
2685
2737
|
nonce: bigint;
|
|
2686
2738
|
};
|
|
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">;
|
|
2739
|
+
typedData: SignTypedDataParameters;
|
|
2711
2740
|
};
|
|
2712
2741
|
/**
|
|
2713
2742
|
* Constructs the parameters to collect a premint using MINTs an account owns.
|
|
@@ -3970,62 +3999,6 @@ export declare function collectPremintV2WithMintsParams({ tokenIds, quantities,
|
|
|
3970
3999
|
export type PermitSafeTransferBatch = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof zoraMints1155Config.abi, "permitSafeTransferBatch">["inputs"]>[0];
|
|
3971
4000
|
export type PermitSafeTransfer = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof zoraMints1155Config.abi, "permitSafeTransfer">["inputs"]>[0];
|
|
3972
4001
|
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
4002
|
/**
|
|
4030
4003
|
* Can be used to decode an a CallFailed error from the ZoraMints1155 contract when it has called a function on the ZoraMintsManager.
|
|
4031
4004
|
* @param error
|
|
@@ -4119,14 +4092,6 @@ export declare function decodeCallFailedError(error: ContractFunctionRevertedErr
|
|
|
4119
4092
|
};
|
|
4120
4093
|
args: readonly [];
|
|
4121
4094
|
errorName: "ERC1155_MINT_TO_ZERO_ADDRESS";
|
|
4122
|
-
} | {
|
|
4123
|
-
abiItem: {
|
|
4124
|
-
readonly type: "error";
|
|
4125
|
-
readonly inputs: readonly [];
|
|
4126
|
-
readonly name: "ERC20TransferSlippage";
|
|
4127
|
-
};
|
|
4128
|
-
args: readonly [];
|
|
4129
|
-
errorName: "ERC20TransferSlippage";
|
|
4130
4095
|
} | {
|
|
4131
4096
|
abiItem: {
|
|
4132
4097
|
readonly type: "error";
|
|
@@ -4399,22 +4364,6 @@ export declare function decodeCallFailedError(error: ContractFunctionRevertedErr
|
|
|
4399
4364
|
};
|
|
4400
4365
|
args: readonly [bigint, bigint];
|
|
4401
4366
|
errorName: "TokenIdMismatch";
|
|
4402
|
-
} | {
|
|
4403
|
-
abiItem: {
|
|
4404
|
-
readonly type: "error";
|
|
4405
|
-
readonly inputs: readonly [{
|
|
4406
|
-
readonly name: "expected";
|
|
4407
|
-
readonly internalType: "string";
|
|
4408
|
-
readonly type: "string";
|
|
4409
|
-
}, {
|
|
4410
|
-
readonly name: "actual";
|
|
4411
|
-
readonly internalType: "string";
|
|
4412
|
-
readonly type: "string";
|
|
4413
|
-
}];
|
|
4414
|
-
readonly name: "UpgradeToMismatchedContractName";
|
|
4415
|
-
};
|
|
4416
|
-
args: readonly [string, string];
|
|
4417
|
-
errorName: "UpgradeToMismatchedContractName";
|
|
4418
4367
|
} | {
|
|
4419
4368
|
abiItem: {
|
|
4420
4369
|
readonly type: "error";
|
|
@@ -4479,6 +4428,30 @@ export declare function decodeCallFailedError(error: ContractFunctionRevertedErr
|
|
|
4479
4428
|
};
|
|
4480
4429
|
args: readonly [];
|
|
4481
4430
|
errorName: "premintSignerContractNotAContract";
|
|
4431
|
+
} | {
|
|
4432
|
+
abiItem: {
|
|
4433
|
+
readonly type: "error";
|
|
4434
|
+
readonly inputs: readonly [];
|
|
4435
|
+
readonly name: "ERC20TransferSlippage";
|
|
4436
|
+
};
|
|
4437
|
+
args: readonly [];
|
|
4438
|
+
errorName: "ERC20TransferSlippage";
|
|
4439
|
+
} | {
|
|
4440
|
+
abiItem: {
|
|
4441
|
+
readonly type: "error";
|
|
4442
|
+
readonly inputs: readonly [{
|
|
4443
|
+
readonly name: "expected";
|
|
4444
|
+
readonly internalType: "string";
|
|
4445
|
+
readonly type: "string";
|
|
4446
|
+
}, {
|
|
4447
|
+
readonly name: "actual";
|
|
4448
|
+
readonly internalType: "string";
|
|
4449
|
+
readonly type: "string";
|
|
4450
|
+
}];
|
|
4451
|
+
readonly name: "UpgradeToMismatchedContractName";
|
|
4452
|
+
};
|
|
4453
|
+
args: readonly [string, string];
|
|
4454
|
+
errorName: "UpgradeToMismatchedContractName";
|
|
4482
4455
|
} | {
|
|
4483
4456
|
abiItem: {
|
|
4484
4457
|
readonly type: "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,0BAA0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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUzE"}
|
|
@@ -49,30 +49,7 @@ export declare const unwrapAndForwardEthPermitAndTypedDataDefinition: ({ chainId
|
|
|
49
49
|
deadline: bigint;
|
|
50
50
|
nonce: bigint;
|
|
51
51
|
};
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mints-queries.d.ts","sourceRoot":"","sources":["../../src/mints/mints-queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"mints-queries.d.ts","sourceRoot":"","sources":["../../src/mints/mints-queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,eAAO,MAAM,oCAAoC,YAAa,OAAO;;;;;CAiBpE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uCAAuC,wBAC7B,kBAAkB,EAAE,qBACtB,MAAM;;;CAyC1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,wBACD,KAAK,kBAAkB,EAAE,SAAS,CAAC,EAAE,WAK3D,CAAC"}
|
|
@@ -1,125 +1,6 @@
|
|
|
1
|
-
import { ExtractAbiFunction, AbiParametersToPrimitiveTypes } from "abitype";
|
|
2
|
-
import { zoraCreator1155PremintExecutorImplABI as preminterAbi } from "@zoralabs/protocol-deployments";
|
|
3
|
-
type PremintV1Inputs = ExtractAbiFunction<typeof preminterAbi, "premintV1">["inputs"];
|
|
4
|
-
type PremintV1HashDataTypes = AbiParametersToPrimitiveTypes<PremintV1Inputs>;
|
|
5
|
-
export type ContractCreationConfig = PremintV1HashDataTypes[0];
|
|
6
|
-
export type PremintConfigV1 = PremintV1HashDataTypes[1];
|
|
7
|
-
export type TokenCreationConfigV1 = PremintConfigV1["tokenConfig"];
|
|
8
|
-
export type MintArguments = PremintV1HashDataTypes[4];
|
|
9
|
-
type PremintV2Inputs = ExtractAbiFunction<typeof preminterAbi, "premintV2">["inputs"];
|
|
10
|
-
type PremintV2HashDataTypes = AbiParametersToPrimitiveTypes<PremintV2Inputs>;
|
|
11
|
-
export type PremintConfigV2 = PremintV2HashDataTypes[1];
|
|
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
1
|
export declare enum PremintConfigVersion {
|
|
107
2
|
V1 = "1",
|
|
108
|
-
V2 = "2"
|
|
3
|
+
V2 = "2",
|
|
4
|
+
V3 = "3"
|
|
109
5
|
}
|
|
110
|
-
export type PremintConfigForVersion<T extends PremintConfigVersion> = T extends PremintConfigVersion.V1 ? PremintConfigV1 : PremintConfigV2;
|
|
111
|
-
export type PremintConfigWithVersion<T extends PremintConfigVersion> = {
|
|
112
|
-
premintConfig: PremintConfigForVersion<T>;
|
|
113
|
-
premintConfigVersion: T;
|
|
114
|
-
};
|
|
115
|
-
export type PremintConfigAndVersion = PremintConfigWithVersion<PremintConfigVersion.V1> | PremintConfigWithVersion<PremintConfigVersion.V2>;
|
|
116
|
-
export type PremintConfig = PremintConfigV1 | PremintConfigV2;
|
|
117
|
-
export type TokenCreationConfig = TokenCreationConfigV1 | TokenCreationConfigV2;
|
|
118
|
-
export type PremintConfigForTokenCreationConfig<T extends TokenCreationConfig> = T extends TokenCreationConfigV1 ? PremintConfigV1 : PremintConfigV2;
|
|
119
|
-
export type TokenConfigForVersion<T extends PremintConfigVersion> = PremintConfigForVersion<T>["tokenConfig"];
|
|
120
|
-
export type TokenConfigWithVersion<T extends PremintConfigVersion> = {
|
|
121
|
-
tokenConfig: TokenConfigForVersion<T>;
|
|
122
|
-
premintConfigVersion: T;
|
|
123
|
-
};
|
|
124
|
-
export {};
|
|
125
6
|
//# sourceMappingURL=contract-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-types.d.ts","sourceRoot":"","sources":["../../src/premint/contract-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract-types.d.ts","sourceRoot":"","sources":["../../src/premint/contract-types.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB;IAC9B,EAAE,MAA8B;IAChC,EAAE,MAA8B;IAChC,EAAE,MAA8B;CACjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { paths } from "src/apis/generated/premint-api-types";
|
|
2
2
|
import { Hex } from "viem";
|
|
3
|
-
import { ContractCreationConfig, PremintConfigAndVersion, PremintConfigVersion, PremintConfigWithVersion } from "
|
|
3
|
+
import { ContractCreationConfig, PremintConfigAndVersion, PremintConfigV1, PremintConfigV2, PremintConfigVersion, PremintConfigWithVersion } from "@zoralabs/protocol-deployments";
|
|
4
4
|
import { PremintSignatureGetResponse } from "./premint-api-client";
|
|
5
5
|
export declare const convertCollectionFromApi: (collection: PremintSignatureGetResponse["collection"]) => ContractCreationConfig;
|
|
6
6
|
/**
|
|
@@ -15,51 +15,31 @@ export declare const convertGetPremintApiResponse: (response: PremintSignatureGe
|
|
|
15
15
|
contractAdmin: `0x${string}`;
|
|
16
16
|
contractURI: string;
|
|
17
17
|
contractName: string;
|
|
18
|
+
additionalAdmins: readonly `0x${string}`[];
|
|
18
19
|
};
|
|
19
20
|
signature: `0x${string}`;
|
|
20
|
-
premintConfig:
|
|
21
|
-
tokenConfig: {
|
|
22
|
-
tokenURI: string;
|
|
23
|
-
maxSupply: bigint;
|
|
24
|
-
maxTokensPerAddress: bigint;
|
|
25
|
-
pricePerToken: bigint;
|
|
26
|
-
mintStart: bigint;
|
|
27
|
-
mintDuration: bigint;
|
|
28
|
-
royaltyMintSchedule: number;
|
|
29
|
-
royaltyBPS: number;
|
|
30
|
-
royaltyRecipient: `0x${string}`;
|
|
31
|
-
fixedPriceMinter: `0x${string}`;
|
|
32
|
-
};
|
|
33
|
-
uid: number;
|
|
34
|
-
version: number;
|
|
35
|
-
deleted: boolean;
|
|
36
|
-
};
|
|
21
|
+
premintConfig: PremintConfigV1;
|
|
37
22
|
premintConfigVersion: PremintConfigVersion.V1;
|
|
38
23
|
} | {
|
|
39
24
|
collection: {
|
|
40
25
|
contractAdmin: `0x${string}`;
|
|
41
26
|
contractURI: string;
|
|
42
27
|
contractName: string;
|
|
28
|
+
additionalAdmins: readonly `0x${string}`[];
|
|
43
29
|
};
|
|
44
30
|
signature: `0x${string}`;
|
|
45
|
-
premintConfig:
|
|
46
|
-
tokenConfig: {
|
|
47
|
-
tokenURI: string;
|
|
48
|
-
maxSupply: bigint;
|
|
49
|
-
maxTokensPerAddress: bigint;
|
|
50
|
-
pricePerToken: bigint;
|
|
51
|
-
mintStart: bigint;
|
|
52
|
-
mintDuration: bigint;
|
|
53
|
-
royaltyBPS: number;
|
|
54
|
-
payoutRecipient: `0x${string}`;
|
|
55
|
-
fixedPriceMinter: `0x${string}`;
|
|
56
|
-
createReferral: `0x${string}`;
|
|
57
|
-
};
|
|
58
|
-
uid: number;
|
|
59
|
-
version: number;
|
|
60
|
-
deleted: boolean;
|
|
61
|
-
};
|
|
31
|
+
premintConfig: PremintConfigV2;
|
|
62
32
|
premintConfigVersion: PremintConfigVersion.V2;
|
|
33
|
+
} | {
|
|
34
|
+
collection: {
|
|
35
|
+
contractAdmin: `0x${string}`;
|
|
36
|
+
contractURI: string;
|
|
37
|
+
contractName: string;
|
|
38
|
+
additionalAdmins: readonly `0x${string}`[];
|
|
39
|
+
};
|
|
40
|
+
signature: `0x${string}`;
|
|
41
|
+
premintConfig: import("@zoralabs/protocol-deployments").PremintConfigV3;
|
|
42
|
+
premintConfigVersion: PremintConfigVersion.V3;
|
|
63
43
|
};
|
|
64
44
|
export declare const encodePremintForAPI: <T extends PremintConfigVersion>({ premintConfig, premintConfigVersion, }: PremintConfigWithVersion<T>) => PremintSignatureRequestBody["premint"];
|
|
65
45
|
export type SignaturePostType = paths["/signature"]["post"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../src/premint/conversions.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAW,GAAG,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../src/premint/conversions.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAW,GAAG,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,eAAO,MAAM,wBAAwB,eACvB,2BAA2B,CAAC,YAAY,CAAC,KACpD,sBAID,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YACvB,2BAA2B,CAAC,SAAS,CAAC,KAC9C,uBAgDF,CAAC;AAEF,eAAO,MAAM,4BAA4B,aAC7B,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAC;AAkCH,eAAO,MAAM,mBAAmB,6GAGC,2BAA2B,CAAC,SAAS,CAQrE,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5D,MAAM,MAAM,2BAA2B,GACrC,iBAAiB,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAClE,MAAM,MAAM,wBAAwB,GAClC,iBAAiB,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;gBAOvB,sBAAsB;eACvB,GAAG;aACL,MAAM;oCACiB,2BAQhC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { IHttpClient } from "../apis/http-api-base";
|
|
|
2
2
|
import { components, paths } from "../apis/generated/premint-api-types";
|
|
3
3
|
import { ZORA_API_BASE } from "../constants";
|
|
4
4
|
import { NetworkConfig } from "src/apis/chain-constants";
|
|
5
|
-
import { ContractCreationConfig, PremintConfigAndVersion, PremintConfigVersion, PremintConfigWithVersion } from "
|
|
5
|
+
import { ContractCreationConfig, PremintConfigAndVersion, PremintConfigVersion, PremintConfigWithVersion } from "@zoralabs/protocol-deployments";
|
|
6
6
|
import { Address, Hex } from "viem";
|
|
7
7
|
import { PremintSignatureResponse } from "./conversions";
|
|
8
8
|
type PremintNextUIDGetType = paths["/signature/{chain_name}/{collection_address}/next_uid"]["get"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"premint-api-client.d.ts","sourceRoot":"","sources":["../../src/premint/premint-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"premint-api-client.d.ts","sourceRoot":"","sources":["../../src/premint/premint-api-client.ts"],"names":[],"mappings":"AAAA,OA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