@croptop/core-v6 0.0.33 → 0.0.35
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/ADMINISTRATION.md +65 -145
- package/ARCHITECTURE.md +68 -43
- package/AUDIT_INSTRUCTIONS.md +58 -62
- package/README.md +56 -24
- package/RISKS.md +40 -53
- package/SKILLS.md +10 -5
- package/USER_JOURNEYS.md +104 -28
- package/foundry.toml +2 -0
- package/package.json +31 -31
- package/references/operations.md +2 -2
- package/references/runtime.md +3 -3
- package/src/CTPublisher.sol +0 -4
- package/src/interfaces/ICTPublisher.sol +1 -2
- package/src/structs/CTAllowedPost.sol +0 -1
- package/src/structs/CTDeployerAllowedPost.sol +0 -1
- package/src/structs/CTPost.sol +0 -2
- package/src/structs/CTProjectConfig.sol +0 -1
- package/src/structs/CTSuckerDeploymentConfig.sol +0 -1
|
@@ -73,7 +73,7 @@ interface ICTPublisher {
|
|
|
73
73
|
/// @param hook The hook for which the tier ID applies.
|
|
74
74
|
/// @param encodedIPFSUri The encoded IPFS URI to look up.
|
|
75
75
|
/// @return The tier ID, or 0 if the URI has not been published.
|
|
76
|
-
// forge-lint: disable-next-line(mixed-case-function
|
|
76
|
+
// forge-lint: disable-next-line(mixed-case-function)
|
|
77
77
|
function tierIdForEncodedIPFSUriOf(address hook, bytes32 encodedIPFSUri) external view returns (uint256);
|
|
78
78
|
|
|
79
79
|
/// @notice Get the tiers for the provided encoded IPFS URIs.
|
|
@@ -81,7 +81,6 @@ interface ICTPublisher {
|
|
|
81
81
|
/// @param encodedIPFSUris The URIs to get tiers of.
|
|
82
82
|
/// @return tiers The tiers that correspond to the provided encoded IPFS URIs. Empty tiers are returned for URIs
|
|
83
83
|
/// without a tier.
|
|
84
|
-
// forge-lint: disable-next-line(mixed-case-variable)
|
|
85
84
|
function tiersFor(address hook, bytes32[] memory encodedIPFSUris) external view returns (JB721Tier[] memory tiers);
|
|
86
85
|
|
|
87
86
|
/// @notice Configure the allowed criteria for publishing new NFTs to a hook.
|
|
@@ -11,7 +11,6 @@ pragma solidity ^0.8.0;
|
|
|
11
11
|
/// @custom:member maximumSplitPercent The maximum split percent (out of JBConstants.SPLITS_TOTAL_PERCENT) that a
|
|
12
12
|
/// poster can set. 0 means splits are not allowed.
|
|
13
13
|
/// @custom:member allowedAddresses A list of addresses that are allowed to post on the category through Croptop.
|
|
14
|
-
// forge-lint: disable-next-line(pascal-case-struct)
|
|
15
14
|
struct CTAllowedPost {
|
|
16
15
|
address hook;
|
|
17
16
|
uint24 category;
|
|
@@ -10,7 +10,6 @@ pragma solidity ^0.8.0;
|
|
|
10
10
|
/// @custom:member maximumSplitPercent The maximum split percent (out of JBConstants.SPLITS_TOTAL_PERCENT) that a
|
|
11
11
|
/// poster can set. 0 means splits are not allowed.
|
|
12
12
|
/// @custom:member allowedAddresses A list of addresses that are allowed to post on the category through Croptop.
|
|
13
|
-
// forge-lint: disable-next-line(pascal-case-struct)
|
|
14
13
|
struct CTDeployerAllowedPost {
|
|
15
14
|
uint24 category;
|
|
16
15
|
uint104 minimumPrice;
|
package/src/structs/CTPost.sol
CHANGED
|
@@ -12,9 +12,7 @@ import {JBSplit} from "@bananapus/core-v6/src/structs/JBSplit.sol";
|
|
|
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).
|
|
14
14
|
/// @custom:member splits The splits to route funds to when this tier is minted.
|
|
15
|
-
// forge-lint: disable-next-line(pascal-case-struct)
|
|
16
15
|
struct CTPost {
|
|
17
|
-
// forge-lint: disable-next-line(mixed-case-variable)
|
|
18
16
|
bytes32 encodedIPFSUri;
|
|
19
17
|
uint32 totalSupply;
|
|
20
18
|
uint104 price;
|
|
@@ -11,7 +11,6 @@ import {CTDeployerAllowedPost} from "../structs/CTDeployerAllowedPost.sol";
|
|
|
11
11
|
/// @param name The name of the collection where posts will go.
|
|
12
12
|
/// @param symbol The symbol of the collection where posts will go.
|
|
13
13
|
/// @param salt A salt to use for the deterministic deployment.
|
|
14
|
-
// forge-lint: disable-next-line(pascal-case-struct)
|
|
15
14
|
struct CTProjectConfig {
|
|
16
15
|
JBTerminalConfig[] terminalConfigurations;
|
|
17
16
|
string projectUri;
|
|
@@ -5,7 +5,6 @@ import {JBSuckerDeployerConfig} from "@bananapus/suckers-v6/src/structs/JBSucker
|
|
|
5
5
|
|
|
6
6
|
/// @custom:member deployerConfigurations The information for how to suck tokens to other chains.
|
|
7
7
|
/// @custom:member salt The salt to use for creating suckers so that they use the same address across chains.
|
|
8
|
-
// forge-lint: disable-next-line(pascal-case-struct)
|
|
9
8
|
struct CTSuckerDeploymentConfig {
|
|
10
9
|
JBSuckerDeployerConfig[] deployerConfigurations;
|
|
11
10
|
bytes32 salt;
|