ditCoordinator

package
v0.3.2-0...-6117ab2 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 = "" /* 11076-byte string literal not displayed */

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

View Source
const KNWTokenContractABI = "" /* 186-byte string literal not displayed */

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

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

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

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

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

Variables

View Source
var DitCoordinatorBin = "" /* 22632-byte string literal not displayed */

DitCoordinatorBin is the compiled bytecode used for deploying new contracts.

View Source
var DitCoordinatorFuncSigs = map[string]string{
	"c814af1f": "BURNING_METHOD()",
	"985dbfc5": "KNWTokenAddress()",
	"eb49fe94": "KNWVotingAddress()",
	"1ecbb9de": "MAX_VOTE_DURATION()",
	"effb21e1": "MINTING_METHOD()",
	"3eedfc10": "MIN_VOTE_DURATION()",
	"d0c397ef": "addKYCValidator(address)",
	"b3070331": "allowedKnowledgeIDs(bytes32,uint256)",
	"2e71d0fb": "finalizeVote(bytes32,uint256)",
	"0bdc90e8": "getCurrentProposalID(bytes32)",
	"552edc9d": "getIndividualStake(bytes32,uint256)",
	"06ee4596": "getKNWVoteIDFromProposalID(bytes32,uint256)",
	"df1bd2cd": "getKnowledgeIDs(bytes32)",
	"3fcc148d": "getVotingMajority(bytes32)",
	"6c63b91e": "initRepository(string,uint256[],uint256)",
	"1341f25c": "isKYCValidator(address)",
	"d7ad0eae": "lastDitCoordinator()",
	"f60055cb": "migrateRepository(string)",
	"99821d9b": "nextDitCoordinator()",
	"0ee62ec0": "openVoteOnProposal(bytes32,uint256,uint256,uint256)",
	"eb931024": "passKYC(address)",
	"ccd9aa68": "passedKYC(address)",
	"87c9203d": "proposalHasPassed(bytes32,uint256)",
	"3e029f63": "proposalsOfRepository(bytes32,uint256)",
	"627b90b3": "proposeCommit(bytes32,string,string,uint256,uint256,uint256)",
	"73b0dddd": "removeKYCValidator(address)",
	"23447982": "replaceManager(address)",
	"1f51fd71": "repositories(bytes32)",
	"ea6c6d0f": "repositoryIsInitialized(bytes32)",
	"39ba645b": "revokeKYC(address)",
	"eb2c0223": "upgradeContract(address)",
	"ab4b593e": "voteOnProposal(bytes32,uint256,bytes32,uint256)",
}

DitCoordinatorFuncSigs maps the 4-byte function signature to its string representation.

View Source
var KNWTokenContractFuncSigs = map[string]string{
	"ffe03eba": "amountOfIDs()",
}

KNWTokenContractFuncSigs maps the 4-byte function signature to its string representation.

View Source
var KNWVotingContractFuncSigs = map[string]string{
	"828c1653": "addNewRepository(bytes32,uint256)",
	"d4e0ac95": "commitVote(uint256,address,bytes32,uint256)",
	"865df0ad": "endVote(uint256)",
	"36bf4c91": "finalizeVote(uint256,uint256,address)",
	"cdd6ceb9": "openVote(uint256,address,uint256,uint256)",
	"e5023ff2": "startVote(bytes32,address,uint256,uint256,uint256,uint256)",
}

KNWVotingContractFuncSigs maps the 4-byte function signature to its string representation.

View Source
var SafeMathBin = "" /* 672-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

View Source
var SafeMathFuncSigs = map[string]string{
	"677342ce": "sqrt(uint256)",
}

SafeMathFuncSigs maps the 4-byte function signature to its string representation.

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

func (_DitCoordinator *DitCoordinatorCaller) AllowedKnowledgeIDs(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (bool, error)

AllowedKnowledgeIDs is a free data retrieval call binding the contract method 0xb3070331.

Solidity: function allowedKnowledgeIDs(bytes32 , uint256 ) constant returns(bool)

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

func (_DitCoordinator *DitCoordinatorCaller) GetKnowledgeIDs(opts *bind.CallOpts, _repository [32]byte) ([]*big.Int, error)

GetKnowledgeIDs is a free data retrieval call binding the contract method 0xdf1bd2cd.

Solidity: function getKnowledgeIDs(bytes32 _repository) constant returns(uint256[] knowledgeIDs)

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) 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) 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 {
	Description      string
	Identifier       string
	KNWVoteID        *big.Int
	KnowledgeID      *big.Int
	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(string description, string identifier, uint256 KNWVoteID, uint256 knowledgeID, 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) AllowedKnowledgeIDs

func (_DitCoordinator *DitCoordinatorCallerSession) AllowedKnowledgeIDs(arg0 [32]byte, arg1 *big.Int) (bool, error)

AllowedKnowledgeIDs is a free data retrieval call binding the contract method 0xb3070331.

Solidity: function allowedKnowledgeIDs(bytes32 , uint256 ) constant returns(bool)

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

func (_DitCoordinator *DitCoordinatorCallerSession) GetKnowledgeIDs(_repository [32]byte) ([]*big.Int, error)

GetKnowledgeIDs is a free data retrieval call binding the contract method 0xdf1bd2cd.

Solidity: function getKnowledgeIDs(bytes32 _repository) constant returns(uint256[] knowledgeIDs)

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) 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) 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 {
	Description      string
	Identifier       string
	KNWVoteID        *big.Int
	KnowledgeID      *big.Int
	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(string description, string identifier, uint256 KNWVoteID, uint256 knowledgeID, 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
	KnowledgeID   *big.Int
	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 0x2edd4beb5f5626bb825280acc138e2ffc3190dff1e0d8e4563febc24ed342549.

Solidity: event CommitVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x7bb26c044d8d0bb569982fbbecdc73c4d75f05aa82ae7575f55d136d6d9c4bc1.

Solidity: event FinalizeProposal(bytes32 indexed repository, uint256 indexed proposal, uint256 knowledgeID, 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 0x45b8e8084f290362eff12aa8825548cacdd5ce5bbd00dbcaeed1bec7cc8dbcd5.

Solidity: event FinalizeVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x1a245c311cb3eef22175d9c7c5458569e91d9a5956430216eaf8de7c1b738760.

Solidity: event OpenVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x603f65981d2b692fdcecdd4b4c97ebe242a11b1feb833e2c556a6a3bc27e4314.

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

func (*DitCoordinatorFilterer) ParseCommitVote

func (_DitCoordinator *DitCoordinatorFilterer) ParseCommitVote(log types.Log) (*DitCoordinatorCommitVote, error)

ParseCommitVote is a log parse operation binding the contract event 0x2edd4beb5f5626bb825280acc138e2ffc3190dff1e0d8e4563febc24ed342549.

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

func (*DitCoordinatorFilterer) ParseFinalizeProposal

func (_DitCoordinator *DitCoordinatorFilterer) ParseFinalizeProposal(log types.Log) (*DitCoordinatorFinalizeProposal, error)

ParseFinalizeProposal is a log parse operation binding the contract event 0x7bb26c044d8d0bb569982fbbecdc73c4d75f05aa82ae7575f55d136d6d9c4bc1.

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

func (*DitCoordinatorFilterer) ParseFinalizeVote

func (_DitCoordinator *DitCoordinatorFilterer) ParseFinalizeVote(log types.Log) (*DitCoordinatorFinalizeVote, error)

ParseFinalizeVote is a log parse operation binding the contract event 0x45b8e8084f290362eff12aa8825548cacdd5ce5bbd00dbcaeed1bec7cc8dbcd5.

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

func (*DitCoordinatorFilterer) ParseInitializeRepository

func (_DitCoordinator *DitCoordinatorFilterer) ParseInitializeRepository(log types.Log) (*DitCoordinatorInitializeRepository, error)

ParseInitializeRepository is a log parse operation binding the contract event 0xe81437d5f3c837aab5b46f923704dc104204a127033e0dd0e24e7ad8d2b3c7be.

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

func (*DitCoordinatorFilterer) ParseOpenVote

func (_DitCoordinator *DitCoordinatorFilterer) ParseOpenVote(log types.Log) (*DitCoordinatorOpenVote, error)

ParseOpenVote is a log parse operation binding the contract event 0x1a245c311cb3eef22175d9c7c5458569e91d9a5956430216eaf8de7c1b738760.

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

func (*DitCoordinatorFilterer) ParseProposeCommit

func (_DitCoordinator *DitCoordinatorFilterer) ParseProposeCommit(log types.Log) (*DitCoordinatorProposeCommit, error)

ParseProposeCommit is a log parse operation binding the contract event 0x603f65981d2b692fdcecdd4b4c97ebe242a11b1feb833e2c556a6a3bc27e4314.

Solidity: event ProposeCommit(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x2edd4beb5f5626bb825280acc138e2ffc3190dff1e0d8e4563febc24ed342549.

Solidity: event CommitVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x7bb26c044d8d0bb569982fbbecdc73c4d75f05aa82ae7575f55d136d6d9c4bc1.

Solidity: event FinalizeProposal(bytes32 indexed repository, uint256 indexed proposal, uint256 knowledgeID, 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 0x45b8e8084f290362eff12aa8825548cacdd5ce5bbd00dbcaeed1bec7cc8dbcd5.

Solidity: event FinalizeVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x1a245c311cb3eef22175d9c7c5458569e91d9a5956430216eaf8de7c1b738760.

Solidity: event OpenVote(bytes32 indexed repository, uint256 indexed proposal, address indexed who, uint256 knowledgeID, 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 0x603f65981d2b692fdcecdd4b4c97ebe242a11b1feb833e2c556a6a3bc27e4314.

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

type DitCoordinatorFinalizeProposal

type DitCoordinatorFinalizeProposal struct {
	Repository  [32]byte
	Proposal    *big.Int
	KnowledgeID *big.Int
	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
	KnowledgeID *big.Int
	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
	KnowledgeID   *big.Int
	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
	KnowledgeID *big.Int
	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) AllowedKnowledgeIDs

func (_DitCoordinator *DitCoordinatorSession) AllowedKnowledgeIDs(arg0 [32]byte, arg1 *big.Int) (bool, error)

AllowedKnowledgeIDs is a free data retrieval call binding the contract method 0xb3070331.

Solidity: function allowedKnowledgeIDs(bytes32 , uint256 ) constant 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) GetKnowledgeIDs

func (_DitCoordinator *DitCoordinatorSession) GetKnowledgeIDs(_repository [32]byte) ([]*big.Int, error)

GetKnowledgeIDs is a free data retrieval call binding the contract method 0xdf1bd2cd.

Solidity: function getKnowledgeIDs(bytes32 _repository) constant returns(uint256[] knowledgeIDs)

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, _knowledgeIDs []*big.Int, _votingMajority *big.Int) (*types.Transaction, error)

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

Solidity: function initRepository(string _repository, uint256[] _knowledgeIDs, 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) 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) 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 {
	Description      string
	Identifier       string
	KNWVoteID        *big.Int
	KnowledgeID      *big.Int
	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(string description, string identifier, uint256 KNWVoteID, uint256 knowledgeID, address proposer, bool isFinalized, bool proposalAccepted, uint256 individualStake, uint256 totalStake)

func (*DitCoordinatorSession) ProposeCommit

func (_DitCoordinator *DitCoordinatorSession) ProposeCommit(_repository [32]byte, _description string, _identifier string, _knowledgeID *big.Int, _numberOfKNW *big.Int, _voteDuration *big.Int) (*types.Transaction, error)

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration) 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) ReplaceManager

func (_DitCoordinator *DitCoordinatorSession) ReplaceManager(_newManager common.Address) (*types.Transaction, error)

ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.

Solidity: function replaceManager(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, _knowledgeIDs []*big.Int, _votingMajority *big.Int) (*types.Transaction, error)

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

Solidity: function initRepository(string _repository, uint256[] _knowledgeIDs, 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, _description string, _identifier string, _knowledgeID *big.Int, _numberOfKNW *big.Int, _voteDuration *big.Int) (*types.Transaction, error)

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration) 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) ReplaceManager

func (_DitCoordinator *DitCoordinatorTransactor) ReplaceManager(opts *bind.TransactOpts, _newManager common.Address) (*types.Transaction, error)

ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.

Solidity: function replaceManager(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, _knowledgeIDs []*big.Int, _votingMajority *big.Int) (*types.Transaction, error)

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

Solidity: function initRepository(string _repository, uint256[] _knowledgeIDs, 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, _description string, _identifier string, _knowledgeID *big.Int, _numberOfKNW *big.Int, _voteDuration *big.Int) (*types.Transaction, error)

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration) 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) ReplaceManager

func (_DitCoordinator *DitCoordinatorTransactorSession) ReplaceManager(_newManager common.Address) (*types.Transaction, error)

ReplaceManager is a paid mutator transaction binding the contract method 0x23447982.

Solidity: function replaceManager(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 KNWTokenContract

type KNWTokenContract struct {
	KNWTokenContractCaller     // Read-only binding to the contract
	KNWTokenContractTransactor // Write-only binding to the contract
	KNWTokenContractFilterer   // Log filterer for contract events
}

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

func NewKNWTokenContract

func NewKNWTokenContract(address common.Address, backend bind.ContractBackend) (*KNWTokenContract, error)

NewKNWTokenContract creates a new instance of KNWTokenContract, bound to a specific deployed contract.

type KNWTokenContractCaller

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

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

func NewKNWTokenContractCaller

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

NewKNWTokenContractCaller creates a new read-only instance of KNWTokenContract, bound to a specific deployed contract.

func (*KNWTokenContractCaller) AmountOfIDs

func (_KNWTokenContract *KNWTokenContractCaller) AmountOfIDs(opts *bind.CallOpts) (*big.Int, error)

AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.

Solidity: function amountOfIDs() constant returns(uint256 amount)

type KNWTokenContractCallerRaw

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

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

func (*KNWTokenContractCallerRaw) Call

func (_KNWTokenContract *KNWTokenContractCallerRaw) 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 KNWTokenContractCallerSession

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

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

func (*KNWTokenContractCallerSession) AmountOfIDs

func (_KNWTokenContract *KNWTokenContractCallerSession) AmountOfIDs() (*big.Int, error)

AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.

Solidity: function amountOfIDs() constant returns(uint256 amount)

type KNWTokenContractFilterer

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

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

func NewKNWTokenContractFilterer

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

NewKNWTokenContractFilterer creates a new log filterer instance of KNWTokenContract, bound to a specific deployed contract.

type KNWTokenContractRaw

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

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

func (*KNWTokenContractRaw) Call

func (_KNWTokenContract *KNWTokenContractRaw) 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 (*KNWTokenContractRaw) Transact

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

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

func (*KNWTokenContractRaw) Transfer

func (_KNWTokenContract *KNWTokenContractRaw) 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 KNWTokenContractSession

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

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

func (*KNWTokenContractSession) AmountOfIDs

func (_KNWTokenContract *KNWTokenContractSession) AmountOfIDs() (*big.Int, error)

AmountOfIDs is a free data retrieval call binding the contract method 0xffe03eba.

Solidity: function amountOfIDs() constant returns(uint256 amount)

type KNWTokenContractTransactor

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

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

func NewKNWTokenContractTransactor

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

NewKNWTokenContractTransactor creates a new write-only instance of KNWTokenContract, bound to a specific deployed contract.

type KNWTokenContractTransactorRaw

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

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

func (*KNWTokenContractTransactorRaw) Transact

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

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

func (*KNWTokenContractTransactorRaw) Transfer

func (_KNWTokenContract *KNWTokenContractTransactorRaw) 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 KNWTokenContractTransactorSession

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

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

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 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, _knowledgeID *big.Int, _voteDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function startVote(bytes32 _repository, address _address, uint256 _knowledgeID, uint256 _voteDuration, 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, _knowledgeID *big.Int, _voteDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function startVote(bytes32 _repository, address _address, uint256 _knowledgeID, uint256 _voteDuration, 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, _knowledgeID *big.Int, _voteDuration *big.Int, _proposersStake *big.Int, _numberOfKNW *big.Int) (*types.Transaction, error)

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

Solidity: function startVote(bytes32 _repository, address _address, uint256 _knowledgeID, uint256 _voteDuration, 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