System Contracts
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.
Last updated