Skip to content

Conversation

@riccardo-ssvlabs
Copy link
Contributor

@riccardo-ssvlabs riccardo-ssvlabs commented May 20, 2025

Function Description Inputs Outputs
delegations Percentage of validator balance that account has delegated to receiver. address account address receiver uint32 (percentage)
totalDelegatedPercentage Total percentage of validator balance that delegator has delegated across all receivers. address delegator uint32 (total percentage)
registeredBApps Whether the given bApp address is registered. address bApp bool isRegistered
strategies Returns the owner and fee of a strategy. uint32 strategyId address strategyOwner uint32 fee
ownedStrategies All strategy IDs owned by owner. address owner uint32[] strategyIds
strategyAccountShares Share‐balance of account in strategyId for token, or 0 if out‐of‐date. uint32 strategyId address account address token uint256 (account’s share balance)
strategyTotalBalance Total token balance held by strategyId for token. uint32 strategyId address token uint256 (total token balance)
strategyTotalShares Total share‐balance issued by strategyId for token. uint32 strategyId address token uint256 (total share balance)
strategyGeneration Current generation counter for strategyId & token. uint32 strategyId address token uint256 (generation)
obligations The obligation % reserved for bApp by strategyId in token. uint32 strategyId address bApp address token uint32 percentage, bool isSet
bAppTokens bApp’s token config: current & pending slashing‐capital % and when it takes effect. address bApp address token uint32 currentValue, bool isSet, uint32 pendingValue, uint32 effectTime
accountBAppStrategy Which strategy account uses for bApp. address account address bApp uint32 (strategyId)
feeUpdateRequests Pending fee‐update % and request timestamp for strategyId. uint32 strategyId uint32 percentage, uint32 requestTime
withdrawalRequests Pending withdrawal in shares & request timestamp for account in strategyId/token. uint32
strategyId address accountaddress token uint256 sharesuint32 requestTime
obligationRequests Pending obligation % change and request timestamp for strategyId/token/bApp. uint32 strategyId address token address bApp uint32 percentage, uint32 requestTime
slashingFund Amount of token in the slashing fund of account. address account address token uint256 (amount)
maxPercentage The maximum percentage constant (MAX_PERCENTAGE). uint32
ethAddress Sentinel address used to represent native ETH. address
maxShares Protocol’s maxShares limit. uint256
maxFeeIncrement Protocol’s maxFeeIncrement setting. uint32
feeTimelockPeriod Protocol’s fee‐update timelock period (seconds). uint32
feeExpireTime Protocol’s fee‐update expiration time (seconds). uint32
withdrawalTimelockPeriod Protocol’s withdrawal timelock period (seconds). uint32
withdrawalExpireTime Protocol’s withdrawal expiration time (seconds). uint32
obligationTimelockPeriod Protocol’s obligation‐update timelock period (seconds). uint32
obligationExpireTime Protocol’s obligation‐update expiration time (seconds). uint32
disabledFeatures Bitmask of disabled protocol features. uint32
tokenUpdateTimelockPeriod Protocol’s bApp‐token update timelock period (seconds). uint32
getVersion Returns the implementation version string. string

@riccardo-ssvlabs riccardo-ssvlabs requested a review from mtabasco May 20, 2025 14:35
@riccardo-ssvlabs riccardo-ssvlabs changed the title feat(SSVBasedApps.sol): add interface for views Enrich SSVBasedApps interface May 20, 2025
@github-actions
Copy link

Changes to gas cost

Generated at commit: 67d24dbb9ae52703d61b33e3de55ceb2cfec9e2e, compared to commit: f3efb28458d7859b43e23ab09abb6375f4cc25b4

🧾 Summary (10% most significant diffs)

Contract Method Avg (+/-) %
NonCompliantBApp slash -8 ✅ -0.01%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
NonCompliantBApp 485,061 (0) slash 81,452 (-12) -0.01% 81,456 (-8) -0.01% 81,452 (-12) -0.01% 81,464 (0) 0.00% 5 (0)

@riccardo-ssvlabs riccardo-ssvlabs added the Othentic Related to Othetic integration label May 23, 2025
@mtabasco mtabasco merged commit 1c86fe4 into release/v0.1.1 May 28, 2025
3 checks passed
@mtabasco mtabasco deleted the feat/ssv-main-interface branch May 28, 2025 12:39
mtabasco pushed a commit that referenced this pull request Jun 17, 2025
* fix(strategy-manager): change slashing and obligationUpdate event order
* fix(strategy): revert slashing if strategy not opted in
* Add Security Checks for Config (#49)
* feat: add and enforce basic checks for config vars
* Enrich SSVBasedApps interface (#51)
* Remove IERC165 Interface Check (#52)
* feat: check bApp registered during OptIn (#53)
* Use `ICore.TokenConfig` for `registerBApp()` (#50)
* chore: update prettier dependency (#62)
* chore: add Renovate config
* chore: sepolia deployment, bump version
* Example ECDSA verifier (#72)
* Fix: Propose Obligation Update storage ref (#74)
* feat: add script for implementation update and solidity 0.8.30
mtabasco added a commit that referenced this pull request Jun 18, 2025
* fix(strategy-manager): change slashing and obligationUpdate event order
* fix(strategy): revert slashing if strategy not opted in
* test(strategy): revert slash not opted in strategy
* Add Security Checks for Config (#49)
* Enrich SSVBasedApps interface (#51)
* Remove IERC165 Interface Check (#52)
* feat: check bApp registered during OptIn (#53)
* Use `ICore.TokenConfig` for `registerBApp()` (#50)
* chore: add Renovate config
* Example ECDSA verifier (#72)
* Fix: Propose Obligation Update storage ref (#74)
* feat: add script for implementation update and solidity 0.8.30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Othentic Related to Othetic integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants