@croptop/core-v6 0.0.7 → 0.0.8

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": "@croptop/core-v6",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -210,7 +210,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
210
210
  JBTokenMapping[] memory tokenMappings = new JBTokenMapping[](1);
211
211
  tokenMappings[0] = JBTokenMapping({
212
212
  localToken: JBConstants.NATIVE_TOKEN,
213
- remoteToken: JBConstants.NATIVE_TOKEN,
213
+ remoteToken: bytes32(uint256(uint160(JBConstants.NATIVE_TOKEN))),
214
214
  minGas: 200_000,
215
215
  minBridgeAmount: 0.01 ether
216
216
  });
@@ -256,6 +256,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
256
256
  minimumPrice: uint104(10 ** (DECIMALS - 5)),
257
257
  minimumTotalSupply: 10_000,
258
258
  maximumTotalSupply: 999_999_999,
259
+ maximumSplitPercent: 0,
259
260
  allowedAddresses: new address[](0)
260
261
  });
261
262
  allowedPosts[1] = REVCroptopAllowedPost({
@@ -263,6 +264,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
263
264
  minimumPrice: uint104(10 ** (DECIMALS - 3)),
264
265
  minimumTotalSupply: 10_000,
265
266
  maximumTotalSupply: 999_999_999,
267
+ maximumSplitPercent: 0,
266
268
  allowedAddresses: new address[](0)
267
269
  });
268
270
  allowedPosts[2] = REVCroptopAllowedPost({
@@ -270,6 +272,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
270
272
  minimumPrice: uint104(10 ** (DECIMALS - 1)),
271
273
  minimumTotalSupply: 100,
272
274
  maximumTotalSupply: 999_999_999,
275
+ maximumSplitPercent: 0,
273
276
  allowedAddresses: new address[](0)
274
277
  });
275
278
  allowedPosts[3] = REVCroptopAllowedPost({
@@ -277,6 +280,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
277
280
  minimumPrice: uint104(10 ** DECIMALS),
278
281
  minimumTotalSupply: 10,
279
282
  maximumTotalSupply: 999_999_999,
283
+ maximumSplitPercent: 0,
280
284
  allowedAddresses: new address[](0)
281
285
  });
282
286
  allowedPosts[4] = REVCroptopAllowedPost({
@@ -284,6 +288,7 @@ contract ConfigureFeeProjectScript is Script, Sphinx {
284
288
  minimumPrice: uint104(10 ** (DECIMALS + 2)),
285
289
  minimumTotalSupply: 10,
286
290
  maximumTotalSupply: 999_999_999,
291
+ maximumSplitPercent: 0,
287
292
  allowedAddresses: new address[](0)
288
293
  });
289
294
 
@@ -7,9 +7,9 @@ import {IJBPermissions} from "@bananapus/core-v6/src/interfaces/IJBPermissions.s
7
7
  import {IJBDirectory} from "@bananapus/core-v6/src/interfaces/IJBDirectory.sol";
8
8
  import {IJBSplitHook} from "@bananapus/core-v6/src/interfaces/IJBSplitHook.sol";
9
9
  import {IJBOwnable} from "@bananapus/ownable-v6/src/interfaces/IJBOwnable.sol";
10
+ import {IJB721Hook} from "@bananapus/721-hook-v6/src/interfaces/IJB721Hook.sol";
10
11
  import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
11
12
  import {IJB721TiersHookStore} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHookStore.sol";
12
- import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
13
13
  import {JBConstants} from "@bananapus/core-v6/src/libraries/JBConstants.sol";
14
14
  import {JBSplit} from "@bananapus/core-v6/src/structs/JBSplit.sol";
15
15
  import {JBPermissionIds} from "@bananapus/permission-ids-v6/src/JBPermissionIds.sol";
@@ -41,7 +41,7 @@ contract TestCTPublisher is Test {
41
41
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJBOwnable.owner.selector), abi.encode(hookOwner));
42
42
 
43
43
  // Mock hook.PROJECT_ID() for permission checks.
44
- vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.PROJECT_ID.selector), abi.encode(hookProjectId));
44
+ vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721Hook.PROJECT_ID.selector), abi.encode(hookProjectId));
45
45
 
46
46
  // Mock hook.STORE().
47
47
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.STORE.selector), abi.encode(hookStoreAddr));
@@ -8,9 +8,9 @@ import {IJBDirectory} from "@bananapus/core-v6/src/interfaces/IJBDirectory.sol";
8
8
  import {IJBTerminal} from "@bananapus/core-v6/src/interfaces/IJBTerminal.sol";
9
9
  import {IJBSplitHook} from "@bananapus/core-v6/src/interfaces/IJBSplitHook.sol";
10
10
  import {IJBOwnable} from "@bananapus/ownable-v6/src/interfaces/IJBOwnable.sol";
11
+ import {IJB721Hook} from "@bananapus/721-hook-v6/src/interfaces/IJB721Hook.sol";
11
12
  import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
12
13
  import {IJB721TiersHookStore} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHookStore.sol";
13
- import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
14
14
  import {JB721TierConfig} from "@bananapus/721-hook-v6/src/structs/JB721TierConfig.sol";
15
15
  import {JBConstants} from "@bananapus/core-v6/src/libraries/JBConstants.sol";
16
16
  import {JBSplit} from "@bananapus/core-v6/src/structs/JBSplit.sol";
@@ -45,7 +45,7 @@ contract CroptopAttacks is Test {
45
45
  // Mock hook.owner().
46
46
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJBOwnable.owner.selector), abi.encode(hookOwner));
47
47
  // Mock hook.PROJECT_ID().
48
- vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.PROJECT_ID.selector), abi.encode(hookProjectId));
48
+ vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721Hook.PROJECT_ID.selector), abi.encode(hookProjectId));
49
49
  // Mock hook.STORE().
50
50
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.STORE.selector), abi.encode(hookStoreAddr));
51
51
 
@@ -7,6 +7,7 @@ import {IJBPermissions} from "@bananapus/core-v6/src/interfaces/IJBPermissions.s
7
7
  import {IJBDirectory} from "@bananapus/core-v6/src/interfaces/IJBDirectory.sol";
8
8
  import {IJBTerminal} from "@bananapus/core-v6/src/interfaces/IJBTerminal.sol";
9
9
  import {IJBOwnable} from "@bananapus/ownable-v6/src/interfaces/IJBOwnable.sol";
10
+ import {IJB721Hook} from "@bananapus/721-hook-v6/src/interfaces/IJB721Hook.sol";
10
11
  import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
11
12
  import {IJB721TiersHookStore} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHookStore.sol";
12
13
  import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
@@ -48,7 +49,7 @@ contract H19_FeeEvasion is Test {
48
49
  // Mock hook.owner().
49
50
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJBOwnable.owner.selector), abi.encode(hookOwner));
50
51
  // Mock hook.PROJECT_ID().
51
- vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.PROJECT_ID.selector), abi.encode(hookProjectId));
52
+ vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721Hook.PROJECT_ID.selector), abi.encode(hookProjectId));
52
53
  // Mock hook.STORE().
53
54
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.STORE.selector), abi.encode(hookStoreAddr));
54
55
 
@@ -6,6 +6,7 @@ import "forge-std/Test.sol";
6
6
  import {IJBPermissions} from "@bananapus/core-v6/src/interfaces/IJBPermissions.sol";
7
7
  import {IJBDirectory} from "@bananapus/core-v6/src/interfaces/IJBDirectory.sol";
8
8
  import {IJBOwnable} from "@bananapus/ownable-v6/src/interfaces/IJBOwnable.sol";
9
+ import {IJB721Hook} from "@bananapus/721-hook-v6/src/interfaces/IJB721Hook.sol";
9
10
  import {IJB721TiersHook} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHook.sol";
10
11
  import {IJB721TiersHookStore} from "@bananapus/721-hook-v6/src/interfaces/IJB721TiersHookStore.sol";
11
12
  import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
@@ -45,7 +46,7 @@ contract L52_StaleTierIdMapping is Test {
45
46
  // Mock hook.owner().
46
47
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJBOwnable.owner.selector), abi.encode(hookOwner));
47
48
  // Mock hook.PROJECT_ID().
48
- vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.PROJECT_ID.selector), abi.encode(hookProjectId));
49
+ vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721Hook.PROJECT_ID.selector), abi.encode(hookProjectId));
49
50
  // Mock hook.STORE().
50
51
  vm.mockCall(hookAddr, abi.encodeWithSelector(IJB721TiersHook.STORE.selector), abi.encode(hookStoreAddr));
51
52