auth

package
v0.0.0-...-24cf3dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

Documentation

Index

Constants

View Source
const CommitteeABI = "" /* 3108-byte string literal not displayed */

CommitteeABI is the input ABI used to generate the binding from.

View Source
const CommitteeManagerABI = "" /* 5638-byte string literal not displayed */

CommitteeManagerABI is the input ABI used to generate the binding from.

View Source
const ContractAuthPrecompiledABI = "" /* 4363-byte string literal not displayed */

ContractAuthPrecompiledABI is the input ABI used to generate the binding from.

View Source
const ProposalManagerABI = "" /* 5821-byte string literal not displayed */

ProposalManagerABI is the input ABI used to generate the binding from.

Variables

View Source
var CommitteeBin = "" /* 14994-byte string literal not displayed */

CommitteeBin is the compiled bytecode used for deploying new contracts.

View Source
var CommitteeManagerBin = "" /* 74634-byte string literal not displayed */

CommitteeManagerBin is the compiled bytecode used for deploying new contracts.

View Source
var ContractAuthPrecompiledBin = "" /* 4854-byte string literal not displayed */

ContractAuthPrecompiledBin is the compiled bytecode used for deploying new contracts.

View Source
var DEFAULT_BLOCK_NUMBER_INTERVAL = big.NewInt(3600 * 24 * 7)
View Source
var ProposalManagerBin = "" /* 27182-byte string literal not displayed */

ProposalManagerBin is the compiled bytecode used for deploying new contracts.

Functions

func AsyncDeployCommittee

func AsyncDeployCommittee(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend, governorList []common.Address, weightList []uint32, participatesRate uint8, winRate uint8) (*types.Transaction, error)

func AsyncDeployCommitteeManager

func AsyncDeployCommitteeManager(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend, initGovernors []common.Address, weights []uint32, participatesRate uint8, winRate uint8) (*types.Transaction, error)

func AsyncDeployContractAuthPrecompiled

func AsyncDeployContractAuthPrecompiled(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend) (*types.Transaction, error)

func AsyncDeployProposalManager

func AsyncDeployProposalManager(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend, committeeMgrAddress common.Address, committeeAddress common.Address) (*types.Transaction, error)

Types

type AuthManagerService

type AuthManagerService struct {
	// contains filtered or unexported fields
}

func NewAuthManagerService

func NewAuthManagerService(client *client.Client) (services *AuthManagerService, err error)

func (*AuthManagerService) CheckDeployAuth

func (service *AuthManagerService) CheckDeployAuth(account common.Address) (*bool, error)

check the account whether this account can deploy contract

func (*AuthManagerService) CheckMethodAuth

func (service *AuthManagerService) CheckMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (*bool, error)

check the contract interface func whether this account can call

func (*AuthManagerService) GetAdmin

func (service *AuthManagerService) GetAdmin(contractAddr common.Address) (account *common.Address, err error)

get a specific contract admin

func (*AuthManagerService) GetCommitteeInfo

func (service *AuthManagerService) GetCommitteeInfo() (c *CommitteeInfo, err error)

6.1 无需权限的查询接口 get Committee info

func (*AuthManagerService) GetDeployAuthType

func (service *AuthManagerService) GetDeployAuthType() (*big.Int, error)

get global deploy auth type

func (*AuthManagerService) GetProposalInfo

func (service *AuthManagerService) GetProposalInfo(proposalId big.Int) (proposalInfo *ProposalInfo, err error)

get proposal info

func (*AuthManagerService) ModifyDeployAuth

func (service *AuthManagerService) ModifyDeployAuth(account common.Address, openFlag bool) (proposalId *big.Int, err error)

submit a proposal of adding deploy contract auth for account, only governor can call it openFlag true-open; false-close

func (*AuthManagerService) ResetAdmin

func (service *AuthManagerService) ResetAdmin(newAdmin common.Address, contractAddr common.Address) (proposalId *big.Int, err error)

submit a proposal of resetting contract admin, only governor can call it

func (*AuthManagerService) RevokeProposal

func (service *AuthManagerService) RevokeProposal(proposalId big.Int) (receipt *types.Receipt, err error)

revoke proposal, only governor can call it

func (*AuthManagerService) SetDeployAuthType

func (service *AuthManagerService) SetDeployAuthType(deployAuthType uint8) (proposalId *big.Int, err error)

submit a proposal of setting deploy contract auth type, only governor can call it deployAuthType 1-whitelist; 2-blacklist

func (*AuthManagerService) SetMethodAuth

func (service *AuthManagerService) SetMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address, isOpen bool) (rtCode *big.Int, err error)

set a specific contract's method ACL, only contract admin can call it isOpen if open, then white_list type is true, black_list is false; if close, then white_list type is false, black_list is true

func (*AuthManagerService) SetMethodAuthType

func (service *AuthManagerService) SetMethodAuthType(contractAddr common.Address, funcSelector [4]byte, authType uint8) (rtCode *big.Int, err error)

6.3 合约管理员账号专用接口 set a specific contract's method auth type, only contract admin can call it authType white_list or black_list

func (*AuthManagerService) SetRate

func (service *AuthManagerService) SetRate(participatesRate uint8, winRate uint8) (proposalId *big.Int, err error)

apply set participate rate and win rate. only governor can call it participatesRate [0,100]. if 0, always succeed. winRate [0,100].

func (*AuthManagerService) UpdateGovernor

func (service *AuthManagerService) UpdateGovernor(account common.Address, weight uint32) (proposalId *big.Int, err error)

6.2 治理委员账号专用接口 apply for update governor, only governor can call it account new governor address weight 0 == delete, bigger than 0 == update or insert

func (*AuthManagerService) VoteProposal

func (service *AuthManagerService) VoteProposal(proposalId big.Int, agree bool) (receipt *types.Receipt, err error)

unified vote, only governor can call it

type Committee

type Committee struct {
	CommitteeCaller     // Read-only binding to the contract
	CommitteeTransactor // Write-only binding to the contract
	CommitteeFilterer   // Log filterer for contract events
}

Committee is an auto generated Go binding around a Solidity contract.

func DeployCommittee

func DeployCommittee(auth *bind.TransactOpts, backend bind.ContractBackend, governorList []common.Address, weightList []uint32, participatesRate uint8, winRate uint8) (common.Address, *types.Receipt, *Committee, error)

DeployCommittee deploys a new contract, binding an instance of Committee to it.

func NewCommittee

func NewCommittee(address common.Address, backend bind.ContractBackend) (*Committee, error)

NewCommittee creates a new instance of Committee, bound to a specific deployed contract.

type CommitteeCaller

type CommitteeCaller struct {
	// contains filtered or unexported fields
}

CommitteeCaller is an auto generated read-only Go binding around a Solidity contract.

func NewCommitteeCaller

func NewCommitteeCaller(address common.Address, caller bind.ContractCaller) (*CommitteeCaller, error)

NewCommitteeCaller creates a new read-only instance of Committee, bound to a specific deployed contract.

func (*CommitteeCaller) Auth

func (_Committee *CommitteeCaller) Auth(opts *bind.CallOpts, src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*CommitteeCaller) GetCommitteeInfo

func (_Committee *CommitteeCaller) GetCommitteeInfo(opts *bind.CallOpts) (struct {
	ParticipatesRate uint8
	WinRate          uint8
	Governors        []common.Address
	Weights          []uint32
}, error)

GetCommitteeInfo is a free data retrieval call binding the contract method 0x5e77fe20.

Solidity: function getCommitteeInfo() constant returns(uint8 participatesRate, uint8 winRate, address[] governors, uint32[] weights)

func (*CommitteeCaller) GetWeight

func (_Committee *CommitteeCaller) GetWeight(opts *bind.CallOpts, governor common.Address) (uint32, error)

GetWeight is a free data retrieval call binding the contract method 0xac6c5251.

Solidity: function getWeight(address governor) constant returns(uint32)

func (*CommitteeCaller) GetWeights

func (_Committee *CommitteeCaller) GetWeights(opts *bind.CallOpts) (uint32, error)

GetWeights is a free data retrieval call binding the contract method 0x22acb867.

Solidity: function getWeights() constant returns(uint32)

func (*CommitteeCaller) GetWeights0

func (_Committee *CommitteeCaller) GetWeights0(opts *bind.CallOpts, votes []common.Address) (uint32, error)

GetWeights0 is a free data retrieval call binding the contract method 0x965b9ff1.

Solidity: function getWeights(address[] votes) constant returns(uint32)

func (*CommitteeCaller) IsGovernor

func (_Committee *CommitteeCaller) IsGovernor(opts *bind.CallOpts, governor common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address governor) constant returns(bool)

func (*CommitteeCaller) Owner

func (_Committee *CommitteeCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*CommitteeCaller) ParticipatesRate

func (_Committee *CommitteeCaller) ParticipatesRate(opts *bind.CallOpts) (uint8, error)

ParticipatesRate is a free data retrieval call binding the contract method 0x5615696f.

Solidity: function _participatesRate() constant returns(uint8)

func (*CommitteeCaller) WinRate

func (_Committee *CommitteeCaller) WinRate(opts *bind.CallOpts) (uint8, error)

WinRate is a free data retrieval call binding the contract method 0xb6fd9067.

Solidity: function _winRate() constant returns(uint8)

type CommitteeCallerRaw

type CommitteeCallerRaw struct {
	Contract *CommitteeCaller // Generic read-only contract binding to access the raw methods on
}

CommitteeCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*CommitteeCallerRaw) Call

func (_Committee *CommitteeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type CommitteeCallerSession

type CommitteeCallerSession struct {
	Contract *CommitteeCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts    // Call options to use throughout this session
}

CommitteeCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*CommitteeCallerSession) Auth

func (_Committee *CommitteeCallerSession) Auth(src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*CommitteeCallerSession) GetCommitteeInfo

func (_Committee *CommitteeCallerSession) GetCommitteeInfo() (struct {
	ParticipatesRate uint8
	WinRate          uint8
	Governors        []common.Address
	Weights          []uint32
}, error)

GetCommitteeInfo is a free data retrieval call binding the contract method 0x5e77fe20.

Solidity: function getCommitteeInfo() constant returns(uint8 participatesRate, uint8 winRate, address[] governors, uint32[] weights)

func (*CommitteeCallerSession) GetWeight

func (_Committee *CommitteeCallerSession) GetWeight(governor common.Address) (uint32, error)

GetWeight is a free data retrieval call binding the contract method 0xac6c5251.

Solidity: function getWeight(address governor) constant returns(uint32)

func (*CommitteeCallerSession) GetWeights

func (_Committee *CommitteeCallerSession) GetWeights() (uint32, error)

GetWeights is a free data retrieval call binding the contract method 0x22acb867.

Solidity: function getWeights() constant returns(uint32)

func (*CommitteeCallerSession) GetWeights0

func (_Committee *CommitteeCallerSession) GetWeights0(votes []common.Address) (uint32, error)

GetWeights0 is a free data retrieval call binding the contract method 0x965b9ff1.

Solidity: function getWeights(address[] votes) constant returns(uint32)

func (*CommitteeCallerSession) IsGovernor

func (_Committee *CommitteeCallerSession) IsGovernor(governor common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address governor) constant returns(bool)

func (*CommitteeCallerSession) Owner

func (_Committee *CommitteeCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*CommitteeCallerSession) ParticipatesRate

func (_Committee *CommitteeCallerSession) ParticipatesRate() (uint8, error)

ParticipatesRate is a free data retrieval call binding the contract method 0x5615696f.

Solidity: function _participatesRate() constant returns(uint8)

func (*CommitteeCallerSession) WinRate

func (_Committee *CommitteeCallerSession) WinRate() (uint8, error)

WinRate is a free data retrieval call binding the contract method 0xb6fd9067.

Solidity: function _winRate() constant returns(uint8)

type CommitteeFilterer

type CommitteeFilterer struct {
	// contains filtered or unexported fields
}

CommitteeFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewCommitteeFilterer

func NewCommitteeFilterer(address common.Address, filterer bind.ContractFilterer) (*CommitteeFilterer, error)

NewCommitteeFilterer creates a new log filterer instance of Committee, bound to a specific deployed contract.

type CommitteeInfo

type CommitteeInfo struct {
	ParticipatesRate uint8
	WinRate          uint8
	Governors        []common.Address
	Weights          []uint32
}

type CommitteeManager

type CommitteeManager struct {
	CommitteeManagerCaller     // Read-only binding to the contract
	CommitteeManagerTransactor // Write-only binding to the contract
	CommitteeManagerFilterer   // Log filterer for contract events
}

CommitteeManager is an auto generated Go binding around a Solidity contract.

func DeployCommitteeManager

func DeployCommitteeManager(auth *bind.TransactOpts, backend bind.ContractBackend, initGovernors []common.Address, weights []uint32, participatesRate uint8, winRate uint8) (common.Address, *types.Receipt, *CommitteeManager, error)

DeployCommitteeManager deploys a new contract, binding an instance of CommitteeManager to it.

func NewCommitteeManager

func NewCommitteeManager(address common.Address, backend bind.ContractBackend) (*CommitteeManager, error)

NewCommitteeManager creates a new instance of CommitteeManager, bound to a specific deployed contract.

type CommitteeManagerCaller

type CommitteeManagerCaller struct {
	// contains filtered or unexported fields
}

CommitteeManagerCaller is an auto generated read-only Go binding around a Solidity contract.

func NewCommitteeManagerCaller

func NewCommitteeManagerCaller(address common.Address, caller bind.ContractCaller) (*CommitteeManagerCaller, error)

NewCommitteeManagerCaller creates a new read-only instance of CommitteeManager, bound to a specific deployed contract.

func (*CommitteeManagerCaller) Committee

func (_CommitteeManager *CommitteeManagerCaller) Committee(opts *bind.CallOpts) (common.Address, error)

Committee is a free data retrieval call binding the contract method 0x185c1587.

Solidity: function _committee() constant returns(address)

func (*CommitteeManagerCaller) GetProposalType

func (_CommitteeManager *CommitteeManagerCaller) GetProposalType(opts *bind.CallOpts, proposalId *big.Int) (uint8, error)

GetProposalType is a free data retrieval call binding the contract method 0xd978ffba.

Solidity: function getProposalType(uint256 proposalId) constant returns(uint8)

func (*CommitteeManagerCaller) IsGovernor

func (_CommitteeManager *CommitteeManagerCaller) IsGovernor(opts *bind.CallOpts, account common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address account) constant returns(bool)

func (*CommitteeManagerCaller) ProposalMgr

func (_CommitteeManager *CommitteeManagerCaller) ProposalMgr(opts *bind.CallOpts) (common.Address, error)

ProposalMgr is a free data retrieval call binding the contract method 0xf675fdaa.

Solidity: function _proposalMgr() constant returns(address)

type CommitteeManagerCallerRaw

type CommitteeManagerCallerRaw struct {
	Contract *CommitteeManagerCaller // Generic read-only contract binding to access the raw methods on
}

CommitteeManagerCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*CommitteeManagerCallerRaw) Call

func (_CommitteeManager *CommitteeManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type CommitteeManagerCallerSession

type CommitteeManagerCallerSession struct {
	Contract *CommitteeManagerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts           // Call options to use throughout this session
}

CommitteeManagerCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*CommitteeManagerCallerSession) Committee

func (_CommitteeManager *CommitteeManagerCallerSession) Committee() (common.Address, error)

Committee is a free data retrieval call binding the contract method 0x185c1587.

Solidity: function _committee() constant returns(address)

func (*CommitteeManagerCallerSession) GetProposalType

func (_CommitteeManager *CommitteeManagerCallerSession) GetProposalType(proposalId *big.Int) (uint8, error)

GetProposalType is a free data retrieval call binding the contract method 0xd978ffba.

Solidity: function getProposalType(uint256 proposalId) constant returns(uint8)

func (*CommitteeManagerCallerSession) IsGovernor

func (_CommitteeManager *CommitteeManagerCallerSession) IsGovernor(account common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address account) constant returns(bool)

func (*CommitteeManagerCallerSession) ProposalMgr

func (_CommitteeManager *CommitteeManagerCallerSession) ProposalMgr() (common.Address, error)

ProposalMgr is a free data retrieval call binding the contract method 0xf675fdaa.

Solidity: function _proposalMgr() constant returns(address)

type CommitteeManagerExecResult

type CommitteeManagerExecResult struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

CommitteeManagerExecResult represents a ExecResult event raised by the CommitteeManager contract.

type CommitteeManagerFilterer

type CommitteeManagerFilterer struct {
	// contains filtered or unexported fields
}

CommitteeManagerFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewCommitteeManagerFilterer

func NewCommitteeManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*CommitteeManagerFilterer, error)

NewCommitteeManagerFilterer creates a new log filterer instance of CommitteeManager, bound to a specific deployed contract.

func (*CommitteeManagerFilterer) ParseExecResult

func (_CommitteeManager *CommitteeManagerFilterer) ParseExecResult(log types.Log) (*CommitteeManagerExecResult, error)

ParseExecResult is a log parse operation binding the contract event 0x7251e13f6f51fdfe60094817f80310366d2e1148fe8a46cb475b582d35bfdea8.

Solidity: event execResult(int256 )

func (*CommitteeManagerFilterer) WatchAllExecResult

func (_CommitteeManager *CommitteeManagerFilterer) WatchAllExecResult(fromBlock *uint64, handler func(int, []types.Log)) (string, error)

func (*CommitteeManagerFilterer) WatchExecResult

func (_CommitteeManager *CommitteeManagerFilterer) WatchExecResult(fromBlock *uint64, handler func(int, []types.Log)) (string, error)

WatchExecResult is a free log subscription operation binding the contract event 0x7251e13f6f51fdfe60094817f80310366d2e1148fe8a46cb475b582d35bfdea8.

Solidity: event execResult(int256 )

type CommitteeManagerRaw

type CommitteeManagerRaw struct {
	Contract *CommitteeManager // Generic contract binding to access the raw methods on
}

CommitteeManagerRaw is an auto generated low-level Go binding around a Solidity contract.

func (*CommitteeManagerRaw) Call

func (_CommitteeManager *CommitteeManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*CommitteeManagerRaw) Transact

func (_CommitteeManager *CommitteeManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*CommitteeManagerRaw) Transfer

func (_CommitteeManager *CommitteeManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CommitteeManagerSession

type CommitteeManagerSession struct {
	Contract     *CommitteeManager // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

CommitteeManagerSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*CommitteeManagerSession) AsyncCreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateModifyDeployAuthProposal(handler func(*types.Receipt, error), account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateResetAdminProposal(handler func(*types.Receipt, error), newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateRmNodeProposal(handler func(*types.Receipt, error), node string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateSetConsensusWeightProposal(handler func(*types.Receipt, error), node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateSetDeployAuthTypeProposal(handler func(*types.Receipt, error), deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateSetRateProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateSetRateProposal(handler func(*types.Receipt, error), participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateSetSysConfigProposal(handler func(*types.Receipt, error), key string, value string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateUpdateGovernorProposal(handler func(*types.Receipt, error), account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncCreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncCreateUpgradeVoteComputerProposal(handler func(*types.Receipt, error), newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncRevokeProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncRevokeProposal(handler func(*types.Receipt, error), proposalId *big.Int) (*types.Transaction, error)

func (*CommitteeManagerSession) AsyncVoteProposal

func (_CommitteeManager *CommitteeManagerSession) AsyncVoteProposal(handler func(*types.Receipt, error), proposalId *big.Int, agree bool) (*types.Transaction, error)

func (*CommitteeManagerSession) Committee

func (_CommitteeManager *CommitteeManagerSession) Committee() (common.Address, error)

Committee is a free data retrieval call binding the contract method 0x185c1587.

Solidity: function _committee() constant returns(address)

func (*CommitteeManagerSession) CreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerSession) CreateModifyDeployAuthProposal(account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateModifyDeployAuthProposal is a paid mutator transaction binding the contract method 0x6ba4790c.

Solidity: function createModifyDeployAuthProposal(address account, bool openFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerSession) CreateResetAdminProposal(newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateResetAdminProposal is a paid mutator transaction binding the contract method 0x7475f00f.

Solidity: function createResetAdminProposal(address newAdmin, address contractAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerSession) CreateRmNodeProposal(node string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateRmNodeProposal is a paid mutator transaction binding the contract method 0x65012582.

Solidity: function createRmNodeProposal(string node, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerSession) CreateSetConsensusWeightProposal(node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetConsensusWeightProposal is a paid mutator transaction binding the contract method 0x9e3f4f4e.

Solidity: function createSetConsensusWeightProposal(string node, uint32 weight, bool addFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerSession) CreateSetDeployAuthTypeProposal(deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetDeployAuthTypeProposal is a paid mutator transaction binding the contract method 0x614235f3.

Solidity: function createSetDeployAuthTypeProposal(uint8 deployAuthType, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateSetRateProposal

func (_CommitteeManager *CommitteeManagerSession) CreateSetRateProposal(participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetRateProposal is a paid mutator transaction binding the contract method 0x03f19159.

Solidity: function createSetRateProposal(uint8 participatesRate, uint8 winRate, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerSession) CreateSetSysConfigProposal(key string, value string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetSysConfigProposal is a paid mutator transaction binding the contract method 0x7a25132d.

Solidity: function createSetSysConfigProposal(string key, string value, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerSession) CreateUpdateGovernorProposal(account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpdateGovernorProposal is a paid mutator transaction binding the contract method 0x3234f0e6.

Solidity: function createUpdateGovernorProposal(address account, uint32 weight, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) CreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerSession) CreateUpgradeVoteComputerProposal(newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpgradeVoteComputerProposal is a paid mutator transaction binding the contract method 0x7222b4a8.

Solidity: function createUpgradeVoteComputerProposal(address newAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerSession) GetProposalType

func (_CommitteeManager *CommitteeManagerSession) GetProposalType(proposalId *big.Int) (uint8, error)

GetProposalType is a free data retrieval call binding the contract method 0xd978ffba.

Solidity: function getProposalType(uint256 proposalId) constant returns(uint8)

func (*CommitteeManagerSession) IsGovernor

func (_CommitteeManager *CommitteeManagerSession) IsGovernor(account common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address account) constant returns(bool)

func (*CommitteeManagerSession) ParseExecResult

func (_CommitteeManager *CommitteeManagerSession) ParseExecResult(log types.Log) (*CommitteeManagerExecResult, error)

ParseExecResult is a log parse operation binding the contract event 0x7251e13f6f51fdfe60094817f80310366d2e1148fe8a46cb475b582d35bfdea8.

Solidity: event execResult(int256 )

func (*CommitteeManagerSession) ProposalMgr

func (_CommitteeManager *CommitteeManagerSession) ProposalMgr() (common.Address, error)

ProposalMgr is a free data retrieval call binding the contract method 0xf675fdaa.

Solidity: function _proposalMgr() constant returns(address)

func (*CommitteeManagerSession) RevokeProposal

func (_CommitteeManager *CommitteeManagerSession) RevokeProposal(proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RevokeProposal is a paid mutator transaction binding the contract method 0x85a6a091.

Solidity: function revokeProposal(uint256 proposalId) returns()

func (*CommitteeManagerSession) VoteProposal

func (_CommitteeManager *CommitteeManagerSession) VoteProposal(proposalId *big.Int, agree bool) (*types.Transaction, *types.Receipt, error)

VoteProposal is a paid mutator transaction binding the contract method 0xbcfb9b61.

Solidity: function voteProposal(uint256 proposalId, bool agree) returns()

func (*CommitteeManagerSession) WatchAllExecResult

func (_CommitteeManager *CommitteeManagerSession) WatchAllExecResult(fromBlock *uint64, handler func(int, []types.Log)) (string, error)

func (*CommitteeManagerSession) WatchExecResult

func (_CommitteeManager *CommitteeManagerSession) WatchExecResult(fromBlock *uint64, handler func(int, []types.Log)) (string, error)

WatchExecResult is a free log subscription operation binding the contract event 0x7251e13f6f51fdfe60094817f80310366d2e1148fe8a46cb475b582d35bfdea8.

Solidity: event execResult(int256 )

type CommitteeManagerTransactor

type CommitteeManagerTransactor struct {
	// contains filtered or unexported fields
}

CommitteeManagerTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewCommitteeManagerTransactor

func NewCommitteeManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*CommitteeManagerTransactor, error)

NewCommitteeManagerTransactor creates a new write-only instance of CommitteeManager, bound to a specific deployed contract.

func (*CommitteeManagerTransactor) AsyncCreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateModifyDeployAuthProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateResetAdminProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateRmNodeProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, node string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateSetConsensusWeightProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateSetDeployAuthTypeProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateSetRateProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateSetRateProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateSetSysConfigProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, key string, value string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateUpdateGovernorProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncCreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncCreateUpgradeVoteComputerProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncRevokeProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncRevokeProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposalId *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactor) AsyncVoteProposal

func (_CommitteeManager *CommitteeManagerTransactor) AsyncVoteProposal(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposalId *big.Int, agree bool) (*types.Transaction, error)

func (*CommitteeManagerTransactor) CreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateModifyDeployAuthProposal(opts *bind.TransactOpts, account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateModifyDeployAuthProposal is a paid mutator transaction binding the contract method 0x6ba4790c.

Solidity: function createModifyDeployAuthProposal(address account, bool openFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateResetAdminProposal(opts *bind.TransactOpts, newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateResetAdminProposal is a paid mutator transaction binding the contract method 0x7475f00f.

Solidity: function createResetAdminProposal(address newAdmin, address contractAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateRmNodeProposal(opts *bind.TransactOpts, node string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateRmNodeProposal is a paid mutator transaction binding the contract method 0x65012582.

Solidity: function createRmNodeProposal(string node, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateSetConsensusWeightProposal(opts *bind.TransactOpts, node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetConsensusWeightProposal is a paid mutator transaction binding the contract method 0x9e3f4f4e.

Solidity: function createSetConsensusWeightProposal(string node, uint32 weight, bool addFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateSetDeployAuthTypeProposal(opts *bind.TransactOpts, deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetDeployAuthTypeProposal is a paid mutator transaction binding the contract method 0x614235f3.

Solidity: function createSetDeployAuthTypeProposal(uint8 deployAuthType, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateSetRateProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateSetRateProposal(opts *bind.TransactOpts, participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetRateProposal is a paid mutator transaction binding the contract method 0x03f19159.

Solidity: function createSetRateProposal(uint8 participatesRate, uint8 winRate, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateSetSysConfigProposal(opts *bind.TransactOpts, key string, value string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetSysConfigProposal is a paid mutator transaction binding the contract method 0x7a25132d.

Solidity: function createSetSysConfigProposal(string key, string value, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateUpdateGovernorProposal(opts *bind.TransactOpts, account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpdateGovernorProposal is a paid mutator transaction binding the contract method 0x3234f0e6.

Solidity: function createUpdateGovernorProposal(address account, uint32 weight, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) CreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerTransactor) CreateUpgradeVoteComputerProposal(opts *bind.TransactOpts, newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpgradeVoteComputerProposal is a paid mutator transaction binding the contract method 0x7222b4a8.

Solidity: function createUpgradeVoteComputerProposal(address newAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactor) RevokeProposal

func (_CommitteeManager *CommitteeManagerTransactor) RevokeProposal(opts *bind.TransactOpts, proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RevokeProposal is a paid mutator transaction binding the contract method 0x85a6a091.

Solidity: function revokeProposal(uint256 proposalId) returns()

func (*CommitteeManagerTransactor) VoteProposal

func (_CommitteeManager *CommitteeManagerTransactor) VoteProposal(opts *bind.TransactOpts, proposalId *big.Int, agree bool) (*types.Transaction, *types.Receipt, error)

VoteProposal is a paid mutator transaction binding the contract method 0xbcfb9b61.

Solidity: function voteProposal(uint256 proposalId, bool agree) returns()

type CommitteeManagerTransactorRaw

type CommitteeManagerTransactorRaw struct {
	Contract *CommitteeManagerTransactor // Generic write-only contract binding to access the raw methods on
}

CommitteeManagerTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*CommitteeManagerTransactorRaw) Transact

func (_CommitteeManager *CommitteeManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*CommitteeManagerTransactorRaw) Transfer

func (_CommitteeManager *CommitteeManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CommitteeManagerTransactorSession

type CommitteeManagerTransactorSession struct {
	Contract     *CommitteeManagerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts           // Transaction auth options to use throughout this session
}

CommitteeManagerTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*CommitteeManagerTransactorSession) AsyncCreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateModifyDeployAuthProposal(handler func(*types.Receipt, error), account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateResetAdminProposal(handler func(*types.Receipt, error), newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateRmNodeProposal(handler func(*types.Receipt, error), node string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateSetConsensusWeightProposal(handler func(*types.Receipt, error), node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateSetDeployAuthTypeProposal(handler func(*types.Receipt, error), deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateSetRateProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateSetRateProposal(handler func(*types.Receipt, error), participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateSetSysConfigProposal(handler func(*types.Receipt, error), key string, value string, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateUpdateGovernorProposal(handler func(*types.Receipt, error), account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncCreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncCreateUpgradeVoteComputerProposal(handler func(*types.Receipt, error), newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncRevokeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncRevokeProposal(handler func(*types.Receipt, error), proposalId *big.Int) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) AsyncVoteProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) AsyncVoteProposal(handler func(*types.Receipt, error), proposalId *big.Int, agree bool) (*types.Transaction, error)

func (*CommitteeManagerTransactorSession) CreateModifyDeployAuthProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateModifyDeployAuthProposal(account common.Address, openFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateModifyDeployAuthProposal is a paid mutator transaction binding the contract method 0x6ba4790c.

Solidity: function createModifyDeployAuthProposal(address account, bool openFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateResetAdminProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateResetAdminProposal(newAdmin common.Address, contractAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateResetAdminProposal is a paid mutator transaction binding the contract method 0x7475f00f.

Solidity: function createResetAdminProposal(address newAdmin, address contractAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateRmNodeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateRmNodeProposal(node string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateRmNodeProposal is a paid mutator transaction binding the contract method 0x65012582.

Solidity: function createRmNodeProposal(string node, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateSetConsensusWeightProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateSetConsensusWeightProposal(node string, weight uint32, addFlag bool, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetConsensusWeightProposal is a paid mutator transaction binding the contract method 0x9e3f4f4e.

Solidity: function createSetConsensusWeightProposal(string node, uint32 weight, bool addFlag, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateSetDeployAuthTypeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateSetDeployAuthTypeProposal(deployAuthType uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetDeployAuthTypeProposal is a paid mutator transaction binding the contract method 0x614235f3.

Solidity: function createSetDeployAuthTypeProposal(uint8 deployAuthType, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateSetRateProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateSetRateProposal(participatesRate uint8, winRate uint8, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetRateProposal is a paid mutator transaction binding the contract method 0x03f19159.

Solidity: function createSetRateProposal(uint8 participatesRate, uint8 winRate, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateSetSysConfigProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateSetSysConfigProposal(key string, value string, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateSetSysConfigProposal is a paid mutator transaction binding the contract method 0x7a25132d.

Solidity: function createSetSysConfigProposal(string key, string value, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateUpdateGovernorProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateUpdateGovernorProposal(account common.Address, weight uint32, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpdateGovernorProposal is a paid mutator transaction binding the contract method 0x3234f0e6.

Solidity: function createUpdateGovernorProposal(address account, uint32 weight, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) CreateUpgradeVoteComputerProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) CreateUpgradeVoteComputerProposal(newAddr common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

CreateUpgradeVoteComputerProposal is a paid mutator transaction binding the contract method 0x7222b4a8.

Solidity: function createUpgradeVoteComputerProposal(address newAddr, uint256 blockNumberInterval) returns(uint256 currentproposalId)

func (*CommitteeManagerTransactorSession) RevokeProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) RevokeProposal(proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RevokeProposal is a paid mutator transaction binding the contract method 0x85a6a091.

Solidity: function revokeProposal(uint256 proposalId) returns()

func (*CommitteeManagerTransactorSession) VoteProposal

func (_CommitteeManager *CommitteeManagerTransactorSession) VoteProposal(proposalId *big.Int, agree bool) (*types.Transaction, *types.Receipt, error)

VoteProposal is a paid mutator transaction binding the contract method 0xbcfb9b61.

Solidity: function voteProposal(uint256 proposalId, bool agree) returns()

type CommitteeRaw

type CommitteeRaw struct {
	Contract *Committee // Generic contract binding to access the raw methods on
}

CommitteeRaw is an auto generated low-level Go binding around a Solidity contract.

func (*CommitteeRaw) Call

func (_Committee *CommitteeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*CommitteeRaw) Transact

func (_Committee *CommitteeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*CommitteeRaw) Transfer

func (_Committee *CommitteeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CommitteeSession

type CommitteeSession struct {
	Contract     *Committee        // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

CommitteeSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*CommitteeSession) AsyncSetOwner

func (_Committee *CommitteeSession) AsyncSetOwner(handler func(*types.Receipt, error), owner common.Address) (*types.Transaction, error)

func (*CommitteeSession) AsyncSetRate

func (_Committee *CommitteeSession) AsyncSetRate(handler func(*types.Receipt, error), participatesRate uint8, winRate uint8) (*types.Transaction, error)

func (*CommitteeSession) AsyncSetWeight

func (_Committee *CommitteeSession) AsyncSetWeight(handler func(*types.Receipt, error), governor common.Address, weight uint32) (*types.Transaction, error)

func (*CommitteeSession) Auth

func (_Committee *CommitteeSession) Auth(src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*CommitteeSession) GetCommitteeInfo

func (_Committee *CommitteeSession) GetCommitteeInfo() (struct {
	ParticipatesRate uint8
	WinRate          uint8
	Governors        []common.Address
	Weights          []uint32
}, error)

GetCommitteeInfo is a free data retrieval call binding the contract method 0x5e77fe20.

Solidity: function getCommitteeInfo() constant returns(uint8 participatesRate, uint8 winRate, address[] governors, uint32[] weights)

func (*CommitteeSession) GetWeight

func (_Committee *CommitteeSession) GetWeight(governor common.Address) (uint32, error)

GetWeight is a free data retrieval call binding the contract method 0xac6c5251.

Solidity: function getWeight(address governor) constant returns(uint32)

func (*CommitteeSession) GetWeights

func (_Committee *CommitteeSession) GetWeights() (uint32, error)

GetWeights is a free data retrieval call binding the contract method 0x22acb867.

Solidity: function getWeights() constant returns(uint32)

func (*CommitteeSession) GetWeights0

func (_Committee *CommitteeSession) GetWeights0(votes []common.Address) (uint32, error)

GetWeights0 is a free data retrieval call binding the contract method 0x965b9ff1.

Solidity: function getWeights(address[] votes) constant returns(uint32)

func (*CommitteeSession) IsGovernor

func (_Committee *CommitteeSession) IsGovernor(governor common.Address) (bool, error)

IsGovernor is a free data retrieval call binding the contract method 0xe43581b8.

Solidity: function isGovernor(address governor) constant returns(bool)

func (*CommitteeSession) Owner

func (_Committee *CommitteeSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*CommitteeSession) ParticipatesRate

func (_Committee *CommitteeSession) ParticipatesRate() (uint8, error)

ParticipatesRate is a free data retrieval call binding the contract method 0x5615696f.

Solidity: function _participatesRate() constant returns(uint8)

func (*CommitteeSession) SetOwner

func (_Committee *CommitteeSession) SetOwner(owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*CommitteeSession) SetRate

func (_Committee *CommitteeSession) SetRate(participatesRate uint8, winRate uint8) (*types.Transaction, *types.Receipt, error)

SetRate is a paid mutator transaction binding the contract method 0x99bc9c1b.

Solidity: function setRate(uint8 participatesRate, uint8 winRate) returns()

func (*CommitteeSession) SetWeight

func (_Committee *CommitteeSession) SetWeight(governor common.Address, weight uint32) (*types.Transaction, *types.Receipt, error)

SetWeight is a paid mutator transaction binding the contract method 0xf437695a.

Solidity: function setWeight(address governor, uint32 weight) returns()

func (*CommitteeSession) WinRate

func (_Committee *CommitteeSession) WinRate() (uint8, error)

WinRate is a free data retrieval call binding the contract method 0xb6fd9067.

Solidity: function _winRate() constant returns(uint8)

type CommitteeTransactor

type CommitteeTransactor struct {
	// contains filtered or unexported fields
}

CommitteeTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewCommitteeTransactor

func NewCommitteeTransactor(address common.Address, transactor bind.ContractTransactor) (*CommitteeTransactor, error)

NewCommitteeTransactor creates a new write-only instance of Committee, bound to a specific deployed contract.

func (*CommitteeTransactor) AsyncSetOwner

func (_Committee *CommitteeTransactor) AsyncSetOwner(handler func(*types.Receipt, error), opts *bind.TransactOpts, owner common.Address) (*types.Transaction, error)

func (*CommitteeTransactor) AsyncSetRate

func (_Committee *CommitteeTransactor) AsyncSetRate(handler func(*types.Receipt, error), opts *bind.TransactOpts, participatesRate uint8, winRate uint8) (*types.Transaction, error)

func (*CommitteeTransactor) AsyncSetWeight

func (_Committee *CommitteeTransactor) AsyncSetWeight(handler func(*types.Receipt, error), opts *bind.TransactOpts, governor common.Address, weight uint32) (*types.Transaction, error)

func (*CommitteeTransactor) SetOwner

func (_Committee *CommitteeTransactor) SetOwner(opts *bind.TransactOpts, owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*CommitteeTransactor) SetRate

func (_Committee *CommitteeTransactor) SetRate(opts *bind.TransactOpts, participatesRate uint8, winRate uint8) (*types.Transaction, *types.Receipt, error)

SetRate is a paid mutator transaction binding the contract method 0x99bc9c1b.

Solidity: function setRate(uint8 participatesRate, uint8 winRate) returns()

func (*CommitteeTransactor) SetWeight

func (_Committee *CommitteeTransactor) SetWeight(opts *bind.TransactOpts, governor common.Address, weight uint32) (*types.Transaction, *types.Receipt, error)

SetWeight is a paid mutator transaction binding the contract method 0xf437695a.

Solidity: function setWeight(address governor, uint32 weight) returns()

type CommitteeTransactorRaw

type CommitteeTransactorRaw struct {
	Contract *CommitteeTransactor // Generic write-only contract binding to access the raw methods on
}

CommitteeTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*CommitteeTransactorRaw) Transact

func (_Committee *CommitteeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*CommitteeTransactorRaw) Transfer

func (_Committee *CommitteeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CommitteeTransactorSession

type CommitteeTransactorSession struct {
	Contract     *CommitteeTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
}

CommitteeTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*CommitteeTransactorSession) AsyncSetOwner

func (_Committee *CommitteeTransactorSession) AsyncSetOwner(handler func(*types.Receipt, error), owner common.Address) (*types.Transaction, error)

func (*CommitteeTransactorSession) AsyncSetRate

func (_Committee *CommitteeTransactorSession) AsyncSetRate(handler func(*types.Receipt, error), participatesRate uint8, winRate uint8) (*types.Transaction, error)

func (*CommitteeTransactorSession) AsyncSetWeight

func (_Committee *CommitteeTransactorSession) AsyncSetWeight(handler func(*types.Receipt, error), governor common.Address, weight uint32) (*types.Transaction, error)

func (*CommitteeTransactorSession) SetOwner

func (_Committee *CommitteeTransactorSession) SetOwner(owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*CommitteeTransactorSession) SetRate

func (_Committee *CommitteeTransactorSession) SetRate(participatesRate uint8, winRate uint8) (*types.Transaction, *types.Receipt, error)

SetRate is a paid mutator transaction binding the contract method 0x99bc9c1b.

Solidity: function setRate(uint8 participatesRate, uint8 winRate) returns()

func (*CommitteeTransactorSession) SetWeight

func (_Committee *CommitteeTransactorSession) SetWeight(governor common.Address, weight uint32) (*types.Transaction, *types.Receipt, error)

SetWeight is a paid mutator transaction binding the contract method 0xf437695a.

Solidity: function setWeight(address governor, uint32 weight) returns()

type ContractAuthPrecompiled

type ContractAuthPrecompiled struct {
	ContractAuthPrecompiledCaller     // Read-only binding to the contract
	ContractAuthPrecompiledTransactor // Write-only binding to the contract
	ContractAuthPrecompiledFilterer   // Log filterer for contract events
}

ContractAuthPrecompiled is an auto generated Go binding around a Solidity contract.

func DeployContractAuthPrecompiled

func DeployContractAuthPrecompiled(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Receipt, *ContractAuthPrecompiled, error)

DeployContractAuthPrecompiled deploys a new contract, binding an instance of ContractAuthPrecompiled to it.

func NewContractAuthPrecompiled

func NewContractAuthPrecompiled(address common.Address, backend bind.ContractBackend) (*ContractAuthPrecompiled, error)

NewContractAuthPrecompiled creates a new instance of ContractAuthPrecompiled, bound to a specific deployed contract.

type ContractAuthPrecompiledCaller

type ContractAuthPrecompiledCaller struct {
	// contains filtered or unexported fields
}

ContractAuthPrecompiledCaller is an auto generated read-only Go binding around a Solidity contract.

func NewContractAuthPrecompiledCaller

func NewContractAuthPrecompiledCaller(address common.Address, caller bind.ContractCaller) (*ContractAuthPrecompiledCaller, error)

NewContractAuthPrecompiledCaller creates a new read-only instance of ContractAuthPrecompiled, bound to a specific deployed contract.

func (*ContractAuthPrecompiledCaller) CheckMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) CheckMethodAuth(opts *bind.CallOpts, contractAddr common.Address, funcSelector [4]byte, account common.Address) (bool, error)

CheckMethodAuth is a free data retrieval call binding the contract method 0xd8662aa4.

Solidity: function checkMethodAuth(address contractAddr, bytes4 funcSelector, address account) constant returns(bool)

func (*ContractAuthPrecompiledCaller) ContractAvailable

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) ContractAvailable(opts *bind.CallOpts, _address common.Address) (bool, error)

ContractAvailable is a free data retrieval call binding the contract method 0x2c8c4a4f.

Solidity: function contractAvailable(address _address) constant returns(bool)

func (*ContractAuthPrecompiledCaller) DeployType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) DeployType(opts *bind.CallOpts) (*big.Int, error)

DeployType is a free data retrieval call binding the contract method 0x1749bea9.

Solidity: function deployType() constant returns(uint256)

func (*ContractAuthPrecompiledCaller) GetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) GetAdmin(opts *bind.CallOpts, contractAddr common.Address) (common.Address, error)

GetAdmin is a free data retrieval call binding the contract method 0x64efb22b.

Solidity: function getAdmin(address contractAddr) constant returns(address)

func (*ContractAuthPrecompiledCaller) GetMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) GetMethodAuth(opts *bind.CallOpts, path common.Address, funcSelector [4]byte) (uint8, []string, []string, error)

GetMethodAuth is a free data retrieval call binding the contract method 0x0578519a.

Solidity: function getMethodAuth(address path, bytes4 funcSelector) constant returns(uint8, string[], string[])

func (*ContractAuthPrecompiledCaller) HasDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCaller) HasDeployAuth(opts *bind.CallOpts, account common.Address) (bool, error)

HasDeployAuth is a free data retrieval call binding the contract method 0x630577e5.

Solidity: function hasDeployAuth(address account) constant returns(bool)

type ContractAuthPrecompiledCallerRaw

type ContractAuthPrecompiledCallerRaw struct {
	Contract *ContractAuthPrecompiledCaller // Generic read-only contract binding to access the raw methods on
}

ContractAuthPrecompiledCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*ContractAuthPrecompiledCallerRaw) Call

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ContractAuthPrecompiledCallerSession

type ContractAuthPrecompiledCallerSession struct {
	Contract *ContractAuthPrecompiledCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts                  // Call options to use throughout this session
}

ContractAuthPrecompiledCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*ContractAuthPrecompiledCallerSession) CheckMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) CheckMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (bool, error)

CheckMethodAuth is a free data retrieval call binding the contract method 0xd8662aa4.

Solidity: function checkMethodAuth(address contractAddr, bytes4 funcSelector, address account) constant returns(bool)

func (*ContractAuthPrecompiledCallerSession) ContractAvailable

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) ContractAvailable(_address common.Address) (bool, error)

ContractAvailable is a free data retrieval call binding the contract method 0x2c8c4a4f.

Solidity: function contractAvailable(address _address) constant returns(bool)

func (*ContractAuthPrecompiledCallerSession) DeployType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) DeployType() (*big.Int, error)

DeployType is a free data retrieval call binding the contract method 0x1749bea9.

Solidity: function deployType() constant returns(uint256)

func (*ContractAuthPrecompiledCallerSession) GetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) GetAdmin(contractAddr common.Address) (common.Address, error)

GetAdmin is a free data retrieval call binding the contract method 0x64efb22b.

Solidity: function getAdmin(address contractAddr) constant returns(address)

func (*ContractAuthPrecompiledCallerSession) GetMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) GetMethodAuth(path common.Address, funcSelector [4]byte) (uint8, []string, []string, error)

GetMethodAuth is a free data retrieval call binding the contract method 0x0578519a.

Solidity: function getMethodAuth(address path, bytes4 funcSelector) constant returns(uint8, string[], string[])

func (*ContractAuthPrecompiledCallerSession) HasDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledCallerSession) HasDeployAuth(account common.Address) (bool, error)

HasDeployAuth is a free data retrieval call binding the contract method 0x630577e5.

Solidity: function hasDeployAuth(address account) constant returns(bool)

type ContractAuthPrecompiledFilterer

type ContractAuthPrecompiledFilterer struct {
	// contains filtered or unexported fields
}

ContractAuthPrecompiledFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewContractAuthPrecompiledFilterer

func NewContractAuthPrecompiledFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractAuthPrecompiledFilterer, error)

NewContractAuthPrecompiledFilterer creates a new log filterer instance of ContractAuthPrecompiled, bound to a specific deployed contract.

type ContractAuthPrecompiledRaw

type ContractAuthPrecompiledRaw struct {
	Contract *ContractAuthPrecompiled // Generic contract binding to access the raw methods on
}

ContractAuthPrecompiledRaw is an auto generated low-level Go binding around a Solidity contract.

func (*ContractAuthPrecompiledRaw) Call

func (_ContractAuthPrecompiled *ContractAuthPrecompiledRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ContractAuthPrecompiledRaw) Transact

func (_ContractAuthPrecompiled *ContractAuthPrecompiledRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*ContractAuthPrecompiledRaw) Transfer

func (_ContractAuthPrecompiled *ContractAuthPrecompiledRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ContractAuthPrecompiledSession

type ContractAuthPrecompiledSession struct {
	Contract     *ContractAuthPrecompiled // Generic contract binding to set the session for
	CallOpts     bind.CallOpts            // Call options to use throughout this session
	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
}

ContractAuthPrecompiledSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*ContractAuthPrecompiledSession) AsyncCloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncCloseDeployAuth(handler func(*types.Receipt, error), account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncCloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncCloseMethodAuth(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncOpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncOpenDeployAuth(handler func(*types.Receipt, error), account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncOpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncOpenMethodAuth(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncResetAdmin(handler func(*types.Receipt, error), contractAddr common.Address, admin common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncSetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncSetContractStatus(handler func(*types.Receipt, error), _address common.Address, isFreeze bool) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncSetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncSetDeployAuthType(handler func(*types.Receipt, error), _type uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) AsyncSetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) AsyncSetMethodAuthType(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledSession) CheckMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) CheckMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (bool, error)

CheckMethodAuth is a free data retrieval call binding the contract method 0xd8662aa4.

Solidity: function checkMethodAuth(address contractAddr, bytes4 funcSelector, address account) constant returns(bool)

func (*ContractAuthPrecompiledSession) CloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) CloseDeployAuth(account common.Address) (*types.Transaction, *types.Receipt, error)

CloseDeployAuth is a paid mutator transaction binding the contract method 0x56bd7084.

Solidity: function closeDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledSession) CloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) CloseMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

CloseMethodAuth is a paid mutator transaction binding the contract method 0xcb7c5c11.

Solidity: function closeMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledSession) ContractAvailable

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) ContractAvailable(_address common.Address) (bool, error)

ContractAvailable is a free data retrieval call binding the contract method 0x2c8c4a4f.

Solidity: function contractAvailable(address _address) constant returns(bool)

func (*ContractAuthPrecompiledSession) DeployType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) DeployType() (*big.Int, error)

DeployType is a free data retrieval call binding the contract method 0x1749bea9.

Solidity: function deployType() constant returns(uint256)

func (*ContractAuthPrecompiledSession) GetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) GetAdmin(contractAddr common.Address) (common.Address, error)

GetAdmin is a free data retrieval call binding the contract method 0x64efb22b.

Solidity: function getAdmin(address contractAddr) constant returns(address)

func (*ContractAuthPrecompiledSession) GetMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) GetMethodAuth(path common.Address, funcSelector [4]byte) (uint8, []string, []string, error)

GetMethodAuth is a free data retrieval call binding the contract method 0x0578519a.

Solidity: function getMethodAuth(address path, bytes4 funcSelector) constant returns(uint8, string[], string[])

func (*ContractAuthPrecompiledSession) HasDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) HasDeployAuth(account common.Address) (bool, error)

HasDeployAuth is a free data retrieval call binding the contract method 0x630577e5.

Solidity: function hasDeployAuth(address account) constant returns(bool)

func (*ContractAuthPrecompiledSession) OpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) OpenDeployAuth(account common.Address) (*types.Transaction, *types.Receipt, error)

OpenDeployAuth is a paid mutator transaction binding the contract method 0x61548099.

Solidity: function openDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledSession) OpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) OpenMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

OpenMethodAuth is a paid mutator transaction binding the contract method 0x0c82b73d.

Solidity: function openMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledSession) ResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) ResetAdmin(contractAddr common.Address, admin common.Address) (*types.Transaction, *types.Receipt, error)

ResetAdmin is a paid mutator transaction binding the contract method 0xc53057b4.

Solidity: function resetAdmin(address contractAddr, address admin) returns(int256)

func (*ContractAuthPrecompiledSession) SetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) SetContractStatus(_address common.Address, isFreeze bool) (*types.Transaction, *types.Receipt, error)

SetContractStatus is a paid mutator transaction binding the contract method 0x81c81cdc.

Solidity: function setContractStatus(address _address, bool isFreeze) returns(int256)

func (*ContractAuthPrecompiledSession) SetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) SetDeployAuthType(_type uint8) (*types.Transaction, *types.Receipt, error)

SetDeployAuthType is a paid mutator transaction binding the contract method 0xbb0aa40c.

Solidity: function setDeployAuthType(uint8 _type) returns(int256)

func (*ContractAuthPrecompiledSession) SetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledSession) SetMethodAuthType(contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, *types.Receipt, error)

SetMethodAuthType is a paid mutator transaction binding the contract method 0x9cc3ca0f.

Solidity: function setMethodAuthType(address contractAddr, bytes4 funcSelector, uint8 authType) returns(int256)

type ContractAuthPrecompiledTransactor

type ContractAuthPrecompiledTransactor struct {
	// contains filtered or unexported fields
}

ContractAuthPrecompiledTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewContractAuthPrecompiledTransactor

func NewContractAuthPrecompiledTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractAuthPrecompiledTransactor, error)

NewContractAuthPrecompiledTransactor creates a new write-only instance of ContractAuthPrecompiled, bound to a specific deployed contract.

func (*ContractAuthPrecompiledTransactor) AsyncCloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncCloseDeployAuth(handler func(*types.Receipt, error), opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncCloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncCloseMethodAuth(handler func(*types.Receipt, error), opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncOpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncOpenDeployAuth(handler func(*types.Receipt, error), opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncOpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncOpenMethodAuth(handler func(*types.Receipt, error), opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncResetAdmin(handler func(*types.Receipt, error), opts *bind.TransactOpts, contractAddr common.Address, admin common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncSetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncSetContractStatus(handler func(*types.Receipt, error), opts *bind.TransactOpts, _address common.Address, isFreeze bool) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncSetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncSetDeployAuthType(handler func(*types.Receipt, error), opts *bind.TransactOpts, _type uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) AsyncSetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) AsyncSetMethodAuthType(handler func(*types.Receipt, error), opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactor) CloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) CloseDeployAuth(opts *bind.TransactOpts, account common.Address) (*types.Transaction, *types.Receipt, error)

CloseDeployAuth is a paid mutator transaction binding the contract method 0x56bd7084.

Solidity: function closeDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledTransactor) CloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) CloseMethodAuth(opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

CloseMethodAuth is a paid mutator transaction binding the contract method 0xcb7c5c11.

Solidity: function closeMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledTransactor) OpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) OpenDeployAuth(opts *bind.TransactOpts, account common.Address) (*types.Transaction, *types.Receipt, error)

OpenDeployAuth is a paid mutator transaction binding the contract method 0x61548099.

Solidity: function openDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledTransactor) OpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) OpenMethodAuth(opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

OpenMethodAuth is a paid mutator transaction binding the contract method 0x0c82b73d.

Solidity: function openMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledTransactor) ResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) ResetAdmin(opts *bind.TransactOpts, contractAddr common.Address, admin common.Address) (*types.Transaction, *types.Receipt, error)

ResetAdmin is a paid mutator transaction binding the contract method 0xc53057b4.

Solidity: function resetAdmin(address contractAddr, address admin) returns(int256)

func (*ContractAuthPrecompiledTransactor) SetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) SetContractStatus(opts *bind.TransactOpts, _address common.Address, isFreeze bool) (*types.Transaction, *types.Receipt, error)

SetContractStatus is a paid mutator transaction binding the contract method 0x81c81cdc.

Solidity: function setContractStatus(address _address, bool isFreeze) returns(int256)

func (*ContractAuthPrecompiledTransactor) SetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) SetDeployAuthType(opts *bind.TransactOpts, _type uint8) (*types.Transaction, *types.Receipt, error)

SetDeployAuthType is a paid mutator transaction binding the contract method 0xbb0aa40c.

Solidity: function setDeployAuthType(uint8 _type) returns(int256)

func (*ContractAuthPrecompiledTransactor) SetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactor) SetMethodAuthType(opts *bind.TransactOpts, contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, *types.Receipt, error)

SetMethodAuthType is a paid mutator transaction binding the contract method 0x9cc3ca0f.

Solidity: function setMethodAuthType(address contractAddr, bytes4 funcSelector, uint8 authType) returns(int256)

type ContractAuthPrecompiledTransactorRaw

type ContractAuthPrecompiledTransactorRaw struct {
	Contract *ContractAuthPrecompiledTransactor // Generic write-only contract binding to access the raw methods on
}

ContractAuthPrecompiledTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*ContractAuthPrecompiledTransactorRaw) Transact

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*ContractAuthPrecompiledTransactorRaw) Transfer

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ContractAuthPrecompiledTransactorSession

type ContractAuthPrecompiledTransactorSession struct {
	Contract     *ContractAuthPrecompiledTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts                  // Transaction auth options to use throughout this session
}

ContractAuthPrecompiledTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*ContractAuthPrecompiledTransactorSession) AsyncCloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncCloseDeployAuth(handler func(*types.Receipt, error), account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncCloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncCloseMethodAuth(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncOpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncOpenDeployAuth(handler func(*types.Receipt, error), account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncOpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncOpenMethodAuth(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncResetAdmin(handler func(*types.Receipt, error), contractAddr common.Address, admin common.Address) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncSetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncSetContractStatus(handler func(*types.Receipt, error), _address common.Address, isFreeze bool) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncSetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncSetDeployAuthType(handler func(*types.Receipt, error), _type uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) AsyncSetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) AsyncSetMethodAuthType(handler func(*types.Receipt, error), contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, error)

func (*ContractAuthPrecompiledTransactorSession) CloseDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) CloseDeployAuth(account common.Address) (*types.Transaction, *types.Receipt, error)

CloseDeployAuth is a paid mutator transaction binding the contract method 0x56bd7084.

Solidity: function closeDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) CloseMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) CloseMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

CloseMethodAuth is a paid mutator transaction binding the contract method 0xcb7c5c11.

Solidity: function closeMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) OpenDeployAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) OpenDeployAuth(account common.Address) (*types.Transaction, *types.Receipt, error)

OpenDeployAuth is a paid mutator transaction binding the contract method 0x61548099.

Solidity: function openDeployAuth(address account) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) OpenMethodAuth

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) OpenMethodAuth(contractAddr common.Address, funcSelector [4]byte, account common.Address) (*types.Transaction, *types.Receipt, error)

OpenMethodAuth is a paid mutator transaction binding the contract method 0x0c82b73d.

Solidity: function openMethodAuth(address contractAddr, bytes4 funcSelector, address account) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) ResetAdmin

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) ResetAdmin(contractAddr common.Address, admin common.Address) (*types.Transaction, *types.Receipt, error)

ResetAdmin is a paid mutator transaction binding the contract method 0xc53057b4.

Solidity: function resetAdmin(address contractAddr, address admin) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) SetContractStatus

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) SetContractStatus(_address common.Address, isFreeze bool) (*types.Transaction, *types.Receipt, error)

SetContractStatus is a paid mutator transaction binding the contract method 0x81c81cdc.

Solidity: function setContractStatus(address _address, bool isFreeze) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) SetDeployAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) SetDeployAuthType(_type uint8) (*types.Transaction, *types.Receipt, error)

SetDeployAuthType is a paid mutator transaction binding the contract method 0xbb0aa40c.

Solidity: function setDeployAuthType(uint8 _type) returns(int256)

func (*ContractAuthPrecompiledTransactorSession) SetMethodAuthType

func (_ContractAuthPrecompiled *ContractAuthPrecompiledTransactorSession) SetMethodAuthType(contractAddr common.Address, funcSelector [4]byte, authType uint8) (*types.Transaction, *types.Receipt, error)

SetMethodAuthType is a paid mutator transaction binding the contract method 0x9cc3ca0f.

Solidity: function setMethodAuthType(address contractAddr, bytes4 funcSelector, uint8 authType) returns(int256)

type ProposalInfo

type ProposalInfo struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
	AgreeVoters         []common.Address
	AgainstVoters       []common.Address
}

type ProposalManager

type ProposalManager struct {
	ProposalManagerCaller     // Read-only binding to the contract
	ProposalManagerTransactor // Write-only binding to the contract
	ProposalManagerFilterer   // Log filterer for contract events
}

ProposalManager is an auto generated Go binding around a Solidity contract.

func DeployProposalManager

func DeployProposalManager(auth *bind.TransactOpts, backend bind.ContractBackend, committeeMgrAddress common.Address, committeeAddress common.Address) (common.Address, *types.Receipt, *ProposalManager, error)

DeployProposalManager deploys a new contract, binding an instance of ProposalManager to it.

func NewProposalManager

func NewProposalManager(address common.Address, backend bind.ContractBackend) (*ProposalManager, error)

NewProposalManager creates a new instance of ProposalManager, bound to a specific deployed contract.

type ProposalManagerCaller

type ProposalManagerCaller struct {
	// contains filtered or unexported fields
}

ProposalManagerCaller is an auto generated read-only Go binding around a Solidity contract.

func NewProposalManagerCaller

func NewProposalManagerCaller(address common.Address, caller bind.ContractCaller) (*ProposalManagerCaller, error)

NewProposalManagerCaller creates a new read-only instance of ProposalManager, bound to a specific deployed contract.

func (*ProposalManagerCaller) Auth

func (_ProposalManager *ProposalManagerCaller) Auth(opts *bind.CallOpts, src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*ProposalManagerCaller) GetIdByTypeAndResourceId

func (_ProposalManager *ProposalManagerCaller) GetIdByTypeAndResourceId(opts *bind.CallOpts, proposalType uint8, resourceId common.Address) (*big.Int, error)

GetIdByTypeAndResourceId is a free data retrieval call binding the contract method 0x6d23cd58.

Solidity: function getIdByTypeAndResourceId(uint8 proposalType, address resourceId) constant returns(uint256)

func (*ProposalManagerCaller) GetProposalInfo

func (_ProposalManager *ProposalManagerCaller) GetProposalInfo(opts *bind.CallOpts, proposalId *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
	AgreeVoters         []common.Address
	AgainstVoters       []common.Address
}, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status, address[] agreeVoters, address[] againstVoters)

func (*ProposalManagerCaller) GetProposalInfoList

func (_ProposalManager *ProposalManagerCaller) GetProposalInfoList(opts *bind.CallOpts, from *big.Int, to *big.Int) ([]ProposalManagerProposalInfo, error)

GetProposalInfoList is a free data retrieval call binding the contract method 0xdde248e3.

Solidity: function getProposalInfoList(uint256 from, uint256 to) constant returns([]ProposalManagerProposalInfo)

func (*ProposalManagerCaller) GetProposalStatus

func (_ProposalManager *ProposalManagerCaller) GetProposalStatus(opts *bind.CallOpts, proposalId *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId) constant returns(uint8)

func (*ProposalManagerCaller) Owner

func (_ProposalManager *ProposalManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*ProposalManagerCaller) ProposalCount

func (_ProposalManager *ProposalManagerCaller) ProposalCount(opts *bind.CallOpts) (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0x6f2904cc.

Solidity: function _proposalCount() constant returns(uint256)

func (*ProposalManagerCaller) ProposalIndex

func (_ProposalManager *ProposalManagerCaller) ProposalIndex(opts *bind.CallOpts, arg0 uint8, arg1 common.Address) (*big.Int, error)

ProposalIndex is a free data retrieval call binding the contract method 0x1cc05cbc.

Solidity: function _proposalIndex(uint8 , address ) constant returns(uint256)

func (*ProposalManagerCaller) Proposals

func (_ProposalManager *ProposalManagerCaller) Proposals(opts *bind.CallOpts, arg0 *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
}, error)

Proposals is a free data retrieval call binding the contract method 0x0a494840.

Solidity: function _proposals(uint256 ) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status)

func (*ProposalManagerCaller) VoteComputer

func (_ProposalManager *ProposalManagerCaller) VoteComputer(opts *bind.CallOpts) (common.Address, error)

VoteComputer is a free data retrieval call binding the contract method 0xfcf81c14.

Solidity: function _voteComputer() constant returns(address)

type ProposalManagerCallerRaw

type ProposalManagerCallerRaw struct {
	Contract *ProposalManagerCaller // Generic read-only contract binding to access the raw methods on
}

ProposalManagerCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*ProposalManagerCallerRaw) Call

func (_ProposalManager *ProposalManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ProposalManagerCallerSession

type ProposalManagerCallerSession struct {
	Contract *ProposalManagerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

ProposalManagerCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*ProposalManagerCallerSession) Auth

func (_ProposalManager *ProposalManagerCallerSession) Auth(src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*ProposalManagerCallerSession) GetIdByTypeAndResourceId

func (_ProposalManager *ProposalManagerCallerSession) GetIdByTypeAndResourceId(proposalType uint8, resourceId common.Address) (*big.Int, error)

GetIdByTypeAndResourceId is a free data retrieval call binding the contract method 0x6d23cd58.

Solidity: function getIdByTypeAndResourceId(uint8 proposalType, address resourceId) constant returns(uint256)

func (*ProposalManagerCallerSession) GetProposalInfo

func (_ProposalManager *ProposalManagerCallerSession) GetProposalInfo(proposalId *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
	AgreeVoters         []common.Address
	AgainstVoters       []common.Address
}, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status, address[] agreeVoters, address[] againstVoters)

func (*ProposalManagerCallerSession) GetProposalInfoList

func (_ProposalManager *ProposalManagerCallerSession) GetProposalInfoList(from *big.Int, to *big.Int) ([]ProposalManagerProposalInfo, error)

GetProposalInfoList is a free data retrieval call binding the contract method 0xdde248e3.

Solidity: function getProposalInfoList(uint256 from, uint256 to) constant returns([]ProposalManagerProposalInfo)

func (*ProposalManagerCallerSession) GetProposalStatus

func (_ProposalManager *ProposalManagerCallerSession) GetProposalStatus(proposalId *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId) constant returns(uint8)

func (*ProposalManagerCallerSession) Owner

func (_ProposalManager *ProposalManagerCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*ProposalManagerCallerSession) ProposalCount

func (_ProposalManager *ProposalManagerCallerSession) ProposalCount() (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0x6f2904cc.

Solidity: function _proposalCount() constant returns(uint256)

func (*ProposalManagerCallerSession) ProposalIndex

func (_ProposalManager *ProposalManagerCallerSession) ProposalIndex(arg0 uint8, arg1 common.Address) (*big.Int, error)

ProposalIndex is a free data retrieval call binding the contract method 0x1cc05cbc.

Solidity: function _proposalIndex(uint8 , address ) constant returns(uint256)

func (*ProposalManagerCallerSession) Proposals

func (_ProposalManager *ProposalManagerCallerSession) Proposals(arg0 *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
}, error)

Proposals is a free data retrieval call binding the contract method 0x0a494840.

Solidity: function _proposals(uint256 ) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status)

func (*ProposalManagerCallerSession) VoteComputer

func (_ProposalManager *ProposalManagerCallerSession) VoteComputer() (common.Address, error)

VoteComputer is a free data retrieval call binding the contract method 0xfcf81c14.

Solidity: function _voteComputer() constant returns(address)

type ProposalManagerFilterer

type ProposalManagerFilterer struct {
	// contains filtered or unexported fields
}

ProposalManagerFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewProposalManagerFilterer

func NewProposalManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*ProposalManagerFilterer, error)

NewProposalManagerFilterer creates a new log filterer instance of ProposalManager, bound to a specific deployed contract.

type ProposalManagerProposalInfo

type ProposalManagerProposalInfo struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
	AgreeVoters         []common.Address
	AgainstVoters       []common.Address
}

ProposalManagerProposalInfo is an auto generated low-level Go binding around an user-defined struct.

type ProposalManagerRaw

type ProposalManagerRaw struct {
	Contract *ProposalManager // Generic contract binding to access the raw methods on
}

ProposalManagerRaw is an auto generated low-level Go binding around a Solidity contract.

func (*ProposalManagerRaw) Call

func (_ProposalManager *ProposalManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ProposalManagerRaw) Transact

func (_ProposalManager *ProposalManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*ProposalManagerRaw) Transfer

func (_ProposalManager *ProposalManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ProposalManagerSession

type ProposalManagerSession struct {
	Contract     *ProposalManager  // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ProposalManagerSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*ProposalManagerSession) AsyncCreate

func (_ProposalManager *ProposalManagerSession) AsyncCreate(handler func(*types.Receipt, error), proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*ProposalManagerSession) AsyncRefreshProposalStatus

func (_ProposalManager *ProposalManagerSession) AsyncRefreshProposalStatus(handler func(*types.Receipt, error), proposalId *big.Int) (*types.Transaction, error)

func (*ProposalManagerSession) AsyncRevoke

func (_ProposalManager *ProposalManagerSession) AsyncRevoke(handler func(*types.Receipt, error), proposalId *big.Int, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerSession) AsyncSetOwner

func (_ProposalManager *ProposalManagerSession) AsyncSetOwner(handler func(*types.Receipt, error), owner common.Address) (*types.Transaction, error)

func (*ProposalManagerSession) AsyncSetVoteComputer

func (_ProposalManager *ProposalManagerSession) AsyncSetVoteComputer(handler func(*types.Receipt, error), addr common.Address) (*types.Transaction, error)

func (*ProposalManagerSession) AsyncVote

func (_ProposalManager *ProposalManagerSession) AsyncVote(handler func(*types.Receipt, error), proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerSession) Auth

func (_ProposalManager *ProposalManagerSession) Auth(src common.Address) (bool, error)

Auth is a free data retrieval call binding the contract method 0xcd5d2118.

Solidity: function auth(address src) constant returns(bool)

func (*ProposalManagerSession) Create

func (_ProposalManager *ProposalManagerSession) Create(proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

Create is a paid mutator transaction binding the contract method 0x2c3956fe.

Solidity: function create(address proposer, uint8 proposalType, address resourceId, uint256 blockNumberInterval) returns(uint256)

func (*ProposalManagerSession) GetIdByTypeAndResourceId

func (_ProposalManager *ProposalManagerSession) GetIdByTypeAndResourceId(proposalType uint8, resourceId common.Address) (*big.Int, error)

GetIdByTypeAndResourceId is a free data retrieval call binding the contract method 0x6d23cd58.

Solidity: function getIdByTypeAndResourceId(uint8 proposalType, address resourceId) constant returns(uint256)

func (*ProposalManagerSession) GetProposalInfo

func (_ProposalManager *ProposalManagerSession) GetProposalInfo(proposalId *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
	AgreeVoters         []common.Address
	AgainstVoters       []common.Address
}, error)

GetProposalInfo is a free data retrieval call binding the contract method 0xbc903cb8.

Solidity: function getProposalInfo(uint256 proposalId) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status, address[] agreeVoters, address[] againstVoters)

func (*ProposalManagerSession) GetProposalInfoList

func (_ProposalManager *ProposalManagerSession) GetProposalInfoList(from *big.Int, to *big.Int) ([]ProposalManagerProposalInfo, error)

GetProposalInfoList is a free data retrieval call binding the contract method 0xdde248e3.

Solidity: function getProposalInfoList(uint256 from, uint256 to) constant returns([]ProposalManagerProposalInfo)

func (*ProposalManagerSession) GetProposalStatus

func (_ProposalManager *ProposalManagerSession) GetProposalStatus(proposalId *big.Int) (uint8, error)

GetProposalStatus is a free data retrieval call binding the contract method 0x401853b7.

Solidity: function getProposalStatus(uint256 proposalId) constant returns(uint8)

func (*ProposalManagerSession) Owner

func (_ProposalManager *ProposalManagerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0xb2bdfa7b.

Solidity: function _owner() constant returns(address)

func (*ProposalManagerSession) ProposalCount

func (_ProposalManager *ProposalManagerSession) ProposalCount() (*big.Int, error)

ProposalCount is a free data retrieval call binding the contract method 0x6f2904cc.

Solidity: function _proposalCount() constant returns(uint256)

func (*ProposalManagerSession) ProposalIndex

func (_ProposalManager *ProposalManagerSession) ProposalIndex(arg0 uint8, arg1 common.Address) (*big.Int, error)

ProposalIndex is a free data retrieval call binding the contract method 0x1cc05cbc.

Solidity: function _proposalIndex(uint8 , address ) constant returns(uint256)

func (*ProposalManagerSession) Proposals

func (_ProposalManager *ProposalManagerSession) Proposals(arg0 *big.Int) (struct {
	ResourceId          common.Address
	Proposer            common.Address
	ProposalType        uint8
	BlockNumberInterval *big.Int
	Status              uint8
}, error)

Proposals is a free data retrieval call binding the contract method 0x0a494840.

Solidity: function _proposals(uint256 ) constant returns(address resourceId, address proposer, uint8 proposalType, uint256 blockNumberInterval, uint8 status)

func (*ProposalManagerSession) RefreshProposalStatus

func (_ProposalManager *ProposalManagerSession) RefreshProposalStatus(proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RefreshProposalStatus is a paid mutator transaction binding the contract method 0x19dcd07e.

Solidity: function refreshProposalStatus(uint256 proposalId) returns(uint8)

func (*ProposalManagerSession) Revoke

func (_ProposalManager *ProposalManagerSession) Revoke(proposalId *big.Int, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Revoke is a paid mutator transaction binding the contract method 0x20d154da.

Solidity: function revoke(uint256 proposalId, address voterAddress) returns()

func (*ProposalManagerSession) SetOwner

func (_ProposalManager *ProposalManagerSession) SetOwner(owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*ProposalManagerSession) SetVoteComputer

func (_ProposalManager *ProposalManagerSession) SetVoteComputer(addr common.Address) (*types.Transaction, *types.Receipt, error)

SetVoteComputer is a paid mutator transaction binding the contract method 0x290bc797.

Solidity: function setVoteComputer(address addr) returns()

func (*ProposalManagerSession) Vote

func (_ProposalManager *ProposalManagerSession) Vote(proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Vote is a paid mutator transaction binding the contract method 0x315ce5e2.

Solidity: function vote(uint256 proposalId, bool agree, address voterAddress) returns(uint8)

func (*ProposalManagerSession) VoteComputer

func (_ProposalManager *ProposalManagerSession) VoteComputer() (common.Address, error)

VoteComputer is a free data retrieval call binding the contract method 0xfcf81c14.

Solidity: function _voteComputer() constant returns(address)

type ProposalManagerTransactor

type ProposalManagerTransactor struct {
	// contains filtered or unexported fields
}

ProposalManagerTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewProposalManagerTransactor

func NewProposalManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*ProposalManagerTransactor, error)

NewProposalManagerTransactor creates a new write-only instance of ProposalManager, bound to a specific deployed contract.

func (*ProposalManagerTransactor) AsyncCreate

func (_ProposalManager *ProposalManagerTransactor) AsyncCreate(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*ProposalManagerTransactor) AsyncRefreshProposalStatus

func (_ProposalManager *ProposalManagerTransactor) AsyncRefreshProposalStatus(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposalId *big.Int) (*types.Transaction, error)

func (*ProposalManagerTransactor) AsyncRevoke

func (_ProposalManager *ProposalManagerTransactor) AsyncRevoke(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposalId *big.Int, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactor) AsyncSetOwner

func (_ProposalManager *ProposalManagerTransactor) AsyncSetOwner(handler func(*types.Receipt, error), opts *bind.TransactOpts, owner common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactor) AsyncSetVoteComputer

func (_ProposalManager *ProposalManagerTransactor) AsyncSetVoteComputer(handler func(*types.Receipt, error), opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactor) AsyncVote

func (_ProposalManager *ProposalManagerTransactor) AsyncVote(handler func(*types.Receipt, error), opts *bind.TransactOpts, proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactor) Create

func (_ProposalManager *ProposalManagerTransactor) Create(opts *bind.TransactOpts, proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

Create is a paid mutator transaction binding the contract method 0x2c3956fe.

Solidity: function create(address proposer, uint8 proposalType, address resourceId, uint256 blockNumberInterval) returns(uint256)

func (*ProposalManagerTransactor) RefreshProposalStatus

func (_ProposalManager *ProposalManagerTransactor) RefreshProposalStatus(opts *bind.TransactOpts, proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RefreshProposalStatus is a paid mutator transaction binding the contract method 0x19dcd07e.

Solidity: function refreshProposalStatus(uint256 proposalId) returns(uint8)

func (*ProposalManagerTransactor) Revoke

func (_ProposalManager *ProposalManagerTransactor) Revoke(opts *bind.TransactOpts, proposalId *big.Int, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Revoke is a paid mutator transaction binding the contract method 0x20d154da.

Solidity: function revoke(uint256 proposalId, address voterAddress) returns()

func (*ProposalManagerTransactor) SetOwner

func (_ProposalManager *ProposalManagerTransactor) SetOwner(opts *bind.TransactOpts, owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*ProposalManagerTransactor) SetVoteComputer

func (_ProposalManager *ProposalManagerTransactor) SetVoteComputer(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, *types.Receipt, error)

SetVoteComputer is a paid mutator transaction binding the contract method 0x290bc797.

Solidity: function setVoteComputer(address addr) returns()

func (*ProposalManagerTransactor) Vote

func (_ProposalManager *ProposalManagerTransactor) Vote(opts *bind.TransactOpts, proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Vote is a paid mutator transaction binding the contract method 0x315ce5e2.

Solidity: function vote(uint256 proposalId, bool agree, address voterAddress) returns(uint8)

type ProposalManagerTransactorRaw

type ProposalManagerTransactorRaw struct {
	Contract *ProposalManagerTransactor // Generic write-only contract binding to access the raw methods on
}

ProposalManagerTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*ProposalManagerTransactorRaw) Transact

func (_ProposalManager *ProposalManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

Transact invokes the (paid) contract method with params as input values.

func (*ProposalManagerTransactorRaw) Transfer

func (_ProposalManager *ProposalManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ProposalManagerTransactorSession

type ProposalManagerTransactorSession struct {
	Contract     *ProposalManagerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

ProposalManagerTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*ProposalManagerTransactorSession) AsyncCreate

func (_ProposalManager *ProposalManagerTransactorSession) AsyncCreate(handler func(*types.Receipt, error), proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) AsyncRefreshProposalStatus

func (_ProposalManager *ProposalManagerTransactorSession) AsyncRefreshProposalStatus(handler func(*types.Receipt, error), proposalId *big.Int) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) AsyncRevoke

func (_ProposalManager *ProposalManagerTransactorSession) AsyncRevoke(handler func(*types.Receipt, error), proposalId *big.Int, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) AsyncSetOwner

func (_ProposalManager *ProposalManagerTransactorSession) AsyncSetOwner(handler func(*types.Receipt, error), owner common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) AsyncSetVoteComputer

func (_ProposalManager *ProposalManagerTransactorSession) AsyncSetVoteComputer(handler func(*types.Receipt, error), addr common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) AsyncVote

func (_ProposalManager *ProposalManagerTransactorSession) AsyncVote(handler func(*types.Receipt, error), proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, error)

func (*ProposalManagerTransactorSession) Create

func (_ProposalManager *ProposalManagerTransactorSession) Create(proposer common.Address, proposalType uint8, resourceId common.Address, blockNumberInterval *big.Int) (*types.Transaction, *types.Receipt, error)

Create is a paid mutator transaction binding the contract method 0x2c3956fe.

Solidity: function create(address proposer, uint8 proposalType, address resourceId, uint256 blockNumberInterval) returns(uint256)

func (*ProposalManagerTransactorSession) RefreshProposalStatus

func (_ProposalManager *ProposalManagerTransactorSession) RefreshProposalStatus(proposalId *big.Int) (*types.Transaction, *types.Receipt, error)

RefreshProposalStatus is a paid mutator transaction binding the contract method 0x19dcd07e.

Solidity: function refreshProposalStatus(uint256 proposalId) returns(uint8)

func (*ProposalManagerTransactorSession) Revoke

func (_ProposalManager *ProposalManagerTransactorSession) Revoke(proposalId *big.Int, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Revoke is a paid mutator transaction binding the contract method 0x20d154da.

Solidity: function revoke(uint256 proposalId, address voterAddress) returns()

func (*ProposalManagerTransactorSession) SetOwner

func (_ProposalManager *ProposalManagerTransactorSession) SetOwner(owner common.Address) (*types.Transaction, *types.Receipt, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address owner) returns()

func (*ProposalManagerTransactorSession) SetVoteComputer

func (_ProposalManager *ProposalManagerTransactorSession) SetVoteComputer(addr common.Address) (*types.Transaction, *types.Receipt, error)

SetVoteComputer is a paid mutator transaction binding the contract method 0x290bc797.

Solidity: function setVoteComputer(address addr) returns()

func (*ProposalManagerTransactorSession) Vote

func (_ProposalManager *ProposalManagerTransactorSession) Vote(proposalId *big.Int, agree bool, voterAddress common.Address) (*types.Transaction, *types.Receipt, error)

Vote is a paid mutator transaction binding the contract method 0x315ce5e2.

Solidity: function vote(uint256 proposalId, bool agree, address voterAddress) returns(uint8)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL