KNWVoting

package
v0.3.2-0...-6117ab2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

View Source
const KNWVotingABI = "" /* 8957-byte string literal not displayed */

KNWVotingABI 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 KNWTokenContractFuncSigs = map[string]string{
	"3938400b": "balanceOfID(address,uint256)",
	"f5298aca": "burn(address,uint256,uint256)",
	"b5c2cdba": "freeBalanceOfID(address,uint256)",
	"a25983e5": "lockTokens(address,uint256,uint256)",
	"156e29f6": "mint(address,uint256,uint256)",
	"cd3877df": "unlockTokens(address,uint256,uint256)",
}

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

View Source
var KNWVotingBin = "" /* 23420-byte string literal not displayed */

KNWVotingBin is the compiled bytecode used for deploying new contracts.

View Source
var KNWVotingFuncSigs = map[string]string{
	"c814af1f": "BURNING_METHOD()",
	"985dbfc5": "KNWTokenAddress()",
	"effb21e1": "MINTING_METHOD()",
	"a326690a": "addDitCoordinator(address)",
	"828c1653": "addNewRepository(bytes32,uint256)",
	"a4439dc5": "commitPeriodActive(uint256)",
	"d4e0ac95": "commitVote(uint256,address,bytes32,uint256)",
	"5a981129": "currentVoteID()",
	"7f97e836": "didCommit(address,uint256)",
	"70d18152": "didOpen(address,uint256)",
	"3fdf3dab": "ditCoordinatorContracts(address)",
	"865df0ad": "endVote(uint256)",
	"36bf4c91": "finalizeVote(uint256,uint256,address)",
	"cd6ef46b": "getAmountOfVotes(address,uint256)",
	"c3eb9708": "getGrossStake(uint256)",
	"dcfde092": "getNetStake(uint256)",
	"8e1b660f": "getUsedKNW(address,uint256)",
	"d9548e53": "isExpired(uint256)",
	"49403183": "isPassed(uint256)",
	"cc4e1954": "isResolved(uint256)",
	"ff77f4b8": "lastKNWVoting()",
	"0bf682e6": "nextKNWVoting()",
	"ea521a52": "openPeriodActive(uint256)",
	"cdd6ceb9": "openVote(uint256,address,uint256,uint256)",
	"23447982": "replaceManager(address)",
	"1f84950f": "stakesOfVote(uint256)",
	"e5023ff2": "startVote(bytes32,address,uint256,uint256,uint256,uint256)",
	"82ec45a3": "startingVoteID()",
	"eb2c0223": "upgradeContract(address)",
	"b43a401d": "voteEnded(uint256)",
	"7e4173a8": "voteExists(uint256)",
	"5df81330": "votes(uint256)",
}

KNWVotingFuncSigs 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 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) BalanceOfID

func (_KNWTokenContract *KNWTokenContractCaller) BalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)

BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.

Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)

func (*KNWTokenContractCaller) FreeBalanceOfID

func (_KNWTokenContract *KNWTokenContractCaller) FreeBalanceOfID(opts *bind.CallOpts, _address common.Address, _id *big.Int) (*big.Int, error)

FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.

Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)

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

func (_KNWTokenContract *KNWTokenContractCallerSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)

BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.

Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)

func (*KNWTokenContractCallerSession) FreeBalanceOfID

func (_KNWTokenContract *KNWTokenContractCallerSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)

FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.

Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)

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

func (_KNWTokenContract *KNWTokenContractSession) BalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)

BalanceOfID is a free data retrieval call binding the contract method 0x3938400b.

Solidity: function balanceOfID(address _address, uint256 _id) constant returns(uint256 balance)

func (*KNWTokenContractSession) Burn

func (_KNWTokenContract *KNWTokenContractSession) Burn(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractSession) FreeBalanceOfID

func (_KNWTokenContract *KNWTokenContractSession) FreeBalanceOfID(_address common.Address, _id *big.Int) (*big.Int, error)

FreeBalanceOfID is a free data retrieval call binding the contract method 0xb5c2cdba.

Solidity: function freeBalanceOfID(address _address, uint256 _id) constant returns(uint256 freeBalance)

func (*KNWTokenContractSession) LockTokens

func (_KNWTokenContract *KNWTokenContractSession) LockTokens(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.

Solidity: function lockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractSession) Mint

func (_KNWTokenContract *KNWTokenContractSession) Mint(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractSession) UnlockTokens

func (_KNWTokenContract *KNWTokenContractSession) UnlockTokens(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.

Solidity: function unlockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

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.

func (*KNWTokenContractTransactor) Burn

func (_KNWTokenContract *KNWTokenContractTransactor) Burn(opts *bind.TransactOpts, _account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactor) LockTokens

func (_KNWTokenContract *KNWTokenContractTransactor) LockTokens(opts *bind.TransactOpts, _account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.

Solidity: function lockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactor) Mint

func (_KNWTokenContract *KNWTokenContractTransactor) Mint(opts *bind.TransactOpts, _account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactor) UnlockTokens

func (_KNWTokenContract *KNWTokenContractTransactor) UnlockTokens(opts *bind.TransactOpts, _account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.

Solidity: function unlockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

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.

func (*KNWTokenContractTransactorSession) Burn

func (_KNWTokenContract *KNWTokenContractTransactorSession) Burn(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactorSession) LockTokens

func (_KNWTokenContract *KNWTokenContractTransactorSession) LockTokens(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

LockTokens is a paid mutator transaction binding the contract method 0xa25983e5.

Solidity: function lockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactorSession) Mint

func (_KNWTokenContract *KNWTokenContractTransactorSession) Mint(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address _account, uint256 _id, uint256 _amount) returns(bool success)

func (*KNWTokenContractTransactorSession) UnlockTokens

func (_KNWTokenContract *KNWTokenContractTransactorSession) UnlockTokens(_account common.Address, _id *big.Int, _amount *big.Int) (*types.Transaction, error)

UnlockTokens is a paid mutator transaction binding the contract method 0xcd3877df.

Solidity: function unlockTokens(address _account, uint256 _id, uint256 _amount) returns(bool success)

type KNWVoting

type KNWVoting struct {
	KNWVotingCaller     // Read-only binding to the contract
	KNWVotingTransactor // Write-only binding to the contract
	KNWVotingFilterer   // Log filterer for contract events
}

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

func DeployKNWVoting

func DeployKNWVoting(auth *bind.TransactOpts, backend bind.ContractBackend, _KNWTokenAddress common.Address, _lastKNWVoting common.Address) (common.Address, *types.Transaction, *KNWVoting, error)

DeployKNWVoting deploys a new Ethereum contract, binding an instance of KNWVoting to it.

func NewKNWVoting

func NewKNWVoting(address common.Address, backend bind.ContractBackend) (*KNWVoting, error)

NewKNWVoting creates a new instance of KNWVoting, bound to a specific deployed contract.

type KNWVotingCaller

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

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

func NewKNWVotingCaller

func NewKNWVotingCaller(address common.Address, caller bind.ContractCaller) (*KNWVotingCaller, error)

NewKNWVotingCaller creates a new read-only instance of KNWVoting, bound to a specific deployed contract.

func (*KNWVotingCaller) BURNINGMETHOD

func (_KNWVoting *KNWVotingCaller) 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 (*KNWVotingCaller) CommitPeriodActive

func (_KNWVoting *KNWVotingCaller) CommitPeriodActive(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

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

Solidity: function commitPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingCaller) CurrentVoteID

func (_KNWVoting *KNWVotingCaller) CurrentVoteID(opts *bind.CallOpts) (*big.Int, error)

CurrentVoteID is a free data retrieval call binding the contract method 0x5a981129.

Solidity: function currentVoteID() constant returns(uint256)

func (*KNWVotingCaller) DidCommit

func (_KNWVoting *KNWVotingCaller) DidCommit(opts *bind.CallOpts, _address common.Address, _voteID *big.Int) (bool, error)

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

Solidity: function didCommit(address _address, uint256 _voteID) constant returns(bool committed)

func (*KNWVotingCaller) DidOpen

func (_KNWVoting *KNWVotingCaller) DidOpen(opts *bind.CallOpts, _address common.Address, _voteID *big.Int) (bool, error)

DidOpen is a free data retrieval call binding the contract method 0x70d18152.

Solidity: function didOpen(address _address, uint256 _voteID) constant returns(bool revealed)

func (*KNWVotingCaller) DitCoordinatorContracts

func (_KNWVoting *KNWVotingCaller) DitCoordinatorContracts(opts *bind.CallOpts, arg0 common.Address) (bool, error)

DitCoordinatorContracts is a free data retrieval call binding the contract method 0x3fdf3dab.

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

func (*KNWVotingCaller) GetAmountOfVotes

func (_KNWVoting *KNWVotingCaller) GetAmountOfVotes(opts *bind.CallOpts, _address common.Address, _voteID *big.Int) (*big.Int, error)

GetAmountOfVotes is a free data retrieval call binding the contract method 0xcd6ef46b.

Solidity: function getAmountOfVotes(address _address, uint256 _voteID) constant returns(uint256 numberOfVotes)

func (*KNWVotingCaller) GetGrossStake

func (_KNWVoting *KNWVotingCaller) GetGrossStake(opts *bind.CallOpts, _voteID *big.Int) (*big.Int, error)

GetGrossStake is a free data retrieval call binding the contract method 0xc3eb9708.

Solidity: function getGrossStake(uint256 _voteID) constant returns(uint256 grossStake)

func (*KNWVotingCaller) GetNetStake

func (_KNWVoting *KNWVotingCaller) GetNetStake(opts *bind.CallOpts, _voteID *big.Int) (*big.Int, error)

GetNetStake is a free data retrieval call binding the contract method 0xdcfde092.

Solidity: function getNetStake(uint256 _voteID) constant returns(uint256 netStake)

func (*KNWVotingCaller) GetUsedKNW

func (_KNWVoting *KNWVotingCaller) GetUsedKNW(opts *bind.CallOpts, _address common.Address, _voteID *big.Int) (*big.Int, error)

GetUsedKNW is a free data retrieval call binding the contract method 0x8e1b660f.

Solidity: function getUsedKNW(address _address, uint256 _voteID) constant returns(uint256 usedKNW)

func (*KNWVotingCaller) IsExpired

func (_KNWVoting *KNWVotingCaller) IsExpired(opts *bind.CallOpts, _terminationDate *big.Int) (bool, error)

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

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

func (*KNWVotingCaller) IsPassed

func (_KNWVoting *KNWVotingCaller) IsPassed(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

IsPassed is a free data retrieval call binding the contract method 0x49403183.

Solidity: function isPassed(uint256 _voteID) constant returns(bool passed)

func (*KNWVotingCaller) IsResolved

func (_KNWVoting *KNWVotingCaller) IsResolved(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

IsResolved is a free data retrieval call binding the contract method 0xcc4e1954.

Solidity: function isResolved(uint256 _voteID) constant returns(bool resolved)

func (*KNWVotingCaller) KNWTokenAddress

func (_KNWVoting *KNWVotingCaller) 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 (*KNWVotingCaller) LastKNWVoting

func (_KNWVoting *KNWVotingCaller) LastKNWVoting(opts *bind.CallOpts) (common.Address, error)

LastKNWVoting is a free data retrieval call binding the contract method 0xff77f4b8.

Solidity: function lastKNWVoting() constant returns(address)

func (*KNWVotingCaller) MINTINGMETHOD

func (_KNWVoting *KNWVotingCaller) 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 (*KNWVotingCaller) NextKNWVoting

func (_KNWVoting *KNWVotingCaller) NextKNWVoting(opts *bind.CallOpts) (common.Address, error)

NextKNWVoting is a free data retrieval call binding the contract method 0x0bf682e6.

Solidity: function nextKNWVoting() constant returns(address)

func (*KNWVotingCaller) OpenPeriodActive

func (_KNWVoting *KNWVotingCaller) OpenPeriodActive(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

OpenPeriodActive is a free data retrieval call binding the contract method 0xea521a52.

Solidity: function openPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingCaller) StakesOfVote

func (_KNWVoting *KNWVotingCaller) StakesOfVote(opts *bind.CallOpts, arg0 *big.Int) (struct {
	ProposersStake  *big.Int
	ProposersReward *big.Int
	ReturnPool      *big.Int
	RewardPool      *big.Int
}, error)

StakesOfVote is a free data retrieval call binding the contract method 0x1f84950f.

Solidity: function stakesOfVote(uint256 ) constant returns(uint256 proposersStake, uint256 proposersReward, uint256 returnPool, uint256 rewardPool)

func (*KNWVotingCaller) StartingVoteID

func (_KNWVoting *KNWVotingCaller) StartingVoteID(opts *bind.CallOpts) (*big.Int, error)

StartingVoteID is a free data retrieval call binding the contract method 0x82ec45a3.

Solidity: function startingVoteID() constant returns(uint256)

func (*KNWVotingCaller) VoteEnded

func (_KNWVoting *KNWVotingCaller) VoteEnded(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

VoteEnded is a free data retrieval call binding the contract method 0xb43a401d.

Solidity: function voteEnded(uint256 _voteID) constant returns(bool ended)

func (*KNWVotingCaller) VoteExists

func (_KNWVoting *KNWVotingCaller) VoteExists(opts *bind.CallOpts, _voteID *big.Int) (bool, error)

VoteExists is a free data retrieval call binding the contract method 0x7e4173a8.

Solidity: function voteExists(uint256 _voteID) constant returns(bool exists)

func (*KNWVotingCaller) Votes

func (_KNWVoting *KNWVotingCaller) Votes(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Repository             [32]byte
	KnowledgeID            *big.Int
	CommitEndDate          *big.Int
	OpenEndDate            *big.Int
	NeededMajority         *big.Int
	WinningPercentage      *big.Int
	VotesFor               *big.Int
	VotesAgainst           *big.Int
	VotesUnrevealed        *big.Int
	ParticipantsFor        *big.Int
	ParticipantsAgainst    *big.Int
	ParticipantsUnrevealed *big.Int
	IsResolved             bool
}, error)

Votes is a free data retrieval call binding the contract method 0x5df81330.

Solidity: function votes(uint256 ) constant returns(bytes32 repository, uint256 knowledgeID, uint256 commitEndDate, uint256 openEndDate, uint256 neededMajority, uint256 winningPercentage, uint256 votesFor, uint256 votesAgainst, uint256 votesUnrevealed, uint256 participantsFor, uint256 participantsAgainst, uint256 participantsUnrevealed, bool isResolved)

type KNWVotingCallerRaw

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

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

func (*KNWVotingCallerRaw) Call

func (_KNWVoting *KNWVotingCallerRaw) 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 KNWVotingCallerSession

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

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

func (*KNWVotingCallerSession) BURNINGMETHOD

func (_KNWVoting *KNWVotingCallerSession) BURNINGMETHOD() (*big.Int, error)

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*KNWVotingCallerSession) CommitPeriodActive

func (_KNWVoting *KNWVotingCallerSession) CommitPeriodActive(_voteID *big.Int) (bool, error)

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

Solidity: function commitPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingCallerSession) CurrentVoteID

func (_KNWVoting *KNWVotingCallerSession) CurrentVoteID() (*big.Int, error)

CurrentVoteID is a free data retrieval call binding the contract method 0x5a981129.

Solidity: function currentVoteID() constant returns(uint256)

func (*KNWVotingCallerSession) DidCommit

func (_KNWVoting *KNWVotingCallerSession) DidCommit(_address common.Address, _voteID *big.Int) (bool, error)

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

Solidity: function didCommit(address _address, uint256 _voteID) constant returns(bool committed)

func (*KNWVotingCallerSession) DidOpen

func (_KNWVoting *KNWVotingCallerSession) DidOpen(_address common.Address, _voteID *big.Int) (bool, error)

DidOpen is a free data retrieval call binding the contract method 0x70d18152.

Solidity: function didOpen(address _address, uint256 _voteID) constant returns(bool revealed)

func (*KNWVotingCallerSession) DitCoordinatorContracts

func (_KNWVoting *KNWVotingCallerSession) DitCoordinatorContracts(arg0 common.Address) (bool, error)

DitCoordinatorContracts is a free data retrieval call binding the contract method 0x3fdf3dab.

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

func (*KNWVotingCallerSession) GetAmountOfVotes

func (_KNWVoting *KNWVotingCallerSession) GetAmountOfVotes(_address common.Address, _voteID *big.Int) (*big.Int, error)

GetAmountOfVotes is a free data retrieval call binding the contract method 0xcd6ef46b.

Solidity: function getAmountOfVotes(address _address, uint256 _voteID) constant returns(uint256 numberOfVotes)

func (*KNWVotingCallerSession) GetGrossStake

func (_KNWVoting *KNWVotingCallerSession) GetGrossStake(_voteID *big.Int) (*big.Int, error)

GetGrossStake is a free data retrieval call binding the contract method 0xc3eb9708.

Solidity: function getGrossStake(uint256 _voteID) constant returns(uint256 grossStake)

func (*KNWVotingCallerSession) GetNetStake

func (_KNWVoting *KNWVotingCallerSession) GetNetStake(_voteID *big.Int) (*big.Int, error)

GetNetStake is a free data retrieval call binding the contract method 0xdcfde092.

Solidity: function getNetStake(uint256 _voteID) constant returns(uint256 netStake)

func (*KNWVotingCallerSession) GetUsedKNW

func (_KNWVoting *KNWVotingCallerSession) GetUsedKNW(_address common.Address, _voteID *big.Int) (*big.Int, error)

GetUsedKNW is a free data retrieval call binding the contract method 0x8e1b660f.

Solidity: function getUsedKNW(address _address, uint256 _voteID) constant returns(uint256 usedKNW)

func (*KNWVotingCallerSession) IsExpired

func (_KNWVoting *KNWVotingCallerSession) IsExpired(_terminationDate *big.Int) (bool, error)

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

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

func (*KNWVotingCallerSession) IsPassed

func (_KNWVoting *KNWVotingCallerSession) IsPassed(_voteID *big.Int) (bool, error)

IsPassed is a free data retrieval call binding the contract method 0x49403183.

Solidity: function isPassed(uint256 _voteID) constant returns(bool passed)

func (*KNWVotingCallerSession) IsResolved

func (_KNWVoting *KNWVotingCallerSession) IsResolved(_voteID *big.Int) (bool, error)

IsResolved is a free data retrieval call binding the contract method 0xcc4e1954.

Solidity: function isResolved(uint256 _voteID) constant returns(bool resolved)

func (*KNWVotingCallerSession) KNWTokenAddress

func (_KNWVoting *KNWVotingCallerSession) KNWTokenAddress() (common.Address, error)

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*KNWVotingCallerSession) LastKNWVoting

func (_KNWVoting *KNWVotingCallerSession) LastKNWVoting() (common.Address, error)

LastKNWVoting is a free data retrieval call binding the contract method 0xff77f4b8.

Solidity: function lastKNWVoting() constant returns(address)

func (*KNWVotingCallerSession) MINTINGMETHOD

func (_KNWVoting *KNWVotingCallerSession) MINTINGMETHOD() (*big.Int, error)

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*KNWVotingCallerSession) NextKNWVoting

func (_KNWVoting *KNWVotingCallerSession) NextKNWVoting() (common.Address, error)

NextKNWVoting is a free data retrieval call binding the contract method 0x0bf682e6.

Solidity: function nextKNWVoting() constant returns(address)

func (*KNWVotingCallerSession) OpenPeriodActive

func (_KNWVoting *KNWVotingCallerSession) OpenPeriodActive(_voteID *big.Int) (bool, error)

OpenPeriodActive is a free data retrieval call binding the contract method 0xea521a52.

Solidity: function openPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingCallerSession) StakesOfVote

func (_KNWVoting *KNWVotingCallerSession) StakesOfVote(arg0 *big.Int) (struct {
	ProposersStake  *big.Int
	ProposersReward *big.Int
	ReturnPool      *big.Int
	RewardPool      *big.Int
}, error)

StakesOfVote is a free data retrieval call binding the contract method 0x1f84950f.

Solidity: function stakesOfVote(uint256 ) constant returns(uint256 proposersStake, uint256 proposersReward, uint256 returnPool, uint256 rewardPool)

func (*KNWVotingCallerSession) StartingVoteID

func (_KNWVoting *KNWVotingCallerSession) StartingVoteID() (*big.Int, error)

StartingVoteID is a free data retrieval call binding the contract method 0x82ec45a3.

Solidity: function startingVoteID() constant returns(uint256)

func (*KNWVotingCallerSession) VoteEnded

func (_KNWVoting *KNWVotingCallerSession) VoteEnded(_voteID *big.Int) (bool, error)

VoteEnded is a free data retrieval call binding the contract method 0xb43a401d.

Solidity: function voteEnded(uint256 _voteID) constant returns(bool ended)

func (*KNWVotingCallerSession) VoteExists

func (_KNWVoting *KNWVotingCallerSession) VoteExists(_voteID *big.Int) (bool, error)

VoteExists is a free data retrieval call binding the contract method 0x7e4173a8.

Solidity: function voteExists(uint256 _voteID) constant returns(bool exists)

func (*KNWVotingCallerSession) Votes

func (_KNWVoting *KNWVotingCallerSession) Votes(arg0 *big.Int) (struct {
	Repository             [32]byte
	KnowledgeID            *big.Int
	CommitEndDate          *big.Int
	OpenEndDate            *big.Int
	NeededMajority         *big.Int
	WinningPercentage      *big.Int
	VotesFor               *big.Int
	VotesAgainst           *big.Int
	VotesUnrevealed        *big.Int
	ParticipantsFor        *big.Int
	ParticipantsAgainst    *big.Int
	ParticipantsUnrevealed *big.Int
	IsResolved             bool
}, error)

Votes is a free data retrieval call binding the contract method 0x5df81330.

Solidity: function votes(uint256 ) constant returns(bytes32 repository, uint256 knowledgeID, uint256 commitEndDate, uint256 openEndDate, uint256 neededMajority, uint256 winningPercentage, uint256 votesFor, uint256 votesAgainst, uint256 votesUnrevealed, uint256 participantsFor, uint256 participantsAgainst, uint256 participantsUnrevealed, bool isResolved)

type KNWVotingFilterer

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

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

func NewKNWVotingFilterer

func NewKNWVotingFilterer(address common.Address, filterer bind.ContractFilterer) (*KNWVotingFilterer, error)

NewKNWVotingFilterer creates a new log filterer instance of KNWVoting, bound to a specific deployed contract.

type KNWVotingRaw

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

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

func (*KNWVotingRaw) Call

func (_KNWVoting *KNWVotingRaw) 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 (*KNWVotingRaw) Transact

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

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

func (*KNWVotingRaw) Transfer

func (_KNWVoting *KNWVotingRaw) 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 KNWVotingSession

type KNWVotingSession struct {
	Contract     *KNWVoting        // 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
}

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

func (*KNWVotingSession) AddDitCoordinator

func (_KNWVoting *KNWVotingSession) AddDitCoordinator(_newDitCoordinatorAddress common.Address) (*types.Transaction, error)

AddDitCoordinator is a paid mutator transaction binding the contract method 0xa326690a.

Solidity: function addDitCoordinator(address _newDitCoordinatorAddress) returns(bool success)

func (*KNWVotingSession) AddNewRepository

func (_KNWVoting *KNWVotingSession) 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 (*KNWVotingSession) BURNINGMETHOD

func (_KNWVoting *KNWVotingSession) BURNINGMETHOD() (*big.Int, error)

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

Solidity: function BURNING_METHOD() constant returns(uint256)

func (*KNWVotingSession) CommitPeriodActive

func (_KNWVoting *KNWVotingSession) CommitPeriodActive(_voteID *big.Int) (bool, error)

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

Solidity: function commitPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingSession) CommitVote

func (_KNWVoting *KNWVotingSession) 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 numberOfVotes)

func (*KNWVotingSession) CurrentVoteID

func (_KNWVoting *KNWVotingSession) CurrentVoteID() (*big.Int, error)

CurrentVoteID is a free data retrieval call binding the contract method 0x5a981129.

Solidity: function currentVoteID() constant returns(uint256)

func (*KNWVotingSession) DidCommit

func (_KNWVoting *KNWVotingSession) DidCommit(_address common.Address, _voteID *big.Int) (bool, error)

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

Solidity: function didCommit(address _address, uint256 _voteID) constant returns(bool committed)

func (*KNWVotingSession) DidOpen

func (_KNWVoting *KNWVotingSession) DidOpen(_address common.Address, _voteID *big.Int) (bool, error)

DidOpen is a free data retrieval call binding the contract method 0x70d18152.

Solidity: function didOpen(address _address, uint256 _voteID) constant returns(bool revealed)

func (*KNWVotingSession) DitCoordinatorContracts

func (_KNWVoting *KNWVotingSession) DitCoordinatorContracts(arg0 common.Address) (bool, error)

DitCoordinatorContracts is a free data retrieval call binding the contract method 0x3fdf3dab.

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

func (*KNWVotingSession) EndVote

func (_KNWVoting *KNWVotingSession) 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 (*KNWVotingSession) FinalizeVote

func (_KNWVoting *KNWVotingSession) 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 numberOfKNW)

func (*KNWVotingSession) GetAmountOfVotes

func (_KNWVoting *KNWVotingSession) GetAmountOfVotes(_address common.Address, _voteID *big.Int) (*big.Int, error)

GetAmountOfVotes is a free data retrieval call binding the contract method 0xcd6ef46b.

Solidity: function getAmountOfVotes(address _address, uint256 _voteID) constant returns(uint256 numberOfVotes)

func (*KNWVotingSession) GetGrossStake

func (_KNWVoting *KNWVotingSession) GetGrossStake(_voteID *big.Int) (*big.Int, error)

GetGrossStake is a free data retrieval call binding the contract method 0xc3eb9708.

Solidity: function getGrossStake(uint256 _voteID) constant returns(uint256 grossStake)

func (*KNWVotingSession) GetNetStake

func (_KNWVoting *KNWVotingSession) GetNetStake(_voteID *big.Int) (*big.Int, error)

GetNetStake is a free data retrieval call binding the contract method 0xdcfde092.

Solidity: function getNetStake(uint256 _voteID) constant returns(uint256 netStake)

func (*KNWVotingSession) GetUsedKNW

func (_KNWVoting *KNWVotingSession) GetUsedKNW(_address common.Address, _voteID *big.Int) (*big.Int, error)

GetUsedKNW is a free data retrieval call binding the contract method 0x8e1b660f.

Solidity: function getUsedKNW(address _address, uint256 _voteID) constant returns(uint256 usedKNW)

func (*KNWVotingSession) IsExpired

func (_KNWVoting *KNWVotingSession) IsExpired(_terminationDate *big.Int) (bool, error)

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

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

func (*KNWVotingSession) IsPassed

func (_KNWVoting *KNWVotingSession) IsPassed(_voteID *big.Int) (bool, error)

IsPassed is a free data retrieval call binding the contract method 0x49403183.

Solidity: function isPassed(uint256 _voteID) constant returns(bool passed)

func (*KNWVotingSession) IsResolved

func (_KNWVoting *KNWVotingSession) IsResolved(_voteID *big.Int) (bool, error)

IsResolved is a free data retrieval call binding the contract method 0xcc4e1954.

Solidity: function isResolved(uint256 _voteID) constant returns(bool resolved)

func (*KNWVotingSession) KNWTokenAddress

func (_KNWVoting *KNWVotingSession) KNWTokenAddress() (common.Address, error)

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

Solidity: function KNWTokenAddress() constant returns(address)

func (*KNWVotingSession) LastKNWVoting

func (_KNWVoting *KNWVotingSession) LastKNWVoting() (common.Address, error)

LastKNWVoting is a free data retrieval call binding the contract method 0xff77f4b8.

Solidity: function lastKNWVoting() constant returns(address)

func (*KNWVotingSession) MINTINGMETHOD

func (_KNWVoting *KNWVotingSession) MINTINGMETHOD() (*big.Int, error)

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

Solidity: function MINTING_METHOD() constant returns(uint256)

func (*KNWVotingSession) NextKNWVoting

func (_KNWVoting *KNWVotingSession) NextKNWVoting() (common.Address, error)

NextKNWVoting is a free data retrieval call binding the contract method 0x0bf682e6.

Solidity: function nextKNWVoting() constant returns(address)

func (*KNWVotingSession) OpenPeriodActive

func (_KNWVoting *KNWVotingSession) OpenPeriodActive(_voteID *big.Int) (bool, error)

OpenPeriodActive is a free data retrieval call binding the contract method 0xea521a52.

Solidity: function openPeriodActive(uint256 _voteID) constant returns(bool active)

func (*KNWVotingSession) OpenVote

func (_KNWVoting *KNWVotingSession) 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 (*KNWVotingSession) ReplaceManager

func (_KNWVoting *KNWVotingSession) 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 success)

func (*KNWVotingSession) StakesOfVote

func (_KNWVoting *KNWVotingSession) StakesOfVote(arg0 *big.Int) (struct {
	ProposersStake  *big.Int
	ProposersReward *big.Int
	ReturnPool      *big.Int
	RewardPool      *big.Int
}, error)

StakesOfVote is a free data retrieval call binding the contract method 0x1f84950f.

Solidity: function stakesOfVote(uint256 ) constant returns(uint256 proposersStake, uint256 proposersReward, uint256 returnPool, uint256 rewardPool)

func (*KNWVotingSession) StartVote

func (_KNWVoting *KNWVotingSession) 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)

func (*KNWVotingSession) StartingVoteID

func (_KNWVoting *KNWVotingSession) StartingVoteID() (*big.Int, error)

StartingVoteID is a free data retrieval call binding the contract method 0x82ec45a3.

Solidity: function startingVoteID() constant returns(uint256)

func (*KNWVotingSession) UpgradeContract

func (_KNWVoting *KNWVotingSession) 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 success)

func (*KNWVotingSession) VoteEnded

func (_KNWVoting *KNWVotingSession) VoteEnded(_voteID *big.Int) (bool, error)

VoteEnded is a free data retrieval call binding the contract method 0xb43a401d.

Solidity: function voteEnded(uint256 _voteID) constant returns(bool ended)

func (*KNWVotingSession) VoteExists

func (_KNWVoting *KNWVotingSession) VoteExists(_voteID *big.Int) (bool, error)

VoteExists is a free data retrieval call binding the contract method 0x7e4173a8.

Solidity: function voteExists(uint256 _voteID) constant returns(bool exists)

func (*KNWVotingSession) Votes

func (_KNWVoting *KNWVotingSession) Votes(arg0 *big.Int) (struct {
	Repository             [32]byte
	KnowledgeID            *big.Int
	CommitEndDate          *big.Int
	OpenEndDate            *big.Int
	NeededMajority         *big.Int
	WinningPercentage      *big.Int
	VotesFor               *big.Int
	VotesAgainst           *big.Int
	VotesUnrevealed        *big.Int
	ParticipantsFor        *big.Int
	ParticipantsAgainst    *big.Int
	ParticipantsUnrevealed *big.Int
	IsResolved             bool
}, error)

Votes is a free data retrieval call binding the contract method 0x5df81330.

Solidity: function votes(uint256 ) constant returns(bytes32 repository, uint256 knowledgeID, uint256 commitEndDate, uint256 openEndDate, uint256 neededMajority, uint256 winningPercentage, uint256 votesFor, uint256 votesAgainst, uint256 votesUnrevealed, uint256 participantsFor, uint256 participantsAgainst, uint256 participantsUnrevealed, bool isResolved)

type KNWVotingTransactor

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

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

func NewKNWVotingTransactor

func NewKNWVotingTransactor(address common.Address, transactor bind.ContractTransactor) (*KNWVotingTransactor, error)

NewKNWVotingTransactor creates a new write-only instance of KNWVoting, bound to a specific deployed contract.

func (*KNWVotingTransactor) AddDitCoordinator

func (_KNWVoting *KNWVotingTransactor) AddDitCoordinator(opts *bind.TransactOpts, _newDitCoordinatorAddress common.Address) (*types.Transaction, error)

AddDitCoordinator is a paid mutator transaction binding the contract method 0xa326690a.

Solidity: function addDitCoordinator(address _newDitCoordinatorAddress) returns(bool success)

func (*KNWVotingTransactor) AddNewRepository

func (_KNWVoting *KNWVotingTransactor) 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 (*KNWVotingTransactor) CommitVote

func (_KNWVoting *KNWVotingTransactor) 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 numberOfVotes)

func (*KNWVotingTransactor) EndVote

func (_KNWVoting *KNWVotingTransactor) 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 (*KNWVotingTransactor) FinalizeVote

func (_KNWVoting *KNWVotingTransactor) 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 numberOfKNW)

func (*KNWVotingTransactor) OpenVote

func (_KNWVoting *KNWVotingTransactor) 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 (*KNWVotingTransactor) ReplaceManager

func (_KNWVoting *KNWVotingTransactor) 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 success)

func (*KNWVotingTransactor) StartVote

func (_KNWVoting *KNWVotingTransactor) 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)

func (*KNWVotingTransactor) UpgradeContract

func (_KNWVoting *KNWVotingTransactor) 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 success)

type KNWVotingTransactorRaw

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

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

func (*KNWVotingTransactorRaw) Transact

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

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

func (*KNWVotingTransactorRaw) Transfer

func (_KNWVoting *KNWVotingTransactorRaw) 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 KNWVotingTransactorSession

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

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

func (*KNWVotingTransactorSession) AddDitCoordinator

func (_KNWVoting *KNWVotingTransactorSession) AddDitCoordinator(_newDitCoordinatorAddress common.Address) (*types.Transaction, error)

AddDitCoordinator is a paid mutator transaction binding the contract method 0xa326690a.

Solidity: function addDitCoordinator(address _newDitCoordinatorAddress) returns(bool success)

func (*KNWVotingTransactorSession) AddNewRepository

func (_KNWVoting *KNWVotingTransactorSession) 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 (*KNWVotingTransactorSession) CommitVote

func (_KNWVoting *KNWVotingTransactorSession) 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 numberOfVotes)

func (*KNWVotingTransactorSession) EndVote

func (_KNWVoting *KNWVotingTransactorSession) 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 (*KNWVotingTransactorSession) FinalizeVote

func (_KNWVoting *KNWVotingTransactorSession) 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 numberOfKNW)

func (*KNWVotingTransactorSession) OpenVote

func (_KNWVoting *KNWVotingTransactorSession) 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 (*KNWVotingTransactorSession) ReplaceManager

func (_KNWVoting *KNWVotingTransactorSession) 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 success)

func (*KNWVotingTransactorSession) StartVote

func (_KNWVoting *KNWVotingTransactorSession) 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)

func (*KNWVotingTransactorSession) UpgradeContract

func (_KNWVoting *KNWVotingTransactorSession) 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 success)

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