contract

package
v0.0.0-...-a75425d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TruSetCommitRevealVotingABI = "" /* 13859-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type TruSetCommitRevealVoting

type TruSetCommitRevealVoting struct {
	TruSetCommitRevealVotingCaller     // Read-only binding to the contract
	TruSetCommitRevealVotingTransactor // Write-only binding to the contract
	TruSetCommitRevealVotingFilterer   // Log filterer for contract events
}

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

func NewTruSetCommitRevealVoting

func NewTruSetCommitRevealVoting(address common.Address, backend bind.ContractBackend) (*TruSetCommitRevealVoting, error)

NewTruSetCommitRevealVoting creates a new instance of TruSetCommitRevealVoting, bound to a specific deployed contract.

type TruSetCommitRevealVotingCaller

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

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

func NewTruSetCommitRevealVotingCaller

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

NewTruSetCommitRevealVotingCaller creates a new read-only instance of TruSetCommitRevealVoting, bound to a specific deployed contract.

func (*TruSetCommitRevealVotingCaller) CommitDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) CommitDeadline(opts *bind.CallOpts, _pollID [32]byte) (*big.Int, error)

CommitDeadline is a free data retrieval call binding the contract method 0x01c2b6f5.

Solidity: function commitDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCaller) CommitPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) CommitPeriodActive(opts *bind.CallOpts, _pollID [32]byte) (bool, error)

CommitPeriodActive is a free data retrieval call binding the contract method 0x16879344.

Solidity: function commitPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingCaller) CommitPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) CommitPeriodStartedTimestamp(opts *bind.CallOpts, _pollID [32]byte) (*big.Int, error)

CommitPeriodStartedTimestamp is a free data retrieval call binding the contract method 0x62aff4d5.

Solidity: function commitPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCaller) DidCommit

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) DidCommit(opts *bind.CallOpts, _pollID [32]byte, _voter common.Address) (bool, error)

DidCommit is a free data retrieval call binding the contract method 0x9fce2d80.

Solidity: function didCommit(_pollID bytes32, _voter address) constant returns(committed bool)

func (*TruSetCommitRevealVotingCaller) DidReveal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) DidReveal(opts *bind.CallOpts, _pollID [32]byte, _voter common.Address) (bool, error)

DidReveal is a free data retrieval call binding the contract method 0x1593796e.

Solidity: function didReveal(_pollID bytes32, _voter address) constant returns(revealed bool)

func (*TruSetCommitRevealVotingCaller) GetCommitHash

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) GetCommitHash(opts *bind.CallOpts, _pollID [32]byte, _voter common.Address) ([32]byte, error)

GetCommitHash is a free data retrieval call binding the contract method 0xc3d4d75a.

Solidity: function getCommitHash(_pollID bytes32, _voter address) constant returns(commitHash bytes32)

func (*TruSetCommitRevealVotingCaller) GetPollIdentifier

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) GetPollIdentifier(opts *bind.CallOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) ([32]byte, error)

GetPollIdentifier is a free data retrieval call binding the contract method 0x4309b4b2.

Solidity: function getPollIdentifier(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(bytes32)

func (*TruSetCommitRevealVotingCaller) GetVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) GetVote(opts *bind.CallOpts, _pollID [32]byte, _voter common.Address) (struct {
	HasVoted    bool
	HasRevealed bool
	Vote        *big.Int
}, error)

GetVote is a free data retrieval call binding the contract method 0xb3e7c2bd.

Solidity: function getVote(_pollID bytes32, _voter address) constant returns(hasVoted bool, hasRevealed bool, vote uint256)

func (*TruSetCommitRevealVotingCaller) GetVoteCounts

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) GetVoteCounts(opts *bind.CallOpts, _pollID [32]byte) (struct {
	NumForVotes                     *big.Int
	NumAgainstVotes                 *big.Int
	NumCommittedButNotRevealedVotes *big.Int
}, error)

GetVoteCounts is a free data retrieval call binding the contract method 0x782fb5d4.

Solidity: function getVoteCounts(_pollID bytes32) constant returns(numForVotes uint256, numAgainstVotes uint256, numCommittedButNotRevealedVotes uint256)

func (*TruSetCommitRevealVotingCaller) GetVoters

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) GetVoters(opts *bind.CallOpts, _pollID [32]byte) ([]common.Address, error)

GetVoters is a free data retrieval call binding the contract method 0x8b4a781c.

Solidity: function getVoters(_pollID bytes32) constant returns(voters address[])

func (*TruSetCommitRevealVotingCaller) IsExpired

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) IsExpired(opts *bind.CallOpts, _terminationDate *big.Int) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0xd9548e53.

Solidity: function isExpired(_terminationDate uint256) constant returns(expired bool)

func (*TruSetCommitRevealVotingCaller) MAXCOMMITDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) MAXCOMMITDURATIONINSECONDS(opts *bind.CallOpts) (*big.Int, error)

MAXCOMMITDURATIONINSECONDS is a free data retrieval call binding the contract method 0xc34d2732.

Solidity: function MAX_COMMIT_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingCaller) MAXREVEALDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) MAXREVEALDURATIONINSECONDS(opts *bind.CallOpts) (*big.Int, error)

MAXREVEALDURATIONINSECONDS is a free data retrieval call binding the contract method 0x9234c1fd.

Solidity: function MAX_REVEAL_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingCaller) NumStakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) NumStakersForPoll(opts *bind.CallOpts, _pollID [32]byte) (*big.Int, error)

NumStakersForPoll is a free data retrieval call binding the contract method 0x5eface14.

Solidity: function numStakersForPoll(_pollID bytes32) constant returns(uint256)

func (*TruSetCommitRevealVotingCaller) PollEnded

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) PollEnded(opts *bind.CallOpts, _pollID [32]byte) (bool, error)

PollEnded is a free data retrieval call binding the contract method 0xfd2cee78.

Solidity: function pollEnded(_pollID bytes32) constant returns(ended bool)

func (*TruSetCommitRevealVotingCaller) PollExists

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) PollExists(opts *bind.CallOpts, _pollID [32]byte) (bool, error)

PollExists is a free data retrieval call binding the contract method 0x0dcf298b.

Solidity: function pollExists(_pollID bytes32) constant returns(exists bool)

func (*TruSetCommitRevealVotingCaller) PollMap

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) PollMap(opts *bind.CallOpts, arg0 [32]byte) (struct {
	CommitPeriodStartedAt        *big.Int
	CommitDuration               *big.Int
	CommitsHaltedAt              *big.Int
	RevealDuration               *big.Int
	RevealsHaltedAt              *big.Int
	VotesFor                     *big.Int
	VotesAgainst                 *big.Int
	VotesCommittedButNotRevealed *big.Int
}, error)

PollMap is a free data retrieval call binding the contract method 0xd2b77264.

Solidity: function pollMap( bytes32) constant returns(commitPeriodStartedAt uint256, commitDuration uint256, commitsHaltedAt uint256, revealDuration uint256, revealsHaltedAt uint256, votesFor uint256, votesAgainst uint256, votesCommittedButNotRevealed uint256)

func (*TruSetCommitRevealVotingCaller) Rbac

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) Rbac(opts *bind.CallOpts) (common.Address, error)

Rbac is a free data retrieval call binding the contract method 0xa8ecc7f1.

Solidity: function rbac() constant returns(address)

func (*TruSetCommitRevealVotingCaller) RevealDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) RevealDeadline(opts *bind.CallOpts, _pollID [32]byte) (*big.Int, error)

RevealDeadline is a free data retrieval call binding the contract method 0xcb27bdc1.

Solidity: function revealDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCaller) RevealPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) RevealPeriodActive(opts *bind.CallOpts, _pollID [32]byte) (bool, error)

RevealPeriodActive is a free data retrieval call binding the contract method 0x28fbf28a.

Solidity: function revealPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingCaller) RevealPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) RevealPeriodStartedTimestamp(opts *bind.CallOpts, _pollID [32]byte) (*big.Int, error)

RevealPeriodStartedTimestamp is a free data retrieval call binding the contract method 0xe2a5c39f.

Solidity: function revealPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCaller) StakedForPollID

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) StakedForPollID(opts *bind.CallOpts, _user common.Address, _pollID [32]byte) (uint8, *big.Int, error)

StakedForPollID is a free data retrieval call binding the contract method 0x3c2dba23.

Solidity: function stakedForPollID(_user address, _pollID bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingCaller) StakedForProposal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) StakedForProposal(opts *bind.CallOpts, _user common.Address, _instrumentAddress common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (uint8, *big.Int, error)

StakedForProposal is a free data retrieval call binding the contract method 0xbe6c03ff.

Solidity: function stakedForProposal(_user address, _instrumentAddress address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingCaller) StakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) StakersForPoll(opts *bind.CallOpts, _pollID [32]byte) ([]common.Address, error)

StakersForPoll is a free data retrieval call binding the contract method 0xef5850c7.

Solidity: function stakersForPoll(_pollID bytes32) constant returns(address[])

func (*TruSetCommitRevealVotingCaller) VOTEAGAINST

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) VOTEAGAINST(opts *bind.CallOpts) (*big.Int, error)

VOTEAGAINST is a free data retrieval call binding the contract method 0x5dfd3278.

Solidity: function VOTE_AGAINST() constant returns(uint256)

func (*TruSetCommitRevealVotingCaller) VOTEFOR

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCaller) VOTEFOR(opts *bind.CallOpts) (*big.Int, error)

VOTEFOR is a free data retrieval call binding the contract method 0xd1a75e0d.

Solidity: function VOTE_FOR() constant returns(uint256)

type TruSetCommitRevealVotingCallerRaw

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

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

func (*TruSetCommitRevealVotingCallerRaw) Call

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerRaw) 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 TruSetCommitRevealVotingCallerSession

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

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

func (*TruSetCommitRevealVotingCallerSession) CommitDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) CommitDeadline(_pollID [32]byte) (*big.Int, error)

CommitDeadline is a free data retrieval call binding the contract method 0x01c2b6f5.

Solidity: function commitDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCallerSession) CommitPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) CommitPeriodActive(_pollID [32]byte) (bool, error)

CommitPeriodActive is a free data retrieval call binding the contract method 0x16879344.

Solidity: function commitPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingCallerSession) CommitPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) CommitPeriodStartedTimestamp(_pollID [32]byte) (*big.Int, error)

CommitPeriodStartedTimestamp is a free data retrieval call binding the contract method 0x62aff4d5.

Solidity: function commitPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCallerSession) DidCommit

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) DidCommit(_pollID [32]byte, _voter common.Address) (bool, error)

DidCommit is a free data retrieval call binding the contract method 0x9fce2d80.

Solidity: function didCommit(_pollID bytes32, _voter address) constant returns(committed bool)

func (*TruSetCommitRevealVotingCallerSession) DidReveal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) DidReveal(_pollID [32]byte, _voter common.Address) (bool, error)

DidReveal is a free data retrieval call binding the contract method 0x1593796e.

Solidity: function didReveal(_pollID bytes32, _voter address) constant returns(revealed bool)

func (*TruSetCommitRevealVotingCallerSession) GetCommitHash

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) GetCommitHash(_pollID [32]byte, _voter common.Address) ([32]byte, error)

GetCommitHash is a free data retrieval call binding the contract method 0xc3d4d75a.

Solidity: function getCommitHash(_pollID bytes32, _voter address) constant returns(commitHash bytes32)

func (*TruSetCommitRevealVotingCallerSession) GetPollIdentifier

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) GetPollIdentifier(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) ([32]byte, error)

GetPollIdentifier is a free data retrieval call binding the contract method 0x4309b4b2.

Solidity: function getPollIdentifier(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(bytes32)

func (*TruSetCommitRevealVotingCallerSession) GetVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) GetVote(_pollID [32]byte, _voter common.Address) (struct {
	HasVoted    bool
	HasRevealed bool
	Vote        *big.Int
}, error)

GetVote is a free data retrieval call binding the contract method 0xb3e7c2bd.

Solidity: function getVote(_pollID bytes32, _voter address) constant returns(hasVoted bool, hasRevealed bool, vote uint256)

func (*TruSetCommitRevealVotingCallerSession) GetVoteCounts

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) GetVoteCounts(_pollID [32]byte) (struct {
	NumForVotes                     *big.Int
	NumAgainstVotes                 *big.Int
	NumCommittedButNotRevealedVotes *big.Int
}, error)

GetVoteCounts is a free data retrieval call binding the contract method 0x782fb5d4.

Solidity: function getVoteCounts(_pollID bytes32) constant returns(numForVotes uint256, numAgainstVotes uint256, numCommittedButNotRevealedVotes uint256)

func (*TruSetCommitRevealVotingCallerSession) GetVoters

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) GetVoters(_pollID [32]byte) ([]common.Address, error)

GetVoters is a free data retrieval call binding the contract method 0x8b4a781c.

Solidity: function getVoters(_pollID bytes32) constant returns(voters address[])

func (*TruSetCommitRevealVotingCallerSession) IsExpired

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) IsExpired(_terminationDate *big.Int) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0xd9548e53.

Solidity: function isExpired(_terminationDate uint256) constant returns(expired bool)

func (*TruSetCommitRevealVotingCallerSession) MAXCOMMITDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) MAXCOMMITDURATIONINSECONDS() (*big.Int, error)

MAXCOMMITDURATIONINSECONDS is a free data retrieval call binding the contract method 0xc34d2732.

Solidity: function MAX_COMMIT_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingCallerSession) MAXREVEALDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) MAXREVEALDURATIONINSECONDS() (*big.Int, error)

MAXREVEALDURATIONINSECONDS is a free data retrieval call binding the contract method 0x9234c1fd.

Solidity: function MAX_REVEAL_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingCallerSession) NumStakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) NumStakersForPoll(_pollID [32]byte) (*big.Int, error)

NumStakersForPoll is a free data retrieval call binding the contract method 0x5eface14.

Solidity: function numStakersForPoll(_pollID bytes32) constant returns(uint256)

func (*TruSetCommitRevealVotingCallerSession) PollEnded

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) PollEnded(_pollID [32]byte) (bool, error)

PollEnded is a free data retrieval call binding the contract method 0xfd2cee78.

Solidity: function pollEnded(_pollID bytes32) constant returns(ended bool)

func (*TruSetCommitRevealVotingCallerSession) PollExists

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) PollExists(_pollID [32]byte) (bool, error)

PollExists is a free data retrieval call binding the contract method 0x0dcf298b.

Solidity: function pollExists(_pollID bytes32) constant returns(exists bool)

func (*TruSetCommitRevealVotingCallerSession) PollMap

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) PollMap(arg0 [32]byte) (struct {
	CommitPeriodStartedAt        *big.Int
	CommitDuration               *big.Int
	CommitsHaltedAt              *big.Int
	RevealDuration               *big.Int
	RevealsHaltedAt              *big.Int
	VotesFor                     *big.Int
	VotesAgainst                 *big.Int
	VotesCommittedButNotRevealed *big.Int
}, error)

PollMap is a free data retrieval call binding the contract method 0xd2b77264.

Solidity: function pollMap( bytes32) constant returns(commitPeriodStartedAt uint256, commitDuration uint256, commitsHaltedAt uint256, revealDuration uint256, revealsHaltedAt uint256, votesFor uint256, votesAgainst uint256, votesCommittedButNotRevealed uint256)

func (*TruSetCommitRevealVotingCallerSession) Rbac

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) Rbac() (common.Address, error)

Rbac is a free data retrieval call binding the contract method 0xa8ecc7f1.

Solidity: function rbac() constant returns(address)

func (*TruSetCommitRevealVotingCallerSession) RevealDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) RevealDeadline(_pollID [32]byte) (*big.Int, error)

RevealDeadline is a free data retrieval call binding the contract method 0xcb27bdc1.

Solidity: function revealDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCallerSession) RevealPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) RevealPeriodActive(_pollID [32]byte) (bool, error)

RevealPeriodActive is a free data retrieval call binding the contract method 0x28fbf28a.

Solidity: function revealPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingCallerSession) RevealPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) RevealPeriodStartedTimestamp(_pollID [32]byte) (*big.Int, error)

RevealPeriodStartedTimestamp is a free data retrieval call binding the contract method 0xe2a5c39f.

Solidity: function revealPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingCallerSession) StakedForPollID

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) StakedForPollID(_user common.Address, _pollID [32]byte) (uint8, *big.Int, error)

StakedForPollID is a free data retrieval call binding the contract method 0x3c2dba23.

Solidity: function stakedForPollID(_user address, _pollID bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingCallerSession) StakedForProposal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) StakedForProposal(_user common.Address, _instrumentAddress common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (uint8, *big.Int, error)

StakedForProposal is a free data retrieval call binding the contract method 0xbe6c03ff.

Solidity: function stakedForProposal(_user address, _instrumentAddress address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingCallerSession) StakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) StakersForPoll(_pollID [32]byte) ([]common.Address, error)

StakersForPoll is a free data retrieval call binding the contract method 0xef5850c7.

Solidity: function stakersForPoll(_pollID bytes32) constant returns(address[])

func (*TruSetCommitRevealVotingCallerSession) VOTEAGAINST

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) VOTEAGAINST() (*big.Int, error)

VOTEAGAINST is a free data retrieval call binding the contract method 0x5dfd3278.

Solidity: function VOTE_AGAINST() constant returns(uint256)

func (*TruSetCommitRevealVotingCallerSession) VOTEFOR

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingCallerSession) VOTEFOR() (*big.Int, error)

VOTEFOR is a free data retrieval call binding the contract method 0xd1a75e0d.

Solidity: function VOTE_FOR() constant returns(uint256)

type TruSetCommitRevealVotingCommitPeriodHalted

type TruSetCommitRevealVotingCommitPeriodHalted struct {
	PollID    [32]byte
	HaltedBy  common.Address
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingCommitPeriodHalted represents a CommitPeriodHalted event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingCommitPeriodHaltedIterator

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

TruSetCommitRevealVotingCommitPeriodHaltedIterator is returned from FilterCommitPeriodHalted and is used to iterate over the raw logs and unpacked data for CommitPeriodHalted events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingCommitPeriodHaltedIterator) Close

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

func (*TruSetCommitRevealVotingCommitPeriodHaltedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingCommitPeriodHaltedIterator) 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 TruSetCommitRevealVotingFilterer

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

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

func NewTruSetCommitRevealVotingFilterer

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

NewTruSetCommitRevealVotingFilterer creates a new log filterer instance of TruSetCommitRevealVoting, bound to a specific deployed contract.

func (*TruSetCommitRevealVotingFilterer) FilterCommitPeriodHalted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterCommitPeriodHalted(opts *bind.FilterOpts, pollID [][32]byte) (*TruSetCommitRevealVotingCommitPeriodHaltedIterator, error)

FilterCommitPeriodHalted is a free log retrieval operation binding the contract event 0xc0f2b57ffd01c411e41e4bb32ef5241f1d5eb3fce828f5ee820a323ac2e45193.

Solidity: e CommitPeriodHalted(pollID indexed bytes32, haltedBy address, timestamp uint256)

func (*TruSetCommitRevealVotingFilterer) FilterPollCreated

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterPollCreated(opts *bind.FilterOpts, pollID [][32]byte) (*TruSetCommitRevealVotingPollCreatedIterator, error)

FilterPollCreated is a free log retrieval operation binding the contract event 0xb63cd7eae18e725657860cbbf12d757b6e516f142db7fd8cabd61fb5d93c24e9.

Solidity: e PollCreated(pollID indexed bytes32, creator address, commitDuration uint256, revealDuration uint256)

func (*TruSetCommitRevealVotingFilterer) FilterRevealPeriodHalted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterRevealPeriodHalted(opts *bind.FilterOpts, pollID [][32]byte) (*TruSetCommitRevealVotingRevealPeriodHaltedIterator, error)

FilterRevealPeriodHalted is a free log retrieval operation binding the contract event 0x2e3281c9d2188bb5bad0561e502ceb5224998ab2b0a49af0a123cc044c0a1b6a.

Solidity: e RevealPeriodHalted(pollID indexed bytes32, haltedBy address, timestamp uint256)

func (*TruSetCommitRevealVotingFilterer) FilterRevealPeriodStarted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterRevealPeriodStarted(opts *bind.FilterOpts, pollID [][32]byte, instrumentAddress []common.Address) (*TruSetCommitRevealVotingRevealPeriodStartedIterator, error)

FilterRevealPeriodStarted is a free log retrieval operation binding the contract event 0x832d41f3f913a16d24e73edf9c864aa51505ab5fe003cc125fe8877947a1aa9f.

Solidity: e RevealPeriodStarted(pollID indexed bytes32, instrumentAddress indexed address, dataIdentifier bytes32, payloadHash bytes32)

func (*TruSetCommitRevealVotingFilterer) FilterStakeBurnt

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterStakeBurnt(opts *bind.FilterOpts, user []common.Address, pollID [][32]byte) (*TruSetCommitRevealVotingStakeBurntIterator, error)

FilterStakeBurnt is a free log retrieval operation binding the contract event 0x98b9e629a6a2ee5cbb9ad28c2318b43f55958d4a24a403b03267b512224bea59.

Solidity: e StakeBurnt(user indexed address, amount uint256, pollID indexed bytes32, action uint8, reason string)

func (*TruSetCommitRevealVotingFilterer) FilterStakeReturned

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterStakeReturned(opts *bind.FilterOpts, user []common.Address, pollID [][32]byte) (*TruSetCommitRevealVotingStakeReturnedIterator, error)

FilterStakeReturned is a free log retrieval operation binding the contract event 0x3db9f61f4d7052d2a81173036ad7e9e276cd26a7079a316526549ca581f4b36d.

Solidity: e StakeReturned(user indexed address, amount uint256, pollID indexed bytes32, action uint8)

func (*TruSetCommitRevealVotingFilterer) FilterStaked

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address, pollID [][32]byte) (*TruSetCommitRevealVotingStakedIterator, error)

FilterStaked is a free log retrieval operation binding the contract event 0xffcaaa0c4ca25b5827074c948fc6acd7c25db62ecf524f4469ff88dfbd8346a6.

Solidity: e Staked(user indexed address, amount uint256, pollID indexed bytes32, action uint8)

func (*TruSetCommitRevealVotingFilterer) FilterVoteCommitted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterVoteCommitted(opts *bind.FilterOpts, pollID [][32]byte, voter []common.Address, secretHash [][32]byte) (*TruSetCommitRevealVotingVoteCommittedIterator, error)

FilterVoteCommitted is a free log retrieval operation binding the contract event 0xd9fd84967d0d7a1e30c4712a111e11619db9beec04a8c48f362b2c1724b6c58a.

Solidity: e VoteCommitted(pollID indexed bytes32, voter indexed address, secretHash indexed bytes32)

func (*TruSetCommitRevealVotingFilterer) FilterVoteRevealed

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) FilterVoteRevealed(opts *bind.FilterOpts, pollID [][32]byte, secretHash [][32]byte, choice []*big.Int) (*TruSetCommitRevealVotingVoteRevealedIterator, error)

FilterVoteRevealed is a free log retrieval operation binding the contract event 0x7656c59ff19441c541f32aebe589dbafba2d1a195276586916a69f3affc6c559.

Solidity: e VoteRevealed(pollID indexed bytes32, secretHash indexed bytes32, choice indexed uint256, voter address, revealer address, votesFor uint256, votesAgainst uint256, votesCommittedButNotRevealed uint256)

func (*TruSetCommitRevealVotingFilterer) WatchCommitPeriodHalted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchCommitPeriodHalted(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingCommitPeriodHalted, pollID [][32]byte) (event.Subscription, error)

WatchCommitPeriodHalted is a free log subscription operation binding the contract event 0xc0f2b57ffd01c411e41e4bb32ef5241f1d5eb3fce828f5ee820a323ac2e45193.

Solidity: e CommitPeriodHalted(pollID indexed bytes32, haltedBy address, timestamp uint256)

func (*TruSetCommitRevealVotingFilterer) WatchPollCreated

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchPollCreated(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingPollCreated, pollID [][32]byte) (event.Subscription, error)

WatchPollCreated is a free log subscription operation binding the contract event 0xb63cd7eae18e725657860cbbf12d757b6e516f142db7fd8cabd61fb5d93c24e9.

Solidity: e PollCreated(pollID indexed bytes32, creator address, commitDuration uint256, revealDuration uint256)

func (*TruSetCommitRevealVotingFilterer) WatchRevealPeriodHalted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchRevealPeriodHalted(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingRevealPeriodHalted, pollID [][32]byte) (event.Subscription, error)

WatchRevealPeriodHalted is a free log subscription operation binding the contract event 0x2e3281c9d2188bb5bad0561e502ceb5224998ab2b0a49af0a123cc044c0a1b6a.

Solidity: e RevealPeriodHalted(pollID indexed bytes32, haltedBy address, timestamp uint256)

func (*TruSetCommitRevealVotingFilterer) WatchRevealPeriodStarted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchRevealPeriodStarted(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingRevealPeriodStarted, pollID [][32]byte, instrumentAddress []common.Address) (event.Subscription, error)

WatchRevealPeriodStarted is a free log subscription operation binding the contract event 0x832d41f3f913a16d24e73edf9c864aa51505ab5fe003cc125fe8877947a1aa9f.

Solidity: e RevealPeriodStarted(pollID indexed bytes32, instrumentAddress indexed address, dataIdentifier bytes32, payloadHash bytes32)

func (*TruSetCommitRevealVotingFilterer) WatchStakeBurnt

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchStakeBurnt(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingStakeBurnt, user []common.Address, pollID [][32]byte) (event.Subscription, error)

WatchStakeBurnt is a free log subscription operation binding the contract event 0x98b9e629a6a2ee5cbb9ad28c2318b43f55958d4a24a403b03267b512224bea59.

Solidity: e StakeBurnt(user indexed address, amount uint256, pollID indexed bytes32, action uint8, reason string)

func (*TruSetCommitRevealVotingFilterer) WatchStakeReturned

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchStakeReturned(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingStakeReturned, user []common.Address, pollID [][32]byte) (event.Subscription, error)

WatchStakeReturned is a free log subscription operation binding the contract event 0x3db9f61f4d7052d2a81173036ad7e9e276cd26a7079a316526549ca581f4b36d.

Solidity: e StakeReturned(user indexed address, amount uint256, pollID indexed bytes32, action uint8)

func (*TruSetCommitRevealVotingFilterer) WatchStaked

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingStaked, user []common.Address, pollID [][32]byte) (event.Subscription, error)

WatchStaked is a free log subscription operation binding the contract event 0xffcaaa0c4ca25b5827074c948fc6acd7c25db62ecf524f4469ff88dfbd8346a6.

Solidity: e Staked(user indexed address, amount uint256, pollID indexed bytes32, action uint8)

func (*TruSetCommitRevealVotingFilterer) WatchVoteCommitted

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchVoteCommitted(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingVoteCommitted, pollID [][32]byte, voter []common.Address, secretHash [][32]byte) (event.Subscription, error)

WatchVoteCommitted is a free log subscription operation binding the contract event 0xd9fd84967d0d7a1e30c4712a111e11619db9beec04a8c48f362b2c1724b6c58a.

Solidity: e VoteCommitted(pollID indexed bytes32, voter indexed address, secretHash indexed bytes32)

func (*TruSetCommitRevealVotingFilterer) WatchVoteRevealed

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingFilterer) WatchVoteRevealed(opts *bind.WatchOpts, sink chan<- *TruSetCommitRevealVotingVoteRevealed, pollID [][32]byte, secretHash [][32]byte, choice []*big.Int) (event.Subscription, error)

WatchVoteRevealed is a free log subscription operation binding the contract event 0x7656c59ff19441c541f32aebe589dbafba2d1a195276586916a69f3affc6c559.

Solidity: e VoteRevealed(pollID indexed bytes32, secretHash indexed bytes32, choice indexed uint256, voter address, revealer address, votesFor uint256, votesAgainst uint256, votesCommittedButNotRevealed uint256)

type TruSetCommitRevealVotingPollCreated

type TruSetCommitRevealVotingPollCreated struct {
	PollID         [32]byte
	Creator        common.Address
	CommitDuration *big.Int
	RevealDuration *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingPollCreated represents a PollCreated event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingPollCreatedIterator

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

TruSetCommitRevealVotingPollCreatedIterator is returned from FilterPollCreated and is used to iterate over the raw logs and unpacked data for PollCreated events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingPollCreatedIterator) Close

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

func (*TruSetCommitRevealVotingPollCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingPollCreatedIterator) 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 TruSetCommitRevealVotingRaw

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

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

func (*TruSetCommitRevealVotingRaw) Call

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingRaw) 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 (*TruSetCommitRevealVotingRaw) Transact

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

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

func (*TruSetCommitRevealVotingRaw) Transfer

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingRaw) 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 TruSetCommitRevealVotingRevealPeriodHalted

type TruSetCommitRevealVotingRevealPeriodHalted struct {
	PollID    [32]byte
	HaltedBy  common.Address
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingRevealPeriodHalted represents a RevealPeriodHalted event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingRevealPeriodHaltedIterator

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

TruSetCommitRevealVotingRevealPeriodHaltedIterator is returned from FilterRevealPeriodHalted and is used to iterate over the raw logs and unpacked data for RevealPeriodHalted events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingRevealPeriodHaltedIterator) Close

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

func (*TruSetCommitRevealVotingRevealPeriodHaltedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingRevealPeriodHaltedIterator) 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 TruSetCommitRevealVotingRevealPeriodStarted

type TruSetCommitRevealVotingRevealPeriodStarted struct {
	PollID            [32]byte
	InstrumentAddress common.Address
	DataIdentifier    [32]byte
	PayloadHash       [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingRevealPeriodStarted represents a RevealPeriodStarted event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingRevealPeriodStartedIterator

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

TruSetCommitRevealVotingRevealPeriodStartedIterator is returned from FilterRevealPeriodStarted and is used to iterate over the raw logs and unpacked data for RevealPeriodStarted events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingRevealPeriodStartedIterator) Close

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

func (*TruSetCommitRevealVotingRevealPeriodStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingRevealPeriodStartedIterator) 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 TruSetCommitRevealVotingSession

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

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

func (*TruSetCommitRevealVotingSession) BurnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) BurnPollStake(_user common.Address, _pollID [32]byte) (*types.Transaction, error)

BurnPollStake is a paid mutator transaction binding the contract method 0x52f804a8.

Solidity: function burnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingSession) CommitDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) CommitDeadline(_pollID [32]byte) (*big.Int, error)

CommitDeadline is a free data retrieval call binding the contract method 0x01c2b6f5.

Solidity: function commitDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingSession) CommitPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) CommitPeriodActive(_pollID [32]byte) (bool, error)

CommitPeriodActive is a free data retrieval call binding the contract method 0x16879344.

Solidity: function commitPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingSession) CommitPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) CommitPeriodStartedTimestamp(_pollID [32]byte) (*big.Int, error)

CommitPeriodStartedTimestamp is a free data retrieval call binding the contract method 0x62aff4d5.

Solidity: function commitPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingSession) CommitVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) CommitVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _secretHash [32]byte) (*types.Transaction, error)

CommitVote is a paid mutator transaction binding the contract method 0x2ab24e3b.

Solidity: function commitVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _secretHash bytes32) returns()

func (*TruSetCommitRevealVotingSession) CommitVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) CommitVotes(_instruments []common.Address, _dataIdentifiers [][32]byte, _payloadHashes [][32]byte, _secretHashes [][32]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0x2726f061.

Solidity: function commitVotes(_instruments address[], _dataIdentifiers bytes32[], _payloadHashes bytes32[], _secretHashes bytes32[]) returns()

func (*TruSetCommitRevealVotingSession) DidCommit

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) DidCommit(_pollID [32]byte, _voter common.Address) (bool, error)

DidCommit is a free data retrieval call binding the contract method 0x9fce2d80.

Solidity: function didCommit(_pollID bytes32, _voter address) constant returns(committed bool)

func (*TruSetCommitRevealVotingSession) DidReveal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) DidReveal(_pollID [32]byte, _voter common.Address) (bool, error)

DidReveal is a free data retrieval call binding the contract method 0x1593796e.

Solidity: function didReveal(_pollID bytes32, _voter address) constant returns(revealed bool)

func (*TruSetCommitRevealVotingSession) GetCommitHash

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) GetCommitHash(_pollID [32]byte, _voter common.Address) ([32]byte, error)

GetCommitHash is a free data retrieval call binding the contract method 0xc3d4d75a.

Solidity: function getCommitHash(_pollID bytes32, _voter address) constant returns(commitHash bytes32)

func (*TruSetCommitRevealVotingSession) GetPollIdentifier

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) GetPollIdentifier(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) ([32]byte, error)

GetPollIdentifier is a free data retrieval call binding the contract method 0x4309b4b2.

Solidity: function getPollIdentifier(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(bytes32)

func (*TruSetCommitRevealVotingSession) GetVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) GetVote(_pollID [32]byte, _voter common.Address) (struct {
	HasVoted    bool
	HasRevealed bool
	Vote        *big.Int
}, error)

GetVote is a free data retrieval call binding the contract method 0xb3e7c2bd.

Solidity: function getVote(_pollID bytes32, _voter address) constant returns(hasVoted bool, hasRevealed bool, vote uint256)

func (*TruSetCommitRevealVotingSession) GetVoteCounts

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) GetVoteCounts(_pollID [32]byte) (struct {
	NumForVotes                     *big.Int
	NumAgainstVotes                 *big.Int
	NumCommittedButNotRevealedVotes *big.Int
}, error)

GetVoteCounts is a free data retrieval call binding the contract method 0x782fb5d4.

Solidity: function getVoteCounts(_pollID bytes32) constant returns(numForVotes uint256, numAgainstVotes uint256, numCommittedButNotRevealedVotes uint256)

func (*TruSetCommitRevealVotingSession) GetVoters

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) GetVoters(_pollID [32]byte) ([]common.Address, error)

GetVoters is a free data retrieval call binding the contract method 0x8b4a781c.

Solidity: function getVoters(_pollID bytes32) constant returns(voters address[])

func (*TruSetCommitRevealVotingSession) HaltCommitPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) HaltCommitPeriod(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (*types.Transaction, error)

HaltCommitPeriod is a paid mutator transaction binding the contract method 0xf3c957f2.

Solidity: function haltCommitPeriod(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) returns()

func (*TruSetCommitRevealVotingSession) HaltRevealPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) HaltRevealPeriod(_pollID [32]byte) (*types.Transaction, error)

HaltRevealPeriod is a paid mutator transaction binding the contract method 0xb8847e9d.

Solidity: function haltRevealPeriod(_pollID bytes32) returns()

func (*TruSetCommitRevealVotingSession) IsExpired

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) IsExpired(_terminationDate *big.Int) (bool, error)

IsExpired is a free data retrieval call binding the contract method 0xd9548e53.

Solidity: function isExpired(_terminationDate uint256) constant returns(expired bool)

func (*TruSetCommitRevealVotingSession) MAXCOMMITDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) MAXCOMMITDURATIONINSECONDS() (*big.Int, error)

MAXCOMMITDURATIONINSECONDS is a free data retrieval call binding the contract method 0xc34d2732.

Solidity: function MAX_COMMIT_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingSession) MAXREVEALDURATIONINSECONDS

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) MAXREVEALDURATIONINSECONDS() (*big.Int, error)

MAXREVEALDURATIONINSECONDS is a free data retrieval call binding the contract method 0x9234c1fd.

Solidity: function MAX_REVEAL_DURATION_IN_SECONDS() constant returns(uint256)

func (*TruSetCommitRevealVotingSession) NumStakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) NumStakersForPoll(_pollID [32]byte) (*big.Int, error)

NumStakersForPoll is a free data retrieval call binding the contract method 0x5eface14.

Solidity: function numStakersForPoll(_pollID bytes32) constant returns(uint256)

func (*TruSetCommitRevealVotingSession) PollEnded

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) PollEnded(_pollID [32]byte) (bool, error)

PollEnded is a free data retrieval call binding the contract method 0xfd2cee78.

Solidity: function pollEnded(_pollID bytes32) constant returns(ended bool)

func (*TruSetCommitRevealVotingSession) PollExists

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) PollExists(_pollID [32]byte) (bool, error)

PollExists is a free data retrieval call binding the contract method 0x0dcf298b.

Solidity: function pollExists(_pollID bytes32) constant returns(exists bool)

func (*TruSetCommitRevealVotingSession) PollMap

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) PollMap(arg0 [32]byte) (struct {
	CommitPeriodStartedAt        *big.Int
	CommitDuration               *big.Int
	CommitsHaltedAt              *big.Int
	RevealDuration               *big.Int
	RevealsHaltedAt              *big.Int
	VotesFor                     *big.Int
	VotesAgainst                 *big.Int
	VotesCommittedButNotRevealed *big.Int
}, error)

PollMap is a free data retrieval call binding the contract method 0xd2b77264.

Solidity: function pollMap( bytes32) constant returns(commitPeriodStartedAt uint256, commitDuration uint256, commitsHaltedAt uint256, revealDuration uint256, revealsHaltedAt uint256, votesFor uint256, votesAgainst uint256, votesCommittedButNotRevealed uint256)

func (*TruSetCommitRevealVotingSession) Rbac

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) Rbac() (common.Address, error)

Rbac is a free data retrieval call binding the contract method 0xa8ecc7f1.

Solidity: function rbac() constant returns(address)

func (*TruSetCommitRevealVotingSession) ReturnAllPollStakes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) ReturnAllPollStakes(_pollID [32]byte) (*types.Transaction, error)

ReturnAllPollStakes is a paid mutator transaction binding the contract method 0x4f88cc3c.

Solidity: function returnAllPollStakes(_pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingSession) ReturnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) ReturnPollStake(_user common.Address, _pollID [32]byte) (*types.Transaction, error)

ReturnPollStake is a paid mutator transaction binding the contract method 0x973882e9.

Solidity: function returnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingSession) RevealDeadline

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealDeadline(_pollID [32]byte) (*big.Int, error)

RevealDeadline is a free data retrieval call binding the contract method 0xcb27bdc1.

Solidity: function revealDeadline(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingSession) RevealMyVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealMyVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealMyVote is a paid mutator transaction binding the contract method 0x04c64e25.

Solidity: function revealMyVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingSession) RevealPeriodActive

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealPeriodActive(_pollID [32]byte) (bool, error)

RevealPeriodActive is a free data retrieval call binding the contract method 0x28fbf28a.

Solidity: function revealPeriodActive(_pollID bytes32) constant returns(active bool)

func (*TruSetCommitRevealVotingSession) RevealPeriodStartedTimestamp

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealPeriodStartedTimestamp(_pollID [32]byte) (*big.Int, error)

RevealPeriodStartedTimestamp is a free data retrieval call binding the contract method 0xe2a5c39f.

Solidity: function revealPeriodStartedTimestamp(_pollID bytes32) constant returns(timestamp uint256)

func (*TruSetCommitRevealVotingSession) RevealVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voter common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealVote is a paid mutator transaction binding the contract method 0x6a27c41d.

Solidity: function revealVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voter address, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingSession) RevealVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) RevealVotes(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voters []common.Address, _voteOptions []*big.Int, _salts []*big.Int) (*types.Transaction, error)

RevealVotes is a paid mutator transaction binding the contract method 0xf9191b18.

Solidity: function revealVotes(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voters address[], _voteOptions uint256[], _salts uint256[]) returns()

func (*TruSetCommitRevealVotingSession) StakedForPollID

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) StakedForPollID(_user common.Address, _pollID [32]byte) (uint8, *big.Int, error)

StakedForPollID is a free data retrieval call binding the contract method 0x3c2dba23.

Solidity: function stakedForPollID(_user address, _pollID bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingSession) StakedForProposal

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) StakedForProposal(_user common.Address, _instrumentAddress common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (uint8, *big.Int, error)

StakedForProposal is a free data retrieval call binding the contract method 0xbe6c03ff.

Solidity: function stakedForProposal(_user address, _instrumentAddress address, _dataIdentifier bytes32, _payloadHash bytes32) constant returns(uint8, uint256)

func (*TruSetCommitRevealVotingSession) StakersForPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) StakersForPoll(_pollID [32]byte) ([]common.Address, error)

StakersForPoll is a free data retrieval call binding the contract method 0xef5850c7.

Solidity: function stakersForPoll(_pollID bytes32) constant returns(address[])

func (*TruSetCommitRevealVotingSession) StartPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) StartPoll(_proposer common.Address, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _commitDuration *big.Int, _revealDuration *big.Int) (*types.Transaction, error)

StartPoll is a paid mutator transaction binding the contract method 0xbb2ced25.

Solidity: function startPoll(_proposer address, _instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _commitDuration uint256, _revealDuration uint256) returns(_pollID bytes32)

func (*TruSetCommitRevealVotingSession) VOTEAGAINST

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) VOTEAGAINST() (*big.Int, error)

VOTEAGAINST is a free data retrieval call binding the contract method 0x5dfd3278.

Solidity: function VOTE_AGAINST() constant returns(uint256)

func (*TruSetCommitRevealVotingSession) VOTEFOR

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingSession) VOTEFOR() (*big.Int, error)

VOTEFOR is a free data retrieval call binding the contract method 0xd1a75e0d.

Solidity: function VOTE_FOR() constant returns(uint256)

type TruSetCommitRevealVotingStakeBurnt

type TruSetCommitRevealVotingStakeBurnt struct {
	User   common.Address
	Amount *big.Int
	PollID [32]byte
	Action uint8
	Reason string
	Raw    types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingStakeBurnt represents a StakeBurnt event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingStakeBurntIterator

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

TruSetCommitRevealVotingStakeBurntIterator is returned from FilterStakeBurnt and is used to iterate over the raw logs and unpacked data for StakeBurnt events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingStakeBurntIterator) Close

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

func (*TruSetCommitRevealVotingStakeBurntIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingStakeBurntIterator) 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 TruSetCommitRevealVotingStakeReturned

type TruSetCommitRevealVotingStakeReturned struct {
	User   common.Address
	Amount *big.Int
	PollID [32]byte
	Action uint8
	Raw    types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingStakeReturned represents a StakeReturned event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingStakeReturnedIterator

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

TruSetCommitRevealVotingStakeReturnedIterator is returned from FilterStakeReturned and is used to iterate over the raw logs and unpacked data for StakeReturned events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingStakeReturnedIterator) Close

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

func (*TruSetCommitRevealVotingStakeReturnedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingStakeReturnedIterator) 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 TruSetCommitRevealVotingStaked

type TruSetCommitRevealVotingStaked struct {
	User   common.Address
	Amount *big.Int
	PollID [32]byte
	Action uint8
	Raw    types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingStaked represents a Staked event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingStakedIterator

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

TruSetCommitRevealVotingStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingStakedIterator) Close

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

func (*TruSetCommitRevealVotingStakedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingStakedIterator) 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 TruSetCommitRevealVotingTransactor

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

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

func NewTruSetCommitRevealVotingTransactor

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

NewTruSetCommitRevealVotingTransactor creates a new write-only instance of TruSetCommitRevealVoting, bound to a specific deployed contract.

func (*TruSetCommitRevealVotingTransactor) BurnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) BurnPollStake(opts *bind.TransactOpts, _user common.Address, _pollID [32]byte) (*types.Transaction, error)

BurnPollStake is a paid mutator transaction binding the contract method 0x52f804a8.

Solidity: function burnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactor) CommitVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) CommitVote(opts *bind.TransactOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _secretHash [32]byte) (*types.Transaction, error)

CommitVote is a paid mutator transaction binding the contract method 0x2ab24e3b.

Solidity: function commitVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _secretHash bytes32) returns()

func (*TruSetCommitRevealVotingTransactor) CommitVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) CommitVotes(opts *bind.TransactOpts, _instruments []common.Address, _dataIdentifiers [][32]byte, _payloadHashes [][32]byte, _secretHashes [][32]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0x2726f061.

Solidity: function commitVotes(_instruments address[], _dataIdentifiers bytes32[], _payloadHashes bytes32[], _secretHashes bytes32[]) returns()

func (*TruSetCommitRevealVotingTransactor) HaltCommitPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) HaltCommitPeriod(opts *bind.TransactOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (*types.Transaction, error)

HaltCommitPeriod is a paid mutator transaction binding the contract method 0xf3c957f2.

Solidity: function haltCommitPeriod(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) returns()

func (*TruSetCommitRevealVotingTransactor) HaltRevealPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) HaltRevealPeriod(opts *bind.TransactOpts, _pollID [32]byte) (*types.Transaction, error)

HaltRevealPeriod is a paid mutator transaction binding the contract method 0xb8847e9d.

Solidity: function haltRevealPeriod(_pollID bytes32) returns()

func (*TruSetCommitRevealVotingTransactor) ReturnAllPollStakes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) ReturnAllPollStakes(opts *bind.TransactOpts, _pollID [32]byte) (*types.Transaction, error)

ReturnAllPollStakes is a paid mutator transaction binding the contract method 0x4f88cc3c.

Solidity: function returnAllPollStakes(_pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactor) ReturnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) ReturnPollStake(opts *bind.TransactOpts, _user common.Address, _pollID [32]byte) (*types.Transaction, error)

ReturnPollStake is a paid mutator transaction binding the contract method 0x973882e9.

Solidity: function returnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactor) RevealMyVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) RevealMyVote(opts *bind.TransactOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealMyVote is a paid mutator transaction binding the contract method 0x04c64e25.

Solidity: function revealMyVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingTransactor) RevealVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) RevealVote(opts *bind.TransactOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voter common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealVote is a paid mutator transaction binding the contract method 0x6a27c41d.

Solidity: function revealVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voter address, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingTransactor) RevealVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) RevealVotes(opts *bind.TransactOpts, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voters []common.Address, _voteOptions []*big.Int, _salts []*big.Int) (*types.Transaction, error)

RevealVotes is a paid mutator transaction binding the contract method 0xf9191b18.

Solidity: function revealVotes(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voters address[], _voteOptions uint256[], _salts uint256[]) returns()

func (*TruSetCommitRevealVotingTransactor) StartPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactor) StartPoll(opts *bind.TransactOpts, _proposer common.Address, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _commitDuration *big.Int, _revealDuration *big.Int) (*types.Transaction, error)

StartPoll is a paid mutator transaction binding the contract method 0xbb2ced25.

Solidity: function startPoll(_proposer address, _instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _commitDuration uint256, _revealDuration uint256) returns(_pollID bytes32)

type TruSetCommitRevealVotingTransactorRaw

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

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

func (*TruSetCommitRevealVotingTransactorRaw) Transact

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

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

func (*TruSetCommitRevealVotingTransactorRaw) Transfer

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorRaw) 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 TruSetCommitRevealVotingTransactorSession

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

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

func (*TruSetCommitRevealVotingTransactorSession) BurnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) BurnPollStake(_user common.Address, _pollID [32]byte) (*types.Transaction, error)

BurnPollStake is a paid mutator transaction binding the contract method 0x52f804a8.

Solidity: function burnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactorSession) CommitVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) CommitVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _secretHash [32]byte) (*types.Transaction, error)

CommitVote is a paid mutator transaction binding the contract method 0x2ab24e3b.

Solidity: function commitVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _secretHash bytes32) returns()

func (*TruSetCommitRevealVotingTransactorSession) CommitVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) CommitVotes(_instruments []common.Address, _dataIdentifiers [][32]byte, _payloadHashes [][32]byte, _secretHashes [][32]byte) (*types.Transaction, error)

CommitVotes is a paid mutator transaction binding the contract method 0x2726f061.

Solidity: function commitVotes(_instruments address[], _dataIdentifiers bytes32[], _payloadHashes bytes32[], _secretHashes bytes32[]) returns()

func (*TruSetCommitRevealVotingTransactorSession) HaltCommitPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) HaltCommitPeriod(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte) (*types.Transaction, error)

HaltCommitPeriod is a paid mutator transaction binding the contract method 0xf3c957f2.

Solidity: function haltCommitPeriod(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32) returns()

func (*TruSetCommitRevealVotingTransactorSession) HaltRevealPeriod

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) HaltRevealPeriod(_pollID [32]byte) (*types.Transaction, error)

HaltRevealPeriod is a paid mutator transaction binding the contract method 0xb8847e9d.

Solidity: function haltRevealPeriod(_pollID bytes32) returns()

func (*TruSetCommitRevealVotingTransactorSession) ReturnAllPollStakes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) ReturnAllPollStakes(_pollID [32]byte) (*types.Transaction, error)

ReturnAllPollStakes is a paid mutator transaction binding the contract method 0x4f88cc3c.

Solidity: function returnAllPollStakes(_pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactorSession) ReturnPollStake

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) ReturnPollStake(_user common.Address, _pollID [32]byte) (*types.Transaction, error)

ReturnPollStake is a paid mutator transaction binding the contract method 0x973882e9.

Solidity: function returnPollStake(_user address, _pollID bytes32) returns(bool)

func (*TruSetCommitRevealVotingTransactorSession) RevealMyVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) RevealMyVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealMyVote is a paid mutator transaction binding the contract method 0x04c64e25.

Solidity: function revealMyVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingTransactorSession) RevealVote

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) RevealVote(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voter common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

RevealVote is a paid mutator transaction binding the contract method 0x6a27c41d.

Solidity: function revealVote(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voter address, _voteOption uint256, _salt uint256) returns()

func (*TruSetCommitRevealVotingTransactorSession) RevealVotes

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) RevealVotes(_instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _voters []common.Address, _voteOptions []*big.Int, _salts []*big.Int) (*types.Transaction, error)

RevealVotes is a paid mutator transaction binding the contract method 0xf9191b18.

Solidity: function revealVotes(_instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _voters address[], _voteOptions uint256[], _salts uint256[]) returns()

func (*TruSetCommitRevealVotingTransactorSession) StartPoll

func (_TruSetCommitRevealVoting *TruSetCommitRevealVotingTransactorSession) StartPoll(_proposer common.Address, _instrument common.Address, _dataIdentifier [32]byte, _payloadHash [32]byte, _commitDuration *big.Int, _revealDuration *big.Int) (*types.Transaction, error)

StartPoll is a paid mutator transaction binding the contract method 0xbb2ced25.

Solidity: function startPoll(_proposer address, _instrument address, _dataIdentifier bytes32, _payloadHash bytes32, _commitDuration uint256, _revealDuration uint256) returns(_pollID bytes32)

type TruSetCommitRevealVotingVoteCommitted

type TruSetCommitRevealVotingVoteCommitted struct {
	PollID     [32]byte
	Voter      common.Address
	SecretHash [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingVoteCommitted represents a VoteCommitted event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingVoteCommittedIterator

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

TruSetCommitRevealVotingVoteCommittedIterator is returned from FilterVoteCommitted and is used to iterate over the raw logs and unpacked data for VoteCommitted events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingVoteCommittedIterator) Close

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

func (*TruSetCommitRevealVotingVoteCommittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingVoteCommittedIterator) 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 TruSetCommitRevealVotingVoteRevealed

type TruSetCommitRevealVotingVoteRevealed struct {
	PollID                       [32]byte
	SecretHash                   [32]byte
	Choice                       *big.Int
	Voter                        common.Address
	Revealer                     common.Address
	VotesFor                     *big.Int
	VotesAgainst                 *big.Int
	VotesCommittedButNotRevealed *big.Int
	Raw                          types.Log // Blockchain specific contextual infos
}

TruSetCommitRevealVotingVoteRevealed represents a VoteRevealed event raised by the TruSetCommitRevealVoting contract.

type TruSetCommitRevealVotingVoteRevealedIterator

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

TruSetCommitRevealVotingVoteRevealedIterator is returned from FilterVoteRevealed and is used to iterate over the raw logs and unpacked data for VoteRevealed events raised by the TruSetCommitRevealVoting contract.

func (*TruSetCommitRevealVotingVoteRevealedIterator) Close

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

func (*TruSetCommitRevealVotingVoteRevealedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TruSetCommitRevealVotingVoteRevealedIterator) 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.

Jump to

Keyboard shortcuts

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