@bananapus/suckers-v6 0.0.78 → 1.0.0
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/README.md +6 -5
- package/foundry.toml +2 -0
- package/package.json +3 -3
- package/references/entrypoints.md +25 -9
- package/src/JBArbitrumSucker.sol +18 -6
- package/src/JBCCIPSucker.sol +3 -12
- package/src/JBOptimismSucker.sol +5 -2
- package/src/JBSucker.sol +220 -158
- package/src/JBSuckerRegistry.sol +375 -138
- package/src/interfaces/IJBSucker.sol +44 -24
- package/src/interfaces/IJBSuckerRegistry.sol +23 -8
- package/src/libraries/JBSuckerLib.sol +215 -26
- package/src/structs/JBAccountingSnapshot.sol +9 -11
- package/src/structs/JBChainAccounting.sol +32 -0
- package/src/structs/JBMessageRoot.sol +12 -16
- package/src/structs/PeerAccountScratch.sol +18 -0
- package/src/structs/RemoteValueParams.sol +15 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
/// @notice The valuation parameters for one aggregate-view pass, bundled so per-chain aggregation helpers stay under
|
|
5
|
+
/// the stack-slot limit.
|
|
6
|
+
/// @custom:member projectId The project whose price feeds to use.
|
|
7
|
+
/// @custom:member currency The currency to value into.
|
|
8
|
+
/// @custom:member decimals The decimal precision to value into.
|
|
9
|
+
/// @custom:member surplus Whether the pass aggregates surplus (true) or balance (false).
|
|
10
|
+
struct RemoteValueParams {
|
|
11
|
+
uint256 projectId;
|
|
12
|
+
uint256 currency;
|
|
13
|
+
uint256 decimals;
|
|
14
|
+
bool surplus;
|
|
15
|
+
}
|