ditDemoCoordinator

package
v0.0.0-...-4b70303 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DitDemoCoordinatorABI = "" /* 11470-byte string literal not displayed */

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

View Source
const DitDemoCoordinatorBin = `` /* 24456-byte string literal not displayed */

DitDemoCoordinatorBin is the compiled bytecode used for deploying new contracts.

View Source
const ERC20ABI = "" /* 571-byte string literal not displayed */

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

View Source
const ERC20Bin = `0x`

ERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
const KNWVotingContractABI = "" /* 2232-byte string literal not displayed */

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

View Source
const KNWVotingContractBin = `0x`

KNWVotingContractBin is the compiled bytecode used for deploying new contracts.

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

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

View Source
const SafeMathBin = `` /* 824-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 DitDemoCoordinator

type DitDemoCoordinator struct {
	DitDemoCoordinatorCaller     // Read-only binding to the contract
	DitDemoCoordinatorTransactor // Write-only binding to the contract
	DitDemoCoordinatorFilterer   // Log filterer for contract events
}

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

func DeployDitDemoCoordinator

func DeployDitDemoCoordinator(auth *bind.TransactOpts, backend bind.ContractBackend, _KNWTokenAddress common.Address, _KNWVotingAddress common.Address, _lastDitCoordinator common.Address, _xDitTokenAddress common.Address) (common.Address, *types.Transaction, *DitDemoCoordinator, error)

DeployDitDemoCoordinator deploys a new Ethereum contract, binding an instance of DitDemoCoordinator to it.

func NewDitDemoCoordinator

func NewDitDemoCoordinator(address common.Address, backend bind.ContractBackend) (*DitDemoCoordinator, error)

NewDitDemoCoordinator creates a new instance of DitDemoCoordinator, bound to a specific deployed contract.

type DitDemoCoordinatorCaller

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

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

func NewDitDemoCoordinatorCaller

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

NewDitDemoCoordinatorCaller creates a new read-only instance of DitDemoCoordinator, bound to a specific deployed contract.

func (*DitDemoCoordinatorCaller) BURNINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) BURNINGMETHOD(opts *bind.CallOpts) (*big.Int, error)

BURNINGMETHOD is a free data retrieval call binding the contract method 0xc814af1f.

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCaller) GetCurrentProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) GetCurrentProposalID(opts *bind.CallOpts, _repository [32]byte) (*big.Int, error)

GetCurrentProposalID is a free data retrieval call binding the contract method 0x0bdc90e8.

Solidity: function getCurrentProposalID(bytes32 _repository) constant returns(uint256 currentProposalID)

func (*DitDemoCoordinatorCaller) GetIndividualStake

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) GetIndividualStake(opts *bind.CallOpts, _repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetIndividualStake is a free data retrieval call binding the contract method 0x552edc9d.

Solidity: function getIndividualStake(bytes32 _repository, uint256 _proposalID) constant returns(uint256 individualStake)

func (*DitDemoCoordinatorCaller) GetKNWVoteIDFromProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) GetKNWVoteIDFromProposalID(opts *bind.CallOpts, _repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetKNWVoteIDFromProposalID is a free data retrieval call binding the contract method 0x06ee4596.

Solidity: function getKNWVoteIDFromProposalID(bytes32 _repository, uint256 _proposalID) constant returns(uint256 KNWVoteID)

func (*DitDemoCoordinatorCaller) GetKnowledgeLabels

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) GetKnowledgeLabels(opts *bind.CallOpts, _repository [32]byte, _knowledgeLabelID *big.Int) (string, error)

GetKnowledgeLabels is a free data retrieval call binding the contract method 0x95332229.

Solidity: function getKnowledgeLabels(bytes32 _repository, uint256 _knowledgeLabelID) constant returns(string knowledgeLabel)

func (*DitDemoCoordinatorCaller) GetVotingMajority

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) GetVotingMajority(opts *bind.CallOpts, _repository [32]byte) (*big.Int, error)

GetVotingMajority is a free data retrieval call binding the contract method 0x3fcc148d.

Solidity: function getVotingMajority(bytes32 _repository) constant returns(uint256 votingMajority)

func (*DitDemoCoordinatorCaller) IsKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) IsKYCValidator(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsKYCValidator is a free data retrieval call binding the contract method 0x1341f25c.

Solidity: function isKYCValidator(address ) constant returns(bool)

func (*DitDemoCoordinatorCaller) KNWTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) KNWTokenAddress(opts *bind.CallOpts) (common.Address, error)

KNWTokenAddress is a free data retrieval call binding the contract method 0x985dbfc5.

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorCaller) KNWVotingAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) KNWVotingAddress(opts *bind.CallOpts) (common.Address, error)

KNWVotingAddress is a free data retrieval call binding the contract method 0xeb49fe94.

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorCaller) LastDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) LastDitCoordinator(opts *bind.CallOpts) (common.Address, error)

LastDitCoordinator is a free data retrieval call binding the contract method 0xd7ad0eae.

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCaller) MAXOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) MAXOPENDURATION(opts *bind.CallOpts) (*big.Int, error)

MAXOPENDURATION is a free data retrieval call binding the contract method 0x466577cd.

Solidity: function MAX_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MAXVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) MAXVOTEDURATION(opts *bind.CallOpts) (*big.Int, error)

MAXVOTEDURATION is a free data retrieval call binding the contract method 0x1ecbb9de.

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MINOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) MINOPENDURATION(opts *bind.CallOpts) (*big.Int, error)

MINOPENDURATION is a free data retrieval call binding the contract method 0x6fcfeb3b.

Solidity: function MIN_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MINTINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) MINTINGMETHOD(opts *bind.CallOpts) (*big.Int, error)

MINTINGMETHOD is a free data retrieval call binding the contract method 0xeffb21e1.

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MINVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) MINVOTEDURATION(opts *bind.CallOpts) (*big.Int, error)

MINVOTEDURATION is a free data retrieval call binding the contract method 0x3eedfc10.

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) NextDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) NextDitCoordinator(opts *bind.CallOpts) (common.Address, error)

NextDitCoordinator is a free data retrieval call binding the contract method 0x99821d9b.

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCaller) PassedKYC

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) PassedKYC(opts *bind.CallOpts, arg0 common.Address) (bool, error)

PassedKYC is a free data retrieval call binding the contract method 0xccd9aa68.

Solidity: function passedKYC(address ) constant returns(bool)

func (*DitDemoCoordinatorCaller) ProposalHasPassed

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) ProposalHasPassed(opts *bind.CallOpts, _repository [32]byte, _proposalID *big.Int) (bool, error)

ProposalHasPassed is a free data retrieval call binding the contract method 0x87c9203d.

Solidity: function proposalHasPassed(bytes32 _repository, uint256 _proposalID) constant returns(bool hasPassed)

func (*DitDemoCoordinatorCaller) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) ProposalsOfRepository(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (struct {
	KNWVoteID        *big.Int
	KnowledgeLabel   string
	Proposer         common.Address
	IsFinalized      bool
	ProposalAccepted bool
	IndividualStake  *big.Int
	TotalStake       *big.Int
}, error)

ProposalsOfRepository is a free data retrieval call binding the contract method 0x3e029f63.

Solidity: function proposalsOfRepository(bytes32 , uint256 ) constant returns(uint256 KNWVoteID, string knowledgeLabel, address proposer, bool isFinalized, bool proposalAccepted, uint256 individualStake, uint256 totalStake)

func (*DitDemoCoordinatorCaller) Repositories

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) Repositories(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Name              string
	CurrentProposalID *big.Int
	VotingMajority    *big.Int
}, error)

Repositories is a free data retrieval call binding the contract method 0x1f51fd71.

Solidity: function repositories(bytes32 ) constant returns(string name, uint256 currentProposalID, uint256 votingMajority)

func (*DitDemoCoordinatorCaller) RepositoryIsInitialized

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) RepositoryIsInitialized(opts *bind.CallOpts, _repository [32]byte) (bool, error)

RepositoryIsInitialized is a free data retrieval call binding the contract method 0xea6c6d0f.

Solidity: function repositoryIsInitialized(bytes32 _repository) constant returns(bool)

func (*DitDemoCoordinatorCaller) XDitTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) XDitTokenAddress(opts *bind.CallOpts) (common.Address, error)

XDitTokenAddress is a free data retrieval call binding the contract method 0xce83732e.

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorCallerRaw

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

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

func (*DitDemoCoordinatorCallerRaw) Call

func (_DitDemoCoordinator *DitDemoCoordinatorCallerRaw) 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 DitDemoCoordinatorCallerSession

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

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

func (*DitDemoCoordinatorCallerSession) BURNINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) BURNINGMETHOD() (*big.Int, error)

BURNINGMETHOD is a free data retrieval call binding the contract method 0xc814af1f.

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) GetCurrentProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) GetCurrentProposalID(_repository [32]byte) (*big.Int, error)

GetCurrentProposalID is a free data retrieval call binding the contract method 0x0bdc90e8.

Solidity: function getCurrentProposalID(bytes32 _repository) constant returns(uint256 currentProposalID)

func (*DitDemoCoordinatorCallerSession) GetIndividualStake

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) GetIndividualStake(_repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetIndividualStake is a free data retrieval call binding the contract method 0x552edc9d.

Solidity: function getIndividualStake(bytes32 _repository, uint256 _proposalID) constant returns(uint256 individualStake)

func (*DitDemoCoordinatorCallerSession) GetKNWVoteIDFromProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) GetKNWVoteIDFromProposalID(_repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetKNWVoteIDFromProposalID is a free data retrieval call binding the contract method 0x06ee4596.

Solidity: function getKNWVoteIDFromProposalID(bytes32 _repository, uint256 _proposalID) constant returns(uint256 KNWVoteID)

func (*DitDemoCoordinatorCallerSession) GetKnowledgeLabels

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) GetKnowledgeLabels(_repository [32]byte, _knowledgeLabelID *big.Int) (string, error)

GetKnowledgeLabels is a free data retrieval call binding the contract method 0x95332229.

Solidity: function getKnowledgeLabels(bytes32 _repository, uint256 _knowledgeLabelID) constant returns(string knowledgeLabel)

func (*DitDemoCoordinatorCallerSession) GetVotingMajority

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) GetVotingMajority(_repository [32]byte) (*big.Int, error)

GetVotingMajority is a free data retrieval call binding the contract method 0x3fcc148d.

Solidity: function getVotingMajority(bytes32 _repository) constant returns(uint256 votingMajority)

func (*DitDemoCoordinatorCallerSession) IsKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) IsKYCValidator(arg0 common.Address) (bool, error)

IsKYCValidator is a free data retrieval call binding the contract method 0x1341f25c.

Solidity: function isKYCValidator(address ) constant returns(bool)

func (*DitDemoCoordinatorCallerSession) KNWTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) KNWTokenAddress() (common.Address, error)

KNWTokenAddress is a free data retrieval call binding the contract method 0x985dbfc5.

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorCallerSession) KNWVotingAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) KNWVotingAddress() (common.Address, error)

KNWVotingAddress is a free data retrieval call binding the contract method 0xeb49fe94.

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorCallerSession) LastDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) LastDitCoordinator() (common.Address, error)

LastDitCoordinator is a free data retrieval call binding the contract method 0xd7ad0eae.

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCallerSession) MAXOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) MAXOPENDURATION() (*big.Int, error)

MAXOPENDURATION is a free data retrieval call binding the contract method 0x466577cd.

Solidity: function MAX_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MAXVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) MAXVOTEDURATION() (*big.Int, error)

MAXVOTEDURATION is a free data retrieval call binding the contract method 0x1ecbb9de.

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MINOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) MINOPENDURATION() (*big.Int, error)

MINOPENDURATION is a free data retrieval call binding the contract method 0x6fcfeb3b.

Solidity: function MIN_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MINTINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) MINTINGMETHOD() (*big.Int, error)

MINTINGMETHOD is a free data retrieval call binding the contract method 0xeffb21e1.

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MINVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) MINVOTEDURATION() (*big.Int, error)

MINVOTEDURATION is a free data retrieval call binding the contract method 0x3eedfc10.

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) NextDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) NextDitCoordinator() (common.Address, error)

NextDitCoordinator is a free data retrieval call binding the contract method 0x99821d9b.

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCallerSession) PassedKYC

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) PassedKYC(arg0 common.Address) (bool, error)

PassedKYC is a free data retrieval call binding the contract method 0xccd9aa68.

Solidity: function passedKYC(address ) constant returns(bool)

func (*DitDemoCoordinatorCallerSession) ProposalHasPassed

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) ProposalHasPassed(_repository [32]byte, _proposalID *big.Int) (bool, error)

ProposalHasPassed is a free data retrieval call binding the contract method 0x87c9203d.

Solidity: function proposalHasPassed(bytes32 _repository, uint256 _proposalID) constant returns(bool hasPassed)

func (*DitDemoCoordinatorCallerSession) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) ProposalsOfRepository(arg0 [32]byte, arg1 *big.Int) (struct {
	KNWVoteID        *big.Int
	KnowledgeLabel   string
	Proposer         common.Address
	IsFinalized      bool
	ProposalAccepted bool
	IndividualStake  *big.Int
	TotalStake       *big.Int
}, error)

ProposalsOfRepository is a free data retrieval call binding the contract method 0x3e029f63.

Solidity: function proposalsOfRepository(bytes32 , uint256 ) constant returns(uint256 KNWVoteID, string knowledgeLabel, address proposer, bool isFinalized, bool proposalAccepted, uint256 individualStake, uint256 totalStake)

func (*DitDemoCoordinatorCallerSession) Repositories

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) Repositories(arg0 [32]byte) (struct {
	Name              string
	CurrentProposalID *big.Int
	VotingMajority    *big.Int
}, error)

Repositories is a free data retrieval call binding the contract method 0x1f51fd71.

Solidity: function repositories(bytes32 ) constant returns(string name, uint256 currentProposalID, uint256 votingMajority)

func (*DitDemoCoordinatorCallerSession) RepositoryIsInitialized

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) RepositoryIsInitialized(_repository [32]byte) (bool, error)

RepositoryIsInitialized is a free data retrieval call binding the contract method 0xea6c6d0f.

Solidity: function repositoryIsInitialized(bytes32 _repository) constant returns(bool)

func (*DitDemoCoordinatorCallerSession) XDitTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) XDitTokenAddress() (common.Address, error)

XDitTokenAddress is a free data retrieval call binding the contract method 0xce83732e.

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorCommitVote

type DitDemoCoordinatorCommitVote struct {
	Repository    [32]byte
	Proposal      *big.Int
	Who           common.Address
	Label         string
	Stake         *big.Int
	NumberOfKNW   *big.Int
	NumberOfVotes *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorCommitVote represents a CommitVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorCommitVoteIterator

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

DitDemoCoordinatorCommitVoteIterator is returned from FilterCommitVote and is used to iterate over the raw logs and unpacked data for CommitVote events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorCommitVoteIterator) Close

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

func (*DitDemoCoordinatorCommitVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorCommitVoteIterator) 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 DitDemoCoordinatorFilterer

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

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

func NewDitDemoCoordinatorFilterer

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

NewDitDemoCoordinatorFilterer creates a new log filterer instance of DitDemoCoordinator, bound to a specific deployed contract.

func (*DitDemoCoordinatorFilterer) FilterCommitVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterCommitVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitDemoCoordinatorCommitVoteIterator, error)

FilterCommitVote is a free log retrieval operation binding the contract event 0x7ee8ecf4d9d20fb6454a55c418451d97bec229903525d8517fcd32db68a479e4.

Solidity: event CommitVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, uint256 stake, uint256 numberOfKNW, uint256 numberOfVotes)

func (*DitDemoCoordinatorFilterer) FilterFinalizeProposal

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterFinalizeProposal(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int) (*DitDemoCoordinatorFinalizeProposalIterator, error)

FilterFinalizeProposal is a free log retrieval operation binding the contract event 0x56c2d720d2b0f46900eca91b5412e4bb9ef934c72b86308c576d07975fac8353.

Solidity: event FinalizeProposal(bytes32 indexed repository, uint256 indexed proposal, string label, bool accepted)

func (*DitDemoCoordinatorFilterer) FilterFinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterFinalizeVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitDemoCoordinatorFinalizeVoteIterator, error)

FilterFinalizeVote is a free log retrieval operation binding the contract event 0xa4a57ebc87f48fa9e8fc4d0812bf408bff87f2326e00c7d209a0d42185b79ec5.

Solidity: event FinalizeVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, bool votedRight, uint256 numberOfKNW)

func (*DitDemoCoordinatorFilterer) FilterInitializeRepository

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterInitializeRepository(opts *bind.FilterOpts, repository [][32]byte, who []common.Address) (*DitDemoCoordinatorInitializeRepositoryIterator, error)

FilterInitializeRepository is a free log retrieval operation binding the contract event 0xe81437d5f3c837aab5b46f923704dc104204a127033e0dd0e24e7ad8d2b3c7be.

Solidity: event InitializeRepository(bytes32 indexed repository, address indexed who)

func (*DitDemoCoordinatorFilterer) FilterOpenVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterOpenVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitDemoCoordinatorOpenVoteIterator, error)

FilterOpenVote is a free log retrieval operation binding the contract event 0x864c0d6987266fd72e7e37f1fbc98b6a3794b7187dae454c67a2a626628a72ab.

Solidity: event OpenVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, bool accept, uint256 numberOfVotes)

func (*DitDemoCoordinatorFilterer) FilterProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) FilterProposeCommit(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitDemoCoordinatorProposeCommitIterator, error)

FilterProposeCommit is a free log retrieval operation binding the contract event 0x2ba422bdea9179f02f8c9dd0d6285478f7b4c3fa11a812eeb4d3b1b04cc57c35.

Solidity: event ProposeCommit(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, uint256 numberOfKNW)

func (*DitDemoCoordinatorFilterer) WatchCommitVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchCommitVote(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorCommitVote, repository [][32]byte, proposal []*big.Int, who []common.Address) (event.Subscription, error)

WatchCommitVote is a free log subscription operation binding the contract event 0x7ee8ecf4d9d20fb6454a55c418451d97bec229903525d8517fcd32db68a479e4.

Solidity: event CommitVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, uint256 stake, uint256 numberOfKNW, uint256 numberOfVotes)

func (*DitDemoCoordinatorFilterer) WatchFinalizeProposal

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchFinalizeProposal(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorFinalizeProposal, repository [][32]byte, proposal []*big.Int) (event.Subscription, error)

WatchFinalizeProposal is a free log subscription operation binding the contract event 0x56c2d720d2b0f46900eca91b5412e4bb9ef934c72b86308c576d07975fac8353.

Solidity: event FinalizeProposal(bytes32 indexed repository, uint256 indexed proposal, string label, bool accepted)

func (*DitDemoCoordinatorFilterer) WatchFinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchFinalizeVote(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorFinalizeVote, repository [][32]byte, proposal []*big.Int, who []common.Address) (event.Subscription, error)

WatchFinalizeVote is a free log subscription operation binding the contract event 0xa4a57ebc87f48fa9e8fc4d0812bf408bff87f2326e00c7d209a0d42185b79ec5.

Solidity: event FinalizeVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, bool votedRight, uint256 numberOfKNW)

func (*DitDemoCoordinatorFilterer) WatchInitializeRepository

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchInitializeRepository(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorInitializeRepository, repository [][32]byte, who []common.Address) (event.Subscription, error)

WatchInitializeRepository is a free log subscription operation binding the contract event 0xe81437d5f3c837aab5b46f923704dc104204a127033e0dd0e24e7ad8d2b3c7be.

Solidity: event InitializeRepository(bytes32 indexed repository, address indexed who)

func (*DitDemoCoordinatorFilterer) WatchOpenVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchOpenVote(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorOpenVote, repository [][32]byte, proposal []*big.Int, who []common.Address) (event.Subscription, error)

WatchOpenVote is a free log subscription operation binding the contract event 0x864c0d6987266fd72e7e37f1fbc98b6a3794b7187dae454c67a2a626628a72ab.

Solidity: event OpenVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, bool accept, uint256 numberOfVotes)

func (*DitDemoCoordinatorFilterer) WatchProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) WatchProposeCommit(opts *bind.WatchOpts, sink chan<- *DitDemoCoordinatorProposeCommit, repository [][32]byte, proposal []*big.Int, who []common.Address) (event.Subscription, error)

WatchProposeCommit is a free log subscription operation binding the contract event 0x2ba422bdea9179f02f8c9dd0d6285478f7b4c3fa11a812eeb4d3b1b04cc57c35.

Solidity: event ProposeCommit(bytes32 indexed repository, uint256 indexed proposal, address indexed who, string label, uint256 numberOfKNW)

type DitDemoCoordinatorFinalizeProposal

type DitDemoCoordinatorFinalizeProposal struct {
	Repository [32]byte
	Proposal   *big.Int
	Label      string
	Accepted   bool
	Raw        types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorFinalizeProposal represents a FinalizeProposal event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorFinalizeProposalIterator

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

DitDemoCoordinatorFinalizeProposalIterator is returned from FilterFinalizeProposal and is used to iterate over the raw logs and unpacked data for FinalizeProposal events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorFinalizeProposalIterator) Close

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

func (*DitDemoCoordinatorFinalizeProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorFinalizeProposalIterator) 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 DitDemoCoordinatorFinalizeVote

type DitDemoCoordinatorFinalizeVote struct {
	Repository  [32]byte
	Proposal    *big.Int
	Who         common.Address
	Label       string
	VotedRight  bool
	NumberOfKNW *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorFinalizeVote represents a FinalizeVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorFinalizeVoteIterator

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

DitDemoCoordinatorFinalizeVoteIterator is returned from FilterFinalizeVote and is used to iterate over the raw logs and unpacked data for FinalizeVote events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorFinalizeVoteIterator) Close

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

func (*DitDemoCoordinatorFinalizeVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorFinalizeVoteIterator) 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 DitDemoCoordinatorInitializeRepository

type DitDemoCoordinatorInitializeRepository struct {
	Repository [32]byte
	Who        common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorInitializeRepository represents a InitializeRepository event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorInitializeRepositoryIterator

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

DitDemoCoordinatorInitializeRepositoryIterator is returned from FilterInitializeRepository and is used to iterate over the raw logs and unpacked data for InitializeRepository events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorInitializeRepositoryIterator) Close

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

func (*DitDemoCoordinatorInitializeRepositoryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorInitializeRepositoryIterator) 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 DitDemoCoordinatorOpenVote

type DitDemoCoordinatorOpenVote struct {
	Repository    [32]byte
	Proposal      *big.Int
	Who           common.Address
	Label         string
	Accept        bool
	NumberOfVotes *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorOpenVote represents a OpenVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorOpenVoteIterator

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

DitDemoCoordinatorOpenVoteIterator is returned from FilterOpenVote and is used to iterate over the raw logs and unpacked data for OpenVote events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorOpenVoteIterator) Close

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

func (*DitDemoCoordinatorOpenVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorOpenVoteIterator) 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 DitDemoCoordinatorProposeCommit

type DitDemoCoordinatorProposeCommit struct {
	Repository  [32]byte
	Proposal    *big.Int
	Who         common.Address
	Label       string
	NumberOfKNW *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

DitDemoCoordinatorProposeCommit represents a ProposeCommit event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorProposeCommitIterator

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

DitDemoCoordinatorProposeCommitIterator is returned from FilterProposeCommit and is used to iterate over the raw logs and unpacked data for ProposeCommit events raised by the DitDemoCoordinator contract.

func (*DitDemoCoordinatorProposeCommitIterator) Close

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

func (*DitDemoCoordinatorProposeCommitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorProposeCommitIterator) 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 DitDemoCoordinatorRaw

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

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

func (*DitDemoCoordinatorRaw) Call

func (_DitDemoCoordinator *DitDemoCoordinatorRaw) 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 (*DitDemoCoordinatorRaw) Transact

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

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

func (*DitDemoCoordinatorRaw) Transfer

func (_DitDemoCoordinator *DitDemoCoordinatorRaw) 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 DitDemoCoordinatorSession

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

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

func (*DitDemoCoordinatorSession) AddKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorSession) AddKYCValidator(_address common.Address) (*types.Transaction, error)

AddKYCValidator is a paid mutator transaction binding the contract method 0xd0c397ef.

Solidity: function addKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorSession) BURNINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorSession) BURNINGMETHOD() (*big.Int, error)

BURNINGMETHOD is a free data retrieval call binding the contract method 0xc814af1f.

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorSession) FinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorSession) FinalizeVote(_repository [32]byte, _proposalID *big.Int) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x2e71d0fb.

Solidity: function finalizeVote(bytes32 _repository, uint256 _proposalID) returns(bool)

func (*DitDemoCoordinatorSession) GetCurrentProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorSession) GetCurrentProposalID(_repository [32]byte) (*big.Int, error)

GetCurrentProposalID is a free data retrieval call binding the contract method 0x0bdc90e8.

Solidity: function getCurrentProposalID(bytes32 _repository) constant returns(uint256 currentProposalID)

func (*DitDemoCoordinatorSession) GetIndividualStake

func (_DitDemoCoordinator *DitDemoCoordinatorSession) GetIndividualStake(_repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetIndividualStake is a free data retrieval call binding the contract method 0x552edc9d.

Solidity: function getIndividualStake(bytes32 _repository, uint256 _proposalID) constant returns(uint256 individualStake)

func (*DitDemoCoordinatorSession) GetKNWVoteIDFromProposalID

func (_DitDemoCoordinator *DitDemoCoordinatorSession) GetKNWVoteIDFromProposalID(_repository [32]byte, _proposalID *big.Int) (*big.Int, error)

GetKNWVoteIDFromProposalID is a free data retrieval call binding the contract method 0x06ee4596.

Solidity: function getKNWVoteIDFromProposalID(bytes32 _repository, uint256 _proposalID) constant returns(uint256 KNWVoteID)

func (*DitDemoCoordinatorSession) GetKnowledgeLabels

func (_DitDemoCoordinator *DitDemoCoordinatorSession) GetKnowledgeLabels(_repository [32]byte, _knowledgeLabelID *big.Int) (string, error)

GetKnowledgeLabels is a free data retrieval call binding the contract method 0x95332229.

Solidity: function getKnowledgeLabels(bytes32 _repository, uint256 _knowledgeLabelID) constant returns(string knowledgeLabel)

func (*DitDemoCoordinatorSession) GetVotingMajority

func (_DitDemoCoordinator *DitDemoCoordinatorSession) GetVotingMajority(_repository [32]byte) (*big.Int, error)

GetVotingMajority is a free data retrieval call binding the contract method 0x3fcc148d.

Solidity: function getVotingMajority(bytes32 _repository) constant returns(uint256 votingMajority)

func (*DitDemoCoordinatorSession) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorSession) InitRepository(_repository string, _label1 string, _label2 string, _label3 string, _votingMajority *big.Int) (*types.Transaction, error)

InitRepository is a paid mutator transaction binding the contract method 0x5d5809bb.

Solidity: function initRepository(string _repository, string _label1, string _label2, string _label3, uint256 _votingMajority) returns(bool)

func (*DitDemoCoordinatorSession) IsKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorSession) IsKYCValidator(arg0 common.Address) (bool, error)

IsKYCValidator is a free data retrieval call binding the contract method 0x1341f25c.

Solidity: function isKYCValidator(address ) constant returns(bool)

func (*DitDemoCoordinatorSession) KNWTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorSession) KNWTokenAddress() (common.Address, error)

KNWTokenAddress is a free data retrieval call binding the contract method 0x985dbfc5.

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorSession) KNWVotingAddress

func (_DitDemoCoordinator *DitDemoCoordinatorSession) KNWVotingAddress() (common.Address, error)

KNWVotingAddress is a free data retrieval call binding the contract method 0xeb49fe94.

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorSession) LastDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorSession) LastDitCoordinator() (common.Address, error)

LastDitCoordinator is a free data retrieval call binding the contract method 0xd7ad0eae.

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorSession) MAXOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MAXOPENDURATION() (*big.Int, error)

MAXOPENDURATION is a free data retrieval call binding the contract method 0x466577cd.

Solidity: function MAX_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) MAXVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MAXVOTEDURATION() (*big.Int, error)

MAXVOTEDURATION is a free data retrieval call binding the contract method 0x1ecbb9de.

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) MINOPENDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MINOPENDURATION() (*big.Int, error)

MINOPENDURATION is a free data retrieval call binding the contract method 0x6fcfeb3b.

Solidity: function MIN_OPEN_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) MINTINGMETHOD

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MINTINGMETHOD() (*big.Int, error)

MINTINGMETHOD is a free data retrieval call binding the contract method 0xeffb21e1.

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorSession) MINVOTEDURATION

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MINVOTEDURATION() (*big.Int, error)

MINVOTEDURATION is a free data retrieval call binding the contract method 0x3eedfc10.

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) MigrateRepository

func (_DitDemoCoordinator *DitDemoCoordinatorSession) MigrateRepository(_repository string) (*types.Transaction, error)

MigrateRepository is a paid mutator transaction binding the contract method 0xf60055cb.

Solidity: function migrateRepository(string _repository) returns(bool)

func (*DitDemoCoordinatorSession) NextDitCoordinator

func (_DitDemoCoordinator *DitDemoCoordinatorSession) NextDitCoordinator() (common.Address, error)

NextDitCoordinator is a free data retrieval call binding the contract method 0x99821d9b.

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorSession) OpenVoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorSession) OpenVoteOnProposal(_repository [32]byte, _proposalID *big.Int, _voteOption *big.Int, _voteSalt *big.Int) (*types.Transaction, error)

OpenVoteOnProposal is a paid mutator transaction binding the contract method 0x0ee62ec0.

Solidity: function openVoteOnProposal(bytes32 _repository, uint256 _proposalID, uint256 _voteOption, uint256 _voteSalt) returns(bool)

func (*DitDemoCoordinatorSession) PassKYC

func (_DitDemoCoordinator *DitDemoCoordinatorSession) PassKYC(_address common.Address) (*types.Transaction, error)

PassKYC is a paid mutator transaction binding the contract method 0xeb931024.

Solidity: function passKYC(address _address) returns(bool)

func (*DitDemoCoordinatorSession) PassedKYC

func (_DitDemoCoordinator *DitDemoCoordinatorSession) PassedKYC(arg0 common.Address) (bool, error)

PassedKYC is a free data retrieval call binding the contract method 0xccd9aa68.

Solidity: function passedKYC(address ) constant returns(bool)

func (*DitDemoCoordinatorSession) ProposalHasPassed

func (_DitDemoCoordinator *DitDemoCoordinatorSession) ProposalHasPassed(_repository [32]byte, _proposalID *big.Int) (bool, error)

ProposalHasPassed is a free data retrieval call binding the contract method 0x87c9203d.

Solidity: function proposalHasPassed(bytes32 _repository, uint256 _proposalID) constant returns(bool hasPassed)

func (*DitDemoCoordinatorSession) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorSession) ProposalsOfRepository(arg0 [32]byte, arg1 *big.Int) (struct {
	KNWVoteID        *big.Int
	KnowledgeLabel   string
	Proposer         common.Address
	IsFinalized      bool
	ProposalAccepted bool
	IndividualStake  *big.Int
	TotalStake       *big.Int
}, error)

ProposalsOfRepository is a free data retrieval call binding the contract method 0x3e029f63.

Solidity: function proposalsOfRepository(bytes32 , uint256 ) constant returns(uint256 KNWVoteID, string knowledgeLabel, address proposer, bool isFinalized, bool proposalAccepted, uint256 individualStake, uint256 totalStake)

func (*DitDemoCoordinatorSession) ProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorSession) ProposeCommit(_repository [32]byte, _knowledgeLabelIndex *big.Int, _numberOfKNW *big.Int, _voteCommitDuration *big.Int, _voteOpenDuration *big.Int, _amountOfTokens *big.Int) (*types.Transaction, error)

ProposeCommit is a paid mutator transaction binding the contract method 0xcda8d421.

Solidity: function proposeCommit(bytes32 _repository, uint256 _knowledgeLabelIndex, uint256 _numberOfKNW, uint256 _voteCommitDuration, uint256 _voteOpenDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorSession) RemoveKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorSession) RemoveKYCValidator(_address common.Address) (*types.Transaction, error)

RemoveKYCValidator is a paid mutator transaction binding the contract method 0x73b0dddd.

Solidity: function removeKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorSession) ReplaceDitManager

func (_DitDemoCoordinator *DitDemoCoordinatorSession) ReplaceDitManager(_newManager common.Address) (*types.Transaction, error)

ReplaceDitManager is a paid mutator transaction binding the contract method 0x91016157.

Solidity: function replaceDitManager(address _newManager) returns(bool)

func (*DitDemoCoordinatorSession) Repositories

func (_DitDemoCoordinator *DitDemoCoordinatorSession) Repositories(arg0 [32]byte) (struct {
	Name              string
	CurrentProposalID *big.Int
	VotingMajority    *big.Int
}, error)

Repositories is a free data retrieval call binding the contract method 0x1f51fd71.

Solidity: function repositories(bytes32 ) constant returns(string name, uint256 currentProposalID, uint256 votingMajority)

func (*DitDemoCoordinatorSession) RepositoryIsInitialized

func (_DitDemoCoordinator *DitDemoCoordinatorSession) RepositoryIsInitialized(_repository [32]byte) (bool, error)

RepositoryIsInitialized is a free data retrieval call binding the contract method 0xea6c6d0f.

Solidity: function repositoryIsInitialized(bytes32 _repository) constant returns(bool)

func (*DitDemoCoordinatorSession) RevokeKYC

func (_DitDemoCoordinator *DitDemoCoordinatorSession) RevokeKYC(_address common.Address) (*types.Transaction, error)

RevokeKYC is a paid mutator transaction binding the contract method 0x39ba645b.

Solidity: function revokeKYC(address _address) returns(bool)

func (*DitDemoCoordinatorSession) UpgradeContract

func (_DitDemoCoordinator *DitDemoCoordinatorSession) UpgradeContract(_address common.Address) (*types.Transaction, error)

UpgradeContract is a paid mutator transaction binding the contract method 0xeb2c0223.

Solidity: function upgradeContract(address _address) returns(bool)

func (*DitDemoCoordinatorSession) VoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorSession) VoteOnProposal(_repository [32]byte, _proposalID *big.Int, _voteHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

VoteOnProposal is a paid mutator transaction binding the contract method 0xab4b593e.

Solidity: function voteOnProposal(bytes32 _repository, uint256 _proposalID, bytes32 _voteHash, uint256 _numberOfKNW) returns(bool)

func (*DitDemoCoordinatorSession) XDitTokenAddress

func (_DitDemoCoordinator *DitDemoCoordinatorSession) XDitTokenAddress() (common.Address, error)

XDitTokenAddress is a free data retrieval call binding the contract method 0xce83732e.

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorTransactor

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

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

func NewDitDemoCoordinatorTransactor

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

NewDitDemoCoordinatorTransactor creates a new write-only instance of DitDemoCoordinator, bound to a specific deployed contract.

func (*DitDemoCoordinatorTransactor) AddKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) AddKYCValidator(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

AddKYCValidator is a paid mutator transaction binding the contract method 0xd0c397ef.

Solidity: function addKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorTransactor) FinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) FinalizeVote(opts *bind.TransactOpts, _repository [32]byte, _proposalID *big.Int) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x2e71d0fb.

Solidity: function finalizeVote(bytes32 _repository, uint256 _proposalID) returns(bool)

func (*DitDemoCoordinatorTransactor) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) InitRepository(opts *bind.TransactOpts, _repository string, _label1 string, _label2 string, _label3 string, _votingMajority *big.Int) (*types.Transaction, error)

InitRepository is a paid mutator transaction binding the contract method 0x5d5809bb.

Solidity: function initRepository(string _repository, string _label1, string _label2, string _label3, uint256 _votingMajority) returns(bool)

func (*DitDemoCoordinatorTransactor) MigrateRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) MigrateRepository(opts *bind.TransactOpts, _repository string) (*types.Transaction, error)

MigrateRepository is a paid mutator transaction binding the contract method 0xf60055cb.

Solidity: function migrateRepository(string _repository) returns(bool)

func (*DitDemoCoordinatorTransactor) OpenVoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) OpenVoteOnProposal(opts *bind.TransactOpts, _repository [32]byte, _proposalID *big.Int, _voteOption *big.Int, _voteSalt *big.Int) (*types.Transaction, error)

OpenVoteOnProposal is a paid mutator transaction binding the contract method 0x0ee62ec0.

Solidity: function openVoteOnProposal(bytes32 _repository, uint256 _proposalID, uint256 _voteOption, uint256 _voteSalt) returns(bool)

func (*DitDemoCoordinatorTransactor) PassKYC

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) PassKYC(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

PassKYC is a paid mutator transaction binding the contract method 0xeb931024.

Solidity: function passKYC(address _address) returns(bool)

func (*DitDemoCoordinatorTransactor) ProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) ProposeCommit(opts *bind.TransactOpts, _repository [32]byte, _knowledgeLabelIndex *big.Int, _numberOfKNW *big.Int, _voteCommitDuration *big.Int, _voteOpenDuration *big.Int, _amountOfTokens *big.Int) (*types.Transaction, error)

ProposeCommit is a paid mutator transaction binding the contract method 0xcda8d421.

Solidity: function proposeCommit(bytes32 _repository, uint256 _knowledgeLabelIndex, uint256 _numberOfKNW, uint256 _voteCommitDuration, uint256 _voteOpenDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorTransactor) RemoveKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) RemoveKYCValidator(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

RemoveKYCValidator is a paid mutator transaction binding the contract method 0x73b0dddd.

Solidity: function removeKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorTransactor) ReplaceDitManager

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) ReplaceDitManager(opts *bind.TransactOpts, _newManager common.Address) (*types.Transaction, error)

ReplaceDitManager is a paid mutator transaction binding the contract method 0x91016157.

Solidity: function replaceDitManager(address _newManager) returns(bool)

func (*DitDemoCoordinatorTransactor) RevokeKYC

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) RevokeKYC(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

RevokeKYC is a paid mutator transaction binding the contract method 0x39ba645b.

Solidity: function revokeKYC(address _address) returns(bool)

func (*DitDemoCoordinatorTransactor) UpgradeContract

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) UpgradeContract(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)

UpgradeContract is a paid mutator transaction binding the contract method 0xeb2c0223.

Solidity: function upgradeContract(address _address) returns(bool)

func (*DitDemoCoordinatorTransactor) VoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) VoteOnProposal(opts *bind.TransactOpts, _repository [32]byte, _proposalID *big.Int, _voteHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

VoteOnProposal is a paid mutator transaction binding the contract method 0xab4b593e.

Solidity: function voteOnProposal(bytes32 _repository, uint256 _proposalID, bytes32 _voteHash, uint256 _numberOfKNW) returns(bool)

type DitDemoCoordinatorTransactorRaw

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

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

func (*DitDemoCoordinatorTransactorRaw) Transact

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

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

func (*DitDemoCoordinatorTransactorRaw) Transfer

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorRaw) 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 DitDemoCoordinatorTransactorSession

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

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

func (*DitDemoCoordinatorTransactorSession) AddKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) AddKYCValidator(_address common.Address) (*types.Transaction, error)

AddKYCValidator is a paid mutator transaction binding the contract method 0xd0c397ef.

Solidity: function addKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorTransactorSession) FinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) FinalizeVote(_repository [32]byte, _proposalID *big.Int) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x2e71d0fb.

Solidity: function finalizeVote(bytes32 _repository, uint256 _proposalID) returns(bool)

func (*DitDemoCoordinatorTransactorSession) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) InitRepository(_repository string, _label1 string, _label2 string, _label3 string, _votingMajority *big.Int) (*types.Transaction, error)

InitRepository is a paid mutator transaction binding the contract method 0x5d5809bb.

Solidity: function initRepository(string _repository, string _label1, string _label2, string _label3, uint256 _votingMajority) returns(bool)

func (*DitDemoCoordinatorTransactorSession) MigrateRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) MigrateRepository(_repository string) (*types.Transaction, error)

MigrateRepository is a paid mutator transaction binding the contract method 0xf60055cb.

Solidity: function migrateRepository(string _repository) returns(bool)

func (*DitDemoCoordinatorTransactorSession) OpenVoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) OpenVoteOnProposal(_repository [32]byte, _proposalID *big.Int, _voteOption *big.Int, _voteSalt *big.Int) (*types.Transaction, error)

OpenVoteOnProposal is a paid mutator transaction binding the contract method 0x0ee62ec0.

Solidity: function openVoteOnProposal(bytes32 _repository, uint256 _proposalID, uint256 _voteOption, uint256 _voteSalt) returns(bool)

func (*DitDemoCoordinatorTransactorSession) PassKYC

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) PassKYC(_address common.Address) (*types.Transaction, error)

PassKYC is a paid mutator transaction binding the contract method 0xeb931024.

Solidity: function passKYC(address _address) returns(bool)

func (*DitDemoCoordinatorTransactorSession) ProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) ProposeCommit(_repository [32]byte, _knowledgeLabelIndex *big.Int, _numberOfKNW *big.Int, _voteCommitDuration *big.Int, _voteOpenDuration *big.Int, _amountOfTokens *big.Int) (*types.Transaction, error)

ProposeCommit is a paid mutator transaction binding the contract method 0xcda8d421.

Solidity: function proposeCommit(bytes32 _repository, uint256 _knowledgeLabelIndex, uint256 _numberOfKNW, uint256 _voteCommitDuration, uint256 _voteOpenDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorTransactorSession) RemoveKYCValidator

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) RemoveKYCValidator(_address common.Address) (*types.Transaction, error)

RemoveKYCValidator is a paid mutator transaction binding the contract method 0x73b0dddd.

Solidity: function removeKYCValidator(address _address) returns(bool)

func (*DitDemoCoordinatorTransactorSession) ReplaceDitManager

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) ReplaceDitManager(_newManager common.Address) (*types.Transaction, error)

ReplaceDitManager is a paid mutator transaction binding the contract method 0x91016157.

Solidity: function replaceDitManager(address _newManager) returns(bool)

func (*DitDemoCoordinatorTransactorSession) RevokeKYC

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) RevokeKYC(_address common.Address) (*types.Transaction, error)

RevokeKYC is a paid mutator transaction binding the contract method 0x39ba645b.

Solidity: function revokeKYC(address _address) returns(bool)

func (*DitDemoCoordinatorTransactorSession) UpgradeContract

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) UpgradeContract(_address common.Address) (*types.Transaction, error)

UpgradeContract is a paid mutator transaction binding the contract method 0xeb2c0223.

Solidity: function upgradeContract(address _address) returns(bool)

func (*DitDemoCoordinatorTransactorSession) VoteOnProposal

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) VoteOnProposal(_repository [32]byte, _proposalID *big.Int, _voteHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

VoteOnProposal is a paid mutator transaction binding the contract method 0xab4b593e.

Solidity: function voteOnProposal(bytes32 _repository, uint256 _proposalID, bytes32 _voteHash, uint256 _numberOfKNW) returns(bool)

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func DeployERC20

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

DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Caller

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

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

func NewERC20Caller

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

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

type ERC20Filterer

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

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

func NewERC20Filterer

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

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Session

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

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

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20Transactor

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

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

func NewERC20Transactor

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

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address _to, uint256 _value) returns(bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address _from, address _to, uint256 _value) returns(bool)

type KNWVotingContract

type KNWVotingContract struct {
	KNWVotingContractCaller     // Read-only binding to the contract
	KNWVotingContractTransactor // Write-only binding to the contract
	KNWVotingContractFilterer   // Log filterer for contract events
}

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

func DeployKNWVotingContract

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

DeployKNWVotingContract deploys a new Ethereum contract, binding an instance of KNWVotingContract to it.

func NewKNWVotingContract

func NewKNWVotingContract(address common.Address, backend bind.ContractBackend) (*KNWVotingContract, error)

NewKNWVotingContract creates a new instance of KNWVotingContract, bound to a specific deployed contract.

type KNWVotingContractCaller

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

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

func NewKNWVotingContractCaller

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

NewKNWVotingContractCaller creates a new read-only instance of KNWVotingContract, bound to a specific deployed contract.

type KNWVotingContractCallerRaw

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

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

func (*KNWVotingContractCallerRaw) Call

func (_KNWVotingContract *KNWVotingContractCallerRaw) 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 KNWVotingContractCallerSession

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

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

type KNWVotingContractFilterer

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

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

func NewKNWVotingContractFilterer

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

NewKNWVotingContractFilterer creates a new log filterer instance of KNWVotingContract, bound to a specific deployed contract.

type KNWVotingContractRaw

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

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

func (*KNWVotingContractRaw) Call

func (_KNWVotingContract *KNWVotingContractRaw) 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 (*KNWVotingContractRaw) Transact

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

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

func (*KNWVotingContractRaw) Transfer

func (_KNWVotingContract *KNWVotingContractRaw) 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 KNWVotingContractSession

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

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

func (*KNWVotingContractSession) AddNewRepository

func (_KNWVotingContract *KNWVotingContractSession) AddNewRepository(_newRepository [32]byte, _majority *big.Int) (*types.Transaction, error)

AddNewRepository is a paid mutator transaction binding the contract method 0x828c1653.

Solidity: function addNewRepository(bytes32 _newRepository, uint256 _majority) returns(bool success)

func (*KNWVotingContractSession) CommitVote

func (_KNWVotingContract *KNWVotingContractSession) CommitVote(_voteID *big.Int, _address common.Address, _secretHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function commitVote(uint256 _voteID, address _address, bytes32 _secretHash, uint256 _numberOfKNW) returns(uint256 amountOfVotes)

func (*KNWVotingContractSession) EndVote

func (_KNWVotingContract *KNWVotingContractSession) EndVote(_voteID *big.Int) (*types.Transaction, error)

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

Solidity: function endVote(uint256 _voteID) returns(bool votePassed)

func (*KNWVotingContractSession) FinalizeVote

func (_KNWVotingContract *KNWVotingContractSession) FinalizeVote(_voteID *big.Int, _voteOption *big.Int, _address common.Address) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x36bf4c91.

Solidity: function finalizeVote(uint256 _voteID, uint256 _voteOption, address _address) returns(uint256 reward, bool winningSide, uint256 amountOfKNW)

func (*KNWVotingContractSession) OpenVote

func (_KNWVotingContract *KNWVotingContractSession) OpenVote(_voteID *big.Int, _address common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

OpenVote is a paid mutator transaction binding the contract method 0xcdd6ceb9.

Solidity: function openVote(uint256 _voteID, address _address, uint256 _voteOption, uint256 _salt) returns(bool success)

func (*KNWVotingContractSession) StartVote

func (_KNWVotingContract *KNWVotingContractSession) StartVote(_repository [32]byte, _address common.Address, _knowledgeLabel string, _commitDuration *big.Int, _revealDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

StartVote is a paid mutator transaction binding the contract method 0x6766b4a4.

Solidity: function startVote(bytes32 _repository, address _address, string _knowledgeLabel, uint256 _commitDuration, uint256 _revealDuration, uint256 _proposersStake, uint256 _numberOfKNW) returns(uint256 voteID)

type KNWVotingContractTransactor

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

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

func NewKNWVotingContractTransactor

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

NewKNWVotingContractTransactor creates a new write-only instance of KNWVotingContract, bound to a specific deployed contract.

func (*KNWVotingContractTransactor) AddNewRepository

func (_KNWVotingContract *KNWVotingContractTransactor) AddNewRepository(opts *bind.TransactOpts, _newRepository [32]byte, _majority *big.Int) (*types.Transaction, error)

AddNewRepository is a paid mutator transaction binding the contract method 0x828c1653.

Solidity: function addNewRepository(bytes32 _newRepository, uint256 _majority) returns(bool success)

func (*KNWVotingContractTransactor) CommitVote

func (_KNWVotingContract *KNWVotingContractTransactor) CommitVote(opts *bind.TransactOpts, _voteID *big.Int, _address common.Address, _secretHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function commitVote(uint256 _voteID, address _address, bytes32 _secretHash, uint256 _numberOfKNW) returns(uint256 amountOfVotes)

func (*KNWVotingContractTransactor) EndVote

func (_KNWVotingContract *KNWVotingContractTransactor) EndVote(opts *bind.TransactOpts, _voteID *big.Int) (*types.Transaction, error)

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

Solidity: function endVote(uint256 _voteID) returns(bool votePassed)

func (*KNWVotingContractTransactor) FinalizeVote

func (_KNWVotingContract *KNWVotingContractTransactor) FinalizeVote(opts *bind.TransactOpts, _voteID *big.Int, _voteOption *big.Int, _address common.Address) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x36bf4c91.

Solidity: function finalizeVote(uint256 _voteID, uint256 _voteOption, address _address) returns(uint256 reward, bool winningSide, uint256 amountOfKNW)

func (*KNWVotingContractTransactor) OpenVote

func (_KNWVotingContract *KNWVotingContractTransactor) OpenVote(opts *bind.TransactOpts, _voteID *big.Int, _address common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

OpenVote is a paid mutator transaction binding the contract method 0xcdd6ceb9.

Solidity: function openVote(uint256 _voteID, address _address, uint256 _voteOption, uint256 _salt) returns(bool success)

func (*KNWVotingContractTransactor) StartVote

func (_KNWVotingContract *KNWVotingContractTransactor) StartVote(opts *bind.TransactOpts, _repository [32]byte, _address common.Address, _knowledgeLabel string, _commitDuration *big.Int, _revealDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

StartVote is a paid mutator transaction binding the contract method 0x6766b4a4.

Solidity: function startVote(bytes32 _repository, address _address, string _knowledgeLabel, uint256 _commitDuration, uint256 _revealDuration, uint256 _proposersStake, uint256 _numberOfKNW) returns(uint256 voteID)

type KNWVotingContractTransactorRaw

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

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

func (*KNWVotingContractTransactorRaw) Transact

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

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

func (*KNWVotingContractTransactorRaw) Transfer

func (_KNWVotingContract *KNWVotingContractTransactorRaw) 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 KNWVotingContractTransactorSession

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

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

func (*KNWVotingContractTransactorSession) AddNewRepository

func (_KNWVotingContract *KNWVotingContractTransactorSession) AddNewRepository(_newRepository [32]byte, _majority *big.Int) (*types.Transaction, error)

AddNewRepository is a paid mutator transaction binding the contract method 0x828c1653.

Solidity: function addNewRepository(bytes32 _newRepository, uint256 _majority) returns(bool success)

func (*KNWVotingContractTransactorSession) CommitVote

func (_KNWVotingContract *KNWVotingContractTransactorSession) CommitVote(_voteID *big.Int, _address common.Address, _secretHash [32]byte, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function commitVote(uint256 _voteID, address _address, bytes32 _secretHash, uint256 _numberOfKNW) returns(uint256 amountOfVotes)

func (*KNWVotingContractTransactorSession) EndVote

func (_KNWVotingContract *KNWVotingContractTransactorSession) EndVote(_voteID *big.Int) (*types.Transaction, error)

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

Solidity: function endVote(uint256 _voteID) returns(bool votePassed)

func (*KNWVotingContractTransactorSession) FinalizeVote

func (_KNWVotingContract *KNWVotingContractTransactorSession) FinalizeVote(_voteID *big.Int, _voteOption *big.Int, _address common.Address) (*types.Transaction, error)

FinalizeVote is a paid mutator transaction binding the contract method 0x36bf4c91.

Solidity: function finalizeVote(uint256 _voteID, uint256 _voteOption, address _address) returns(uint256 reward, bool winningSide, uint256 amountOfKNW)

func (*KNWVotingContractTransactorSession) OpenVote

func (_KNWVotingContract *KNWVotingContractTransactorSession) OpenVote(_voteID *big.Int, _address common.Address, _voteOption *big.Int, _salt *big.Int) (*types.Transaction, error)

OpenVote is a paid mutator transaction binding the contract method 0xcdd6ceb9.

Solidity: function openVote(uint256 _voteID, address _address, uint256 _voteOption, uint256 _salt) returns(bool success)

func (*KNWVotingContractTransactorSession) StartVote

func (_KNWVotingContract *KNWVotingContractTransactorSession) StartVote(_repository [32]byte, _address common.Address, _knowledgeLabel string, _commitDuration *big.Int, _revealDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

StartVote is a paid mutator transaction binding the contract method 0x6766b4a4.

Solidity: function startVote(bytes32 _repository, address _address, string _knowledgeLabel, uint256 _commitDuration, uint256 _revealDuration, uint256 _proposersStake, uint256 _numberOfKNW) returns(uint256 voteID)

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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) Sqrt

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

Sqrt is a free data retrieval call binding the contract method 0x677342ce.

Solidity: function sqrt(uint256 a) 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) Sqrt

func (_SafeMath *SafeMathCallerSession) Sqrt(a *big.Int) (*big.Int, error)

Sqrt is a free data retrieval call binding the contract method 0x677342ce.

Solidity: function sqrt(uint256 a) constant returns(uint256)

type SafeMathFilterer

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

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

func NewSafeMathFilterer

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

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

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) Sqrt

func (_SafeMath *SafeMathSession) Sqrt(a *big.Int) (*big.Int, error)

Sqrt is a free data retrieval call binding the contract method 0x677342ce.

Solidity: function sqrt(uint256 a) 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