CommunityHubToken

package
v0.0.0-...-a470e00 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommunityHubTokenABI = CommunityHubTokenMetaData.ABI

CommunityHubTokenABI is the input ABI used to generate the binding from. Deprecated: Use CommunityHubTokenMetaData.ABI instead.

View Source
var CommunityHubTokenMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"AmountMismatch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"guardian\",\"type\":\"uint256\"}],\"name\":\"GuardianNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCreateElectionPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"}],\"name\":\"AdminCommunityManaged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"enumICommunityHub.CensusType\",\"name\":\"censusType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"blockchain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"internalType\":\"structICommunityHub.Token[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structICommunityHub.Census\",\"name\":\"census\",\"type\":\"tuple\"}],\"name\":\"CensusSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"}],\"name\":\"CommunityCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"}],\"name\":\"CommunityDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"}],\"name\":\"CommunityDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"}],\"name\":\"CommunityEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"CreateCommunityPriceSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumICommunityHub.CreateElectionPermission\",\"name\":\"createElectionPermission\",\"type\":\"uint8\"}],\"name\":\"CreateElectionPermissionSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"guardian\",\"type\":\"uint256\"}],\"name\":\"GuardianAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"guardian\",\"type\":\"uint256\"}],\"name\":\"GuardianRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"groupChatURL\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"bool\",\"name\":\"notifications\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"structICommunityHub.CommunityMetadata\",\"name\":\"metadata\",\"type\":\"tuple\"}],\"name\":\"MetadataSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"notifiableElections\",\"type\":\"bool\"}],\"name\":\"NotifiableElectionsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PricePerElectionSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"communityId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"electionId\",\"type\":\"bytes32\"}],\"name\":\"ResultsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_guardian\",\"type\":\"uint256\"}],\"name\":\"addGuardian\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"groupChatURL\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"bool\",\"name\":\"notifications\",\"type\":\"bool\"}],\"internalType\":\"structICommunityHub.CommunityMetadata\",\"name\":\"_metadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumICommunityHub.CensusType\",\"name\":\"censusType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"blockchain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"internalType\":\"structICommunityHub.Token[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"internalType\":\"structICommunityHub.Census\",\"name\":\"_census\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"_guardians\",\"type\":\"uint256[]\"},{\"internalType\":\"enumICommunityHub.CreateElectionPermission\",\"name\":\"_createElectionPermission\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"_disabled\",\"type\":\"bool\"}],\"name\":\"adminManageCommunity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"adminSetCommunityPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"adminSetPricePerElection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"groupChatURL\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"bool\",\"name\":\"notifications\",\"type\":\"bool\"}],\"internalType\":\"structICommunityHub.CommunityMetadata\",\"name\":\"_metadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumICommunityHub.CensusType\",\"name\":\"censusType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"blockchain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"internalType\":\"structICommunityHub.Token[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"internalType\":\"structICommunityHub.Census\",\"name\":\"_census\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"_guardians\",\"type\":\"uint256[]\"},{\"internalType\":\"enumICommunityHub.CreateElectionPermission\",\"name\":\"_createElectionPermission\",\"type\":\"uint8\"}],\"name\":\"createCommunity\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"}],\"name\":\"getCommunity\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"groupChatURL\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"bool\",\"name\":\"notifications\",\"type\":\"bool\"}],\"internalType\":\"structICommunityHub.CommunityMetadata\",\"name\":\"metadata\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumICommunityHub.CensusType\",\"name\":\"censusType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"blockchain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"internalType\":\"structICommunityHub.Token[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"internalType\":\"structICommunityHub.Census\",\"name\":\"census\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"guardians\",\"type\":\"uint256[]\"},{\"internalType\":\"enumICommunityHub.CreateElectionPermission\",\"name\":\"createElectionPermission\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"funds\",\"type\":\"uint256\"}],\"internalType\":\"structICommunityHub.Community\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreateCommunityPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNextCommunityId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPricePerElection\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_electionId\",\"type\":\"bytes32\"}],\"name\":\"getResult\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"question\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"options\",\"type\":\"string[]\"},{\"internalType\":\"string\",\"name\":\"date\",\"type\":\"string\"},{\"internalType\":\"uint256[][]\",\"name\":\"tally\",\"type\":\"uint256[][]\"},{\"internalType\":\"uint256\",\"name\":\"turnout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalVotingPower\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"participants\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes32\",\"name\":\"censusRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"censusURI\",\"type\":\"string\"}],\"internalType\":\"structIResult.Result\",\"name\":\"result\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_guardian\",\"type\":\"uint256\"}],\"name\":\"removeGuardian\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"enumICommunityHub.CensusType\",\"name\":\"censusType\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"blockchain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"internalType\":\"structICommunityHub.Token[]\",\"name\":\"tokens\",\"type\":\"tuple[]\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"internalType\":\"structICommunityHub.Census\",\"name\":\"_census\",\"type\":\"tuple\"}],\"name\":\"setCensus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"enumICommunityHub.CreateElectionPermission\",\"name\":\"_createElectionPermission\",\"type\":\"uint8\"}],\"name\":\"setCreateElectionPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"groupChatURL\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"bool\",\"name\":\"notifications\",\"type\":\"bool\"}],\"internalType\":\"structICommunityHub.CommunityMetadata\",\"name\":\"_metadata\",\"type\":\"tuple\"}],\"name\":\"setMetadata\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_notifiableElections\",\"type\":\"bool\"}],\"name\":\"setNotifiableElections\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_communityId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_electionId\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"question\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"options\",\"type\":\"string[]\"},{\"internalType\":\"string\",\"name\":\"date\",\"type\":\"string\"},{\"internalType\":\"uint256[][]\",\"name\":\"tally\",\"type\":\"uint256[][]\"},{\"internalType\":\"uint256\",\"name\":\"turnout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalVotingPower\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"participants\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes32\",\"name\":\"censusRoot\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"censusURI\",\"type\":\"string\"}],\"internalType\":\"structIResult.Result\",\"name\":\"_result\",\"type\":\"tuple\"}],\"name\":\"setResult\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

CommunityHubTokenMetaData contains all meta data concerning the CommunityHubToken contract.

Functions

This section is empty.

Types

type CommunityHubToken

type CommunityHubToken struct {
	CommunityHubTokenCaller     // Read-only binding to the contract
	CommunityHubTokenTransactor // Write-only binding to the contract
	CommunityHubTokenFilterer   // Log filterer for contract events
}

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

func NewCommunityHubToken

func NewCommunityHubToken(address common.Address, backend bind.ContractBackend) (*CommunityHubToken, error)

NewCommunityHubToken creates a new instance of CommunityHubToken, bound to a specific deployed contract.

type CommunityHubTokenAdminCommunityManaged

type CommunityHubTokenAdminCommunityManaged struct {
	CommunityId *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenAdminCommunityManaged represents a AdminCommunityManaged event raised by the CommunityHubToken contract.

type CommunityHubTokenAdminCommunityManagedIterator

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

CommunityHubTokenAdminCommunityManagedIterator is returned from FilterAdminCommunityManaged and is used to iterate over the raw logs and unpacked data for AdminCommunityManaged events raised by the CommunityHubToken contract.

func (*CommunityHubTokenAdminCommunityManagedIterator) Close

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

func (*CommunityHubTokenAdminCommunityManagedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenAdminCommunityManagedIterator) 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 CommunityHubTokenCaller

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

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

func NewCommunityHubTokenCaller

func NewCommunityHubTokenCaller(address common.Address, caller bind.ContractCaller) (*CommunityHubTokenCaller, error)

NewCommunityHubTokenCaller creates a new read-only instance of CommunityHubToken, bound to a specific deployed contract.

func (*CommunityHubTokenCaller) GetCommunity

func (_CommunityHubToken *CommunityHubTokenCaller) GetCommunity(opts *bind.CallOpts, _communityId *big.Int) (ICommunityHubCommunity, error)

GetCommunity is a free data retrieval call binding the contract method 0x370603f8.

Solidity: function getCommunity(uint256 _communityId) view returns(((string,string,string,string[],bool),(uint8,(string,address)[],string),uint256[],uint8,bool,uint256))

func (*CommunityHubTokenCaller) GetCreateCommunityPrice

func (_CommunityHubToken *CommunityHubTokenCaller) GetCreateCommunityPrice(opts *bind.CallOpts) (*big.Int, error)

GetCreateCommunityPrice is a free data retrieval call binding the contract method 0xc5bf44ab.

Solidity: function getCreateCommunityPrice() view returns(uint256)

func (*CommunityHubTokenCaller) GetNextCommunityId

func (_CommunityHubToken *CommunityHubTokenCaller) GetNextCommunityId(opts *bind.CallOpts) (*big.Int, error)

GetNextCommunityId is a free data retrieval call binding the contract method 0x9532c8c3.

Solidity: function getNextCommunityId() view returns(uint256)

func (*CommunityHubTokenCaller) GetPricePerElection

func (_CommunityHubToken *CommunityHubTokenCaller) GetPricePerElection(opts *bind.CallOpts) (*big.Int, error)

GetPricePerElection is a free data retrieval call binding the contract method 0xd62b5c59.

Solidity: function getPricePerElection() view returns(uint256)

func (*CommunityHubTokenCaller) GetResult

func (_CommunityHubToken *CommunityHubTokenCaller) GetResult(opts *bind.CallOpts, _communityId *big.Int, _electionId [32]byte) (IResultResult, error)

GetResult is a free data retrieval call binding the contract method 0x13e86265.

Solidity: function getResult(uint256 _communityId, bytes32 _electionId) view returns((string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) result)

func (*CommunityHubTokenCaller) Owner

func (_CommunityHubToken *CommunityHubTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type CommunityHubTokenCallerRaw

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

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

func (*CommunityHubTokenCallerRaw) Call

func (_CommunityHubToken *CommunityHubTokenCallerRaw) 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 CommunityHubTokenCallerSession

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

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

func (*CommunityHubTokenCallerSession) GetCommunity

func (_CommunityHubToken *CommunityHubTokenCallerSession) GetCommunity(_communityId *big.Int) (ICommunityHubCommunity, error)

GetCommunity is a free data retrieval call binding the contract method 0x370603f8.

Solidity: function getCommunity(uint256 _communityId) view returns(((string,string,string,string[],bool),(uint8,(string,address)[],string),uint256[],uint8,bool,uint256))

func (*CommunityHubTokenCallerSession) GetCreateCommunityPrice

func (_CommunityHubToken *CommunityHubTokenCallerSession) GetCreateCommunityPrice() (*big.Int, error)

GetCreateCommunityPrice is a free data retrieval call binding the contract method 0xc5bf44ab.

Solidity: function getCreateCommunityPrice() view returns(uint256)

func (*CommunityHubTokenCallerSession) GetNextCommunityId

func (_CommunityHubToken *CommunityHubTokenCallerSession) GetNextCommunityId() (*big.Int, error)

GetNextCommunityId is a free data retrieval call binding the contract method 0x9532c8c3.

Solidity: function getNextCommunityId() view returns(uint256)

func (*CommunityHubTokenCallerSession) GetPricePerElection

func (_CommunityHubToken *CommunityHubTokenCallerSession) GetPricePerElection() (*big.Int, error)

GetPricePerElection is a free data retrieval call binding the contract method 0xd62b5c59.

Solidity: function getPricePerElection() view returns(uint256)

func (*CommunityHubTokenCallerSession) GetResult

func (_CommunityHubToken *CommunityHubTokenCallerSession) GetResult(_communityId *big.Int, _electionId [32]byte) (IResultResult, error)

GetResult is a free data retrieval call binding the contract method 0x13e86265.

Solidity: function getResult(uint256 _communityId, bytes32 _electionId) view returns((string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) result)

func (*CommunityHubTokenCallerSession) Owner

func (_CommunityHubToken *CommunityHubTokenCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type CommunityHubTokenCensusSet

type CommunityHubTokenCensusSet struct {
	CommunityId *big.Int
	Census      ICommunityHubCensus
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCensusSet represents a CensusSet event raised by the CommunityHubToken contract.

type CommunityHubTokenCensusSetIterator

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

CommunityHubTokenCensusSetIterator is returned from FilterCensusSet and is used to iterate over the raw logs and unpacked data for CensusSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCensusSetIterator) Close

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

func (*CommunityHubTokenCensusSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCensusSetIterator) 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 CommunityHubTokenCommunityCreated

type CommunityHubTokenCommunityCreated struct {
	CommunityId *big.Int
	Creator     common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCommunityCreated represents a CommunityCreated event raised by the CommunityHubToken contract.

type CommunityHubTokenCommunityCreatedIterator

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

CommunityHubTokenCommunityCreatedIterator is returned from FilterCommunityCreated and is used to iterate over the raw logs and unpacked data for CommunityCreated events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCommunityCreatedIterator) Close

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

func (*CommunityHubTokenCommunityCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCommunityCreatedIterator) 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 CommunityHubTokenCommunityDeposit

type CommunityHubTokenCommunityDeposit struct {
	Sender      common.Address
	Amount      *big.Int
	CommunityId *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCommunityDeposit represents a CommunityDeposit event raised by the CommunityHubToken contract.

type CommunityHubTokenCommunityDepositIterator

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

CommunityHubTokenCommunityDepositIterator is returned from FilterCommunityDeposit and is used to iterate over the raw logs and unpacked data for CommunityDeposit events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCommunityDepositIterator) Close

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

func (*CommunityHubTokenCommunityDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCommunityDepositIterator) 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 CommunityHubTokenCommunityDisabled

type CommunityHubTokenCommunityDisabled struct {
	CommunityId *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCommunityDisabled represents a CommunityDisabled event raised by the CommunityHubToken contract.

type CommunityHubTokenCommunityDisabledIterator

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

CommunityHubTokenCommunityDisabledIterator is returned from FilterCommunityDisabled and is used to iterate over the raw logs and unpacked data for CommunityDisabled events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCommunityDisabledIterator) Close

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

func (*CommunityHubTokenCommunityDisabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCommunityDisabledIterator) 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 CommunityHubTokenCommunityEnabled

type CommunityHubTokenCommunityEnabled struct {
	CommunityId *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCommunityEnabled represents a CommunityEnabled event raised by the CommunityHubToken contract.

type CommunityHubTokenCommunityEnabledIterator

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

CommunityHubTokenCommunityEnabledIterator is returned from FilterCommunityEnabled and is used to iterate over the raw logs and unpacked data for CommunityEnabled events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCommunityEnabledIterator) Close

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

func (*CommunityHubTokenCommunityEnabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCommunityEnabledIterator) 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 CommunityHubTokenCreateCommunityPriceSet

type CommunityHubTokenCreateCommunityPriceSet struct {
	Price *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCreateCommunityPriceSet represents a CreateCommunityPriceSet event raised by the CommunityHubToken contract.

type CommunityHubTokenCreateCommunityPriceSetIterator

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

CommunityHubTokenCreateCommunityPriceSetIterator is returned from FilterCreateCommunityPriceSet and is used to iterate over the raw logs and unpacked data for CreateCommunityPriceSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCreateCommunityPriceSetIterator) Close

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

func (*CommunityHubTokenCreateCommunityPriceSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCreateCommunityPriceSetIterator) 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 CommunityHubTokenCreateElectionPermissionSet

type CommunityHubTokenCreateElectionPermissionSet struct {
	CommunityId              *big.Int
	CreateElectionPermission uint8
	Raw                      types.Log // Blockchain specific contextual infos
}

CommunityHubTokenCreateElectionPermissionSet represents a CreateElectionPermissionSet event raised by the CommunityHubToken contract.

type CommunityHubTokenCreateElectionPermissionSetIterator

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

CommunityHubTokenCreateElectionPermissionSetIterator is returned from FilterCreateElectionPermissionSet and is used to iterate over the raw logs and unpacked data for CreateElectionPermissionSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenCreateElectionPermissionSetIterator) Close

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

func (*CommunityHubTokenCreateElectionPermissionSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenCreateElectionPermissionSetIterator) 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 CommunityHubTokenDeposit

type CommunityHubTokenDeposit struct {
	Sender common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

CommunityHubTokenDeposit represents a Deposit event raised by the CommunityHubToken contract.

type CommunityHubTokenDepositIterator

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

CommunityHubTokenDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the CommunityHubToken contract.

func (*CommunityHubTokenDepositIterator) Close

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

func (*CommunityHubTokenDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenDepositIterator) 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 CommunityHubTokenFilterer

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

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

func NewCommunityHubTokenFilterer

func NewCommunityHubTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*CommunityHubTokenFilterer, error)

NewCommunityHubTokenFilterer creates a new log filterer instance of CommunityHubToken, bound to a specific deployed contract.

func (*CommunityHubTokenFilterer) FilterAdminCommunityManaged

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterAdminCommunityManaged(opts *bind.FilterOpts) (*CommunityHubTokenAdminCommunityManagedIterator, error)

FilterAdminCommunityManaged is a free log retrieval operation binding the contract event 0x887cc86755221db77fb9a404d4834a6ca76a28df7c71c7650318819ad0f46a3c.

Solidity: event AdminCommunityManaged(uint256 communityId)

func (*CommunityHubTokenFilterer) FilterCensusSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCensusSet(opts *bind.FilterOpts) (*CommunityHubTokenCensusSetIterator, error)

FilterCensusSet is a free log retrieval operation binding the contract event 0xf768bb0dd5bd987cdbc2706c837263b29e7326b0651e4fe20c16372d24cc02ac.

Solidity: event CensusSet(uint256 communityId, (uint8,(string,address)[],string) census)

func (*CommunityHubTokenFilterer) FilterCommunityCreated

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCommunityCreated(opts *bind.FilterOpts) (*CommunityHubTokenCommunityCreatedIterator, error)

FilterCommunityCreated is a free log retrieval operation binding the contract event 0x42c24a3323433819443a75d0e2651a9c84f696fba638d730042960045ef27241.

Solidity: event CommunityCreated(uint256 communityId, address creator)

func (*CommunityHubTokenFilterer) FilterCommunityDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCommunityDeposit(opts *bind.FilterOpts) (*CommunityHubTokenCommunityDepositIterator, error)

FilterCommunityDeposit is a free log retrieval operation binding the contract event 0xd6e9bd49f32ce5202a849c6ab581631b3e952257363b06975f32872e9e1656c9.

Solidity: event CommunityDeposit(address sender, uint256 amount, uint256 communityId)

func (*CommunityHubTokenFilterer) FilterCommunityDisabled

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCommunityDisabled(opts *bind.FilterOpts) (*CommunityHubTokenCommunityDisabledIterator, error)

FilterCommunityDisabled is a free log retrieval operation binding the contract event 0xd5d88098de5ba30573f08926c4e6445cab93ce09d98c1147a64045608a50797f.

Solidity: event CommunityDisabled(uint256 communityId)

func (*CommunityHubTokenFilterer) FilterCommunityEnabled

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCommunityEnabled(opts *bind.FilterOpts) (*CommunityHubTokenCommunityEnabledIterator, error)

FilterCommunityEnabled is a free log retrieval operation binding the contract event 0x8da007fc61f3601008aa139c728ea9bf16672668b03c07f6c402ab74c034fc81.

Solidity: event CommunityEnabled(uint256 communityId)

func (*CommunityHubTokenFilterer) FilterCreateCommunityPriceSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCreateCommunityPriceSet(opts *bind.FilterOpts) (*CommunityHubTokenCreateCommunityPriceSetIterator, error)

FilterCreateCommunityPriceSet is a free log retrieval operation binding the contract event 0xac9c054628ba106d4664c2c08386354e161eab546a0a47faf040bfc1062845e7.

Solidity: event CreateCommunityPriceSet(uint256 price)

func (*CommunityHubTokenFilterer) FilterCreateElectionPermissionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterCreateElectionPermissionSet(opts *bind.FilterOpts) (*CommunityHubTokenCreateElectionPermissionSetIterator, error)

FilterCreateElectionPermissionSet is a free log retrieval operation binding the contract event 0xeaeee81ca4b132c1f2699cf2e7f71c26adb6ffe780097ac7d6e9ddf978398b62.

Solidity: event CreateElectionPermissionSet(uint256 communityId, uint8 createElectionPermission)

func (*CommunityHubTokenFilterer) FilterDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterDeposit(opts *bind.FilterOpts) (*CommunityHubTokenDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address sender, uint256 amount)

func (*CommunityHubTokenFilterer) FilterGuardianAdded

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterGuardianAdded(opts *bind.FilterOpts) (*CommunityHubTokenGuardianAddedIterator, error)

FilterGuardianAdded is a free log retrieval operation binding the contract event 0xfcdfd5aeb97f499ca134ed43f010f2a4f5b0ab73d317ac27246a066a050a73af.

Solidity: event GuardianAdded(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) FilterGuardianRemoved

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterGuardianRemoved(opts *bind.FilterOpts) (*CommunityHubTokenGuardianRemovedIterator, error)

FilterGuardianRemoved is a free log retrieval operation binding the contract event 0x2264fa092e5819982f4edca5b7e9c6318a16dc3e03673510429c078656dea45c.

Solidity: event GuardianRemoved(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) FilterMetadataSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterMetadataSet(opts *bind.FilterOpts) (*CommunityHubTokenMetadataSetIterator, error)

FilterMetadataSet is a free log retrieval operation binding the contract event 0x440c55e385a61cd472c0cd76ee015cab9bd0760aef9634633e6597fdea583fd5.

Solidity: event MetadataSet(uint256 communityId, (string,string,string,string[],bool) metadata)

func (*CommunityHubTokenFilterer) FilterNotifiableElectionsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterNotifiableElectionsSet(opts *bind.FilterOpts) (*CommunityHubTokenNotifiableElectionsSetIterator, error)

FilterNotifiableElectionsSet is a free log retrieval operation binding the contract event 0xed2f2c7a2316ddc2f46a4581250611f807810052bb38bef2fbd1a81d087e064b.

Solidity: event NotifiableElectionsSet(uint256 communityId, bool notifiableElections)

func (*CommunityHubTokenFilterer) FilterOwnershipTransferred

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CommunityHubTokenOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CommunityHubTokenFilterer) FilterPricePerElectionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterPricePerElectionSet(opts *bind.FilterOpts) (*CommunityHubTokenPricePerElectionSetIterator, error)

FilterPricePerElectionSet is a free log retrieval operation binding the contract event 0x0840c2296c4c97ecdc9b8dc544cd67f45a8d629b9d6109410530bb58b7f17b92.

Solidity: event PricePerElectionSet(uint256 price)

func (*CommunityHubTokenFilterer) FilterResultsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterResultsSet(opts *bind.FilterOpts) (*CommunityHubTokenResultsSetIterator, error)

FilterResultsSet is a free log retrieval operation binding the contract event 0x77deb32519991dda7821b0b9367f9124aa3fd934f4845bcfd5dc6fa3f1922663.

Solidity: event ResultsSet(uint256 communityId, bytes32 electionId)

func (*CommunityHubTokenFilterer) FilterWithdrawal

func (_CommunityHubToken *CommunityHubTokenFilterer) FilterWithdrawal(opts *bind.FilterOpts) (*CommunityHubTokenWithdrawalIterator, error)

FilterWithdrawal is a free log retrieval operation binding the contract event 0xd964a27d45f595739c13d8b1160b57491050cacf3a2e5602207277d6228f64ee.

Solidity: event Withdrawal(uint256 amount, address to)

func (*CommunityHubTokenFilterer) ParseAdminCommunityManaged

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseAdminCommunityManaged(log types.Log) (*CommunityHubTokenAdminCommunityManaged, error)

ParseAdminCommunityManaged is a log parse operation binding the contract event 0x887cc86755221db77fb9a404d4834a6ca76a28df7c71c7650318819ad0f46a3c.

Solidity: event AdminCommunityManaged(uint256 communityId)

func (*CommunityHubTokenFilterer) ParseCensusSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCensusSet(log types.Log) (*CommunityHubTokenCensusSet, error)

ParseCensusSet is a log parse operation binding the contract event 0xf768bb0dd5bd987cdbc2706c837263b29e7326b0651e4fe20c16372d24cc02ac.

Solidity: event CensusSet(uint256 communityId, (uint8,(string,address)[],string) census)

func (*CommunityHubTokenFilterer) ParseCommunityCreated

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCommunityCreated(log types.Log) (*CommunityHubTokenCommunityCreated, error)

ParseCommunityCreated is a log parse operation binding the contract event 0x42c24a3323433819443a75d0e2651a9c84f696fba638d730042960045ef27241.

Solidity: event CommunityCreated(uint256 communityId, address creator)

func (*CommunityHubTokenFilterer) ParseCommunityDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCommunityDeposit(log types.Log) (*CommunityHubTokenCommunityDeposit, error)

ParseCommunityDeposit is a log parse operation binding the contract event 0xd6e9bd49f32ce5202a849c6ab581631b3e952257363b06975f32872e9e1656c9.

Solidity: event CommunityDeposit(address sender, uint256 amount, uint256 communityId)

func (*CommunityHubTokenFilterer) ParseCommunityDisabled

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCommunityDisabled(log types.Log) (*CommunityHubTokenCommunityDisabled, error)

ParseCommunityDisabled is a log parse operation binding the contract event 0xd5d88098de5ba30573f08926c4e6445cab93ce09d98c1147a64045608a50797f.

Solidity: event CommunityDisabled(uint256 communityId)

func (*CommunityHubTokenFilterer) ParseCommunityEnabled

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCommunityEnabled(log types.Log) (*CommunityHubTokenCommunityEnabled, error)

ParseCommunityEnabled is a log parse operation binding the contract event 0x8da007fc61f3601008aa139c728ea9bf16672668b03c07f6c402ab74c034fc81.

Solidity: event CommunityEnabled(uint256 communityId)

func (*CommunityHubTokenFilterer) ParseCreateCommunityPriceSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCreateCommunityPriceSet(log types.Log) (*CommunityHubTokenCreateCommunityPriceSet, error)

ParseCreateCommunityPriceSet is a log parse operation binding the contract event 0xac9c054628ba106d4664c2c08386354e161eab546a0a47faf040bfc1062845e7.

Solidity: event CreateCommunityPriceSet(uint256 price)

func (*CommunityHubTokenFilterer) ParseCreateElectionPermissionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseCreateElectionPermissionSet(log types.Log) (*CommunityHubTokenCreateElectionPermissionSet, error)

ParseCreateElectionPermissionSet is a log parse operation binding the contract event 0xeaeee81ca4b132c1f2699cf2e7f71c26adb6ffe780097ac7d6e9ddf978398b62.

Solidity: event CreateElectionPermissionSet(uint256 communityId, uint8 createElectionPermission)

func (*CommunityHubTokenFilterer) ParseDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseDeposit(log types.Log) (*CommunityHubTokenDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address sender, uint256 amount)

func (*CommunityHubTokenFilterer) ParseGuardianAdded

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseGuardianAdded(log types.Log) (*CommunityHubTokenGuardianAdded, error)

ParseGuardianAdded is a log parse operation binding the contract event 0xfcdfd5aeb97f499ca134ed43f010f2a4f5b0ab73d317ac27246a066a050a73af.

Solidity: event GuardianAdded(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) ParseGuardianRemoved

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseGuardianRemoved(log types.Log) (*CommunityHubTokenGuardianRemoved, error)

ParseGuardianRemoved is a log parse operation binding the contract event 0x2264fa092e5819982f4edca5b7e9c6318a16dc3e03673510429c078656dea45c.

Solidity: event GuardianRemoved(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) ParseMetadataSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseMetadataSet(log types.Log) (*CommunityHubTokenMetadataSet, error)

ParseMetadataSet is a log parse operation binding the contract event 0x440c55e385a61cd472c0cd76ee015cab9bd0760aef9634633e6597fdea583fd5.

Solidity: event MetadataSet(uint256 communityId, (string,string,string,string[],bool) metadata)

func (*CommunityHubTokenFilterer) ParseNotifiableElectionsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseNotifiableElectionsSet(log types.Log) (*CommunityHubTokenNotifiableElectionsSet, error)

ParseNotifiableElectionsSet is a log parse operation binding the contract event 0xed2f2c7a2316ddc2f46a4581250611f807810052bb38bef2fbd1a81d087e064b.

Solidity: event NotifiableElectionsSet(uint256 communityId, bool notifiableElections)

func (*CommunityHubTokenFilterer) ParseOwnershipTransferred

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseOwnershipTransferred(log types.Log) (*CommunityHubTokenOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CommunityHubTokenFilterer) ParsePricePerElectionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParsePricePerElectionSet(log types.Log) (*CommunityHubTokenPricePerElectionSet, error)

ParsePricePerElectionSet is a log parse operation binding the contract event 0x0840c2296c4c97ecdc9b8dc544cd67f45a8d629b9d6109410530bb58b7f17b92.

Solidity: event PricePerElectionSet(uint256 price)

func (*CommunityHubTokenFilterer) ParseResultsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseResultsSet(log types.Log) (*CommunityHubTokenResultsSet, error)

ParseResultsSet is a log parse operation binding the contract event 0x77deb32519991dda7821b0b9367f9124aa3fd934f4845bcfd5dc6fa3f1922663.

Solidity: event ResultsSet(uint256 communityId, bytes32 electionId)

func (*CommunityHubTokenFilterer) ParseWithdrawal

func (_CommunityHubToken *CommunityHubTokenFilterer) ParseWithdrawal(log types.Log) (*CommunityHubTokenWithdrawal, error)

ParseWithdrawal is a log parse operation binding the contract event 0xd964a27d45f595739c13d8b1160b57491050cacf3a2e5602207277d6228f64ee.

Solidity: event Withdrawal(uint256 amount, address to)

func (*CommunityHubTokenFilterer) WatchAdminCommunityManaged

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchAdminCommunityManaged(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenAdminCommunityManaged) (event.Subscription, error)

WatchAdminCommunityManaged is a free log subscription operation binding the contract event 0x887cc86755221db77fb9a404d4834a6ca76a28df7c71c7650318819ad0f46a3c.

Solidity: event AdminCommunityManaged(uint256 communityId)

func (*CommunityHubTokenFilterer) WatchCensusSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCensusSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCensusSet) (event.Subscription, error)

WatchCensusSet is a free log subscription operation binding the contract event 0xf768bb0dd5bd987cdbc2706c837263b29e7326b0651e4fe20c16372d24cc02ac.

Solidity: event CensusSet(uint256 communityId, (uint8,(string,address)[],string) census)

func (*CommunityHubTokenFilterer) WatchCommunityCreated

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCommunityCreated(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCommunityCreated) (event.Subscription, error)

WatchCommunityCreated is a free log subscription operation binding the contract event 0x42c24a3323433819443a75d0e2651a9c84f696fba638d730042960045ef27241.

Solidity: event CommunityCreated(uint256 communityId, address creator)

func (*CommunityHubTokenFilterer) WatchCommunityDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCommunityDeposit(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCommunityDeposit) (event.Subscription, error)

WatchCommunityDeposit is a free log subscription operation binding the contract event 0xd6e9bd49f32ce5202a849c6ab581631b3e952257363b06975f32872e9e1656c9.

Solidity: event CommunityDeposit(address sender, uint256 amount, uint256 communityId)

func (*CommunityHubTokenFilterer) WatchCommunityDisabled

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCommunityDisabled(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCommunityDisabled) (event.Subscription, error)

WatchCommunityDisabled is a free log subscription operation binding the contract event 0xd5d88098de5ba30573f08926c4e6445cab93ce09d98c1147a64045608a50797f.

Solidity: event CommunityDisabled(uint256 communityId)

func (*CommunityHubTokenFilterer) WatchCommunityEnabled

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCommunityEnabled(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCommunityEnabled) (event.Subscription, error)

WatchCommunityEnabled is a free log subscription operation binding the contract event 0x8da007fc61f3601008aa139c728ea9bf16672668b03c07f6c402ab74c034fc81.

Solidity: event CommunityEnabled(uint256 communityId)

func (*CommunityHubTokenFilterer) WatchCreateCommunityPriceSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCreateCommunityPriceSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCreateCommunityPriceSet) (event.Subscription, error)

WatchCreateCommunityPriceSet is a free log subscription operation binding the contract event 0xac9c054628ba106d4664c2c08386354e161eab546a0a47faf040bfc1062845e7.

Solidity: event CreateCommunityPriceSet(uint256 price)

func (*CommunityHubTokenFilterer) WatchCreateElectionPermissionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchCreateElectionPermissionSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenCreateElectionPermissionSet) (event.Subscription, error)

WatchCreateElectionPermissionSet is a free log subscription operation binding the contract event 0xeaeee81ca4b132c1f2699cf2e7f71c26adb6ffe780097ac7d6e9ddf978398b62.

Solidity: event CreateElectionPermissionSet(uint256 communityId, uint8 createElectionPermission)

func (*CommunityHubTokenFilterer) WatchDeposit

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenDeposit) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address sender, uint256 amount)

func (*CommunityHubTokenFilterer) WatchGuardianAdded

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchGuardianAdded(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenGuardianAdded) (event.Subscription, error)

WatchGuardianAdded is a free log subscription operation binding the contract event 0xfcdfd5aeb97f499ca134ed43f010f2a4f5b0ab73d317ac27246a066a050a73af.

Solidity: event GuardianAdded(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) WatchGuardianRemoved

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchGuardianRemoved(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenGuardianRemoved) (event.Subscription, error)

WatchGuardianRemoved is a free log subscription operation binding the contract event 0x2264fa092e5819982f4edca5b7e9c6318a16dc3e03673510429c078656dea45c.

Solidity: event GuardianRemoved(uint256 communityId, uint256 guardian)

func (*CommunityHubTokenFilterer) WatchMetadataSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchMetadataSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenMetadataSet) (event.Subscription, error)

WatchMetadataSet is a free log subscription operation binding the contract event 0x440c55e385a61cd472c0cd76ee015cab9bd0760aef9634633e6597fdea583fd5.

Solidity: event MetadataSet(uint256 communityId, (string,string,string,string[],bool) metadata)

func (*CommunityHubTokenFilterer) WatchNotifiableElectionsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchNotifiableElectionsSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenNotifiableElectionsSet) (event.Subscription, error)

WatchNotifiableElectionsSet is a free log subscription operation binding the contract event 0xed2f2c7a2316ddc2f46a4581250611f807810052bb38bef2fbd1a81d087e064b.

Solidity: event NotifiableElectionsSet(uint256 communityId, bool notifiableElections)

func (*CommunityHubTokenFilterer) WatchOwnershipTransferred

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*CommunityHubTokenFilterer) WatchPricePerElectionSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchPricePerElectionSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenPricePerElectionSet) (event.Subscription, error)

WatchPricePerElectionSet is a free log subscription operation binding the contract event 0x0840c2296c4c97ecdc9b8dc544cd67f45a8d629b9d6109410530bb58b7f17b92.

Solidity: event PricePerElectionSet(uint256 price)

func (*CommunityHubTokenFilterer) WatchResultsSet

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchResultsSet(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenResultsSet) (event.Subscription, error)

WatchResultsSet is a free log subscription operation binding the contract event 0x77deb32519991dda7821b0b9367f9124aa3fd934f4845bcfd5dc6fa3f1922663.

Solidity: event ResultsSet(uint256 communityId, bytes32 electionId)

func (*CommunityHubTokenFilterer) WatchWithdrawal

func (_CommunityHubToken *CommunityHubTokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *CommunityHubTokenWithdrawal) (event.Subscription, error)

WatchWithdrawal is a free log subscription operation binding the contract event 0xd964a27d45f595739c13d8b1160b57491050cacf3a2e5602207277d6228f64ee.

Solidity: event Withdrawal(uint256 amount, address to)

type CommunityHubTokenGuardianAdded

type CommunityHubTokenGuardianAdded struct {
	CommunityId *big.Int
	Guardian    *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenGuardianAdded represents a GuardianAdded event raised by the CommunityHubToken contract.

type CommunityHubTokenGuardianAddedIterator

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

CommunityHubTokenGuardianAddedIterator is returned from FilterGuardianAdded and is used to iterate over the raw logs and unpacked data for GuardianAdded events raised by the CommunityHubToken contract.

func (*CommunityHubTokenGuardianAddedIterator) Close

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

func (*CommunityHubTokenGuardianAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenGuardianAddedIterator) 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 CommunityHubTokenGuardianRemoved

type CommunityHubTokenGuardianRemoved struct {
	CommunityId *big.Int
	Guardian    *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenGuardianRemoved represents a GuardianRemoved event raised by the CommunityHubToken contract.

type CommunityHubTokenGuardianRemovedIterator

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

CommunityHubTokenGuardianRemovedIterator is returned from FilterGuardianRemoved and is used to iterate over the raw logs and unpacked data for GuardianRemoved events raised by the CommunityHubToken contract.

func (*CommunityHubTokenGuardianRemovedIterator) Close

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

func (*CommunityHubTokenGuardianRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenGuardianRemovedIterator) 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 CommunityHubTokenMetadataSet

type CommunityHubTokenMetadataSet struct {
	CommunityId *big.Int
	Metadata    ICommunityHubCommunityMetadata
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenMetadataSet represents a MetadataSet event raised by the CommunityHubToken contract.

type CommunityHubTokenMetadataSetIterator

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

CommunityHubTokenMetadataSetIterator is returned from FilterMetadataSet and is used to iterate over the raw logs and unpacked data for MetadataSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenMetadataSetIterator) Close

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

func (*CommunityHubTokenMetadataSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenMetadataSetIterator) 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 CommunityHubTokenNotifiableElectionsSet

type CommunityHubTokenNotifiableElectionsSet struct {
	CommunityId         *big.Int
	NotifiableElections bool
	Raw                 types.Log // Blockchain specific contextual infos
}

CommunityHubTokenNotifiableElectionsSet represents a NotifiableElectionsSet event raised by the CommunityHubToken contract.

type CommunityHubTokenNotifiableElectionsSetIterator

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

CommunityHubTokenNotifiableElectionsSetIterator is returned from FilterNotifiableElectionsSet and is used to iterate over the raw logs and unpacked data for NotifiableElectionsSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenNotifiableElectionsSetIterator) Close

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

func (*CommunityHubTokenNotifiableElectionsSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenNotifiableElectionsSetIterator) 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 CommunityHubTokenOwnershipTransferred

type CommunityHubTokenOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CommunityHubTokenOwnershipTransferred represents a OwnershipTransferred event raised by the CommunityHubToken contract.

type CommunityHubTokenOwnershipTransferredIterator

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

CommunityHubTokenOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the CommunityHubToken contract.

func (*CommunityHubTokenOwnershipTransferredIterator) Close

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

func (*CommunityHubTokenOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenOwnershipTransferredIterator) 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 CommunityHubTokenPricePerElectionSet

type CommunityHubTokenPricePerElectionSet struct {
	Price *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

CommunityHubTokenPricePerElectionSet represents a PricePerElectionSet event raised by the CommunityHubToken contract.

type CommunityHubTokenPricePerElectionSetIterator

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

CommunityHubTokenPricePerElectionSetIterator is returned from FilterPricePerElectionSet and is used to iterate over the raw logs and unpacked data for PricePerElectionSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenPricePerElectionSetIterator) Close

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

func (*CommunityHubTokenPricePerElectionSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenPricePerElectionSetIterator) 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 CommunityHubTokenRaw

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

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

func (*CommunityHubTokenRaw) Call

func (_CommunityHubToken *CommunityHubTokenRaw) 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 (*CommunityHubTokenRaw) Transact

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

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

func (*CommunityHubTokenRaw) Transfer

func (_CommunityHubToken *CommunityHubTokenRaw) 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 CommunityHubTokenResultsSet

type CommunityHubTokenResultsSet struct {
	CommunityId *big.Int
	ElectionId  [32]byte
	Raw         types.Log // Blockchain specific contextual infos
}

CommunityHubTokenResultsSet represents a ResultsSet event raised by the CommunityHubToken contract.

type CommunityHubTokenResultsSetIterator

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

CommunityHubTokenResultsSetIterator is returned from FilterResultsSet and is used to iterate over the raw logs and unpacked data for ResultsSet events raised by the CommunityHubToken contract.

func (*CommunityHubTokenResultsSetIterator) Close

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

func (*CommunityHubTokenResultsSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenResultsSetIterator) 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 CommunityHubTokenSession

type CommunityHubTokenSession struct {
	Contract     *CommunityHubToken // 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
}

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

func (*CommunityHubTokenSession) AddGuardian

func (_CommunityHubToken *CommunityHubTokenSession) AddGuardian(_communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

AddGuardian is a paid mutator transaction binding the contract method 0xc8b785f3.

Solidity: function addGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenSession) AdminManageCommunity

func (_CommunityHubToken *CommunityHubTokenSession) AdminManageCommunity(_communityId *big.Int, _metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8, _disabled bool) (*types.Transaction, error)

AdminManageCommunity is a paid mutator transaction binding the contract method 0x040cdd0a.

Solidity: function adminManageCommunity(uint256 _communityId, (string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission, bool _disabled) returns()

func (*CommunityHubTokenSession) AdminSetCommunityPrice

func (_CommunityHubToken *CommunityHubTokenSession) AdminSetCommunityPrice(_price *big.Int) (*types.Transaction, error)

AdminSetCommunityPrice is a paid mutator transaction binding the contract method 0x873ceb2e.

Solidity: function adminSetCommunityPrice(uint256 _price) returns()

func (*CommunityHubTokenSession) AdminSetPricePerElection

func (_CommunityHubToken *CommunityHubTokenSession) AdminSetPricePerElection(_price *big.Int) (*types.Transaction, error)

AdminSetPricePerElection is a paid mutator transaction binding the contract method 0x3e512ebc.

Solidity: function adminSetPricePerElection(uint256 _price) returns()

func (*CommunityHubTokenSession) CreateCommunity

func (_CommunityHubToken *CommunityHubTokenSession) CreateCommunity(_metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8) (*types.Transaction, error)

CreateCommunity is a paid mutator transaction binding the contract method 0x6061a460.

Solidity: function createCommunity((string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission) payable returns()

func (*CommunityHubTokenSession) Deposit

func (_CommunityHubToken *CommunityHubTokenSession) Deposit(_communityId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _communityId) payable returns()

func (*CommunityHubTokenSession) GetCommunity

func (_CommunityHubToken *CommunityHubTokenSession) GetCommunity(_communityId *big.Int) (ICommunityHubCommunity, error)

GetCommunity is a free data retrieval call binding the contract method 0x370603f8.

Solidity: function getCommunity(uint256 _communityId) view returns(((string,string,string,string[],bool),(uint8,(string,address)[],string),uint256[],uint8,bool,uint256))

func (*CommunityHubTokenSession) GetCreateCommunityPrice

func (_CommunityHubToken *CommunityHubTokenSession) GetCreateCommunityPrice() (*big.Int, error)

GetCreateCommunityPrice is a free data retrieval call binding the contract method 0xc5bf44ab.

Solidity: function getCreateCommunityPrice() view returns(uint256)

func (*CommunityHubTokenSession) GetNextCommunityId

func (_CommunityHubToken *CommunityHubTokenSession) GetNextCommunityId() (*big.Int, error)

GetNextCommunityId is a free data retrieval call binding the contract method 0x9532c8c3.

Solidity: function getNextCommunityId() view returns(uint256)

func (*CommunityHubTokenSession) GetPricePerElection

func (_CommunityHubToken *CommunityHubTokenSession) GetPricePerElection() (*big.Int, error)

GetPricePerElection is a free data retrieval call binding the contract method 0xd62b5c59.

Solidity: function getPricePerElection() view returns(uint256)

func (*CommunityHubTokenSession) GetResult

func (_CommunityHubToken *CommunityHubTokenSession) GetResult(_communityId *big.Int, _electionId [32]byte) (IResultResult, error)

GetResult is a free data retrieval call binding the contract method 0x13e86265.

Solidity: function getResult(uint256 _communityId, bytes32 _electionId) view returns((string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) result)

func (*CommunityHubTokenSession) Owner

func (_CommunityHubToken *CommunityHubTokenSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*CommunityHubTokenSession) Receive

func (_CommunityHubToken *CommunityHubTokenSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*CommunityHubTokenSession) RemoveGuardian

func (_CommunityHubToken *CommunityHubTokenSession) RemoveGuardian(_communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

RemoveGuardian is a paid mutator transaction binding the contract method 0xaba675b0.

Solidity: function removeGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenSession) RenounceOwnership

func (_CommunityHubToken *CommunityHubTokenSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CommunityHubTokenSession) SetCensus

func (_CommunityHubToken *CommunityHubTokenSession) SetCensus(_communityId *big.Int, _census ICommunityHubCensus) (*types.Transaction, error)

SetCensus is a paid mutator transaction binding the contract method 0x56c4e4ba.

Solidity: function setCensus(uint256 _communityId, (uint8,(string,address)[],string) _census) returns()

func (*CommunityHubTokenSession) SetCreateElectionPermission

func (_CommunityHubToken *CommunityHubTokenSession) SetCreateElectionPermission(_communityId *big.Int, _createElectionPermission uint8) (*types.Transaction, error)

SetCreateElectionPermission is a paid mutator transaction binding the contract method 0x7824c05c.

Solidity: function setCreateElectionPermission(uint256 _communityId, uint8 _createElectionPermission) returns()

func (*CommunityHubTokenSession) SetMetadata

func (_CommunityHubToken *CommunityHubTokenSession) SetMetadata(_communityId *big.Int, _metadata ICommunityHubCommunityMetadata) (*types.Transaction, error)

SetMetadata is a paid mutator transaction binding the contract method 0x82e6d638.

Solidity: function setMetadata(uint256 _communityId, (string,string,string,string[],bool) _metadata) returns()

func (*CommunityHubTokenSession) SetNotifiableElections

func (_CommunityHubToken *CommunityHubTokenSession) SetNotifiableElections(_communityId *big.Int, _notifiableElections bool) (*types.Transaction, error)

SetNotifiableElections is a paid mutator transaction binding the contract method 0xe6160fa3.

Solidity: function setNotifiableElections(uint256 _communityId, bool _notifiableElections) returns()

func (*CommunityHubTokenSession) SetResult

func (_CommunityHubToken *CommunityHubTokenSession) SetResult(_communityId *big.Int, _electionId [32]byte, _result IResultResult) (*types.Transaction, error)

SetResult is a paid mutator transaction binding the contract method 0x3c973f75.

Solidity: function setResult(uint256 _communityId, bytes32 _electionId, (string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) _result) returns()

func (*CommunityHubTokenSession) TransferOwnership

func (_CommunityHubToken *CommunityHubTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CommunityHubTokenSession) Withdraw

func (_CommunityHubToken *CommunityHubTokenSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type CommunityHubTokenTransactor

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

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

func NewCommunityHubTokenTransactor

func NewCommunityHubTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*CommunityHubTokenTransactor, error)

NewCommunityHubTokenTransactor creates a new write-only instance of CommunityHubToken, bound to a specific deployed contract.

func (*CommunityHubTokenTransactor) AddGuardian

func (_CommunityHubToken *CommunityHubTokenTransactor) AddGuardian(opts *bind.TransactOpts, _communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

AddGuardian is a paid mutator transaction binding the contract method 0xc8b785f3.

Solidity: function addGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenTransactor) AdminManageCommunity

func (_CommunityHubToken *CommunityHubTokenTransactor) AdminManageCommunity(opts *bind.TransactOpts, _communityId *big.Int, _metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8, _disabled bool) (*types.Transaction, error)

AdminManageCommunity is a paid mutator transaction binding the contract method 0x040cdd0a.

Solidity: function adminManageCommunity(uint256 _communityId, (string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission, bool _disabled) returns()

func (*CommunityHubTokenTransactor) AdminSetCommunityPrice

func (_CommunityHubToken *CommunityHubTokenTransactor) AdminSetCommunityPrice(opts *bind.TransactOpts, _price *big.Int) (*types.Transaction, error)

AdminSetCommunityPrice is a paid mutator transaction binding the contract method 0x873ceb2e.

Solidity: function adminSetCommunityPrice(uint256 _price) returns()

func (*CommunityHubTokenTransactor) AdminSetPricePerElection

func (_CommunityHubToken *CommunityHubTokenTransactor) AdminSetPricePerElection(opts *bind.TransactOpts, _price *big.Int) (*types.Transaction, error)

AdminSetPricePerElection is a paid mutator transaction binding the contract method 0x3e512ebc.

Solidity: function adminSetPricePerElection(uint256 _price) returns()

func (*CommunityHubTokenTransactor) CreateCommunity

func (_CommunityHubToken *CommunityHubTokenTransactor) CreateCommunity(opts *bind.TransactOpts, _metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8) (*types.Transaction, error)

CreateCommunity is a paid mutator transaction binding the contract method 0x6061a460.

Solidity: function createCommunity((string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission) payable returns()

func (*CommunityHubTokenTransactor) Deposit

func (_CommunityHubToken *CommunityHubTokenTransactor) Deposit(opts *bind.TransactOpts, _communityId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _communityId) payable returns()

func (*CommunityHubTokenTransactor) Receive

func (_CommunityHubToken *CommunityHubTokenTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*CommunityHubTokenTransactor) RemoveGuardian

func (_CommunityHubToken *CommunityHubTokenTransactor) RemoveGuardian(opts *bind.TransactOpts, _communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

RemoveGuardian is a paid mutator transaction binding the contract method 0xaba675b0.

Solidity: function removeGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenTransactor) RenounceOwnership

func (_CommunityHubToken *CommunityHubTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CommunityHubTokenTransactor) SetCensus

func (_CommunityHubToken *CommunityHubTokenTransactor) SetCensus(opts *bind.TransactOpts, _communityId *big.Int, _census ICommunityHubCensus) (*types.Transaction, error)

SetCensus is a paid mutator transaction binding the contract method 0x56c4e4ba.

Solidity: function setCensus(uint256 _communityId, (uint8,(string,address)[],string) _census) returns()

func (*CommunityHubTokenTransactor) SetCreateElectionPermission

func (_CommunityHubToken *CommunityHubTokenTransactor) SetCreateElectionPermission(opts *bind.TransactOpts, _communityId *big.Int, _createElectionPermission uint8) (*types.Transaction, error)

SetCreateElectionPermission is a paid mutator transaction binding the contract method 0x7824c05c.

Solidity: function setCreateElectionPermission(uint256 _communityId, uint8 _createElectionPermission) returns()

func (*CommunityHubTokenTransactor) SetMetadata

func (_CommunityHubToken *CommunityHubTokenTransactor) SetMetadata(opts *bind.TransactOpts, _communityId *big.Int, _metadata ICommunityHubCommunityMetadata) (*types.Transaction, error)

SetMetadata is a paid mutator transaction binding the contract method 0x82e6d638.

Solidity: function setMetadata(uint256 _communityId, (string,string,string,string[],bool) _metadata) returns()

func (*CommunityHubTokenTransactor) SetNotifiableElections

func (_CommunityHubToken *CommunityHubTokenTransactor) SetNotifiableElections(opts *bind.TransactOpts, _communityId *big.Int, _notifiableElections bool) (*types.Transaction, error)

SetNotifiableElections is a paid mutator transaction binding the contract method 0xe6160fa3.

Solidity: function setNotifiableElections(uint256 _communityId, bool _notifiableElections) returns()

func (*CommunityHubTokenTransactor) SetResult

func (_CommunityHubToken *CommunityHubTokenTransactor) SetResult(opts *bind.TransactOpts, _communityId *big.Int, _electionId [32]byte, _result IResultResult) (*types.Transaction, error)

SetResult is a paid mutator transaction binding the contract method 0x3c973f75.

Solidity: function setResult(uint256 _communityId, bytes32 _electionId, (string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) _result) returns()

func (*CommunityHubTokenTransactor) TransferOwnership

func (_CommunityHubToken *CommunityHubTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CommunityHubTokenTransactor) Withdraw

func (_CommunityHubToken *CommunityHubTokenTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type CommunityHubTokenTransactorRaw

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

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

func (*CommunityHubTokenTransactorRaw) Transact

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

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

func (*CommunityHubTokenTransactorRaw) Transfer

func (_CommunityHubToken *CommunityHubTokenTransactorRaw) 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 CommunityHubTokenTransactorSession

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

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

func (*CommunityHubTokenTransactorSession) AddGuardian

func (_CommunityHubToken *CommunityHubTokenTransactorSession) AddGuardian(_communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

AddGuardian is a paid mutator transaction binding the contract method 0xc8b785f3.

Solidity: function addGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenTransactorSession) AdminManageCommunity

func (_CommunityHubToken *CommunityHubTokenTransactorSession) AdminManageCommunity(_communityId *big.Int, _metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8, _disabled bool) (*types.Transaction, error)

AdminManageCommunity is a paid mutator transaction binding the contract method 0x040cdd0a.

Solidity: function adminManageCommunity(uint256 _communityId, (string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission, bool _disabled) returns()

func (*CommunityHubTokenTransactorSession) AdminSetCommunityPrice

func (_CommunityHubToken *CommunityHubTokenTransactorSession) AdminSetCommunityPrice(_price *big.Int) (*types.Transaction, error)

AdminSetCommunityPrice is a paid mutator transaction binding the contract method 0x873ceb2e.

Solidity: function adminSetCommunityPrice(uint256 _price) returns()

func (*CommunityHubTokenTransactorSession) AdminSetPricePerElection

func (_CommunityHubToken *CommunityHubTokenTransactorSession) AdminSetPricePerElection(_price *big.Int) (*types.Transaction, error)

AdminSetPricePerElection is a paid mutator transaction binding the contract method 0x3e512ebc.

Solidity: function adminSetPricePerElection(uint256 _price) returns()

func (*CommunityHubTokenTransactorSession) CreateCommunity

func (_CommunityHubToken *CommunityHubTokenTransactorSession) CreateCommunity(_metadata ICommunityHubCommunityMetadata, _census ICommunityHubCensus, _guardians []*big.Int, _createElectionPermission uint8) (*types.Transaction, error)

CreateCommunity is a paid mutator transaction binding the contract method 0x6061a460.

Solidity: function createCommunity((string,string,string,string[],bool) _metadata, (uint8,(string,address)[],string) _census, uint256[] _guardians, uint8 _createElectionPermission) payable returns()

func (*CommunityHubTokenTransactorSession) Deposit

func (_CommunityHubToken *CommunityHubTokenTransactorSession) Deposit(_communityId *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _communityId) payable returns()

func (*CommunityHubTokenTransactorSession) Receive

func (_CommunityHubToken *CommunityHubTokenTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*CommunityHubTokenTransactorSession) RemoveGuardian

func (_CommunityHubToken *CommunityHubTokenTransactorSession) RemoveGuardian(_communityId *big.Int, _guardian *big.Int) (*types.Transaction, error)

RemoveGuardian is a paid mutator transaction binding the contract method 0xaba675b0.

Solidity: function removeGuardian(uint256 _communityId, uint256 _guardian) returns()

func (*CommunityHubTokenTransactorSession) RenounceOwnership

func (_CommunityHubToken *CommunityHubTokenTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*CommunityHubTokenTransactorSession) SetCensus

func (_CommunityHubToken *CommunityHubTokenTransactorSession) SetCensus(_communityId *big.Int, _census ICommunityHubCensus) (*types.Transaction, error)

SetCensus is a paid mutator transaction binding the contract method 0x56c4e4ba.

Solidity: function setCensus(uint256 _communityId, (uint8,(string,address)[],string) _census) returns()

func (*CommunityHubTokenTransactorSession) SetCreateElectionPermission

func (_CommunityHubToken *CommunityHubTokenTransactorSession) SetCreateElectionPermission(_communityId *big.Int, _createElectionPermission uint8) (*types.Transaction, error)

SetCreateElectionPermission is a paid mutator transaction binding the contract method 0x7824c05c.

Solidity: function setCreateElectionPermission(uint256 _communityId, uint8 _createElectionPermission) returns()

func (*CommunityHubTokenTransactorSession) SetMetadata

func (_CommunityHubToken *CommunityHubTokenTransactorSession) SetMetadata(_communityId *big.Int, _metadata ICommunityHubCommunityMetadata) (*types.Transaction, error)

SetMetadata is a paid mutator transaction binding the contract method 0x82e6d638.

Solidity: function setMetadata(uint256 _communityId, (string,string,string,string[],bool) _metadata) returns()

func (*CommunityHubTokenTransactorSession) SetNotifiableElections

func (_CommunityHubToken *CommunityHubTokenTransactorSession) SetNotifiableElections(_communityId *big.Int, _notifiableElections bool) (*types.Transaction, error)

SetNotifiableElections is a paid mutator transaction binding the contract method 0xe6160fa3.

Solidity: function setNotifiableElections(uint256 _communityId, bool _notifiableElections) returns()

func (*CommunityHubTokenTransactorSession) SetResult

func (_CommunityHubToken *CommunityHubTokenTransactorSession) SetResult(_communityId *big.Int, _electionId [32]byte, _result IResultResult) (*types.Transaction, error)

SetResult is a paid mutator transaction binding the contract method 0x3c973f75.

Solidity: function setResult(uint256 _communityId, bytes32 _electionId, (string,string[],string,uint256[][],uint256,uint256,uint256[],bytes32,string) _result) returns()

func (*CommunityHubTokenTransactorSession) TransferOwnership

func (_CommunityHubToken *CommunityHubTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*CommunityHubTokenTransactorSession) Withdraw

func (_CommunityHubToken *CommunityHubTokenTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type CommunityHubTokenWithdrawal

type CommunityHubTokenWithdrawal struct {
	Amount *big.Int
	To     common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

CommunityHubTokenWithdrawal represents a Withdrawal event raised by the CommunityHubToken contract.

type CommunityHubTokenWithdrawalIterator

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

CommunityHubTokenWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the CommunityHubToken contract.

func (*CommunityHubTokenWithdrawalIterator) Close

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

func (*CommunityHubTokenWithdrawalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CommunityHubTokenWithdrawalIterator) 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 ICommunityHubCensus

type ICommunityHubCensus struct {
	CensusType uint8
	Tokens     []ICommunityHubToken
	Channel    string
}

ICommunityHubCensus is an auto generated low-level Go binding around an user-defined struct.

type ICommunityHubCommunity

type ICommunityHubCommunity struct {
	Metadata                 ICommunityHubCommunityMetadata
	Census                   ICommunityHubCensus
	Guardians                []*big.Int
	CreateElectionPermission uint8
	Disabled                 bool
	Funds                    *big.Int
}

ICommunityHubCommunity is an auto generated low-level Go binding around an user-defined struct.

type ICommunityHubCommunityMetadata

type ICommunityHubCommunityMetadata struct {
	Name          string
	ImageURI      string
	GroupChatURL  string
	Channels      []string
	Notifications bool
}

ICommunityHubCommunityMetadata is an auto generated low-level Go binding around an user-defined struct.

type ICommunityHubToken

type ICommunityHubToken struct {
	Blockchain      string
	ContractAddress common.Address
}

ICommunityHubToken is an auto generated low-level Go binding around an user-defined struct.

type IResultResult

type IResultResult struct {
	Question         string
	Options          []string
	Date             string
	Tally            [][]*big.Int
	Turnout          *big.Int
	TotalVotingPower *big.Int
	Participants     []*big.Int
	CensusRoot       [32]byte
	CensusURI        string
}

IResultResult is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL