Function: deployContributionContract()
The function deploys a new ServiceNodeContribution contract with a specified BLS public key and service node parameters, and it emits an event for the new contract deployment.
Inputs
blsPubkey
Validation: N/A.
Impact: This variable is used to create the ServiceNodeContribution contract.
serviceNodeParams
Validation: N/A.
Impact: This variable is used to create the ServiceNodeContribution contract.
Branches and code coverage (including function calls)
Intended branches
Function call analysis
new ServiceNodeContribution(address(stakingRewardsContract), maxContributors, blsPubkey, serviceNodeParams)
External/Internal? External.
Argument control:
blsPubkey
andserviceNodeParams
.Impact: Creates the ServiceNodeContribution contract.