ditDemoCoordinator

package
v0.0.0-...-22f44d5 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: 1

Documentation

Index

Constants

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

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

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

ERC20ABI 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 DitDemoCoordinatorBin = "" /* 22646-byte string literal not displayed */

DitDemoCoordinatorBin is the compiled bytecode used for deploying new contracts.

View Source
var DitDemoCoordinatorFuncSigs = 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()",
	"481c6a75": "manager()",
	"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)",
	"fb4ede85": "proposeCommit(bytes32,string,string,uint256,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)",
	"ce83732e": "xDitTokenAddress()",
}

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

View Source
var ERC20FuncSigs = map[string]string{
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
}

ERC20FuncSigs 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 DitDemoCoordinator

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

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

func DeployDitDemoCoordinator

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

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

func NewDitDemoCoordinator

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

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

type DitDemoCoordinatorCaller

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

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

func NewDitDemoCoordinatorCaller

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

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

func (*DitDemoCoordinatorCaller) AllowedKnowledgeIDs

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) 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 (*DitDemoCoordinatorCaller) BURNINGMETHOD

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

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCaller) GetCurrentProposalID

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

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

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

func (*DitDemoCoordinatorCaller) GetIndividualStake

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

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

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

func (*DitDemoCoordinatorCaller) GetKNWVoteIDFromProposalID

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

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

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

func (*DitDemoCoordinatorCaller) GetKnowledgeIDs

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) 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 (*DitDemoCoordinatorCaller) GetVotingMajority

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

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

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

func (*DitDemoCoordinatorCaller) IsKYCValidator

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

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

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

func (*DitDemoCoordinatorCaller) KNWTokenAddress

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

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorCaller) KNWVotingAddress

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

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

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorCaller) LastDitCoordinator

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

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

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCaller) MAXVOTEDURATION

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

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

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MINTINGMETHOD

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

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCaller) MINVOTEDURATION

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

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

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCaller) Manager

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

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() constant returns(address)

func (*DitDemoCoordinatorCaller) NextDitCoordinator

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

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

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCaller) PassedKYC

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

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

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

func (*DitDemoCoordinatorCaller) ProposalHasPassed

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

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

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

func (*DitDemoCoordinatorCaller) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorCaller) ProposalsOfRepository(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (struct {
	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 (*DitDemoCoordinatorCaller) Repositories

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

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

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

func (*DitDemoCoordinatorCaller) RepositoryIsInitialized

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

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

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

func (*DitDemoCoordinatorCaller) XDitTokenAddress

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

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

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorCallerRaw

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

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

func (*DitDemoCoordinatorCallerRaw) Call

func (_DitDemoCoordinator *DitDemoCoordinatorCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type DitDemoCoordinatorCallerSession

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

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

func (*DitDemoCoordinatorCallerSession) AllowedKnowledgeIDs

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

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

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) GetCurrentProposalID

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

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

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

func (*DitDemoCoordinatorCallerSession) GetIndividualStake

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

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

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

func (*DitDemoCoordinatorCallerSession) GetKNWVoteIDFromProposalID

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

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

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

func (*DitDemoCoordinatorCallerSession) GetKnowledgeIDs

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

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

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

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

func (*DitDemoCoordinatorCallerSession) IsKYCValidator

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

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

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

func (*DitDemoCoordinatorCallerSession) KNWTokenAddress

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

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorCallerSession) KNWVotingAddress

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

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

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorCallerSession) LastDitCoordinator

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

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

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCallerSession) MAXVOTEDURATION

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

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

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MINTINGMETHOD

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

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) MINVOTEDURATION

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

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

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorCallerSession) Manager

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

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() constant returns(address)

func (*DitDemoCoordinatorCallerSession) NextDitCoordinator

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

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

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorCallerSession) PassedKYC

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

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

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

func (*DitDemoCoordinatorCallerSession) ProposalHasPassed

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

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

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

func (*DitDemoCoordinatorCallerSession) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorCallerSession) ProposalsOfRepository(arg0 [32]byte, arg1 *big.Int) (struct {
	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 (*DitDemoCoordinatorCallerSession) Repositories

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

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

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

func (*DitDemoCoordinatorCallerSession) RepositoryIsInitialized

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

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

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

func (*DitDemoCoordinatorCallerSession) XDitTokenAddress

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

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

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorCommitVote

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

DitDemoCoordinatorCommitVote represents a CommitVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorCommitVoteIterator

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

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

func (*DitDemoCoordinatorCommitVoteIterator) Close

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

func (*DitDemoCoordinatorCommitVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorCommitVoteIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorFilterer

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

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

func NewDitDemoCoordinatorFilterer

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

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

func (*DitDemoCoordinatorFilterer) FilterCommitVote

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

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

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

func (*DitDemoCoordinatorFilterer) FilterFinalizeProposal

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

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

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

func (*DitDemoCoordinatorFilterer) FilterFinalizeVote

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

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

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

func (*DitDemoCoordinatorFilterer) FilterInitializeRepository

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

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

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

func (*DitDemoCoordinatorFilterer) FilterOpenVote

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

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

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

func (*DitDemoCoordinatorFilterer) FilterProposeCommit

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

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

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

func (*DitDemoCoordinatorFilterer) ParseCommitVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseCommitVote(log types.Log) (*DitDemoCoordinatorCommitVote, 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 (*DitDemoCoordinatorFilterer) ParseFinalizeProposal

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseFinalizeProposal(log types.Log) (*DitDemoCoordinatorFinalizeProposal, 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 (*DitDemoCoordinatorFilterer) ParseFinalizeVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseFinalizeVote(log types.Log) (*DitDemoCoordinatorFinalizeVote, 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 (*DitDemoCoordinatorFilterer) ParseInitializeRepository

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseInitializeRepository(log types.Log) (*DitDemoCoordinatorInitializeRepository, error)

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

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

func (*DitDemoCoordinatorFilterer) ParseOpenVote

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseOpenVote(log types.Log) (*DitDemoCoordinatorOpenVote, 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 (*DitDemoCoordinatorFilterer) ParseProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorFilterer) ParseProposeCommit(log types.Log) (*DitDemoCoordinatorProposeCommit, 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 (*DitDemoCoordinatorFilterer) WatchCommitVote

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

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

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

func (*DitDemoCoordinatorFilterer) WatchFinalizeProposal

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

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

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

func (*DitDemoCoordinatorFilterer) WatchFinalizeVote

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

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

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

func (*DitDemoCoordinatorFilterer) WatchInitializeRepository

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

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

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

func (*DitDemoCoordinatorFilterer) WatchOpenVote

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

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

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

func (*DitDemoCoordinatorFilterer) WatchProposeCommit

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

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

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

type DitDemoCoordinatorFinalizeProposal

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

DitDemoCoordinatorFinalizeProposal represents a FinalizeProposal event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorFinalizeProposalIterator

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

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

func (*DitDemoCoordinatorFinalizeProposalIterator) Close

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

func (*DitDemoCoordinatorFinalizeProposalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorFinalizeProposalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorFinalizeVote

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

DitDemoCoordinatorFinalizeVote represents a FinalizeVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorFinalizeVoteIterator

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

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

func (*DitDemoCoordinatorFinalizeVoteIterator) Close

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

func (*DitDemoCoordinatorFinalizeVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorFinalizeVoteIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorInitializeRepository

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

DitDemoCoordinatorInitializeRepository represents a InitializeRepository event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorInitializeRepositoryIterator

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

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

func (*DitDemoCoordinatorInitializeRepositoryIterator) Close

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

func (*DitDemoCoordinatorInitializeRepositoryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorInitializeRepositoryIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorOpenVote

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

DitDemoCoordinatorOpenVote represents a OpenVote event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorOpenVoteIterator

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

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

func (*DitDemoCoordinatorOpenVoteIterator) Close

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

func (*DitDemoCoordinatorOpenVoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorOpenVoteIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorProposeCommit

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

DitDemoCoordinatorProposeCommit represents a ProposeCommit event raised by the DitDemoCoordinator contract.

type DitDemoCoordinatorProposeCommitIterator

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

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

func (*DitDemoCoordinatorProposeCommitIterator) Close

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

func (*DitDemoCoordinatorProposeCommitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DitDemoCoordinatorProposeCommitIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DitDemoCoordinatorRaw

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

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

func (*DitDemoCoordinatorRaw) Call

func (_DitDemoCoordinator *DitDemoCoordinatorRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*DitDemoCoordinatorRaw) Transact

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

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

func (*DitDemoCoordinatorRaw) Transfer

func (_DitDemoCoordinator *DitDemoCoordinatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DitDemoCoordinatorSession

type DitDemoCoordinatorSession struct {
	Contract     *DitDemoCoordinator // Generic contract binding to set the session for
	CallOpts     bind.CallOpts       // Call options to use throughout this session
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

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

func (*DitDemoCoordinatorSession) AddKYCValidator

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

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

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

func (*DitDemoCoordinatorSession) AllowedKnowledgeIDs

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

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

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorSession) FinalizeVote

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

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

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

func (*DitDemoCoordinatorSession) GetCurrentProposalID

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

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

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

func (*DitDemoCoordinatorSession) GetIndividualStake

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

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

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

func (*DitDemoCoordinatorSession) GetKNWVoteIDFromProposalID

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

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

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

func (*DitDemoCoordinatorSession) GetKnowledgeIDs

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

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

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

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

func (*DitDemoCoordinatorSession) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorSession) InitRepository(_repository string, _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 (*DitDemoCoordinatorSession) IsKYCValidator

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

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

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

func (*DitDemoCoordinatorSession) KNWTokenAddress

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

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*DitDemoCoordinatorSession) KNWVotingAddress

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

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

Solidity: function KNWVotingAddress() constant returns(address)

func (*DitDemoCoordinatorSession) LastDitCoordinator

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

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

Solidity: function lastDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorSession) MAXVOTEDURATION

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

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

Solidity: function MAX_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) MINTINGMETHOD

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

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*DitDemoCoordinatorSession) MINVOTEDURATION

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

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

Solidity: function MIN_VOTE_DURATION() constant returns(uint256)

func (*DitDemoCoordinatorSession) Manager

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

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() constant returns(address)

func (*DitDemoCoordinatorSession) MigrateRepository

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

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

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

func (*DitDemoCoordinatorSession) NextDitCoordinator

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

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

Solidity: function nextDitCoordinator() constant returns(address)

func (*DitDemoCoordinatorSession) OpenVoteOnProposal

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

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

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

func (*DitDemoCoordinatorSession) PassKYC

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

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

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

func (*DitDemoCoordinatorSession) PassedKYC

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

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

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

func (*DitDemoCoordinatorSession) ProposalHasPassed

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

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

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

func (*DitDemoCoordinatorSession) ProposalsOfRepository

func (_DitDemoCoordinator *DitDemoCoordinatorSession) ProposalsOfRepository(arg0 [32]byte, arg1 *big.Int) (struct {
	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 (*DitDemoCoordinatorSession) ProposeCommit

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

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorSession) RemoveKYCValidator

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

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

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

func (*DitDemoCoordinatorSession) ReplaceManager

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

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

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

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

func (*DitDemoCoordinatorSession) RepositoryIsInitialized

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

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

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

func (*DitDemoCoordinatorSession) RevokeKYC

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

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

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

func (*DitDemoCoordinatorSession) UpgradeContract

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

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

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

func (*DitDemoCoordinatorSession) VoteOnProposal

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

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

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

func (*DitDemoCoordinatorSession) XDitTokenAddress

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

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

Solidity: function xDitTokenAddress() constant returns(address)

type DitDemoCoordinatorTransactor

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

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

func NewDitDemoCoordinatorTransactor

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

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

func (*DitDemoCoordinatorTransactor) AddKYCValidator

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

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

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

func (*DitDemoCoordinatorTransactor) FinalizeVote

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

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

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

func (*DitDemoCoordinatorTransactor) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) InitRepository(opts *bind.TransactOpts, _repository string, _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 (*DitDemoCoordinatorTransactor) MigrateRepository

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

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

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

func (*DitDemoCoordinatorTransactor) OpenVoteOnProposal

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

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

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

func (*DitDemoCoordinatorTransactor) PassKYC

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

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

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

func (*DitDemoCoordinatorTransactor) ProposeCommit

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) ProposeCommit(opts *bind.TransactOpts, _repository [32]byte, _description string, _identifier string, _knowledgeID *big.Int, _numberOfKNW *big.Int, _voteDuration *big.Int, _amountOfTokens *big.Int) (*types.Transaction, error)

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorTransactor) RemoveKYCValidator

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

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

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

func (*DitDemoCoordinatorTransactor) ReplaceManager

func (_DitDemoCoordinator *DitDemoCoordinatorTransactor) 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 (*DitDemoCoordinatorTransactor) RevokeKYC

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

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

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

func (*DitDemoCoordinatorTransactor) UpgradeContract

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

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

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

func (*DitDemoCoordinatorTransactor) VoteOnProposal

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

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

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

type DitDemoCoordinatorTransactorRaw

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

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

func (*DitDemoCoordinatorTransactorRaw) Transact

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

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

func (*DitDemoCoordinatorTransactorRaw) Transfer

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DitDemoCoordinatorTransactorSession

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

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

func (*DitDemoCoordinatorTransactorSession) AddKYCValidator

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

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

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

func (*DitDemoCoordinatorTransactorSession) FinalizeVote

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

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

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

func (*DitDemoCoordinatorTransactorSession) InitRepository

func (_DitDemoCoordinator *DitDemoCoordinatorTransactorSession) InitRepository(_repository string, _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 (*DitDemoCoordinatorTransactorSession) MigrateRepository

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

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

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

func (*DitDemoCoordinatorTransactorSession) OpenVoteOnProposal

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

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

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

func (*DitDemoCoordinatorTransactorSession) PassKYC

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

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

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

func (*DitDemoCoordinatorTransactorSession) ProposeCommit

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

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

Solidity: function proposeCommit(bytes32 _repository, string _description, string _identifier, uint256 _knowledgeID, uint256 _numberOfKNW, uint256 _voteDuration, uint256 _amountOfTokens) returns(uint256 proposalID)

func (*DitDemoCoordinatorTransactorSession) RemoveKYCValidator

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

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

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

func (*DitDemoCoordinatorTransactorSession) ReplaceManager

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

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

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

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

func (*DitDemoCoordinatorTransactorSession) UpgradeContract

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

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

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

func (*DitDemoCoordinatorTransactorSession) VoteOnProposal

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

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

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

type ERC20

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

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

func NewERC20

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

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

type ERC20Caller

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

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

func NewERC20Caller

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

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

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20CallerSession

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

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

type ERC20Filterer

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

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

func NewERC20Filterer

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

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

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

func (*ERC20Session) Transfer

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

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

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

func (*ERC20Session) TransferFrom

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

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

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

type ERC20Transactor

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

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

func NewERC20Transactor

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

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

func (*ERC20Transactor) Transfer

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

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

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

func (*ERC20Transactor) TransferFrom

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

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

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

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Transfer

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

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

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

func (*ERC20TransactorSession) TransferFrom

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

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

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

type 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