@rev-net/core-v6 0.0.74 → 0.0.76

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": "@rev-net/core-v6",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,19 +24,19 @@
24
24
  "artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'revnet-core-v6'"
25
25
  },
26
26
  "dependencies": {
27
- "@bananapus/721-hook-v6": "^0.0.55",
28
- "@bananapus/buyback-hook-v6": "^0.0.51",
29
- "@bananapus/core-v6": "^0.0.64",
30
- "@bananapus/ownable-v6": "^0.0.28",
27
+ "@bananapus/721-hook-v6": "^0.0.57",
28
+ "@bananapus/buyback-hook-v6": "^0.0.55",
29
+ "@bananapus/core-v6": "^0.0.68",
30
+ "@bananapus/ownable-v6": "^0.0.31",
31
31
  "@bananapus/permission-ids-v6": "^0.0.27",
32
- "@bananapus/router-terminal-v6": "^0.0.49",
33
- "@bananapus/suckers-v6": "^0.0.52",
34
- "@croptop/core-v6": "^0.0.53",
32
+ "@bananapus/router-terminal-v6": "^0.0.52",
33
+ "@bananapus/suckers-v6": "^0.0.58",
34
+ "@croptop/core-v6": "^0.0.59",
35
35
  "@openzeppelin/contracts": "5.6.1",
36
36
  "@uniswap/permit2": "github:Uniswap/permit2#cc56ad0f3439c502c246fc5cfcc3db92bb8b7219"
37
37
  },
38
38
  "devDependencies": {
39
- "@bananapus/address-registry-v6": "0.0.26",
39
+ "@bananapus/address-registry-v6": "0.0.28",
40
40
  "@sphinx-labs/plugins": "0.33.3",
41
41
  "@uniswap/v4-core": "1.0.2"
42
42
  }
@@ -668,9 +668,6 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
668
668
  salt: keccak256(abi.encode(tiered721HookConfiguration.salt, encodedConfigurationHash, _msgSender()))
669
669
  });
670
670
 
671
- // Scope the hook's permissions to REVOwner, where the operator permissions are granted.
672
- JBOwnable(address(hook)).transferOwnership(OWNER);
673
-
674
671
  // Build the 721 permission additions based on the deployer's `preventOperator*` flags.
675
672
  {
676
673
  uint256 extraCount;
@@ -724,7 +721,9 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
724
721
  }
725
722
  }
726
723
 
727
- // Set up the allowed posts in the publisher.
724
+ // Set up the allowed posts while this deployer is still the hook owner.
725
+ // `CTPublisher.configurePostingCriteriaFor` checks the hook owner's ADJUST_721_TIERS permission, and the
726
+ // deployer passes that check directly only before ownership is scoped to REVOwner below.
728
727
  PUBLISHER.configurePostingCriteriaFor({allowedPosts: formattedAllowedPosts});
729
728
 
730
729
  // Give the croptop publisher permission to post new ERC-721 tiers on the revnet's behalf.
@@ -733,6 +732,9 @@ contract REVDeployer is ERC2771Context, IREVDeployer, IERC721Receiver {
733
732
  REVOwnerExtraGrant({operator: address(PUBLISHER), permissionId: JBPermissionIds.ADJUST_721_TIERS});
734
733
  }
735
734
 
735
+ // Scope the hook's permissions to REVOwner, where the operator permissions are granted.
736
+ JBOwnable(address(hook)).transferOwnership(OWNER);
737
+
736
738
  // Bind every piece of revnet-scoped state on the owner contract in a single call.
737
739
  REVOwner(OWNER).initializeRevnet({revnetId: revnetId, init: ownerInit});
738
740
  }