ditCoordinator

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 DitCoordinatorABI = "" /* 11172-byte string literal not displayed */

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

View Source
const DitCoordinatorBin = `` /* 23574-byte string literal not displayed */

DitCoordinatorBin 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 DitCoordinator

type DitCoordinator struct {
	DitCoordinatorCaller     // Read-only binding to the contract
	DitCoordinatorTransactor // Write-only binding to the contract
	DitCoordinatorFilterer   // Log filterer for contract events
}

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

func DeployDitCoordinator

func DeployDitCoordinator(auth *bind.TransactOpts, backend bind.ContractBackend, _KNWTokenAddress common.Address, _KNWVotingAddress common.Address, _lastDitCoordinator common.Address) (common.Address, *types.Transaction, *DitCoordinator, error)

DeployDitCoordinator deploys a new Ethereum contract, binding an instance of DitCoordinator to it.

func NewDitCoordinator

func NewDitCoordinator(address common.Address, backend bind.ContractBackend) (*DitCoordinator, error)

NewDitCoordinator creates a new instance of DitCoordinator, bound to a specific deployed contract.

type DitCoordinatorCaller

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

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

func NewDitCoordinatorCaller

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

NewDitCoordinatorCaller creates a new read-only instance of DitCoordinator, bound to a specific deployed contract.

func (*DitCoordinatorCaller) BURNINGMETHOD

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) GetCurrentProposalID

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) GetIndividualStake

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) GetKNWVoteIDFromProposalID

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) GetKnowledgeLabels

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) GetVotingMajority

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) IsKYCValidator

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) KNWTokenAddress

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) KNWVotingAddress

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) LastDitCoordinator

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) MAXOPENDURATION

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) MAXVOTEDURATION

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) MINOPENDURATION

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) MINTINGMETHOD

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) MINVOTEDURATION

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) NextDitCoordinator

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) PassedKYC

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) ProposalHasPassed

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) ProposalsOfRepository

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) Repositories

func (_DitCoordinator *DitCoordinatorCaller) 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 (*DitCoordinatorCaller) RepositoryIsInitialized

func (_DitCoordinator *DitCoordinatorCaller) 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)

type DitCoordinatorCallerRaw

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

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

func (*DitCoordinatorCallerRaw) Call

func (_DitCoordinator *DitCoordinatorCallerRaw) 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 DitCoordinatorCallerSession

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

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

func (*DitCoordinatorCallerSession) BURNINGMETHOD

func (_DitCoordinator *DitCoordinatorCallerSession) BURNINGMETHOD() (*big.Int, error)

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitCoordinatorCallerSession) GetCurrentProposalID

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) GetIndividualStake

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) GetKNWVoteIDFromProposalID

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) GetKnowledgeLabels

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) GetVotingMajority

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) IsKYCValidator

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) KNWTokenAddress

func (_DitCoordinator *DitCoordinatorCallerSession) KNWTokenAddress() (common.Address, error)

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitCoordinatorCallerSession) KNWVotingAddress

func (_DitCoordinator *DitCoordinatorCallerSession) KNWVotingAddress() (common.Address, error)

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

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitCoordinatorCallerSession) LastDitCoordinator

func (_DitCoordinator *DitCoordinatorCallerSession) LastDitCoordinator() (common.Address, error)

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

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitCoordinatorCallerSession) MAXOPENDURATION

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) MAXVOTEDURATION

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) MINOPENDURATION

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) MINTINGMETHOD

func (_DitCoordinator *DitCoordinatorCallerSession) MINTINGMETHOD() (*big.Int, error)

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitCoordinatorCallerSession) MINVOTEDURATION

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) NextDitCoordinator

func (_DitCoordinator *DitCoordinatorCallerSession) NextDitCoordinator() (common.Address, error)

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

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitCoordinatorCallerSession) PassedKYC

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) ProposalHasPassed

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) ProposalsOfRepository

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) Repositories

func (_DitCoordinator *DitCoordinatorCallerSession) 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 (*DitCoordinatorCallerSession) RepositoryIsInitialized

func (_DitCoordinator *DitCoordinatorCallerSession) 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)

type DitCoordinatorCommitVote

type DitCoordinatorCommitVote 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
}

DitCoordinatorCommitVote represents a CommitVote event raised by the DitCoordinator contract.

type DitCoordinatorCommitVoteIterator

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

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

func (*DitCoordinatorCommitVoteIterator) Close

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

func (*DitCoordinatorCommitVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorCommitVoteIterator) 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 DitCoordinatorFilterer

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

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

func NewDitCoordinatorFilterer

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

NewDitCoordinatorFilterer creates a new log filterer instance of DitCoordinator, bound to a specific deployed contract.

func (*DitCoordinatorFilterer) FilterCommitVote

func (_DitCoordinator *DitCoordinatorFilterer) FilterCommitVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitCoordinatorCommitVoteIterator, 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 (*DitCoordinatorFilterer) FilterFinalizeProposal

func (_DitCoordinator *DitCoordinatorFilterer) FilterFinalizeProposal(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int) (*DitCoordinatorFinalizeProposalIterator, 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 (*DitCoordinatorFilterer) FilterFinalizeVote

func (_DitCoordinator *DitCoordinatorFilterer) FilterFinalizeVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitCoordinatorFinalizeVoteIterator, 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 (*DitCoordinatorFilterer) FilterInitializeRepository

func (_DitCoordinator *DitCoordinatorFilterer) FilterInitializeRepository(opts *bind.FilterOpts, repository [][32]byte, who []common.Address) (*DitCoordinatorInitializeRepositoryIterator, error)

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

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

func (*DitCoordinatorFilterer) FilterOpenVote

func (_DitCoordinator *DitCoordinatorFilterer) FilterOpenVote(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitCoordinatorOpenVoteIterator, 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 (*DitCoordinatorFilterer) FilterProposeCommit

func (_DitCoordinator *DitCoordinatorFilterer) FilterProposeCommit(opts *bind.FilterOpts, repository [][32]byte, proposal []*big.Int, who []common.Address) (*DitCoordinatorProposeCommitIterator, 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 (*DitCoordinatorFilterer) WatchCommitVote

func (_DitCoordinator *DitCoordinatorFilterer) WatchCommitVote(opts *bind.WatchOpts, sink chan<- *DitCoordinatorCommitVote, 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 (*DitCoordinatorFilterer) WatchFinalizeProposal

func (_DitCoordinator *DitCoordinatorFilterer) WatchFinalizeProposal(opts *bind.WatchOpts, sink chan<- *DitCoordinatorFinalizeProposal, 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 (*DitCoordinatorFilterer) WatchFinalizeVote

func (_DitCoordinator *DitCoordinatorFilterer) WatchFinalizeVote(opts *bind.WatchOpts, sink chan<- *DitCoordinatorFinalizeVote, 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 (*DitCoordinatorFilterer) WatchInitializeRepository

func (_DitCoordinator *DitCoordinatorFilterer) WatchInitializeRepository(opts *bind.WatchOpts, sink chan<- *DitCoordinatorInitializeRepository, 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 (*DitCoordinatorFilterer) WatchOpenVote

func (_DitCoordinator *DitCoordinatorFilterer) WatchOpenVote(opts *bind.WatchOpts, sink chan<- *DitCoordinatorOpenVote, 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 (*DitCoordinatorFilterer) WatchProposeCommit

func (_DitCoordinator *DitCoordinatorFilterer) WatchProposeCommit(opts *bind.WatchOpts, sink chan<- *DitCoordinatorProposeCommit, 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 DitCoordinatorFinalizeProposal

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

DitCoordinatorFinalizeProposal represents a FinalizeProposal event raised by the DitCoordinator contract.

type DitCoordinatorFinalizeProposalIterator

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

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

func (*DitCoordinatorFinalizeProposalIterator) Close

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

func (*DitCoordinatorFinalizeProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorFinalizeProposalIterator) 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 DitCoordinatorFinalizeVote

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

DitCoordinatorFinalizeVote represents a FinalizeVote event raised by the DitCoordinator contract.

type DitCoordinatorFinalizeVoteIterator

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

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

func (*DitCoordinatorFinalizeVoteIterator) Close

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

func (*DitCoordinatorFinalizeVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorFinalizeVoteIterator) 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 DitCoordinatorInitializeRepository

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

DitCoordinatorInitializeRepository represents a InitializeRepository event raised by the DitCoordinator contract.

type DitCoordinatorInitializeRepositoryIterator

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

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

func (*DitCoordinatorInitializeRepositoryIterator) Close

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

func (*DitCoordinatorInitializeRepositoryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorInitializeRepositoryIterator) 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 DitCoordinatorOpenVote

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

DitCoordinatorOpenVote represents a OpenVote event raised by the DitCoordinator contract.

type DitCoordinatorOpenVoteIterator

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

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

func (*DitCoordinatorOpenVoteIterator) Close

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

func (*DitCoordinatorOpenVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorOpenVoteIterator) 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 DitCoordinatorProposeCommit

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

DitCoordinatorProposeCommit represents a ProposeCommit event raised by the DitCoordinator contract.

type DitCoordinatorProposeCommitIterator

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

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

func (*DitCoordinatorProposeCommitIterator) Close

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

func (*DitCoordinatorProposeCommitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitCoordinatorProposeCommitIterator) 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 DitCoordinatorRaw

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

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

func (*DitCoordinatorRaw) Call

func (_DitCoordinator *DitCoordinatorRaw) 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 (*DitCoordinatorRaw) Transact

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

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

func (*DitCoordinatorRaw) Transfer

func (_DitCoordinator *DitCoordinatorRaw) 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 DitCoordinatorSession

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

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

func (*DitCoordinatorSession) AddKYCValidator

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) BURNINGMETHOD

func (_DitCoordinator *DitCoordinatorSession) BURNINGMETHOD() (*big.Int, error)

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitCoordinatorSession) FinalizeVote

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) GetCurrentProposalID

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) GetIndividualStake

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) GetKNWVoteIDFromProposalID

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) GetKnowledgeLabels

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) GetVotingMajority

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) InitRepository

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) IsKYCValidator

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) KNWTokenAddress

func (_DitCoordinator *DitCoordinatorSession) KNWTokenAddress() (common.Address, error)

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitCoordinatorSession) KNWVotingAddress

func (_DitCoordinator *DitCoordinatorSession) KNWVotingAddress() (common.Address, error)

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

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitCoordinatorSession) LastDitCoordinator

func (_DitCoordinator *DitCoordinatorSession) LastDitCoordinator() (common.Address, error)

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

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitCoordinatorSession) MAXOPENDURATION

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) MAXVOTEDURATION

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) MINOPENDURATION

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) MINTINGMETHOD

func (_DitCoordinator *DitCoordinatorSession) MINTINGMETHOD() (*big.Int, error)

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitCoordinatorSession) MINVOTEDURATION

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) MigrateRepository

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) NextDitCoordinator

func (_DitCoordinator *DitCoordinatorSession) NextDitCoordinator() (common.Address, error)

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

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitCoordinatorSession) OpenVoteOnProposal

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) PassKYC

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) PassedKYC

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) ProposalHasPassed

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) ProposalsOfRepository

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) ProposeCommit

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

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

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

func (*DitCoordinatorSession) RemoveKYCValidator

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) ReplaceDitManager

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) Repositories

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) RepositoryIsInitialized

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) RevokeKYC

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) UpgradeContract

func (_DitCoordinator *DitCoordinatorSession) 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 (*DitCoordinatorSession) VoteOnProposal

func (_DitCoordinator *DitCoordinatorSession) 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 DitCoordinatorTransactor

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

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

func NewDitCoordinatorTransactor

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

NewDitCoordinatorTransactor creates a new write-only instance of DitCoordinator, bound to a specific deployed contract.

func (*DitCoordinatorTransactor) AddKYCValidator

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) FinalizeVote

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) InitRepository

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) MigrateRepository

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) OpenVoteOnProposal

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) PassKYC

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) ProposeCommit

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

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

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

func (*DitCoordinatorTransactor) RemoveKYCValidator

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) ReplaceDitManager

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) RevokeKYC

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) UpgradeContract

func (_DitCoordinator *DitCoordinatorTransactor) 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 (*DitCoordinatorTransactor) VoteOnProposal

func (_DitCoordinator *DitCoordinatorTransactor) 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 DitCoordinatorTransactorRaw

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

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

func (*DitCoordinatorTransactorRaw) Transact

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

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

func (*DitCoordinatorTransactorRaw) Transfer

func (_DitCoordinator *DitCoordinatorTransactorRaw) 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 DitCoordinatorTransactorSession

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

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

func (*DitCoordinatorTransactorSession) AddKYCValidator

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) FinalizeVote

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) InitRepository

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) MigrateRepository

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) OpenVoteOnProposal

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) PassKYC

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) ProposeCommit

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

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

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

func (*DitCoordinatorTransactorSession) RemoveKYCValidator

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) ReplaceDitManager

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) RevokeKYC

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) UpgradeContract

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 (*DitCoordinatorTransactorSession) VoteOnProposal

func (_DitCoordinator *DitCoordinatorTransactorSession) 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 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