@croptop/core-v6 0.0.40 → 0.0.41
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
package/src/CTDeployer.sol
CHANGED
|
@@ -63,7 +63,7 @@ contract CTDeployer is ERC2771Context, JBPermissioned, IJBRulesetDataHook, IERC7
|
|
|
63
63
|
/// @notice Mints ERC-721s that represent Juicebox project ownership and transfers.
|
|
64
64
|
IJBProjects public immutable override PROJECTS;
|
|
65
65
|
|
|
66
|
-
/// @notice The Croptop publisher.
|
|
66
|
+
/// @notice The Croptop publisher contract that manages post allowances and content rules.
|
|
67
67
|
ICTPublisher public immutable override PUBLISHER;
|
|
68
68
|
|
|
69
69
|
/// @notice Deploys and tracks suckers for projects.
|
|
@@ -344,8 +344,8 @@ contract CTDeployer is ERC2771Context, JBPermissioned, IJBRulesetDataHook, IERC7
|
|
|
344
344
|
/// @param context Standard Juicebox payment context. See `JBBeforePayRecordedContext`.
|
|
345
345
|
/// @return weight The weight which project tokens are minted relative to. This can be used to customize how many
|
|
346
346
|
/// tokens get minted by a payment.
|
|
347
|
-
/// @return hookSpecifications Amounts (out of what's
|
|
348
|
-
///
|
|
347
|
+
/// @return hookSpecifications Amounts (out of what's paid in) to send to pay hooks instead of adding to the
|
|
348
|
+
/// project. Useful for automatically routing funds from a treasury as payments come in.
|
|
349
349
|
function beforePayRecordedWith(JBBeforePayRecordedContext calldata context)
|
|
350
350
|
external
|
|
351
351
|
view
|
package/src/CTProjectOwner.sol
CHANGED
|
@@ -27,7 +27,7 @@ contract CTProjectOwner is IERC721Receiver, ICTProjectOwner {
|
|
|
27
27
|
/// @notice The contract from which project are minted.
|
|
28
28
|
IJBProjects public immutable override PROJECTS;
|
|
29
29
|
|
|
30
|
-
/// @notice The Croptop publisher.
|
|
30
|
+
/// @notice The Croptop publisher contract that manages post allowances and content rules.
|
|
31
31
|
ICTPublisher public immutable override PUBLISHER;
|
|
32
32
|
|
|
33
33
|
//*********************************************************************//
|
package/src/CTPublisher.sol
CHANGED
|
@@ -58,7 +58,7 @@ contract CTPublisher is JBPermissioned, ERC2771Context, ICTPublisher {
|
|
|
58
58
|
// ---------------- public immutable stored properties --------------- //
|
|
59
59
|
//*********************************************************************//
|
|
60
60
|
|
|
61
|
-
/// @notice The directory that contains the projects
|
|
61
|
+
/// @notice The directory that contains the projects to post to.
|
|
62
62
|
IJBDirectory public immutable override DIRECTORY;
|
|
63
63
|
|
|
64
64
|
/// @notice The ID of the project to which fees will be routed.
|
|
@@ -92,7 +92,7 @@ contract CTPublisher is JBPermissioned, ERC2771Context, ICTPublisher {
|
|
|
92
92
|
// -------------------------- constructor ---------------------------- //
|
|
93
93
|
//*********************************************************************//
|
|
94
94
|
|
|
95
|
-
/// @param directory The directory that contains the projects
|
|
95
|
+
/// @param directory The directory that contains the projects to post to.
|
|
96
96
|
/// @param permissions A contract storing permissions.
|
|
97
97
|
/// @param feeProjectId The ID of the project to which fees will be routed.
|
|
98
98
|
/// @param trustedForwarder The trusted forwarder for the ERC2771Context.
|
|
@@ -432,7 +432,7 @@ contract CTPublisher is JBPermissioned, ERC2771Context, ICTPublisher {
|
|
|
432
432
|
/// @param posts An array of posts that should be published as NFTs to the specified project.
|
|
433
433
|
/// @return tiersToAdd The tiers that will be created to represent the posts.
|
|
434
434
|
/// @return tierIdsToMint The tier IDs of the posts that should be minted once published.
|
|
435
|
-
/// @return totalPrice The total price
|
|
435
|
+
/// @return totalPrice The total price to pay.
|
|
436
436
|
function _setupPosts(
|
|
437
437
|
IJB721TiersHook hook,
|
|
438
438
|
CTPost[] memory posts
|
|
@@ -19,7 +19,7 @@ interface ICTDeployer {
|
|
|
19
19
|
/// @return The projects contract.
|
|
20
20
|
function PROJECTS() external view returns (IJBProjects);
|
|
21
21
|
|
|
22
|
-
/// @notice The
|
|
22
|
+
/// @notice The CTPublisher contract used to mint NFTs from submitted posts.
|
|
23
23
|
/// @return The publisher contract.
|
|
24
24
|
function PUBLISHER() external view returns (ICTPublisher);
|
|
25
25
|
|
|
@@ -57,7 +57,7 @@ interface ICTPublisher {
|
|
|
57
57
|
address[] memory allowedAddresses
|
|
58
58
|
);
|
|
59
59
|
|
|
60
|
-
/// @notice The directory that contains the projects
|
|
60
|
+
/// @notice The directory that contains the projects to post to.
|
|
61
61
|
/// @return The directory contract.
|
|
62
62
|
function DIRECTORY() external view returns (IJBDirectory);
|
|
63
63
|
|
package/src/structs/CTPost.sol
CHANGED
|
@@ -4,10 +4,10 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import {JBSplit} from "@bananapus/core-v6/src/structs/JBSplit.sol";
|
|
5
5
|
|
|
6
6
|
/// @notice A post to be published.
|
|
7
|
-
/// @custom:member encodedIPFSUri The encoded IPFS URI of the post
|
|
7
|
+
/// @custom:member encodedIPFSUri The encoded IPFS URI of the post to publish.
|
|
8
8
|
/// @custom:member totalSupply The number of NFTs that should be made available, including the 1 that will be minted
|
|
9
9
|
/// alongside this transaction.
|
|
10
|
-
/// @custom:member price The price
|
|
10
|
+
/// @custom:member price The price to pay for buying the post.
|
|
11
11
|
/// @custom:member category The category that the post should be published in.
|
|
12
12
|
/// @custom:member splitPercent The percent of the tier's price to route to the splits (out of
|
|
13
13
|
/// JBConstants.SPLITS_TOTAL_PERCENT).
|