-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp(staking): implement the
CreateValidator
function for staking pr…
…ecompiled contract (#2030) * imp(staking): add create validator * imp(precompile): implement the createValidator function of precompiled contract staking * chore: update CHANGELOG.md * imp(staking): remove pubkey from CreateValidator event * imp(staking): update CreateValidator event * imp(staking): use abi arguments pack events * imp(staking): use json marshal unmarshal validator description and commission * imp(staking): only allow users to directly call the StakingI contract's address which is 0x0000000000000000000000000000000000000800 to create a new validator * imp(staking): update create validator for precompiles * imp(staking): add CreateValidatorMethod to IsTransaction * Update precompiles/staking/StakingI.sol * Update precompiles/staking/abi.json * imp(staking): update event CreateValidator change string indexed validatorAddress to address indexed validatorAddress * imp(staking): update precompiles NewMsgCreateValidator * imp(staking): update CreateValidator event and some optimizations * imp(staking): update precompiles common errors * imp(staking): update precompiles staking tx.go --------- Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
368 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.