Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2020 Changes in this version + const ChainGovernanceABI + type AccountInfo struct + Address string + EnableNum string + type ChainGovernance struct + func NewChainGovernance(address common.Address, backend bind.ContractBackend) (*ChainGovernance, error) + type ChainGovernanceCaller struct + func NewChainGovernanceCaller(address common.Address, caller bind.ContractCaller) (*ChainGovernanceCaller, error) + func (_ChainGovernance *ChainGovernanceCaller) GetAccountStatus(opts *bind.CallOpts, account common.Address) (string, error) + func (_ChainGovernance *ChainGovernanceCaller) ListCommitteeMembers(opts *bind.CallOpts) (string, error) + func (_ChainGovernance *ChainGovernanceCaller) ListOperators(opts *bind.CallOpts) (string, error) + func (_ChainGovernance *ChainGovernanceCaller) QueryCommitteeMemberWeight(opts *bind.CallOpts, user common.Address) (bool, *big.Int, error) + func (_ChainGovernance *ChainGovernanceCaller) QueryThreshold(opts *bind.CallOpts) (*big.Int, error) + type ChainGovernanceCallerRaw struct + Contract *ChainGovernanceCaller + func (_ChainGovernance *ChainGovernanceCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type ChainGovernanceCallerSession struct + CallOpts bind.CallOpts + Contract *ChainGovernanceCaller + func (_ChainGovernance *ChainGovernanceCallerSession) GetAccountStatus(account common.Address) (string, error) + func (_ChainGovernance *ChainGovernanceCallerSession) ListCommitteeMembers() (string, error) + func (_ChainGovernance *ChainGovernanceCallerSession) ListOperators() (string, error) + func (_ChainGovernance *ChainGovernanceCallerSession) QueryCommitteeMemberWeight(user common.Address) (bool, *big.Int, error) + func (_ChainGovernance *ChainGovernanceCallerSession) QueryThreshold() (*big.Int, error) + type ChainGovernanceFilterer struct + func NewChainGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*ChainGovernanceFilterer, error) + type ChainGovernanceRaw struct + Contract *ChainGovernance + func (_ChainGovernance *ChainGovernanceRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_ChainGovernance *ChainGovernanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type ChainGovernanceSession struct + CallOpts bind.CallOpts + Contract *ChainGovernance + TransactOpts bind.TransactOpts + func (_ChainGovernance *ChainGovernanceSession) FreezeAccount(account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) GetAccountStatus(account common.Address) (string, error) + func (_ChainGovernance *ChainGovernanceSession) GrantCommitteeMember(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) GrantOperator(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) ListCommitteeMembers() (string, error) + func (_ChainGovernance *ChainGovernanceSession) ListOperators() (string, error) + func (_ChainGovernance *ChainGovernanceSession) QueryCommitteeMemberWeight(user common.Address) (bool, *big.Int, error) + func (_ChainGovernance *ChainGovernanceSession) QueryThreshold() (*big.Int, error) + func (_ChainGovernance *ChainGovernanceSession) RevokeCommitteeMember(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) RevokeOperator(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) UnfreezeAccount(account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) UpdateCommitteeMemberWeight(user common.Address, weight *big.Int) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceSession) UpdateThreshold(threshold *big.Int) (*types.Transaction, *types.Receipt, error) + type ChainGovernanceTransactor struct + func NewChainGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*ChainGovernanceTransactor, error) + func (_ChainGovernance *ChainGovernanceTransactor) FreezeAccount(opts *bind.TransactOpts, account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) GrantCommitteeMember(opts *bind.TransactOpts, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) GrantOperator(opts *bind.TransactOpts, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) RevokeCommitteeMember(opts *bind.TransactOpts, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) RevokeOperator(opts *bind.TransactOpts, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) UnfreezeAccount(opts *bind.TransactOpts, account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) UpdateCommitteeMemberWeight(opts *bind.TransactOpts, user common.Address, weight *big.Int) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactor) UpdateThreshold(opts *bind.TransactOpts, threshold *big.Int) (*types.Transaction, *types.Receipt, error) + type ChainGovernanceTransactorRaw struct + Contract *ChainGovernanceTransactor + func (_ChainGovernance *ChainGovernanceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type ChainGovernanceTransactorSession struct + Contract *ChainGovernanceTransactor + TransactOpts bind.TransactOpts + func (_ChainGovernance *ChainGovernanceTransactorSession) FreezeAccount(account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) GrantCommitteeMember(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) GrantOperator(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) RevokeCommitteeMember(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) RevokeOperator(user common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) UnfreezeAccount(account common.Address) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) UpdateCommitteeMemberWeight(user common.Address, weight *big.Int) (*types.Transaction, *types.Receipt, error) + func (_ChainGovernance *ChainGovernanceTransactorSession) UpdateThreshold(threshold *big.Int) (*types.Transaction, *types.Receipt, error) + type Service struct + func NewService(client *client.Client) (*Service, error) + func (service *Service) FreezeAccount(accountAddress common.Address) (int64, error) + func (service *Service) GetAccountStatus(accountAddress common.Address) (string, error) + func (service *Service) GrantCommitteeMember(accountAddress common.Address) (int64, error) + func (service *Service) GrantOperator(accountAddress common.Address) (int64, error) + func (service *Service) ListCommitteeMembers() ([]AccountInfo, error) + func (service *Service) ListOperators() ([]AccountInfo, error) + func (service *Service) QueryCommitteeMemberWeight(accountAddress common.Address) (uint64, error) + func (service *Service) QueryThreshold() (uint64, error) + func (service *Service) RevokeCommitteeMember(accountAddress common.Address) (int64, error) + func (service *Service) RevokeOperator(accountAddress common.Address) (int64, error) + func (service *Service) UnfreezeAccount(accountAddress common.Address) (int64, error) + func (service *Service) UpdateCommitteeMemberWeight(accountAddress common.Address, weight uint64) (int64, error) + func (service *Service) UpdateThreshold(threshold uint64) (int64, error)