election

package
v0.0.0-...-5e88e9b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HpbballotABI = "" /* 8572-byte string literal not displayed */

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

View Source
const HpbballotBin = `` /* 19210-byte string literal not displayed */

HpbballotBin is the compiled bytecode used for deploying new contracts.

View Source
const OwnedABI = "" /* 468-byte string literal not displayed */

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

View Source
const OwnedBin = `` /* 818-byte string literal not displayed */

OwnedBin is the compiled bytecode used for deploying new contracts.

View Source
const SafeMathABI = "" /* 180-byte string literal not displayed */

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

View Source
const SafeMathBin = `` /* 368-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hpbballot

type Hpbballot struct {
	HpbballotCaller     // Read-only binding to the contract
	HpbballotTransactor // Write-only binding to the contract
}

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

func DeployHpbballot

func DeployHpbballot(auth *bind.TransactOpts, backend bind.ContractBackend, _name [32]byte, _startBlock *big.Int, _endBlock *big.Int, _minAmount *big.Int, _capacity *big.Int, _version *big.Int) (common.Address, *types.Transaction, *Hpbballot, error)

DeployHpbballot deploys a new Ethereum contract, binding an instance of Hpbballot to it.

func NewHpbballot

func NewHpbballot(address common.Address, backend bind.ContractBackend) (*Hpbballot, error)

NewHpbballot creates a new instance of Hpbballot, bound to a specific deployed contract.

type HpbballotCaller

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

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

func NewHpbballotCaller

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

NewHpbballotCaller creates a new read-only instance of Hpbballot, bound to a specific deployed contract.

func (*HpbballotCaller) CandidateArray

func (_Hpbballot *HpbballotCaller) CandidateArray(opts *bind.CallOpts, arg0 *big.Int) (struct {
	CandidateAddr common.Address
	Balance       *big.Int
	Name          [32]byte
	FacilityId    [32]byte
	NumberOfVotes *big.Int
}, error)

CandidateArray is a free data retrieval call binding the contract method 0x35a893a1.

Solidity: function candidateArray( uint256) constant returns(candidateAddr address, balance uint256, name bytes32, facilityId bytes32, numberOfVotes uint256)

func (*HpbballotCaller) CandidateIndexMap

func (_Hpbballot *HpbballotCaller) CandidateIndexMap(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

CandidateIndexMap is a free data retrieval call binding the contract method 0x81f4bf85.

Solidity: function candidateIndexMap( address) constant returns(uint256)

func (*HpbballotCaller) CandidateIndexMapAddrs

func (_Hpbballot *HpbballotCaller) CandidateIndexMapAddrs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

CandidateIndexMapAddrs is a free data retrieval call binding the contract method 0x13a3a7f3.

Solidity: function candidateIndexMapAddrs( uint256) constant returns(address)

func (*HpbballotCaller) Capacity

func (_Hpbballot *HpbballotCaller) Capacity(opts *bind.CallOpts) (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*HpbballotCaller) EndBlock

func (_Hpbballot *HpbballotCaller) EndBlock(opts *bind.CallOpts) (*big.Int, error)

EndBlock is a free data retrieval call binding the contract method 0x083c6323.

Solidity: function endBlock() constant returns(uint256)

func (*HpbballotCaller) FacilityIds

func (_Hpbballot *HpbballotCaller) FacilityIds(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

FacilityIds is a free data retrieval call binding the contract method 0x342d8d7e.

Solidity: function facilityIds( uint256) constant returns(bytes32)

func (*HpbballotCaller) HasReleaseAmount

func (_Hpbballot *HpbballotCaller) HasReleaseAmount(opts *bind.CallOpts) (bool, error)

HasReleaseAmount is a free data retrieval call binding the contract method 0x76023435.

Solidity: function hasReleaseAmount() constant returns(bool)

func (*HpbballotCaller) MAX_UINT256

func (_Hpbballot *HpbballotCaller) MAX_UINT256(opts *bind.CallOpts) (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

func (*HpbballotCaller) MinAmount

func (_Hpbballot *HpbballotCaller) MinAmount(opts *bind.CallOpts) (*big.Int, error)

MinAmount is a free data retrieval call binding the contract method 0x9b2cb5d8.

Solidity: function minAmount() constant returns(uint256)

func (*HpbballotCaller) Name

func (_Hpbballot *HpbballotCaller) Name(opts *bind.CallOpts) ([32]byte, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(bytes32)

func (*HpbballotCaller) Owner

func (_Hpbballot *HpbballotCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*HpbballotCaller) StartBlock

func (_Hpbballot *HpbballotCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

func (*HpbballotCaller) Version

func (_Hpbballot *HpbballotCaller) Version(opts *bind.CallOpts) (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() constant returns(uint256)

func (*HpbballotCaller) VoterArray

func (_Hpbballot *HpbballotCaller) VoterArray(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

VoterArray is a free data retrieval call binding the contract method 0xc279919f.

Solidity: function voterArray( uint256) constant returns(voterAddr address)

func (*HpbballotCaller) VoterIndexMap

func (_Hpbballot *HpbballotCaller) VoterIndexMap(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

VoterIndexMap is a free data retrieval call binding the contract method 0x903a0e6c.

Solidity: function voterIndexMap( address) constant returns(uint256)

func (*HpbballotCaller) VotesNumArray

func (_Hpbballot *HpbballotCaller) VotesNumArray(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

VotesNumArray is a free data retrieval call binding the contract method 0x725f66a6.

Solidity: function votesNumArray( uint256) constant returns(uint256)

type HpbballotCallerRaw

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

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

func (*HpbballotCallerRaw) Call

func (_Hpbballot *HpbballotCallerRaw) 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 HpbballotCallerSession

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

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

func (*HpbballotCallerSession) CandidateArray

func (_Hpbballot *HpbballotCallerSession) CandidateArray(arg0 *big.Int) (struct {
	CandidateAddr common.Address
	Balance       *big.Int
	Name          [32]byte
	FacilityId    [32]byte
	NumberOfVotes *big.Int
}, error)

CandidateArray is a free data retrieval call binding the contract method 0x35a893a1.

Solidity: function candidateArray( uint256) constant returns(candidateAddr address, balance uint256, name bytes32, facilityId bytes32, numberOfVotes uint256)

func (*HpbballotCallerSession) CandidateIndexMap

func (_Hpbballot *HpbballotCallerSession) CandidateIndexMap(arg0 common.Address) (*big.Int, error)

CandidateIndexMap is a free data retrieval call binding the contract method 0x81f4bf85.

Solidity: function candidateIndexMap( address) constant returns(uint256)

func (*HpbballotCallerSession) CandidateIndexMapAddrs

func (_Hpbballot *HpbballotCallerSession) CandidateIndexMapAddrs(arg0 *big.Int) (common.Address, error)

CandidateIndexMapAddrs is a free data retrieval call binding the contract method 0x13a3a7f3.

Solidity: function candidateIndexMapAddrs( uint256) constant returns(address)

func (*HpbballotCallerSession) Capacity

func (_Hpbballot *HpbballotCallerSession) Capacity() (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*HpbballotCallerSession) EndBlock

func (_Hpbballot *HpbballotCallerSession) EndBlock() (*big.Int, error)

EndBlock is a free data retrieval call binding the contract method 0x083c6323.

Solidity: function endBlock() constant returns(uint256)

func (*HpbballotCallerSession) FacilityIds

func (_Hpbballot *HpbballotCallerSession) FacilityIds(arg0 *big.Int) ([32]byte, error)

FacilityIds is a free data retrieval call binding the contract method 0x342d8d7e.

Solidity: function facilityIds( uint256) constant returns(bytes32)

func (*HpbballotCallerSession) HasReleaseAmount

func (_Hpbballot *HpbballotCallerSession) HasReleaseAmount() (bool, error)

HasReleaseAmount is a free data retrieval call binding the contract method 0x76023435.

Solidity: function hasReleaseAmount() constant returns(bool)

func (*HpbballotCallerSession) MAX_UINT256

func (_Hpbballot *HpbballotCallerSession) MAX_UINT256() (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

func (*HpbballotCallerSession) MinAmount

func (_Hpbballot *HpbballotCallerSession) MinAmount() (*big.Int, error)

MinAmount is a free data retrieval call binding the contract method 0x9b2cb5d8.

Solidity: function minAmount() constant returns(uint256)

func (*HpbballotCallerSession) Name

func (_Hpbballot *HpbballotCallerSession) Name() ([32]byte, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(bytes32)

func (*HpbballotCallerSession) Owner

func (_Hpbballot *HpbballotCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*HpbballotCallerSession) StartBlock

func (_Hpbballot *HpbballotCallerSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

func (*HpbballotCallerSession) Version

func (_Hpbballot *HpbballotCallerSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() constant returns(uint256)

func (*HpbballotCallerSession) VoterArray

func (_Hpbballot *HpbballotCallerSession) VoterArray(arg0 *big.Int) (common.Address, error)

VoterArray is a free data retrieval call binding the contract method 0xc279919f.

Solidity: function voterArray( uint256) constant returns(voterAddr address)

func (*HpbballotCallerSession) VoterIndexMap

func (_Hpbballot *HpbballotCallerSession) VoterIndexMap(arg0 common.Address) (*big.Int, error)

VoterIndexMap is a free data retrieval call binding the contract method 0x903a0e6c.

Solidity: function voterIndexMap( address) constant returns(uint256)

func (*HpbballotCallerSession) VotesNumArray

func (_Hpbballot *HpbballotCallerSession) VotesNumArray(arg0 *big.Int) (*big.Int, error)

VotesNumArray is a free data retrieval call binding the contract method 0x725f66a6.

Solidity: function votesNumArray( uint256) constant returns(uint256)

type HpbballotRaw

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

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

func (*HpbballotRaw) Call

func (_Hpbballot *HpbballotRaw) 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 (*HpbballotRaw) Transact

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

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

func (*HpbballotRaw) Transfer

func (_Hpbballot *HpbballotRaw) 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 HpbballotSession

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

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

func (*HpbballotSession) AddCandidate

func (_Hpbballot *HpbballotSession) AddCandidate(_candidateAddr common.Address, _facilityId [32]byte, _name [32]byte) (*types.Transaction, error)

AddCandidate is a paid mutator transaction binding the contract method 0xc767c18f.

Solidity: function AddCandidate(_candidateAddr address, _facilityId bytes32, _name bytes32) returns()

func (*HpbballotSession) BeginVote

func (_Hpbballot *HpbballotSession) BeginVote() (*types.Transaction, error)

BeginVote is a paid mutator transaction binding the contract method 0x28bc5ee4.

Solidity: function beginVote() returns()

func (*HpbballotSession) CandidateArray

func (_Hpbballot *HpbballotSession) CandidateArray(arg0 *big.Int) (struct {
	CandidateAddr common.Address
	Balance       *big.Int
	Name          [32]byte
	FacilityId    [32]byte
	NumberOfVotes *big.Int
}, error)

CandidateArray is a free data retrieval call binding the contract method 0x35a893a1.

Solidity: function candidateArray( uint256) constant returns(candidateAddr address, balance uint256, name bytes32, facilityId bytes32, numberOfVotes uint256)

func (*HpbballotSession) CandidateIndexMap

func (_Hpbballot *HpbballotSession) CandidateIndexMap(arg0 common.Address) (*big.Int, error)

CandidateIndexMap is a free data retrieval call binding the contract method 0x81f4bf85.

Solidity: function candidateIndexMap( address) constant returns(uint256)

func (*HpbballotSession) CandidateIndexMapAddrs

func (_Hpbballot *HpbballotSession) CandidateIndexMapAddrs(arg0 *big.Int) (common.Address, error)

CandidateIndexMapAddrs is a free data retrieval call binding the contract method 0x13a3a7f3.

Solidity: function candidateIndexMapAddrs( uint256) constant returns(address)

func (*HpbballotSession) Capacity

func (_Hpbballot *HpbballotSession) Capacity() (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*HpbballotSession) ChangeVotingBlocks

func (_Hpbballot *HpbballotSession) ChangeVotingBlocks(_name [32]byte, _startBlock *big.Int, _endBlock *big.Int, _minAmount *big.Int, _capacity *big.Int, _version *big.Int) (*types.Transaction, error)

ChangeVotingBlocks is a paid mutator transaction binding the contract method 0x13a2f4a0.

Solidity: function changeVotingBlocks(_name bytes32, _startBlock uint256, _endBlock uint256, _minAmount uint256, _capacity uint256, _version uint256) returns()

func (*HpbballotSession) DeleteCandidates

func (_Hpbballot *HpbballotSession) DeleteCandidates(_candidateAddr common.Address) (*types.Transaction, error)

DeleteCandidates is a paid mutator transaction binding the contract method 0xabe6c54d.

Solidity: function deleteCandidates(_candidateAddr address) returns()

func (*HpbballotSession) EndBlock

func (_Hpbballot *HpbballotSession) EndBlock() (*big.Int, error)

EndBlock is a free data retrieval call binding the contract method 0x083c6323.

Solidity: function endBlock() constant returns(uint256)

func (*HpbballotSession) EndVote

func (_Hpbballot *HpbballotSession) EndVote() (*types.Transaction, error)

EndVote is a paid mutator transaction binding the contract method 0xb9223946.

Solidity: function endVote() returns()

func (*HpbballotSession) FacilityIds

func (_Hpbballot *HpbballotSession) FacilityIds(arg0 *big.Int) ([32]byte, error)

FacilityIds is a free data retrieval call binding the contract method 0x342d8d7e.

Solidity: function facilityIds( uint256) constant returns(bytes32)

func (*HpbballotSession) FechVoteInfoForCandidate

func (_Hpbballot *HpbballotSession) FechVoteInfoForCandidate() (*types.Transaction, error)

FechVoteInfoForCandidate is a paid mutator transaction binding the contract method 0x9eace9bd.

Solidity: function fechVoteInfoForCandidate() returns(addrs address[], nums uint256[])

func (*HpbballotSession) FechVoteInfoForCandidateByVoterAddr

func (_Hpbballot *HpbballotSession) FechVoteInfoForCandidateByVoterAddr(voterAddr common.Address) (*types.Transaction, error)

FechVoteInfoForCandidateByVoterAddr is a paid mutator transaction binding the contract method 0xa1a1d72c.

Solidity: function fechVoteInfoForCandidateByVoterAddr(voterAddr address) returns(nums uint256)

func (*HpbballotSession) FechVoteInfoForVoter

func (_Hpbballot *HpbballotSession) FechVoteInfoForVoter() (*types.Transaction, error)

FechVoteInfoForVoter is a paid mutator transaction binding the contract method 0xe47d914a.

Solidity: function fechVoteInfoForVoter() returns(addrs address[], nums uint256[])

func (*HpbballotSession) FechVoteInfoForVoterByCandidateAddr

func (_Hpbballot *HpbballotSession) FechVoteInfoForVoterByCandidateAddr(candidateAddr common.Address) (*types.Transaction, error)

FechVoteInfoForVoterByCandidateAddr is a paid mutator transaction binding the contract method 0x9ab744e6.

Solidity: function fechVoteInfoForVoterByCandidateAddr(candidateAddr address) returns(nums uint256)

func (*HpbballotSession) FechVoteResultForCandidate

func (_Hpbballot *HpbballotSession) FechVoteResultForCandidate() (*types.Transaction, error)

FechVoteResultForCandidate is a paid mutator transaction binding the contract method 0xa4adc431.

Solidity: function fechVoteResultForCandidate() returns(num uint256)

func (*HpbballotSession) HasReleaseAmount

func (_Hpbballot *HpbballotSession) HasReleaseAmount() (bool, error)

HasReleaseAmount is a free data retrieval call binding the contract method 0x76023435.

Solidity: function hasReleaseAmount() constant returns(bool)

func (*HpbballotSession) MAX_UINT256

func (_Hpbballot *HpbballotSession) MAX_UINT256() (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

func (*HpbballotSession) MinAmount

func (_Hpbballot *HpbballotSession) MinAmount() (*big.Int, error)

MinAmount is a free data retrieval call binding the contract method 0x9b2cb5d8.

Solidity: function minAmount() constant returns(uint256)

func (*HpbballotSession) Name

func (_Hpbballot *HpbballotSession) Name() ([32]byte, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(bytes32)

func (*HpbballotSession) Owner

func (_Hpbballot *HpbballotSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*HpbballotSession) PayDepositByCandidate

func (_Hpbballot *HpbballotSession) PayDepositByCandidate() (*types.Transaction, error)

PayDepositByCandidate is a paid mutator transaction binding the contract method 0x927731c8.

Solidity: function payDepositByCandidate() returns()

func (*HpbballotSession) ReleaseAmount

func (_Hpbballot *HpbballotSession) ReleaseAmount() (*types.Transaction, error)

ReleaseAmount is a paid mutator transaction binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() returns()

func (*HpbballotSession) StartBlock

func (_Hpbballot *HpbballotSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() constant returns(uint256)

func (*HpbballotSession) TransferOwnership

func (_Hpbballot *HpbballotSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*HpbballotSession) Version

func (_Hpbballot *HpbballotSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() constant returns(uint256)

func (*HpbballotSession) VoteBySendHpb

func (_Hpbballot *HpbballotSession) VoteBySendHpb(candidateAddr common.Address) (*types.Transaction, error)

VoteBySendHpb is a paid mutator transaction binding the contract method 0x9dc5b6df.

Solidity: function voteBySendHpb(candidateAddr address) returns(serialNumber uint256)

func (*HpbballotSession) VoteResult

func (_Hpbballot *HpbballotSession) VoteResult() (*types.Transaction, error)

VoteResult is a paid mutator transaction binding the contract method 0x003259ea.

Solidity: function voteResult() returns(addr address[], _facilityIds bytes32[], nums uint256[])

func (*HpbballotSession) VoterArray

func (_Hpbballot *HpbballotSession) VoterArray(arg0 *big.Int) (common.Address, error)

VoterArray is a free data retrieval call binding the contract method 0xc279919f.

Solidity: function voterArray( uint256) constant returns(voterAddr address)

func (*HpbballotSession) VoterIndexMap

func (_Hpbballot *HpbballotSession) VoterIndexMap(arg0 common.Address) (*big.Int, error)

VoterIndexMap is a free data retrieval call binding the contract method 0x903a0e6c.

Solidity: function voterIndexMap( address) constant returns(uint256)

func (*HpbballotSession) VotesNumArray

func (_Hpbballot *HpbballotSession) VotesNumArray(arg0 *big.Int) (*big.Int, error)

VotesNumArray is a free data retrieval call binding the contract method 0x725f66a6.

Solidity: function votesNumArray( uint256) constant returns(uint256)

type HpbballotTransactor

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

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

func NewHpbballotTransactor

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

NewHpbballotTransactor creates a new write-only instance of Hpbballot, bound to a specific deployed contract.

func (*HpbballotTransactor) AddCandidate

func (_Hpbballot *HpbballotTransactor) AddCandidate(opts *bind.TransactOpts, _candidateAddr common.Address, _facilityId [32]byte, _name [32]byte) (*types.Transaction, error)

AddCandidate is a paid mutator transaction binding the contract method 0xc767c18f.

Solidity: function AddCandidate(_candidateAddr address, _facilityId bytes32, _name bytes32) returns()

func (*HpbballotTransactor) BeginVote

func (_Hpbballot *HpbballotTransactor) BeginVote(opts *bind.TransactOpts) (*types.Transaction, error)

BeginVote is a paid mutator transaction binding the contract method 0x28bc5ee4.

Solidity: function beginVote() returns()

func (*HpbballotTransactor) ChangeVotingBlocks

func (_Hpbballot *HpbballotTransactor) ChangeVotingBlocks(opts *bind.TransactOpts, _name [32]byte, _startBlock *big.Int, _endBlock *big.Int, _minAmount *big.Int, _capacity *big.Int, _version *big.Int) (*types.Transaction, error)

ChangeVotingBlocks is a paid mutator transaction binding the contract method 0x13a2f4a0.

Solidity: function changeVotingBlocks(_name bytes32, _startBlock uint256, _endBlock uint256, _minAmount uint256, _capacity uint256, _version uint256) returns()

func (*HpbballotTransactor) DeleteCandidates

func (_Hpbballot *HpbballotTransactor) DeleteCandidates(opts *bind.TransactOpts, _candidateAddr common.Address) (*types.Transaction, error)

DeleteCandidates is a paid mutator transaction binding the contract method 0xabe6c54d.

Solidity: function deleteCandidates(_candidateAddr address) returns()

func (*HpbballotTransactor) EndVote

func (_Hpbballot *HpbballotTransactor) EndVote(opts *bind.TransactOpts) (*types.Transaction, error)

EndVote is a paid mutator transaction binding the contract method 0xb9223946.

Solidity: function endVote() returns()

func (*HpbballotTransactor) FechVoteInfoForCandidate

func (_Hpbballot *HpbballotTransactor) FechVoteInfoForCandidate(opts *bind.TransactOpts) (*types.Transaction, error)

FechVoteInfoForCandidate is a paid mutator transaction binding the contract method 0x9eace9bd.

Solidity: function fechVoteInfoForCandidate() returns(addrs address[], nums uint256[])

func (*HpbballotTransactor) FechVoteInfoForCandidateByVoterAddr

func (_Hpbballot *HpbballotTransactor) FechVoteInfoForCandidateByVoterAddr(opts *bind.TransactOpts, voterAddr common.Address) (*types.Transaction, error)

FechVoteInfoForCandidateByVoterAddr is a paid mutator transaction binding the contract method 0xa1a1d72c.

Solidity: function fechVoteInfoForCandidateByVoterAddr(voterAddr address) returns(nums uint256)

func (*HpbballotTransactor) FechVoteInfoForVoter

func (_Hpbballot *HpbballotTransactor) FechVoteInfoForVoter(opts *bind.TransactOpts) (*types.Transaction, error)

FechVoteInfoForVoter is a paid mutator transaction binding the contract method 0xe47d914a.

Solidity: function fechVoteInfoForVoter() returns(addrs address[], nums uint256[])

func (*HpbballotTransactor) FechVoteInfoForVoterByCandidateAddr

func (_Hpbballot *HpbballotTransactor) FechVoteInfoForVoterByCandidateAddr(opts *bind.TransactOpts, candidateAddr common.Address) (*types.Transaction, error)

FechVoteInfoForVoterByCandidateAddr is a paid mutator transaction binding the contract method 0x9ab744e6.

Solidity: function fechVoteInfoForVoterByCandidateAddr(candidateAddr address) returns(nums uint256)

func (*HpbballotTransactor) FechVoteResultForCandidate

func (_Hpbballot *HpbballotTransactor) FechVoteResultForCandidate(opts *bind.TransactOpts) (*types.Transaction, error)

FechVoteResultForCandidate is a paid mutator transaction binding the contract method 0xa4adc431.

Solidity: function fechVoteResultForCandidate() returns(num uint256)

func (*HpbballotTransactor) PayDepositByCandidate

func (_Hpbballot *HpbballotTransactor) PayDepositByCandidate(opts *bind.TransactOpts) (*types.Transaction, error)

PayDepositByCandidate is a paid mutator transaction binding the contract method 0x927731c8.

Solidity: function payDepositByCandidate() returns()

func (*HpbballotTransactor) ReleaseAmount

func (_Hpbballot *HpbballotTransactor) ReleaseAmount(opts *bind.TransactOpts) (*types.Transaction, error)

ReleaseAmount is a paid mutator transaction binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() returns()

func (*HpbballotTransactor) TransferOwnership

func (_Hpbballot *HpbballotTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*HpbballotTransactor) VoteBySendHpb

func (_Hpbballot *HpbballotTransactor) VoteBySendHpb(opts *bind.TransactOpts, candidateAddr common.Address) (*types.Transaction, error)

VoteBySendHpb is a paid mutator transaction binding the contract method 0x9dc5b6df.

Solidity: function voteBySendHpb(candidateAddr address) returns(serialNumber uint256)

func (*HpbballotTransactor) VoteResult

func (_Hpbballot *HpbballotTransactor) VoteResult(opts *bind.TransactOpts) (*types.Transaction, error)

VoteResult is a paid mutator transaction binding the contract method 0x003259ea.

Solidity: function voteResult() returns(addr address[], _facilityIds bytes32[], nums uint256[])

type HpbballotTransactorRaw

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

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

func (*HpbballotTransactorRaw) Transact

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

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

func (*HpbballotTransactorRaw) Transfer

func (_Hpbballot *HpbballotTransactorRaw) 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 HpbballotTransactorSession

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

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

func (*HpbballotTransactorSession) AddCandidate

func (_Hpbballot *HpbballotTransactorSession) AddCandidate(_candidateAddr common.Address, _facilityId [32]byte, _name [32]byte) (*types.Transaction, error)

AddCandidate is a paid mutator transaction binding the contract method 0xc767c18f.

Solidity: function AddCandidate(_candidateAddr address, _facilityId bytes32, _name bytes32) returns()

func (*HpbballotTransactorSession) BeginVote

func (_Hpbballot *HpbballotTransactorSession) BeginVote() (*types.Transaction, error)

BeginVote is a paid mutator transaction binding the contract method 0x28bc5ee4.

Solidity: function beginVote() returns()

func (*HpbballotTransactorSession) ChangeVotingBlocks

func (_Hpbballot *HpbballotTransactorSession) ChangeVotingBlocks(_name [32]byte, _startBlock *big.Int, _endBlock *big.Int, _minAmount *big.Int, _capacity *big.Int, _version *big.Int) (*types.Transaction, error)

ChangeVotingBlocks is a paid mutator transaction binding the contract method 0x13a2f4a0.

Solidity: function changeVotingBlocks(_name bytes32, _startBlock uint256, _endBlock uint256, _minAmount uint256, _capacity uint256, _version uint256) returns()

func (*HpbballotTransactorSession) DeleteCandidates

func (_Hpbballot *HpbballotTransactorSession) DeleteCandidates(_candidateAddr common.Address) (*types.Transaction, error)

DeleteCandidates is a paid mutator transaction binding the contract method 0xabe6c54d.

Solidity: function deleteCandidates(_candidateAddr address) returns()

func (*HpbballotTransactorSession) EndVote

func (_Hpbballot *HpbballotTransactorSession) EndVote() (*types.Transaction, error)

EndVote is a paid mutator transaction binding the contract method 0xb9223946.

Solidity: function endVote() returns()

func (*HpbballotTransactorSession) FechVoteInfoForCandidate

func (_Hpbballot *HpbballotTransactorSession) FechVoteInfoForCandidate() (*types.Transaction, error)

FechVoteInfoForCandidate is a paid mutator transaction binding the contract method 0x9eace9bd.

Solidity: function fechVoteInfoForCandidate() returns(addrs address[], nums uint256[])

func (*HpbballotTransactorSession) FechVoteInfoForCandidateByVoterAddr

func (_Hpbballot *HpbballotTransactorSession) FechVoteInfoForCandidateByVoterAddr(voterAddr common.Address) (*types.Transaction, error)

FechVoteInfoForCandidateByVoterAddr is a paid mutator transaction binding the contract method 0xa1a1d72c.

Solidity: function fechVoteInfoForCandidateByVoterAddr(voterAddr address) returns(nums uint256)

func (*HpbballotTransactorSession) FechVoteInfoForVoter

func (_Hpbballot *HpbballotTransactorSession) FechVoteInfoForVoter() (*types.Transaction, error)

FechVoteInfoForVoter is a paid mutator transaction binding the contract method 0xe47d914a.

Solidity: function fechVoteInfoForVoter() returns(addrs address[], nums uint256[])

func (*HpbballotTransactorSession) FechVoteInfoForVoterByCandidateAddr

func (_Hpbballot *HpbballotTransactorSession) FechVoteInfoForVoterByCandidateAddr(candidateAddr common.Address) (*types.Transaction, error)

FechVoteInfoForVoterByCandidateAddr is a paid mutator transaction binding the contract method 0x9ab744e6.

Solidity: function fechVoteInfoForVoterByCandidateAddr(candidateAddr address) returns(nums uint256)

func (*HpbballotTransactorSession) FechVoteResultForCandidate

func (_Hpbballot *HpbballotTransactorSession) FechVoteResultForCandidate() (*types.Transaction, error)

FechVoteResultForCandidate is a paid mutator transaction binding the contract method 0xa4adc431.

Solidity: function fechVoteResultForCandidate() returns(num uint256)

func (*HpbballotTransactorSession) PayDepositByCandidate

func (_Hpbballot *HpbballotTransactorSession) PayDepositByCandidate() (*types.Transaction, error)

PayDepositByCandidate is a paid mutator transaction binding the contract method 0x927731c8.

Solidity: function payDepositByCandidate() returns()

func (*HpbballotTransactorSession) ReleaseAmount

func (_Hpbballot *HpbballotTransactorSession) ReleaseAmount() (*types.Transaction, error)

ReleaseAmount is a paid mutator transaction binding the contract method 0xc062dc5f.

Solidity: function releaseAmount() returns()

func (*HpbballotTransactorSession) TransferOwnership

func (_Hpbballot *HpbballotTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*HpbballotTransactorSession) VoteBySendHpb

func (_Hpbballot *HpbballotTransactorSession) VoteBySendHpb(candidateAddr common.Address) (*types.Transaction, error)

VoteBySendHpb is a paid mutator transaction binding the contract method 0x9dc5b6df.

Solidity: function voteBySendHpb(candidateAddr address) returns(serialNumber uint256)

func (*HpbballotTransactorSession) VoteResult

func (_Hpbballot *HpbballotTransactorSession) VoteResult() (*types.Transaction, error)

VoteResult is a paid mutator transaction binding the contract method 0x003259ea.

Solidity: function voteResult() returns(addr address[], _facilityIds bytes32[], nums uint256[])

type Owned

type Owned struct {
	OwnedCaller     // Read-only binding to the contract
	OwnedTransactor // Write-only binding to the contract
}

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

func DeployOwned

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

DeployOwned deploys a new Ethereum contract, binding an instance of Owned to it.

func NewOwned

func NewOwned(address common.Address, backend bind.ContractBackend) (*Owned, error)

NewOwned creates a new instance of Owned, bound to a specific deployed contract.

type OwnedCaller

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

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

func NewOwnedCaller

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

NewOwnedCaller creates a new read-only instance of Owned, bound to a specific deployed contract.

func (*OwnedCaller) Owner

func (_Owned *OwnedCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

type OwnedCallerRaw

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

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

func (*OwnedCallerRaw) Call

func (_Owned *OwnedCallerRaw) 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 OwnedCallerSession

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

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

func (*OwnedCallerSession) Owner

func (_Owned *OwnedCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

type OwnedRaw

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

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

func (*OwnedRaw) Call

func (_Owned *OwnedRaw) 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 (*OwnedRaw) Transact

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

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

func (*OwnedRaw) Transfer

func (_Owned *OwnedRaw) 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 OwnedSession

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

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

func (*OwnedSession) Owner

func (_Owned *OwnedSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*OwnedSession) TransferOwnership

func (_Owned *OwnedSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

type OwnedTransactor

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

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

func NewOwnedTransactor

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

NewOwnedTransactor creates a new write-only instance of Owned, bound to a specific deployed contract.

func (*OwnedTransactor) TransferOwnership

func (_Owned *OwnedTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

type OwnedTransactorRaw

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

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

func (*OwnedTransactorRaw) Transact

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

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

func (*OwnedTransactorRaw) Transfer

func (_Owned *OwnedTransactorRaw) 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 OwnedTransactorSession

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

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

func (*OwnedTransactorSession) TransferOwnership

func (_Owned *OwnedTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
}

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

func DeploySafeMath

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

DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.

func NewSafeMath

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

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

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

func (*SafeMathCaller) MAX_UINT256

func (_SafeMath *SafeMathCaller) MAX_UINT256(opts *bind.CallOpts) (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession

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

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

func (*SafeMathCallerSession) MAX_UINT256

func (_SafeMath *SafeMathCallerSession) MAX_UINT256() (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) 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 SafeMathSession

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

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

func (*SafeMathSession) MAX_UINT256

func (_SafeMath *SafeMathSession) MAX_UINT256() (*big.Int, error)

MAX_UINT256 is a free data retrieval call binding the contract method 0x33a581d2.

Solidity: function MAX_UINT256() constant returns(uint256)

type SafeMathTransactor

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

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

func NewSafeMathTransactor

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

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession

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

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

Jump to

Keyboard shortcuts

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