@bananapus/721-hook-v6 0.0.57 → 0.0.58
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananapus/721-hook-v6",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@bananapus/address-registry-v6": "^0.0.26",
|
|
29
|
-
"@bananapus/core-v6": "^0.0.
|
|
29
|
+
"@bananapus/core-v6": "^0.0.70",
|
|
30
30
|
"@bananapus/ownable-v6": "^0.0.31",
|
|
31
31
|
"@bananapus/permission-ids-v6": "^0.0.27",
|
|
32
32
|
"@openzeppelin/contracts": "5.6.1",
|
|
@@ -77,6 +77,7 @@ contract JB721TiersHookProjectDeployer is
|
|
|
77
77
|
/// @param salt A salt to use for the deterministic deployment.
|
|
78
78
|
/// @return projectId The ID of the newly launched project.
|
|
79
79
|
/// @return hook The 721 tiers hook that was deployed for the project.
|
|
80
|
+
/// @dev Forwards `msg.value` to `JBProjects.createFor` to cover any configured project creation fee.
|
|
80
81
|
function launchProjectFor(
|
|
81
82
|
address owner,
|
|
82
83
|
JBDeploy721TiersHookConfig calldata deployTiersHookConfig,
|
|
@@ -85,12 +86,13 @@ contract JB721TiersHookProjectDeployer is
|
|
|
85
86
|
bytes32 salt
|
|
86
87
|
)
|
|
87
88
|
external
|
|
89
|
+
payable
|
|
88
90
|
override
|
|
89
91
|
returns (uint256 projectId, IJB721TiersHook hook)
|
|
90
92
|
{
|
|
91
93
|
// Reserve the project ID up front so permissionless project creations cannot invalidate hook deployment.
|
|
92
94
|
IJBProjects projects = DIRECTORY.PROJECTS();
|
|
93
|
-
projectId = projects.createFor(address(this));
|
|
95
|
+
projectId = projects.createFor{value: msg.value}(address(this));
|
|
94
96
|
|
|
95
97
|
// Deploy the hook.
|
|
96
98
|
hook = HOOK_DEPLOYER.deployHookFor({
|
|
@@ -29,6 +29,7 @@ interface IJB721TiersHookProjectDeployer {
|
|
|
29
29
|
/// @param salt A salt to use for the deterministic deployment.
|
|
30
30
|
/// @return projectId The ID of the newly launched project.
|
|
31
31
|
/// @return hook The 721 tiers hook that was deployed for the project.
|
|
32
|
+
/// @dev Forwards `msg.value` to `JBProjects.createFor` to cover any configured project creation fee.
|
|
32
33
|
function launchProjectFor(
|
|
33
34
|
address owner,
|
|
34
35
|
JBDeploy721TiersHookConfig memory deployTiersHookConfig,
|
|
@@ -37,6 +38,7 @@ interface IJB721TiersHookProjectDeployer {
|
|
|
37
38
|
bytes32 salt
|
|
38
39
|
)
|
|
39
40
|
external
|
|
41
|
+
payable
|
|
40
42
|
returns (uint256 projectId, IJB721TiersHook hook);
|
|
41
43
|
|
|
42
44
|
/// @notice Launches rulesets for a project with an attached 721 tiers hook.
|