@bananapus/721-hook-v6 0.0.43 → 0.0.46
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/CHANGELOG.md +2 -3
- package/README.md +2 -2
- package/package.json +2 -2
- package/references/operations.md +2 -2
- package/references/runtime.md +1 -1
- package/script/helpers/Hook721DeploymentLib.sol +21 -5
- package/src/JB721Checkpoints.sol +5 -7
- package/src/JB721CheckpointsDeployer.sol +9 -1
- package/src/JB721TiersHook.sol +72 -76
- package/src/JB721TiersHookDeployer.sol +8 -6
- package/src/JB721TiersHookProjectDeployer.sol +22 -20
- package/src/JB721TiersHookStore.sol +170 -134
- package/src/abstract/ERC721.sol +24 -22
- package/src/abstract/JB721Hook.sol +20 -14
- package/src/interfaces/IJB721Checkpoints.sol +1 -1
- package/src/interfaces/IJB721CheckpointsDeployer.sol +0 -3
- package/src/interfaces/IJB721TiersHook.sol +2 -10
- package/src/interfaces/IJB721TiersHookProjectDeployer.sol +2 -2
- package/src/interfaces/IJB721TiersHookStore.sol +11 -11
- package/src/libraries/JB721Constants.sol +1 -0
- package/src/libraries/JB721TiersHookLib.sol +20 -33
- package/src/libraries/JBBitmap.sol +1 -1
- package/src/structs/JB721TiersHookFlags.sol +1 -1
- package/src/structs/JBPayDataHookRulesetMetadata.sol +3 -3
- package/test/utils/UnitTestSetup.sol +2 -2
|
@@ -22,8 +22,8 @@ pragma solidity ^0.8.0;
|
|
|
22
22
|
/// @custom:member allowAddPriceFeed A flag indicating if a project can add new price feeds to calculate exchange rates
|
|
23
23
|
/// between its tokens.
|
|
24
24
|
/// @custom:member holdFees A flag indicating if fees should be held during this ruleset.
|
|
25
|
-
/// @custom:member
|
|
26
|
-
///
|
|
25
|
+
/// @custom:member scopeCashOutsToLocalBalances A flag indicating if omnichain cash-out calculations should use only
|
|
26
|
+
/// the local chain's terminal balance instead of the project's balance held in all terminals.
|
|
27
27
|
/// @custom:member useDataHookForCashOuts A flag indicating if the data hook should be used for cash out transactions
|
|
28
28
|
/// during
|
|
29
29
|
/// this ruleset.
|
|
@@ -43,7 +43,7 @@ struct JBPayDataHookRulesetMetadata {
|
|
|
43
43
|
bool allowAddPriceFeed;
|
|
44
44
|
bool ownerMustSendPayouts;
|
|
45
45
|
bool holdFees;
|
|
46
|
-
bool
|
|
46
|
+
bool scopeCashOutsToLocalBalances;
|
|
47
47
|
bool useDataHookForCashOut;
|
|
48
48
|
uint16 metadata;
|
|
49
49
|
}
|
|
@@ -223,7 +223,7 @@ contract UnitTestSetup is Test {
|
|
|
223
223
|
allowAddPriceFeed: false,
|
|
224
224
|
ownerMustSendPayouts: false,
|
|
225
225
|
holdFees: false,
|
|
226
|
-
|
|
226
|
+
scopeCashOutsToLocalBalances: true,
|
|
227
227
|
useDataHookForPay: true,
|
|
228
228
|
useDataHookForCashOut: true,
|
|
229
229
|
dataHook: address(0),
|
|
@@ -772,7 +772,7 @@ contract UnitTestSetup is Test {
|
|
|
772
772
|
allowAddAccountingContext: false,
|
|
773
773
|
allowAddPriceFeed: false,
|
|
774
774
|
holdFees: false,
|
|
775
|
-
|
|
775
|
+
scopeCashOutsToLocalBalances: true,
|
|
776
776
|
useDataHookForCashOut: false,
|
|
777
777
|
metadata: 0x00
|
|
778
778
|
});
|