B2 sidechain has an EVM execution environment with a predefined set of system smart contracts for the platform operation. Predefined system smart contracts are defined as follows:
• Staking Contract: Used for managing validator delegations and active validator sets.
• Slashing Indicator Contract: Used for slashing not active validators.
• System Reward Contract: Is a treasury for the system rewards to cover relay fees and others.
B2 also has the following upgradable contracts (which can be improved later if required):
• Staking Pool: Provides cheaper access to the staking contract.
• Governance: A default on-chain implementation by Compound’s Alpha governance.
• Chain Configuration: Used for the consensus that is managed by on-chain governance.
• Runtime Upgrade: Allows upgrading system contract runtime.
• Deployer Proxy: Used for managing deployers of the smart contracts.
Using the Parlia consensus mechanism encourages users to deposit their funds and vote for honest validators, and this will make the B2 sidechain more decentralized and reliable. It also helps share-holders get rewarded from their stakes by earning commissions from block producers. From a technical point of view, the B2 sidechain involves staking smart contracts on Solidity for the EVM runtime. This smart contract is an extension of IValidatorSet and allows users to manage active validators based on the total delegated amount and distribute rewards among stakeholders.