Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const KeyApproveFormat + const KeyBalanceFormat + const KeyCompletionUnbondingEpochNumber + const KeyCurrentEpoch + const KeyDecimals + const KeyDelegationFormat + const KeyEpochBlockNumber + const KeyEpochFormat + const KeyEpochValidatorNumber + const KeyMinSelfDelegation + const KeyNodeIDFormat + const KeyOwner + const KeyRevNodeFormat + const KeyTotalSupply + const KeyUnbondingDelegationFormat + const KeyValidatorFormat + func BalanceKey(account string) string + func StakeContractAddr() string + func ToDelegationKey(delegatorAddress, validatorAddress string) []byte + func ToDelegationPrefix(delegatorAddress string) []byte + func ToEpochKey(epochID string) []byte + func ToNodeIDKey(addr string) []byte + func ToReverseNodeIDKey(nodeID string) []byte + func ToUnbondingDelegationKey(epochID uint64, delegatorAddress, validatorAddress string) []byte + func ToUnbondingDelegationPrefix(epochID uint64) []byte + func ToValidatorKey(validatorAddress string) []byte + func ToValidatorPrefix() []byte + type Collections []string + func (s Collections) Len() int + func (s Collections) Less(i, j int) bool + func (s Collections) Swap(i, j int) + type DPoSERC20Contract struct + func NewDPoSERC20Contract(log protocol.Logger) *DPoSERC20Contract + func (c *DPoSERC20Contract) GetMethod(methodName string, _ uint32) common.ContractFunc + type DPoSRuntime struct + func NewDPoSRuntime(log protocol.Logger) *DPoSRuntime + func (r *DPoSRuntime) Allowance(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (r *DPoSRuntime) Approve(txSimContext protocol.TxSimContext, params map[string][]byte) (result []byte, err error) + func (r *DPoSRuntime) BalanceOf(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (r *DPoSRuntime) Burn(txSimContext protocol.TxSimContext, params map[string][]byte) (result []byte, err error) + func (r *DPoSRuntime) Decimals(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (r *DPoSRuntime) Mint(txSimContext protocol.TxSimContext, params map[string][]byte) (result []byte, err error) + func (r *DPoSRuntime) Owner(txSimContext protocol.TxSimContext, params map[string][]byte) (result []byte, err error) + func (r *DPoSRuntime) Total(txSimContext protocol.TxSimContext, params map[string][]byte) (result []byte, err error) + func (r *DPoSRuntime) Transfer(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (r *DPoSRuntime) TransferFrom(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (r *DPoSRuntime) TransferOwnership(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error) + type DPoSStakeContract struct + func NewDPoSStakeContract(log protocol.Logger) *DPoSStakeContract + func (d *DPoSStakeContract) GetMethod(methodName string, _ uint32) common.ContractFunc + type DPoSStakeRuntime struct + func NewDPoSStakeRuntime(log protocol.Logger) *DPoSStakeRuntime + func (s *DPoSStakeRuntime) Delegate(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) GetAllCandidates(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) GetDelegationsByAddress(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) GetNodeID(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) GetUserDelegationByValidator(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) GetValidatorByAddress(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadCompleteUnBoundingEpochNumber(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadEpochBlockNumber(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadEpochByID(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadEpochValidatorNumber(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadLatestEpoch(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadMinSelfDelegation(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) ReadSystemContractAddr(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) SetNodeID(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) UnDelegate(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) UpdateEpochBlockNumber(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) UpdateEpochValidatorNumber(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) + func (s *DPoSStakeRuntime) UpdateMinSelfDelegation(context protocol.TxSimContext, params map[string][]byte) ([]byte, error) Other modules containing this package chainmaker.org/chainmaker/vm-native/v2