registry

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbiABI = AbiMetaData.ABI

AbiABI is the input ABI used to generate the binding from. Deprecated: Use AbiMetaData.ABI instead.

View Source
var AbiMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"name\":\"addToWhitelist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getWhitelistedChannels\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"channels\",\"type\":\"string[]\"},{\"internalType\":\"uint256\",\"name\":\"total\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"name\":\"isWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"channel\",\"type\":\"string\"}],\"name\":\"removeFromWhitelist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userChannels\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AbiMetaData contains all meta data concerning the Abi contract.

Functions

This section is empty.

Types

type Abi

type Abi struct {
	AbiCaller     // Read-only binding to the contract
	AbiTransactor // Write-only binding to the contract
	AbiFilterer   // Log filterer for contract events
}

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

func NewAbi

func NewAbi(address common.Address, backend bind.ContractBackend) (*Abi, error)

NewAbi creates a new instance of Abi, bound to a specific deployed contract.

type AbiCaller

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

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

func NewAbiCaller

func NewAbiCaller(address common.Address, caller bind.ContractCaller) (*AbiCaller, error)

NewAbiCaller creates a new read-only instance of Abi, bound to a specific deployed contract.

func (*AbiCaller) GetWhitelistedChannels

func (_Abi *AbiCaller) GetWhitelistedChannels(opts *bind.CallOpts, account common.Address, startIndex *big.Int, length *big.Int) (struct {
	Channels []string
	Total    *big.Int
}, error)

GetWhitelistedChannels is a free data retrieval call binding the contract method 0x834266ab.

Solidity: function getWhitelistedChannels(address account, uint256 startIndex, uint256 length) view returns(string[] channels, uint256 total)

func (*AbiCaller) IsWhitelisted

func (_Abi *AbiCaller) IsWhitelisted(opts *bind.CallOpts, user common.Address, channel string) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0xc1233d61.

Solidity: function isWhitelisted(address user, string channel) view returns(bool)

func (*AbiCaller) UserChannels

func (_Abi *AbiCaller) UserChannels(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (string, error)

UserChannels is a free data retrieval call binding the contract method 0x85e684f3.

Solidity: function userChannels(address , uint256 ) view returns(string)

type AbiCallerRaw

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

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

func (*AbiCallerRaw) Call

func (_Abi *AbiCallerRaw) 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 AbiCallerSession

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

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

func (*AbiCallerSession) GetWhitelistedChannels

func (_Abi *AbiCallerSession) GetWhitelistedChannels(account common.Address, startIndex *big.Int, length *big.Int) (struct {
	Channels []string
	Total    *big.Int
}, error)

GetWhitelistedChannels is a free data retrieval call binding the contract method 0x834266ab.

Solidity: function getWhitelistedChannels(address account, uint256 startIndex, uint256 length) view returns(string[] channels, uint256 total)

func (*AbiCallerSession) IsWhitelisted

func (_Abi *AbiCallerSession) IsWhitelisted(user common.Address, channel string) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0xc1233d61.

Solidity: function isWhitelisted(address user, string channel) view returns(bool)

func (*AbiCallerSession) UserChannels

func (_Abi *AbiCallerSession) UserChannels(arg0 common.Address, arg1 *big.Int) (string, error)

UserChannels is a free data retrieval call binding the contract method 0x85e684f3.

Solidity: function userChannels(address , uint256 ) view returns(string)

type AbiFilterer

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

AbiFilterer is an auto generated log filtering Go binding around an Ethereum contract entities.

func NewAbiFilterer

func NewAbiFilterer(address common.Address, filterer bind.ContractFilterer) (*AbiFilterer, error)

NewAbiFilterer creates a new log filterer instance of Abi, bound to a specific deployed contract.

type AbiRaw

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

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

func (*AbiRaw) Call

func (_Abi *AbiRaw) 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 (*AbiRaw) Transact

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

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

func (*AbiRaw) Transfer

func (_Abi *AbiRaw) 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 AbiSession

type AbiSession struct {
	Contract     *Abi              // 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
}

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

func (*AbiSession) AddToWhitelist

func (_Abi *AbiSession) AddToWhitelist(channel string) (*types.Transaction, error)

AddToWhitelist is a paid mutator transaction binding the contract method 0x73e08a47.

Solidity: function addToWhitelist(string channel) returns()

func (*AbiSession) GetWhitelistedChannels

func (_Abi *AbiSession) GetWhitelistedChannels(account common.Address, startIndex *big.Int, length *big.Int) (struct {
	Channels []string
	Total    *big.Int
}, error)

GetWhitelistedChannels is a free data retrieval call binding the contract method 0x834266ab.

Solidity: function getWhitelistedChannels(address account, uint256 startIndex, uint256 length) view returns(string[] channels, uint256 total)

func (*AbiSession) IsWhitelisted

func (_Abi *AbiSession) IsWhitelisted(user common.Address, channel string) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0xc1233d61.

Solidity: function isWhitelisted(address user, string channel) view returns(bool)

func (*AbiSession) RemoveFromWhitelist

func (_Abi *AbiSession) RemoveFromWhitelist(channel string) (*types.Transaction, error)

RemoveFromWhitelist is a paid mutator transaction binding the contract method 0x8cbab21f.

Solidity: function removeFromWhitelist(string channel) returns()

func (*AbiSession) UserChannels

func (_Abi *AbiSession) UserChannels(arg0 common.Address, arg1 *big.Int) (string, error)

UserChannels is a free data retrieval call binding the contract method 0x85e684f3.

Solidity: function userChannels(address , uint256 ) view returns(string)

type AbiTransactor

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

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

func NewAbiTransactor

func NewAbiTransactor(address common.Address, transactor bind.ContractTransactor) (*AbiTransactor, error)

NewAbiTransactor creates a new write-only instance of Abi, bound to a specific deployed contract.

func (*AbiTransactor) AddToWhitelist

func (_Abi *AbiTransactor) AddToWhitelist(opts *bind.TransactOpts, channel string) (*types.Transaction, error)

AddToWhitelist is a paid mutator transaction binding the contract method 0x73e08a47.

Solidity: function addToWhitelist(string channel) returns()

func (*AbiTransactor) RemoveFromWhitelist

func (_Abi *AbiTransactor) RemoveFromWhitelist(opts *bind.TransactOpts, channel string) (*types.Transaction, error)

RemoveFromWhitelist is a paid mutator transaction binding the contract method 0x8cbab21f.

Solidity: function removeFromWhitelist(string channel) returns()

type AbiTransactorRaw

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

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

func (*AbiTransactorRaw) Transact

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

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

func (*AbiTransactorRaw) Transfer

func (_Abi *AbiTransactorRaw) 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 AbiTransactorSession

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

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

func (*AbiTransactorSession) AddToWhitelist

func (_Abi *AbiTransactorSession) AddToWhitelist(channel string) (*types.Transaction, error)

AddToWhitelist is a paid mutator transaction binding the contract method 0x73e08a47.

Solidity: function addToWhitelist(string channel) returns()

func (*AbiTransactorSession) RemoveFromWhitelist

func (_Abi *AbiTransactorSession) RemoveFromWhitelist(channel string) (*types.Transaction, error)

RemoveFromWhitelist is a paid mutator transaction binding the contract method 0x8cbab21f.

Solidity: function removeFromWhitelist(string channel) returns()

Jump to

Keyboard shortcuts

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