directory

package
v0.110.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DirectoryABI = "" /* 1027-byte string literal not displayed */

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

Variables

View Source
var DirectoryBin = "" /* 1720-byte string literal not displayed */

DirectoryBin is the compiled bytecode used for deploying new contracts.

View Source
var DirectoryFuncSigs = map[string]string{
	"74837935": "addCommunity(bytes)",
	"e590b56a": "communities(uint256)",
	"c251b565": "getCommunities()",
	"b3dbb52a": "isCommunityInDirectory(bytes)",
	"3c01b93c": "removeCommunity(bytes)",
}

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

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 DeployDirectory

func DeployDirectory(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Directory, error)

DeployDirectory deploys a new Ethereum contract, binding an instance of Directory to it.

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

func (_Directory *DirectoryCaller) Communities(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error)

Communities is a free data retrieval call binding the contract method 0xe590b56a.

Solidity: function communities(uint256 ) view returns(bytes)

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

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

func (_Directory *DirectoryCallerSession) Communities(arg0 *big.Int) ([]byte, error)

Communities is a free data retrieval call binding the contract method 0xe590b56a.

Solidity: function communities(uint256 ) view returns(bytes)

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

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

func (_Directory *DirectorySession) Communities(arg0 *big.Int) ([]byte, error)

Communities is a free data retrieval call binding the contract method 0xe590b56a.

Solidity: function communities(uint256 ) view returns(bytes)

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

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

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

Jump to

Keyboard shortcuts

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