contract

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContractABI = "" /* 5646-byte string literal not displayed */

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

View Source
const ContractBin = `` /* 20228-byte string literal not displayed */

ContractBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	ContractCaller     // Read-only binding to the contract
	ContractTransactor // Write-only binding to the contract
	ContractFilterer   // Log filterer for contract events
}

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

func DeployContract

func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Contract, error)

DeployContract deploys a new Ethereum contract, binding an instance of Contract to it.

func NewContract

func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)

NewContract creates a new instance of Contract, bound to a specific deployed contract.

type ContractCaller

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

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

func NewContractCaller

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

NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.

func (*ContractCaller) BlockPingTimeout

func (_Contract *ContractCaller) BlockPingTimeout(opts *bind.CallOpts) (*big.Int, error)

BlockPingTimeout is a free data retrieval call binding the contract method 0xe3596ce0.

Solidity: function blockPingTimeout() constant returns(uint256)

func (*ContractCaller) CheckVote

func (_Contract *ContractCaller) CheckVote(opts *bind.CallOpts, proposalAddr common.Address, voter common.Address) (bool, error)

CheckVote is a free data retrieval call binding the contract method 0x6069e56e.

Solidity: function checkVote(proposalAddr address, voter address) constant returns(bool)

func (*ContractCaller) Count

func (_Contract *ContractCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*ContractCaller) EtzMin

func (_Contract *ContractCaller) EtzMin(opts *bind.CallOpts) (*big.Int, error)

EtzMin is a free data retrieval call binding the contract method 0xc808021c.

Solidity: function etzMin() constant returns(uint256)

func (*ContractCaller) EtzPerNode

func (_Contract *ContractCaller) EtzPerNode(opts *bind.CallOpts) (*big.Int, error)

EtzPerNode is a free data retrieval call binding the contract method 0xff5ecad2.

Solidity: function etzPerNode() constant returns(uint256)

func (*ContractCaller) GetId

func (_Contract *ContractCaller) GetId(opts *bind.CallOpts, addr common.Address) ([8]byte, error)

GetId is a free data retrieval call binding the contract method 0x65f68c89.

Solidity: function getId(addr address) constant returns(id bytes8)

func (*ContractCaller) GetInfo

func (_Contract *ContractCaller) GetInfo(opts *bind.CallOpts, id [8]byte) (struct {
	Id1            [32]byte
	Id2            [32]byte
	PreId          [8]byte
	NextId         [8]byte
	BlockNumber    *big.Int
	Account        common.Address
	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0xc4e3ed93.

Solidity: function getInfo(id bytes8) constant returns(id1 bytes32, id2 bytes32, preId bytes8, nextId bytes8, blockNumber uint256, account address, blockOnlineAcc uint256, blockLastPing uint256)

func (*ContractCaller) GetVoteInfo

func (_Contract *ContractCaller) GetVoteInfo(opts *bind.CallOpts, addr common.Address) (struct {
	VoteCount   *big.Int
	StartBlock  *big.Int
	StopBlock   *big.Int
	Creator     common.Address
	LastAddress common.Address
}, error)

GetVoteInfo is a free data retrieval call binding the contract method 0xdc1e30da.

Solidity: function getVoteInfo(addr address) constant returns(voteCount uint256, startBlock uint256, stopBlock uint256, creator address, lastAddress address)

func (*ContractCaller) GovernanceAddress

func (_Contract *ContractCaller) GovernanceAddress(opts *bind.CallOpts) (common.Address, error)

GovernanceAddress is a free data retrieval call binding the contract method 0x795053d3.

Solidity: function governanceAddress() constant returns(address)

func (*ContractCaller) Has

func (_Contract *ContractCaller) Has(opts *bind.CallOpts, id [8]byte) (bool, error)

Has is a free data retrieval call binding the contract method 0x16e7f171.

Solidity: function has(id bytes8) constant returns(bool)

func (*ContractCaller) LastId

func (_Contract *ContractCaller) LastId(opts *bind.CallOpts) ([8]byte, error)

LastId is a free data retrieval call binding the contract method 0xc1292cc3.

Solidity: function lastId() constant returns(bytes8)

func (*ContractCaller) LastProposalAddress

func (_Contract *ContractCaller) LastProposalAddress(opts *bind.CallOpts) (common.Address, error)

LastProposalAddress is a free data retrieval call binding the contract method 0xe7b895b6.

Solidity: function lastProposalAddress() constant returns(address)

func (*ContractCaller) ProposalCount

func (_Contract *ContractCaller) ProposalCount(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function proposalCount() constant returns(uint256)

func (*ContractCaller) ProposalFee

func (_Contract *ContractCaller) ProposalFee(opts *bind.CallOpts) (*big.Int, error)

ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.

Solidity: function proposalFee() constant returns(uint256)

func (*ContractCaller) ProposalPeriod

func (_Contract *ContractCaller) ProposalPeriod(opts *bind.CallOpts) (*big.Int, error)

ProposalPeriod is a free data retrieval call binding the contract method 0x2c103c79.

Solidity: function proposalPeriod() constant returns(uint256)

type ContractCallerRaw

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

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

func (*ContractCallerRaw) Call

func (_Contract *ContractCallerRaw) 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 ContractCallerSession

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

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

func (*ContractCallerSession) BlockPingTimeout

func (_Contract *ContractCallerSession) BlockPingTimeout() (*big.Int, error)

BlockPingTimeout is a free data retrieval call binding the contract method 0xe3596ce0.

Solidity: function blockPingTimeout() constant returns(uint256)

func (*ContractCallerSession) CheckVote

func (_Contract *ContractCallerSession) CheckVote(proposalAddr common.Address, voter common.Address) (bool, error)

CheckVote is a free data retrieval call binding the contract method 0x6069e56e.

Solidity: function checkVote(proposalAddr address, voter address) constant returns(bool)

func (*ContractCallerSession) Count

func (_Contract *ContractCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*ContractCallerSession) EtzMin

func (_Contract *ContractCallerSession) EtzMin() (*big.Int, error)

EtzMin is a free data retrieval call binding the contract method 0xc808021c.

Solidity: function etzMin() constant returns(uint256)

func (*ContractCallerSession) EtzPerNode

func (_Contract *ContractCallerSession) EtzPerNode() (*big.Int, error)

EtzPerNode is a free data retrieval call binding the contract method 0xff5ecad2.

Solidity: function etzPerNode() constant returns(uint256)

func (*ContractCallerSession) GetId

func (_Contract *ContractCallerSession) GetId(addr common.Address) ([8]byte, error)

GetId is a free data retrieval call binding the contract method 0x65f68c89.

Solidity: function getId(addr address) constant returns(id bytes8)

func (*ContractCallerSession) GetInfo

func (_Contract *ContractCallerSession) GetInfo(id [8]byte) (struct {
	Id1            [32]byte
	Id2            [32]byte
	PreId          [8]byte
	NextId         [8]byte
	BlockNumber    *big.Int
	Account        common.Address
	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0xc4e3ed93.

Solidity: function getInfo(id bytes8) constant returns(id1 bytes32, id2 bytes32, preId bytes8, nextId bytes8, blockNumber uint256, account address, blockOnlineAcc uint256, blockLastPing uint256)

func (*ContractCallerSession) GetVoteInfo

func (_Contract *ContractCallerSession) GetVoteInfo(addr common.Address) (struct {
	VoteCount   *big.Int
	StartBlock  *big.Int
	StopBlock   *big.Int
	Creator     common.Address
	LastAddress common.Address
}, error)

GetVoteInfo is a free data retrieval call binding the contract method 0xdc1e30da.

Solidity: function getVoteInfo(addr address) constant returns(voteCount uint256, startBlock uint256, stopBlock uint256, creator address, lastAddress address)

func (*ContractCallerSession) GovernanceAddress

func (_Contract *ContractCallerSession) GovernanceAddress() (common.Address, error)

GovernanceAddress is a free data retrieval call binding the contract method 0x795053d3.

Solidity: function governanceAddress() constant returns(address)

func (*ContractCallerSession) Has

func (_Contract *ContractCallerSession) Has(id [8]byte) (bool, error)

Has is a free data retrieval call binding the contract method 0x16e7f171.

Solidity: function has(id bytes8) constant returns(bool)

func (*ContractCallerSession) LastId

func (_Contract *ContractCallerSession) LastId() ([8]byte, error)

LastId is a free data retrieval call binding the contract method 0xc1292cc3.

Solidity: function lastId() constant returns(bytes8)

func (*ContractCallerSession) LastProposalAddress

func (_Contract *ContractCallerSession) LastProposalAddress() (common.Address, error)

LastProposalAddress is a free data retrieval call binding the contract method 0xe7b895b6.

Solidity: function lastProposalAddress() constant returns(address)

func (*ContractCallerSession) ProposalCount

func (_Contract *ContractCallerSession) ProposalCount() (*big.Int, error)

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

Solidity: function proposalCount() constant returns(uint256)

func (*ContractCallerSession) ProposalFee

func (_Contract *ContractCallerSession) ProposalFee() (*big.Int, error)

ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.

Solidity: function proposalFee() constant returns(uint256)

func (*ContractCallerSession) ProposalPeriod

func (_Contract *ContractCallerSession) ProposalPeriod() (*big.Int, error)

ProposalPeriod is a free data retrieval call binding the contract method 0x2c103c79.

Solidity: function proposalPeriod() constant returns(uint256)

type ContractFilterer

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

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

func NewContractFilterer

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

NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.

func (*ContractFilterer) FilterGovernanceAddressChange

func (_Contract *ContractFilterer) FilterGovernanceAddressChange(opts *bind.FilterOpts) (*ContractGovernanceAddressChangeIterator, error)

FilterGovernanceAddressChange is a free log retrieval operation binding the contract event 0x2afa9f59c781db7a7ab5d83a590c0869db90657d3d51d7afe1c8ec41e088a22c.

Solidity: e governanceAddressChange(from address, to address)

func (*ContractFilterer) FilterJoin

func (_Contract *ContractFilterer) FilterJoin(opts *bind.FilterOpts) (*ContractJoinIterator, error)

FilterJoin is a free log retrieval operation binding the contract event 0xf19f694d42048723a415f5eed7c402ce2c2e5dc0c41580c3f80e220db85ac389.

Solidity: e join(id bytes8, addr address)

func (*ContractFilterer) FilterNewProposal

func (_Contract *ContractFilterer) FilterNewProposal(opts *bind.FilterOpts) (*ContractNewProposalIterator, error)

FilterNewProposal is a free log retrieval operation binding the contract event 0xfcb77511a4d50d7ad5235ca4e1d7054d65140fe505eec9d700a69622a813485c.

Solidity: e newProposal(from address, to address)

func (*ContractFilterer) FilterNewVote

func (_Contract *ContractFilterer) FilterNewVote(opts *bind.FilterOpts) (*ContractNewVoteIterator, error)

FilterNewVote is a free log retrieval operation binding the contract event 0x0b16242fe09b9cf36e327548ad3c0c195442ee19f92b8b57fcf2d8cd765e9c7c.

Solidity: e newVote(from address, to address)

func (*ContractFilterer) FilterPing

func (_Contract *ContractFilterer) FilterPing(opts *bind.FilterOpts) (*ContractPingIterator, error)

FilterPing is a free log retrieval operation binding the contract event 0xb620b17a993c1ab2769ca9e6d72d178499b0cd9b800d62e9b3d502e01bca76c2.

Solidity: e ping(id bytes8, blockOnlineAcc uint256, blockLastPing uint256)

func (*ContractFilterer) FilterQuit

func (_Contract *ContractFilterer) FilterQuit(opts *bind.FilterOpts) (*ContractQuitIterator, error)

FilterQuit is a free log retrieval operation binding the contract event 0x86d1ab9dbf33cb06567fbeb4b47a6a365cf66f632380589591255187f5ca09cd.

Solidity: e quit(id bytes8, addr address)

func (*ContractFilterer) WatchGovernanceAddressChange

func (_Contract *ContractFilterer) WatchGovernanceAddressChange(opts *bind.WatchOpts, sink chan<- *ContractGovernanceAddressChange) (event.Subscription, error)

WatchGovernanceAddressChange is a free log subscription operation binding the contract event 0x2afa9f59c781db7a7ab5d83a590c0869db90657d3d51d7afe1c8ec41e088a22c.

Solidity: e governanceAddressChange(from address, to address)

func (*ContractFilterer) WatchJoin

func (_Contract *ContractFilterer) WatchJoin(opts *bind.WatchOpts, sink chan<- *ContractJoin) (event.Subscription, error)

WatchJoin is a free log subscription operation binding the contract event 0xf19f694d42048723a415f5eed7c402ce2c2e5dc0c41580c3f80e220db85ac389.

Solidity: e join(id bytes8, addr address)

func (*ContractFilterer) WatchNewProposal

func (_Contract *ContractFilterer) WatchNewProposal(opts *bind.WatchOpts, sink chan<- *ContractNewProposal) (event.Subscription, error)

WatchNewProposal is a free log subscription operation binding the contract event 0xfcb77511a4d50d7ad5235ca4e1d7054d65140fe505eec9d700a69622a813485c.

Solidity: e newProposal(from address, to address)

func (*ContractFilterer) WatchNewVote

func (_Contract *ContractFilterer) WatchNewVote(opts *bind.WatchOpts, sink chan<- *ContractNewVote) (event.Subscription, error)

WatchNewVote is a free log subscription operation binding the contract event 0x0b16242fe09b9cf36e327548ad3c0c195442ee19f92b8b57fcf2d8cd765e9c7c.

Solidity: e newVote(from address, to address)

func (*ContractFilterer) WatchPing

func (_Contract *ContractFilterer) WatchPing(opts *bind.WatchOpts, sink chan<- *ContractPing) (event.Subscription, error)

WatchPing is a free log subscription operation binding the contract event 0xb620b17a993c1ab2769ca9e6d72d178499b0cd9b800d62e9b3d502e01bca76c2.

Solidity: e ping(id bytes8, blockOnlineAcc uint256, blockLastPing uint256)

func (*ContractFilterer) WatchQuit

func (_Contract *ContractFilterer) WatchQuit(opts *bind.WatchOpts, sink chan<- *ContractQuit) (event.Subscription, error)

WatchQuit is a free log subscription operation binding the contract event 0x86d1ab9dbf33cb06567fbeb4b47a6a365cf66f632380589591255187f5ca09cd.

Solidity: e quit(id bytes8, addr address)

type ContractGovernanceAddressChange

type ContractGovernanceAddressChange struct {
	From common.Address
	To   common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ContractGovernanceAddressChange represents a GovernanceAddressChange event raised by the Contract contract.

type ContractGovernanceAddressChangeIterator

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

ContractGovernanceAddressChangeIterator is returned from FilterGovernanceAddressChange and is used to iterate over the raw logs and unpacked data for GovernanceAddressChange events raised by the Contract contract.

func (*ContractGovernanceAddressChangeIterator) Close

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

func (*ContractGovernanceAddressChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractGovernanceAddressChangeIterator) 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 ContractJoin

type ContractJoin struct {
	Id   [8]byte
	Addr common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ContractJoin represents a Join event raised by the Contract contract.

type ContractJoinIterator

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

ContractJoinIterator is returned from FilterJoin and is used to iterate over the raw logs and unpacked data for Join events raised by the Contract contract.

func (*ContractJoinIterator) Close

func (it *ContractJoinIterator) Close() error

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

func (*ContractJoinIterator) Error

func (it *ContractJoinIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractJoinIterator) Next

func (it *ContractJoinIterator) 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 ContractNewProposal

type ContractNewProposal struct {
	From common.Address
	To   common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ContractNewProposal represents a NewProposal event raised by the Contract contract.

type ContractNewProposalIterator

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

ContractNewProposalIterator is returned from FilterNewProposal and is used to iterate over the raw logs and unpacked data for NewProposal events raised by the Contract contract.

func (*ContractNewProposalIterator) Close

func (it *ContractNewProposalIterator) Close() error

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

func (*ContractNewProposalIterator) Error

func (it *ContractNewProposalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractNewProposalIterator) Next

func (it *ContractNewProposalIterator) 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 ContractNewVote

type ContractNewVote struct {
	From common.Address
	To   common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ContractNewVote represents a NewVote event raised by the Contract contract.

type ContractNewVoteIterator

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

ContractNewVoteIterator is returned from FilterNewVote and is used to iterate over the raw logs and unpacked data for NewVote events raised by the Contract contract.

func (*ContractNewVoteIterator) Close

func (it *ContractNewVoteIterator) Close() error

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

func (*ContractNewVoteIterator) Error

func (it *ContractNewVoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractNewVoteIterator) Next

func (it *ContractNewVoteIterator) 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 ContractPing

type ContractPing struct {
	Id             [8]byte
	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

ContractPing represents a Ping event raised by the Contract contract.

type ContractPingIterator

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

ContractPingIterator is returned from FilterPing and is used to iterate over the raw logs and unpacked data for Ping events raised by the Contract contract.

func (*ContractPingIterator) Close

func (it *ContractPingIterator) Close() error

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

func (*ContractPingIterator) Error

func (it *ContractPingIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractPingIterator) Next

func (it *ContractPingIterator) 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 ContractQuit

type ContractQuit struct {
	Id   [8]byte
	Addr common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ContractQuit represents a Quit event raised by the Contract contract.

type ContractQuitIterator

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

ContractQuitIterator is returned from FilterQuit and is used to iterate over the raw logs and unpacked data for Quit events raised by the Contract contract.

func (*ContractQuitIterator) Close

func (it *ContractQuitIterator) Close() error

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

func (*ContractQuitIterator) Error

func (it *ContractQuitIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractQuitIterator) Next

func (it *ContractQuitIterator) 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 ContractRaw

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

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

func (*ContractRaw) Call

func (_Contract *ContractRaw) 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 (*ContractRaw) Transact

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

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

func (*ContractRaw) Transfer

func (_Contract *ContractRaw) 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 ContractSession

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

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

func (*ContractSession) BlockPingTimeout

func (_Contract *ContractSession) BlockPingTimeout() (*big.Int, error)

BlockPingTimeout is a free data retrieval call binding the contract method 0xe3596ce0.

Solidity: function blockPingTimeout() constant returns(uint256)

func (*ContractSession) CheckVote

func (_Contract *ContractSession) CheckVote(proposalAddr common.Address, voter common.Address) (bool, error)

CheckVote is a free data retrieval call binding the contract method 0x6069e56e.

Solidity: function checkVote(proposalAddr address, voter address) constant returns(bool)

func (*ContractSession) Count

func (_Contract *ContractSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() constant returns(uint256)

func (*ContractSession) CreateGovernanceAddressVote

func (_Contract *ContractSession) CreateGovernanceAddressVote(addr common.Address) (*types.Transaction, error)

CreateGovernanceAddressVote is a paid mutator transaction binding the contract method 0xf834f524.

Solidity: function createGovernanceAddressVote(addr address) returns()

func (*ContractSession) EtzMin

func (_Contract *ContractSession) EtzMin() (*big.Int, error)

EtzMin is a free data retrieval call binding the contract method 0xc808021c.

Solidity: function etzMin() constant returns(uint256)

func (*ContractSession) EtzPerNode

func (_Contract *ContractSession) EtzPerNode() (*big.Int, error)

EtzPerNode is a free data retrieval call binding the contract method 0xff5ecad2.

Solidity: function etzPerNode() constant returns(uint256)

func (*ContractSession) GetId

func (_Contract *ContractSession) GetId(addr common.Address) ([8]byte, error)

GetId is a free data retrieval call binding the contract method 0x65f68c89.

Solidity: function getId(addr address) constant returns(id bytes8)

func (*ContractSession) GetInfo

func (_Contract *ContractSession) GetInfo(id [8]byte) (struct {
	Id1            [32]byte
	Id2            [32]byte
	PreId          [8]byte
	NextId         [8]byte
	BlockNumber    *big.Int
	Account        common.Address
	BlockOnlineAcc *big.Int
	BlockLastPing  *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0xc4e3ed93.

Solidity: function getInfo(id bytes8) constant returns(id1 bytes32, id2 bytes32, preId bytes8, nextId bytes8, blockNumber uint256, account address, blockOnlineAcc uint256, blockLastPing uint256)

func (*ContractSession) GetVoteInfo

func (_Contract *ContractSession) GetVoteInfo(addr common.Address) (struct {
	VoteCount   *big.Int
	StartBlock  *big.Int
	StopBlock   *big.Int
	Creator     common.Address
	LastAddress common.Address
}, error)

GetVoteInfo is a free data retrieval call binding the contract method 0xdc1e30da.

Solidity: function getVoteInfo(addr address) constant returns(voteCount uint256, startBlock uint256, stopBlock uint256, creator address, lastAddress address)

func (*ContractSession) GovernanceAddress

func (_Contract *ContractSession) GovernanceAddress() (common.Address, error)

GovernanceAddress is a free data retrieval call binding the contract method 0x795053d3.

Solidity: function governanceAddress() constant returns(address)

func (*ContractSession) Has

func (_Contract *ContractSession) Has(id [8]byte) (bool, error)

Has is a free data retrieval call binding the contract method 0x16e7f171.

Solidity: function has(id bytes8) constant returns(bool)

func (*ContractSession) InitGovernanceAddress

func (_Contract *ContractSession) InitGovernanceAddress(addr common.Address) (*types.Transaction, error)

InitGovernanceAddress is a paid mutator transaction binding the contract method 0x691444c1.

Solidity: function initGovernanceAddress(addr address) returns()

func (*ContractSession) LastId

func (_Contract *ContractSession) LastId() ([8]byte, error)

LastId is a free data retrieval call binding the contract method 0xc1292cc3.

Solidity: function lastId() constant returns(bytes8)

func (*ContractSession) LastProposalAddress

func (_Contract *ContractSession) LastProposalAddress() (common.Address, error)

LastProposalAddress is a free data retrieval call binding the contract method 0xe7b895b6.

Solidity: function lastProposalAddress() constant returns(address)

func (*ContractSession) ProposalCount

func (_Contract *ContractSession) ProposalCount() (*big.Int, error)

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

Solidity: function proposalCount() constant returns(uint256)

func (*ContractSession) ProposalFee

func (_Contract *ContractSession) ProposalFee() (*big.Int, error)

ProposalFee is a free data retrieval call binding the contract method 0xc27cabb5.

Solidity: function proposalFee() constant returns(uint256)

func (*ContractSession) ProposalPeriod

func (_Contract *ContractSession) ProposalPeriod() (*big.Int, error)

ProposalPeriod is a free data retrieval call binding the contract method 0x2c103c79.

Solidity: function proposalPeriod() constant returns(uint256)

func (*ContractSession) Register

func (_Contract *ContractSession) Register(id1 [32]byte, id2 [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id1 bytes32, id2 bytes32) returns()

func (*ContractSession) VoteForGovernanceAddress

func (_Contract *ContractSession) VoteForGovernanceAddress(addr common.Address) (*types.Transaction, error)

VoteForGovernanceAddress is a paid mutator transaction binding the contract method 0xe8c74af2.

Solidity: function voteForGovernanceAddress(addr address) returns()

type ContractTransactor

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

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

func NewContractTransactor

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

NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.

func (*ContractTransactor) CreateGovernanceAddressVote

func (_Contract *ContractTransactor) CreateGovernanceAddressVote(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

CreateGovernanceAddressVote is a paid mutator transaction binding the contract method 0xf834f524.

Solidity: function createGovernanceAddressVote(addr address) returns()

func (*ContractTransactor) InitGovernanceAddress

func (_Contract *ContractTransactor) InitGovernanceAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

InitGovernanceAddress is a paid mutator transaction binding the contract method 0x691444c1.

Solidity: function initGovernanceAddress(addr address) returns()

func (*ContractTransactor) Register

func (_Contract *ContractTransactor) Register(opts *bind.TransactOpts, id1 [32]byte, id2 [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id1 bytes32, id2 bytes32) returns()

func (*ContractTransactor) VoteForGovernanceAddress

func (_Contract *ContractTransactor) VoteForGovernanceAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

VoteForGovernanceAddress is a paid mutator transaction binding the contract method 0xe8c74af2.

Solidity: function voteForGovernanceAddress(addr address) returns()

type ContractTransactorRaw

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

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

func (*ContractTransactorRaw) Transact

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

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

func (*ContractTransactorRaw) Transfer

func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession

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

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

func (*ContractTransactorSession) CreateGovernanceAddressVote

func (_Contract *ContractTransactorSession) CreateGovernanceAddressVote(addr common.Address) (*types.Transaction, error)

CreateGovernanceAddressVote is a paid mutator transaction binding the contract method 0xf834f524.

Solidity: function createGovernanceAddressVote(addr address) returns()

func (*ContractTransactorSession) InitGovernanceAddress

func (_Contract *ContractTransactorSession) InitGovernanceAddress(addr common.Address) (*types.Transaction, error)

InitGovernanceAddress is a paid mutator transaction binding the contract method 0x691444c1.

Solidity: function initGovernanceAddress(addr address) returns()

func (*ContractTransactorSession) Register

func (_Contract *ContractTransactorSession) Register(id1 [32]byte, id2 [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id1 bytes32, id2 bytes32) returns()

func (*ContractTransactorSession) VoteForGovernanceAddress

func (_Contract *ContractTransactorSession) VoteForGovernanceAddress(addr common.Address) (*types.Transaction, error)

VoteForGovernanceAddress is a paid mutator transaction binding the contract method 0xe8c74af2.

Solidity: function voteForGovernanceAddress(addr address) returns()

Jump to

Keyboard shortcuts

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