@croptop/core-v6 0.0.41 → 0.0.42
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
|
@@ -355,19 +355,22 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
|
|
|
355
355
|
function deploy() public sphinx {
|
|
356
356
|
FeeProjectConfig memory feeProjectConfig = getCroptopRevnetConfig();
|
|
357
357
|
|
|
358
|
-
//
|
|
359
|
-
core.
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
358
|
+
// Only deploy if the project hasn't already been configured (restart-safe).
|
|
359
|
+
if (address(core.directory.controllerOf(FEE_PROJECT_ID)) == address(0)) {
|
|
360
|
+
// Approve the basic deployer to configure the project and transfer it.
|
|
361
|
+
core.projects.approve({to: address(revnet.basic_deployer), tokenId: FEE_PROJECT_ID});
|
|
362
|
+
|
|
363
|
+
// Deploy the NANA fee project.
|
|
364
|
+
revnet.basic_deployer
|
|
365
|
+
.deployFor({
|
|
366
|
+
revnetId: FEE_PROJECT_ID,
|
|
367
|
+
configuration: feeProjectConfig.configuration,
|
|
368
|
+
terminalConfigurations: feeProjectConfig.terminalConfigurations,
|
|
369
|
+
suckerDeploymentConfiguration: feeProjectConfig.suckerDeploymentConfiguration,
|
|
370
|
+
tiered721HookConfiguration: feeProjectConfig.hookConfiguration,
|
|
371
|
+
allowedPosts: feeProjectConfig.allowedPosts
|
|
372
|
+
});
|
|
373
|
+
}
|
|
371
374
|
}
|
|
372
375
|
|
|
373
376
|
function _isDeployed(
|
package/src/CTPublisher.sol
CHANGED
|
@@ -190,14 +190,12 @@ contract CTPublisher is JBPermissioned, ERC2771Context, ICTPublisher {
|
|
|
190
190
|
/// @param additionalPayMetadata Metadata bytes that should be included in the pay function's metadata. This
|
|
191
191
|
/// prepends the
|
|
192
192
|
/// payload needed for NFT creation.
|
|
193
|
-
/// @param feeMetadata The metadata to send alongside the fee payment.
|
|
194
193
|
function mintFrom(
|
|
195
194
|
IJB721TiersHook hook,
|
|
196
195
|
CTPost[] calldata posts,
|
|
197
196
|
address nftBeneficiary,
|
|
198
197
|
address feeBeneficiary,
|
|
199
|
-
bytes calldata additionalPayMetadata
|
|
200
|
-
bytes calldata feeMetadata
|
|
198
|
+
bytes calldata additionalPayMetadata
|
|
201
199
|
)
|
|
202
200
|
external
|
|
203
201
|
payable
|
|
@@ -322,7 +320,7 @@ contract CTPublisher is JBPermissioned, ERC2771Context, ICTPublisher {
|
|
|
322
320
|
beneficiary: feeBeneficiary,
|
|
323
321
|
minReturnedTokens: 0,
|
|
324
322
|
memo: "",
|
|
325
|
-
metadata:
|
|
323
|
+
metadata: ""
|
|
326
324
|
}) {}
|
|
327
325
|
catch {
|
|
328
326
|
// slither-disable-next-line low-level-calls
|
|
@@ -93,14 +93,12 @@ interface ICTPublisher {
|
|
|
93
93
|
/// @param nftBeneficiary The beneficiary of the NFT mints.
|
|
94
94
|
/// @param feeBeneficiary The beneficiary of the fee project's tokens.
|
|
95
95
|
/// @param additionalPayMetadata Extra metadata bytes to include in the payment.
|
|
96
|
-
/// @param feeMetadata Metadata to send alongside the fee payment.
|
|
97
96
|
function mintFrom(
|
|
98
97
|
IJB721TiersHook hook,
|
|
99
98
|
CTPost[] calldata posts,
|
|
100
99
|
address nftBeneficiary,
|
|
101
100
|
address feeBeneficiary,
|
|
102
|
-
bytes calldata additionalPayMetadata
|
|
103
|
-
bytes calldata feeMetadata
|
|
101
|
+
bytes calldata additionalPayMetadata
|
|
104
102
|
)
|
|
105
103
|
external
|
|
106
104
|
payable;
|