proposal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContractsABI = "" /* 5939-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Contracts

type Contracts struct {
	ContractsCaller     // Read-only binding to the contract
	ContractsTransactor // Write-only binding to the contract
	ContractsFilterer   // Log filterer for contract events
}

Contracts is an auto generated Go binding around an Ethereum contract.

func NewContracts

func NewContracts(address common.Address, backend bind.ContractBackend) (*Contracts, error)

NewContracts creates a new instance of Contracts, bound to a specific deployed contract.

type ContractsCaller

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

ContractsCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewContractsCaller

func NewContractsCaller(address common.Address, caller bind.ContractCaller) (*ContractsCaller, error)

NewContractsCaller creates a new read-only instance of Contracts, bound to a specific deployed contract.

func (*ContractsCaller) FeeRecoder

func (_Contracts *ContractsCaller) FeeRecoder(opts *bind.CallOpts) (common.Address, error)

FeeRecoder is a free data retrieval call binding the contract method 0xabfcb13f.

Solidity: function FeeRecoder() view returns(address)

func (*ContractsCaller) Initialized

func (_Contracts *ContractsCaller) Initialized(opts *bind.CallOpts) (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*ContractsCaller) MaxValidators

func (_Contracts *ContractsCaller) MaxValidators(opts *bind.CallOpts) (uint16, error)

MaxValidators is a free data retrieval call binding the contract method 0xc967f90f.

Solidity: function MaxValidators() view returns(uint16)

func (*ContractsCaller) MinimalStakingCoin

func (_Contracts *ContractsCaller) MinimalStakingCoin(opts *bind.CallOpts) (*big.Int, error)

MinimalStakingCoin is a free data retrieval call binding the contract method 0xbe645692.

Solidity: function MinimalStakingCoin() view returns(uint256)

func (*ContractsCaller) Pass

func (_Contracts *ContractsCaller) Pass(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Pass is a free data retrieval call binding the contract method 0x82c4b3b2.

Solidity: function pass(address ) view returns(bool)

func (*ContractsCaller) ProposalContractAddr

func (_Contracts *ContractsCaller) ProposalContractAddr(opts *bind.CallOpts) (common.Address, error)

ProposalContractAddr is a free data retrieval call binding the contract method 0x60ae528c.

Solidity: function ProposalContractAddr() view returns(address)

func (*ContractsCaller) ProposalLastingPeriod

func (_Contracts *ContractsCaller) ProposalLastingPeriod(opts *bind.CallOpts) (*big.Int, error)

ProposalLastingPeriod is a free data retrieval call binding the contract method 0xe823c814.

Solidity: function proposalLastingPeriod() view returns(uint256)

func (*ContractsCaller) Proposals

func (_Contracts *ContractsCaller) Proposals(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Proposer    common.Address
	Dst         common.Address
	Details     string
	CreateTime  *big.Int
	Agree       uint16
	Reject      uint16
	ResultExist bool
}, error)

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

Solidity: function proposals(bytes32 ) view returns(address proposer, address dst, string details, uint256 createTime, uint16 agree, uint16 reject, bool resultExist)

func (*ContractsCaller) PunishContractAddr

func (_Contracts *ContractsCaller) PunishContractAddr(opts *bind.CallOpts) (common.Address, error)

PunishContractAddr is a free data retrieval call binding the contract method 0x1b5e358c.

Solidity: function PunishContractAddr() view returns(address)

func (*ContractsCaller) StakingLockPeriod

func (_Contracts *ContractsCaller) StakingLockPeriod(opts *bind.CallOpts) (uint64, error)

StakingLockPeriod is a free data retrieval call binding the contract method 0xdb78dd28.

Solidity: function StakingLockPeriod() view returns(uint64)

func (*ContractsCaller) ValidatorContractAddr

func (_Contracts *ContractsCaller) ValidatorContractAddr(opts *bind.CallOpts) (common.Address, error)

ValidatorContractAddr is a free data retrieval call binding the contract method 0x3a061bd3.

Solidity: function ValidatorContractAddr() view returns(address)

func (*ContractsCaller) Votes

func (_Contracts *ContractsCaller) Votes(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (struct {
	Voter    common.Address
	VoteTime *big.Int
	Auth     bool
}, error)

Votes is a free data retrieval call binding the contract method 0x1db5ade8.

Solidity: function votes(address , bytes32 ) view returns(address voter, uint256 voteTime, bool auth)

func (*ContractsCaller) WithdrawProfitPeriod

func (_Contracts *ContractsCaller) WithdrawProfitPeriod(opts *bind.CallOpts) (uint64, error)

WithdrawProfitPeriod is a free data retrieval call binding the contract method 0xefd8d8e2.

Solidity: function WithdrawProfitPeriod() view returns(uint64)

type ContractsCallerRaw

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

ContractsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ContractsCallerRaw) Call

func (_Contracts *ContractsCallerRaw) 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 ContractsCallerSession

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

ContractsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ContractsCallerSession) FeeRecoder

func (_Contracts *ContractsCallerSession) FeeRecoder() (common.Address, error)

FeeRecoder is a free data retrieval call binding the contract method 0xabfcb13f.

Solidity: function FeeRecoder() view returns(address)

func (*ContractsCallerSession) Initialized

func (_Contracts *ContractsCallerSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*ContractsCallerSession) MaxValidators

func (_Contracts *ContractsCallerSession) MaxValidators() (uint16, error)

MaxValidators is a free data retrieval call binding the contract method 0xc967f90f.

Solidity: function MaxValidators() view returns(uint16)

func (*ContractsCallerSession) MinimalStakingCoin

func (_Contracts *ContractsCallerSession) MinimalStakingCoin() (*big.Int, error)

MinimalStakingCoin is a free data retrieval call binding the contract method 0xbe645692.

Solidity: function MinimalStakingCoin() view returns(uint256)

func (*ContractsCallerSession) Pass

func (_Contracts *ContractsCallerSession) Pass(arg0 common.Address) (bool, error)

Pass is a free data retrieval call binding the contract method 0x82c4b3b2.

Solidity: function pass(address ) view returns(bool)

func (*ContractsCallerSession) ProposalContractAddr

func (_Contracts *ContractsCallerSession) ProposalContractAddr() (common.Address, error)

ProposalContractAddr is a free data retrieval call binding the contract method 0x60ae528c.

Solidity: function ProposalContractAddr() view returns(address)

func (*ContractsCallerSession) ProposalLastingPeriod

func (_Contracts *ContractsCallerSession) ProposalLastingPeriod() (*big.Int, error)

ProposalLastingPeriod is a free data retrieval call binding the contract method 0xe823c814.

Solidity: function proposalLastingPeriod() view returns(uint256)

func (*ContractsCallerSession) Proposals

func (_Contracts *ContractsCallerSession) Proposals(arg0 [32]byte) (struct {
	Proposer    common.Address
	Dst         common.Address
	Details     string
	CreateTime  *big.Int
	Agree       uint16
	Reject      uint16
	ResultExist bool
}, error)

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

Solidity: function proposals(bytes32 ) view returns(address proposer, address dst, string details, uint256 createTime, uint16 agree, uint16 reject, bool resultExist)

func (*ContractsCallerSession) PunishContractAddr

func (_Contracts *ContractsCallerSession) PunishContractAddr() (common.Address, error)

PunishContractAddr is a free data retrieval call binding the contract method 0x1b5e358c.

Solidity: function PunishContractAddr() view returns(address)

func (*ContractsCallerSession) StakingLockPeriod

func (_Contracts *ContractsCallerSession) StakingLockPeriod() (uint64, error)

StakingLockPeriod is a free data retrieval call binding the contract method 0xdb78dd28.

Solidity: function StakingLockPeriod() view returns(uint64)

func (*ContractsCallerSession) ValidatorContractAddr

func (_Contracts *ContractsCallerSession) ValidatorContractAddr() (common.Address, error)

ValidatorContractAddr is a free data retrieval call binding the contract method 0x3a061bd3.

Solidity: function ValidatorContractAddr() view returns(address)

func (*ContractsCallerSession) Votes

func (_Contracts *ContractsCallerSession) Votes(arg0 common.Address, arg1 [32]byte) (struct {
	Voter    common.Address
	VoteTime *big.Int
	Auth     bool
}, error)

Votes is a free data retrieval call binding the contract method 0x1db5ade8.

Solidity: function votes(address , bytes32 ) view returns(address voter, uint256 voteTime, bool auth)

func (*ContractsCallerSession) WithdrawProfitPeriod

func (_Contracts *ContractsCallerSession) WithdrawProfitPeriod() (uint64, error)

WithdrawProfitPeriod is a free data retrieval call binding the contract method 0xefd8d8e2.

Solidity: function WithdrawProfitPeriod() view returns(uint64)

type ContractsFilterer

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

ContractsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewContractsFilterer

func NewContractsFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractsFilterer, error)

NewContractsFilterer creates a new log filterer instance of Contracts, bound to a specific deployed contract.

func (*ContractsFilterer) FilterLogCreateProposal

func (_Contracts *ContractsFilterer) FilterLogCreateProposal(opts *bind.FilterOpts, id [][32]byte, proposer []common.Address, dst []common.Address) (*ContractsLogCreateProposalIterator, error)

FilterLogCreateProposal is a free log retrieval operation binding the contract event 0xc10f2f4d53a0e342536c6af3cce9c6ee25c32dbb323521ce0e1d4494a3e362e8.

Solidity: event LogCreateProposal(bytes32 indexed id, address indexed proposer, address indexed dst, uint256 time)

func (*ContractsFilterer) FilterLogPassProposal

func (_Contracts *ContractsFilterer) FilterLogPassProposal(opts *bind.FilterOpts, id [][32]byte, dst []common.Address) (*ContractsLogPassProposalIterator, error)

FilterLogPassProposal is a free log retrieval operation binding the contract event 0xc9d96d61eb62031865c523ae107f3c22f5ed445af237636bcd88bea1705c70d5.

Solidity: event LogPassProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) FilterLogRejectProposal

func (_Contracts *ContractsFilterer) FilterLogRejectProposal(opts *bind.FilterOpts, id [][32]byte, dst []common.Address) (*ContractsLogRejectProposalIterator, error)

FilterLogRejectProposal is a free log retrieval operation binding the contract event 0xec955d77e6e7d74e18b1c91977ef0f6fd5a6d02a28d1979686339fe693997825.

Solidity: event LogRejectProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) FilterLogSetUnPassed

func (_Contracts *ContractsFilterer) FilterLogSetUnPassed(opts *bind.FilterOpts, val []common.Address) (*ContractsLogSetUnPassedIterator, error)

FilterLogSetUnPassed is a free log retrieval operation binding the contract event 0x4b6d81f9601252010f1c1bcfacb86729b7e7898d2abc627bcefd1991dddc395e.

Solidity: event LogSetUnPassed(address indexed val, uint256 time)

func (*ContractsFilterer) FilterLogVote

func (_Contracts *ContractsFilterer) FilterLogVote(opts *bind.FilterOpts, id [][32]byte, voter []common.Address) (*ContractsLogVoteIterator, error)

FilterLogVote is a free log retrieval operation binding the contract event 0x6c59bda68cac318717c60c7c9635a78a0f0613f9887cc18a7157f5745a86d14e.

Solidity: event LogVote(bytes32 indexed id, address indexed voter, bool auth, uint256 time)

func (*ContractsFilterer) ParseLogCreateProposal

func (_Contracts *ContractsFilterer) ParseLogCreateProposal(log types.Log) (*ContractsLogCreateProposal, error)

ParseLogCreateProposal is a log parse operation binding the contract event 0xc10f2f4d53a0e342536c6af3cce9c6ee25c32dbb323521ce0e1d4494a3e362e8.

Solidity: event LogCreateProposal(bytes32 indexed id, address indexed proposer, address indexed dst, uint256 time)

func (*ContractsFilterer) ParseLogPassProposal

func (_Contracts *ContractsFilterer) ParseLogPassProposal(log types.Log) (*ContractsLogPassProposal, error)

ParseLogPassProposal is a log parse operation binding the contract event 0xc9d96d61eb62031865c523ae107f3c22f5ed445af237636bcd88bea1705c70d5.

Solidity: event LogPassProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) ParseLogRejectProposal

func (_Contracts *ContractsFilterer) ParseLogRejectProposal(log types.Log) (*ContractsLogRejectProposal, error)

ParseLogRejectProposal is a log parse operation binding the contract event 0xec955d77e6e7d74e18b1c91977ef0f6fd5a6d02a28d1979686339fe693997825.

Solidity: event LogRejectProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) ParseLogSetUnPassed

func (_Contracts *ContractsFilterer) ParseLogSetUnPassed(log types.Log) (*ContractsLogSetUnPassed, error)

ParseLogSetUnPassed is a log parse operation binding the contract event 0x4b6d81f9601252010f1c1bcfacb86729b7e7898d2abc627bcefd1991dddc395e.

Solidity: event LogSetUnPassed(address indexed val, uint256 time)

func (*ContractsFilterer) ParseLogVote

func (_Contracts *ContractsFilterer) ParseLogVote(log types.Log) (*ContractsLogVote, error)

ParseLogVote is a log parse operation binding the contract event 0x6c59bda68cac318717c60c7c9635a78a0f0613f9887cc18a7157f5745a86d14e.

Solidity: event LogVote(bytes32 indexed id, address indexed voter, bool auth, uint256 time)

func (*ContractsFilterer) WatchLogCreateProposal

func (_Contracts *ContractsFilterer) WatchLogCreateProposal(opts *bind.WatchOpts, sink chan<- *ContractsLogCreateProposal, id [][32]byte, proposer []common.Address, dst []common.Address) (event.Subscription, error)

WatchLogCreateProposal is a free log subscription operation binding the contract event 0xc10f2f4d53a0e342536c6af3cce9c6ee25c32dbb323521ce0e1d4494a3e362e8.

Solidity: event LogCreateProposal(bytes32 indexed id, address indexed proposer, address indexed dst, uint256 time)

func (*ContractsFilterer) WatchLogPassProposal

func (_Contracts *ContractsFilterer) WatchLogPassProposal(opts *bind.WatchOpts, sink chan<- *ContractsLogPassProposal, id [][32]byte, dst []common.Address) (event.Subscription, error)

WatchLogPassProposal is a free log subscription operation binding the contract event 0xc9d96d61eb62031865c523ae107f3c22f5ed445af237636bcd88bea1705c70d5.

Solidity: event LogPassProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) WatchLogRejectProposal

func (_Contracts *ContractsFilterer) WatchLogRejectProposal(opts *bind.WatchOpts, sink chan<- *ContractsLogRejectProposal, id [][32]byte, dst []common.Address) (event.Subscription, error)

WatchLogRejectProposal is a free log subscription operation binding the contract event 0xec955d77e6e7d74e18b1c91977ef0f6fd5a6d02a28d1979686339fe693997825.

Solidity: event LogRejectProposal(bytes32 indexed id, address indexed dst, uint256 time)

func (*ContractsFilterer) WatchLogSetUnPassed

func (_Contracts *ContractsFilterer) WatchLogSetUnPassed(opts *bind.WatchOpts, sink chan<- *ContractsLogSetUnPassed, val []common.Address) (event.Subscription, error)

WatchLogSetUnPassed is a free log subscription operation binding the contract event 0x4b6d81f9601252010f1c1bcfacb86729b7e7898d2abc627bcefd1991dddc395e.

Solidity: event LogSetUnPassed(address indexed val, uint256 time)

func (*ContractsFilterer) WatchLogVote

func (_Contracts *ContractsFilterer) WatchLogVote(opts *bind.WatchOpts, sink chan<- *ContractsLogVote, id [][32]byte, voter []common.Address) (event.Subscription, error)

WatchLogVote is a free log subscription operation binding the contract event 0x6c59bda68cac318717c60c7c9635a78a0f0613f9887cc18a7157f5745a86d14e.

Solidity: event LogVote(bytes32 indexed id, address indexed voter, bool auth, uint256 time)

type ContractsLogCreateProposal

type ContractsLogCreateProposal struct {
	Id       [32]byte
	Proposer common.Address
	Dst      common.Address
	Time     *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ContractsLogCreateProposal represents a LogCreateProposal event raised by the Contracts contract.

type ContractsLogCreateProposalIterator

type ContractsLogCreateProposalIterator struct {
	Event *ContractsLogCreateProposal // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractsLogCreateProposalIterator is returned from FilterLogCreateProposal and is used to iterate over the raw logs and unpacked data for LogCreateProposal events raised by the Contracts contract.

func (*ContractsLogCreateProposalIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractsLogCreateProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractsLogCreateProposalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractsLogPassProposal

type ContractsLogPassProposal struct {
	Id   [32]byte
	Dst  common.Address
	Time *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

ContractsLogPassProposal represents a LogPassProposal event raised by the Contracts contract.

type ContractsLogPassProposalIterator

type ContractsLogPassProposalIterator struct {
	Event *ContractsLogPassProposal // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractsLogPassProposalIterator is returned from FilterLogPassProposal and is used to iterate over the raw logs and unpacked data for LogPassProposal events raised by the Contracts contract.

func (*ContractsLogPassProposalIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractsLogPassProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractsLogPassProposalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractsLogRejectProposal

type ContractsLogRejectProposal struct {
	Id   [32]byte
	Dst  common.Address
	Time *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

ContractsLogRejectProposal represents a LogRejectProposal event raised by the Contracts contract.

type ContractsLogRejectProposalIterator

type ContractsLogRejectProposalIterator struct {
	Event *ContractsLogRejectProposal // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractsLogRejectProposalIterator is returned from FilterLogRejectProposal and is used to iterate over the raw logs and unpacked data for LogRejectProposal events raised by the Contracts contract.

func (*ContractsLogRejectProposalIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractsLogRejectProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractsLogRejectProposalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractsLogSetUnPassed

type ContractsLogSetUnPassed struct {
	Val  common.Address
	Time *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

ContractsLogSetUnPassed represents a LogSetUnPassed event raised by the Contracts contract.

type ContractsLogSetUnPassedIterator

type ContractsLogSetUnPassedIterator struct {
	Event *ContractsLogSetUnPassed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractsLogSetUnPassedIterator is returned from FilterLogSetUnPassed and is used to iterate over the raw logs and unpacked data for LogSetUnPassed events raised by the Contracts contract.

func (*ContractsLogSetUnPassedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractsLogSetUnPassedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractsLogSetUnPassedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractsLogVote

type ContractsLogVote struct {
	Id    [32]byte
	Voter common.Address
	Auth  bool
	Time  *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ContractsLogVote represents a LogVote event raised by the Contracts contract.

type ContractsLogVoteIterator

type ContractsLogVoteIterator struct {
	Event *ContractsLogVote // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractsLogVoteIterator is returned from FilterLogVote and is used to iterate over the raw logs and unpacked data for LogVote events raised by the Contracts contract.

func (*ContractsLogVoteIterator) Close

func (it *ContractsLogVoteIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractsLogVoteIterator) Error

func (it *ContractsLogVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractsLogVoteIterator) Next

func (it *ContractsLogVoteIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractsRaw

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

ContractsRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ContractsRaw) Call

func (_Contracts *ContractsRaw) 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 (*ContractsRaw) Transact

func (_Contracts *ContractsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*ContractsRaw) Transfer

func (_Contracts *ContractsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

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

type ContractsSession

type ContractsSession struct {
	Contract     *Contracts        // 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
}

ContractsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ContractsSession) CreateProposal

func (_Contracts *ContractsSession) CreateProposal(dst common.Address, details string) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x1f4f7d29.

Solidity: function createProposal(address dst, string details) returns(bool)

func (*ContractsSession) FeeRecoder

func (_Contracts *ContractsSession) FeeRecoder() (common.Address, error)

FeeRecoder is a free data retrieval call binding the contract method 0xabfcb13f.

Solidity: function FeeRecoder() view returns(address)

func (*ContractsSession) Initialize

func (_Contracts *ContractsSession) Initialize(vals []common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xa224cee7.

Solidity: function initialize(address[] vals) returns()

func (*ContractsSession) Initialized

func (_Contracts *ContractsSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*ContractsSession) MaxValidators

func (_Contracts *ContractsSession) MaxValidators() (uint16, error)

MaxValidators is a free data retrieval call binding the contract method 0xc967f90f.

Solidity: function MaxValidators() view returns(uint16)

func (*ContractsSession) MinimalStakingCoin

func (_Contracts *ContractsSession) MinimalStakingCoin() (*big.Int, error)

MinimalStakingCoin is a free data retrieval call binding the contract method 0xbe645692.

Solidity: function MinimalStakingCoin() view returns(uint256)

func (*ContractsSession) Pass

func (_Contracts *ContractsSession) Pass(arg0 common.Address) (bool, error)

Pass is a free data retrieval call binding the contract method 0x82c4b3b2.

Solidity: function pass(address ) view returns(bool)

func (*ContractsSession) ProposalContractAddr

func (_Contracts *ContractsSession) ProposalContractAddr() (common.Address, error)

ProposalContractAddr is a free data retrieval call binding the contract method 0x60ae528c.

Solidity: function ProposalContractAddr() view returns(address)

func (*ContractsSession) ProposalLastingPeriod

func (_Contracts *ContractsSession) ProposalLastingPeriod() (*big.Int, error)

ProposalLastingPeriod is a free data retrieval call binding the contract method 0xe823c814.

Solidity: function proposalLastingPeriod() view returns(uint256)

func (*ContractsSession) Proposals

func (_Contracts *ContractsSession) Proposals(arg0 [32]byte) (struct {
	Proposer    common.Address
	Dst         common.Address
	Details     string
	CreateTime  *big.Int
	Agree       uint16
	Reject      uint16
	ResultExist bool
}, error)

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

Solidity: function proposals(bytes32 ) view returns(address proposer, address dst, string details, uint256 createTime, uint16 agree, uint16 reject, bool resultExist)

func (*ContractsSession) PunishContractAddr

func (_Contracts *ContractsSession) PunishContractAddr() (common.Address, error)

PunishContractAddr is a free data retrieval call binding the contract method 0x1b5e358c.

Solidity: function PunishContractAddr() view returns(address)

func (*ContractsSession) SetUnPassed

func (_Contracts *ContractsSession) SetUnPassed(val common.Address) (*types.Transaction, error)

SetUnPassed is a paid mutator transaction binding the contract method 0xfb71c430.

Solidity: function setUnPassed(address val) returns(bool)

func (*ContractsSession) StakingLockPeriod

func (_Contracts *ContractsSession) StakingLockPeriod() (uint64, error)

StakingLockPeriod is a free data retrieval call binding the contract method 0xdb78dd28.

Solidity: function StakingLockPeriod() view returns(uint64)

func (*ContractsSession) ValidatorContractAddr

func (_Contracts *ContractsSession) ValidatorContractAddr() (common.Address, error)

ValidatorContractAddr is a free data retrieval call binding the contract method 0x3a061bd3.

Solidity: function ValidatorContractAddr() view returns(address)

func (*ContractsSession) VoteProposal

func (_Contracts *ContractsSession) VoteProposal(id [32]byte, auth bool) (*types.Transaction, error)

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

Solidity: function voteProposal(bytes32 id, bool auth) returns(bool)

func (*ContractsSession) Votes

func (_Contracts *ContractsSession) Votes(arg0 common.Address, arg1 [32]byte) (struct {
	Voter    common.Address
	VoteTime *big.Int
	Auth     bool
}, error)

Votes is a free data retrieval call binding the contract method 0x1db5ade8.

Solidity: function votes(address , bytes32 ) view returns(address voter, uint256 voteTime, bool auth)

func (*ContractsSession) WithdrawProfitPeriod

func (_Contracts *ContractsSession) WithdrawProfitPeriod() (uint64, error)

WithdrawProfitPeriod is a free data retrieval call binding the contract method 0xefd8d8e2.

Solidity: function WithdrawProfitPeriod() view returns(uint64)

type ContractsTransactor

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

ContractsTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewContractsTransactor

func NewContractsTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractsTransactor, error)

NewContractsTransactor creates a new write-only instance of Contracts, bound to a specific deployed contract.

func (*ContractsTransactor) CreateProposal

func (_Contracts *ContractsTransactor) CreateProposal(opts *bind.TransactOpts, dst common.Address, details string) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x1f4f7d29.

Solidity: function createProposal(address dst, string details) returns(bool)

func (*ContractsTransactor) Initialize

func (_Contracts *ContractsTransactor) Initialize(opts *bind.TransactOpts, vals []common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xa224cee7.

Solidity: function initialize(address[] vals) returns()

func (*ContractsTransactor) SetUnPassed

func (_Contracts *ContractsTransactor) SetUnPassed(opts *bind.TransactOpts, val common.Address) (*types.Transaction, error)

SetUnPassed is a paid mutator transaction binding the contract method 0xfb71c430.

Solidity: function setUnPassed(address val) returns(bool)

func (*ContractsTransactor) VoteProposal

func (_Contracts *ContractsTransactor) VoteProposal(opts *bind.TransactOpts, id [32]byte, auth bool) (*types.Transaction, error)

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

Solidity: function voteProposal(bytes32 id, bool auth) returns(bool)

type ContractsTransactorRaw

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

ContractsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ContractsTransactorRaw) Transact

func (_Contracts *ContractsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

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

func (*ContractsTransactorRaw) Transfer

func (_Contracts *ContractsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

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

type ContractsTransactorSession

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

ContractsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ContractsTransactorSession) CreateProposal

func (_Contracts *ContractsTransactorSession) CreateProposal(dst common.Address, details string) (*types.Transaction, error)

CreateProposal is a paid mutator transaction binding the contract method 0x1f4f7d29.

Solidity: function createProposal(address dst, string details) returns(bool)

func (*ContractsTransactorSession) Initialize

func (_Contracts *ContractsTransactorSession) Initialize(vals []common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xa224cee7.

Solidity: function initialize(address[] vals) returns()

func (*ContractsTransactorSession) SetUnPassed

func (_Contracts *ContractsTransactorSession) SetUnPassed(val common.Address) (*types.Transaction, error)

SetUnPassed is a paid mutator transaction binding the contract method 0xfb71c430.

Solidity: function setUnPassed(address val) returns(bool)

func (*ContractsTransactorSession) VoteProposal

func (_Contracts *ContractsTransactorSession) VoteProposal(id [32]byte, auth bool) (*types.Transaction, error)

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

Solidity: function voteProposal(bytes32 id, bool auth) returns(bool)

Jump to

Keyboard shortcuts

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