Skip to content

Enrich SSVBasedApps interface #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged

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
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 Othentic 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Othentic Related to Othentic Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants