directory

package
v0.182.42 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirectoryABI = DirectoryMetaData.ABI

DirectoryABI is the input ABI used to generate the binding from. Deprecated: Use DirectoryMetaData.ABI instead.

View Source
var DirectoryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_votingContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_featuredVotingContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"community\",\"type\":\"bytes\"}],\"name\":\"addCommunity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"featuredVotingContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunities\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeaturedCommunities\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"community\",\"type\":\"bytes\"}],\"name\":\"isCommunityFeatured\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"community\",\"type\":\"bytes\"}],\"name\":\"isCommunityInDirectory\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"community\",\"type\":\"bytes\"}],\"name\":\"removeCommunity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"_featuredCommunities\",\"type\":\"bytes[]\"}],\"name\":\"setFeaturedCommunities\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"votingContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

DirectoryMetaData contains all meta data concerning the Directory contract.

Functions

func ContractAddress

func ContractAddress(chainID uint64) (common.Address, error)

Types

type Directory

type Directory struct {
	DirectoryCaller     // Read-only binding to the contract
	DirectoryTransactor // Write-only binding to the contract
	DirectoryFilterer   // Log filterer for contract events
}

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

func NewDirectory

func NewDirectory(address common.Address, backend bind.ContractBackend) (*Directory, error)

NewDirectory creates a new instance of Directory, bound to a specific deployed contract.

type DirectoryCaller

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

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

func NewDirectoryCaller

func NewDirectoryCaller(address common.Address, caller bind.ContractCaller) (*DirectoryCaller, error)

NewDirectoryCaller creates a new read-only instance of Directory, bound to a specific deployed contract.

func (*DirectoryCaller) FeaturedVotingContract added in v0.171.10

func (_Directory *DirectoryCaller) FeaturedVotingContract(opts *bind.CallOpts) (common.Address, error)

FeaturedVotingContract is a free data retrieval call binding the contract method 0x7475fe93.

Solidity: function featuredVotingContract() view returns(address)

func (*DirectoryCaller) GetCommunities

func (_Directory *DirectoryCaller) GetCommunities(opts *bind.CallOpts) ([][]byte, error)

GetCommunities is a free data retrieval call binding the contract method 0xc251b565.

Solidity: function getCommunities() view returns(bytes[])

func (*DirectoryCaller) GetFeaturedCommunities added in v0.148.4

func (_Directory *DirectoryCaller) GetFeaturedCommunities(opts *bind.CallOpts) ([][]byte, error)

GetFeaturedCommunities is a free data retrieval call binding the contract method 0x967961c6.

Solidity: function getFeaturedCommunities() view returns(bytes[])

func (*DirectoryCaller) IsCommunityFeatured added in v0.148.4

func (_Directory *DirectoryCaller) IsCommunityFeatured(opts *bind.CallOpts, community []byte) (bool, error)

IsCommunityFeatured is a free data retrieval call binding the contract method 0xf6a18e62.

Solidity: function isCommunityFeatured(bytes community) view returns(bool)

func (*DirectoryCaller) IsCommunityInDirectory

func (_Directory *DirectoryCaller) IsCommunityInDirectory(opts *bind.CallOpts, community []byte) (bool, error)

IsCommunityInDirectory is a free data retrieval call binding the contract method 0xb3dbb52a.

Solidity: function isCommunityInDirectory(bytes community) view returns(bool)

func (*DirectoryCaller) VotingContract added in v0.171.10

func (_Directory *DirectoryCaller) VotingContract(opts *bind.CallOpts) (common.Address, error)

VotingContract is a free data retrieval call binding the contract method 0xc1fc006a.

Solidity: function votingContract() view returns(address)

type DirectoryCallerRaw

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

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

func (*DirectoryCallerRaw) Call

func (_Directory *DirectoryCallerRaw) 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 DirectoryCallerSession

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

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

func (*DirectoryCallerSession) FeaturedVotingContract added in v0.171.10

func (_Directory *DirectoryCallerSession) FeaturedVotingContract() (common.Address, error)

FeaturedVotingContract is a free data retrieval call binding the contract method 0x7475fe93.

Solidity: function featuredVotingContract() view returns(address)

func (*DirectoryCallerSession) GetCommunities

func (_Directory *DirectoryCallerSession) GetCommunities() ([][]byte, error)

GetCommunities is a free data retrieval call binding the contract method 0xc251b565.

Solidity: function getCommunities() view returns(bytes[])

func (*DirectoryCallerSession) GetFeaturedCommunities added in v0.148.4

func (_Directory *DirectoryCallerSession) GetFeaturedCommunities() ([][]byte, error)

GetFeaturedCommunities is a free data retrieval call binding the contract method 0x967961c6.

Solidity: function getFeaturedCommunities() view returns(bytes[])

func (*DirectoryCallerSession) IsCommunityFeatured added in v0.148.4

func (_Directory *DirectoryCallerSession) IsCommunityFeatured(community []byte) (bool, error)

IsCommunityFeatured is a free data retrieval call binding the contract method 0xf6a18e62.

Solidity: function isCommunityFeatured(bytes community) view returns(bool)

func (*DirectoryCallerSession) IsCommunityInDirectory

func (_Directory *DirectoryCallerSession) IsCommunityInDirectory(community []byte) (bool, error)

IsCommunityInDirectory is a free data retrieval call binding the contract method 0xb3dbb52a.

Solidity: function isCommunityInDirectory(bytes community) view returns(bool)

func (*DirectoryCallerSession) VotingContract added in v0.171.10

func (_Directory *DirectoryCallerSession) VotingContract() (common.Address, error)

VotingContract is a free data retrieval call binding the contract method 0xc1fc006a.

Solidity: function votingContract() view returns(address)

type DirectoryFilterer

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

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

func NewDirectoryFilterer

func NewDirectoryFilterer(address common.Address, filterer bind.ContractFilterer) (*DirectoryFilterer, error)

NewDirectoryFilterer creates a new log filterer instance of Directory, bound to a specific deployed contract.

type DirectoryRaw

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

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

func (*DirectoryRaw) Call

func (_Directory *DirectoryRaw) 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 (*DirectoryRaw) Transact

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

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

func (*DirectoryRaw) Transfer

func (_Directory *DirectoryRaw) 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 DirectorySession

type DirectorySession struct {
	Contract     *Directory        // 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
}

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

func (*DirectorySession) AddCommunity

func (_Directory *DirectorySession) AddCommunity(community []byte) (*types.Transaction, error)

AddCommunity is a paid mutator transaction binding the contract method 0x74837935.

Solidity: function addCommunity(bytes community) returns()

func (*DirectorySession) FeaturedVotingContract added in v0.171.10

func (_Directory *DirectorySession) FeaturedVotingContract() (common.Address, error)

FeaturedVotingContract is a free data retrieval call binding the contract method 0x7475fe93.

Solidity: function featuredVotingContract() view returns(address)

func (*DirectorySession) GetCommunities

func (_Directory *DirectorySession) GetCommunities() ([][]byte, error)

GetCommunities is a free data retrieval call binding the contract method 0xc251b565.

Solidity: function getCommunities() view returns(bytes[])

func (*DirectorySession) GetFeaturedCommunities added in v0.148.4

func (_Directory *DirectorySession) GetFeaturedCommunities() ([][]byte, error)

GetFeaturedCommunities is a free data retrieval call binding the contract method 0x967961c6.

Solidity: function getFeaturedCommunities() view returns(bytes[])

func (*DirectorySession) IsCommunityFeatured added in v0.148.4

func (_Directory *DirectorySession) IsCommunityFeatured(community []byte) (bool, error)

IsCommunityFeatured is a free data retrieval call binding the contract method 0xf6a18e62.

Solidity: function isCommunityFeatured(bytes community) view returns(bool)

func (*DirectorySession) IsCommunityInDirectory

func (_Directory *DirectorySession) IsCommunityInDirectory(community []byte) (bool, error)

IsCommunityInDirectory is a free data retrieval call binding the contract method 0xb3dbb52a.

Solidity: function isCommunityInDirectory(bytes community) view returns(bool)

func (*DirectorySession) RemoveCommunity

func (_Directory *DirectorySession) RemoveCommunity(community []byte) (*types.Transaction, error)

RemoveCommunity is a paid mutator transaction binding the contract method 0x3c01b93c.

Solidity: function removeCommunity(bytes community) returns()

func (*DirectorySession) SetFeaturedCommunities added in v0.148.4

func (_Directory *DirectorySession) SetFeaturedCommunities(_featuredCommunities [][]byte) (*types.Transaction, error)

SetFeaturedCommunities is a paid mutator transaction binding the contract method 0xd62879f1.

Solidity: function setFeaturedCommunities(bytes[] _featuredCommunities) returns()

func (*DirectorySession) VotingContract added in v0.171.10

func (_Directory *DirectorySession) VotingContract() (common.Address, error)

VotingContract is a free data retrieval call binding the contract method 0xc1fc006a.

Solidity: function votingContract() view returns(address)

type DirectoryTransactor

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

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

func NewDirectoryTransactor

func NewDirectoryTransactor(address common.Address, transactor bind.ContractTransactor) (*DirectoryTransactor, error)

NewDirectoryTransactor creates a new write-only instance of Directory, bound to a specific deployed contract.

func (*DirectoryTransactor) AddCommunity

func (_Directory *DirectoryTransactor) AddCommunity(opts *bind.TransactOpts, community []byte) (*types.Transaction, error)

AddCommunity is a paid mutator transaction binding the contract method 0x74837935.

Solidity: function addCommunity(bytes community) returns()

func (*DirectoryTransactor) RemoveCommunity

func (_Directory *DirectoryTransactor) RemoveCommunity(opts *bind.TransactOpts, community []byte) (*types.Transaction, error)

RemoveCommunity is a paid mutator transaction binding the contract method 0x3c01b93c.

Solidity: function removeCommunity(bytes community) returns()

func (*DirectoryTransactor) SetFeaturedCommunities added in v0.148.4

func (_Directory *DirectoryTransactor) SetFeaturedCommunities(opts *bind.TransactOpts, _featuredCommunities [][]byte) (*types.Transaction, error)

SetFeaturedCommunities is a paid mutator transaction binding the contract method 0xd62879f1.

Solidity: function setFeaturedCommunities(bytes[] _featuredCommunities) returns()

type DirectoryTransactorRaw

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

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

func (*DirectoryTransactorRaw) Transact

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

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

func (*DirectoryTransactorRaw) Transfer

func (_Directory *DirectoryTransactorRaw) 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 DirectoryTransactorSession

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

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

func (*DirectoryTransactorSession) AddCommunity

func (_Directory *DirectoryTransactorSession) AddCommunity(community []byte) (*types.Transaction, error)

AddCommunity is a paid mutator transaction binding the contract method 0x74837935.

Solidity: function addCommunity(bytes community) returns()

func (*DirectoryTransactorSession) RemoveCommunity

func (_Directory *DirectoryTransactorSession) RemoveCommunity(community []byte) (*types.Transaction, error)

RemoveCommunity is a paid mutator transaction binding the contract method 0x3c01b93c.

Solidity: function removeCommunity(bytes community) returns()

func (*DirectoryTransactorSession) SetFeaturedCommunities added in v0.148.4

func (_Directory *DirectoryTransactorSession) SetFeaturedCommunities(_featuredCommunities [][]byte) (*types.Transaction, error)

SetFeaturedCommunities is a paid mutator transaction binding the contract method 0xd62879f1.

Solidity: function setFeaturedCommunities(bytes[] _featuredCommunities) returns()

Jump to

Keyboard shortcuts

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