binding

package
v1.18.10 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BindingABI = BindingMetaData.ABI

BindingABI is the input ABI used to generate the binding from. Deprecated: Use BindingMetaData.ABI instead.

View Source
var BindingMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"ModuleRegistered\",\"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\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"TokenCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"create\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"moduleRegistry\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokenList\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenMapping\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

BindingMetaData contains all meta data concerning the Binding contract.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	BindingCaller     // Read-only binding to the contract
	BindingTransactor // Write-only binding to the contract
	BindingFilterer   // Log filterer for contract events
}

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

func NewBinding

func NewBinding(address common.Address, backend bind.ContractBackend) (*Binding, error)

NewBinding creates a new instance of Binding, bound to a specific deployed contract.

type BindingCaller

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

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

func NewBindingCaller

func NewBindingCaller(address common.Address, caller bind.ContractCaller) (*BindingCaller, error)

NewBindingCaller creates a new read-only instance of Binding, bound to a specific deployed contract.

func (*BindingCaller) Count

func (_Binding *BindingCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*BindingCaller) ModuleRegistry

func (_Binding *BindingCaller) ModuleRegistry(opts *bind.CallOpts, arg0 common.Address) (bool, error)

ModuleRegistry is a free data retrieval call binding the contract method 0x082a1051.

Solidity: function moduleRegistry(address ) view returns(bool)

func (*BindingCaller) Owner

func (_Binding *BindingCaller) 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)

func (*BindingCaller) TokenList

func (_Binding *BindingCaller) TokenList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*BindingCaller) TokenMapping

func (_Binding *BindingCaller) TokenMapping(opts *bind.CallOpts, arg0 common.Address) (bool, error)

TokenMapping is a free data retrieval call binding the contract method 0xba27f50b.

Solidity: function tokenMapping(address ) view returns(bool)

type BindingCallerRaw

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

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

func (*BindingCallerRaw) Call

func (_Binding *BindingCallerRaw) 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 BindingCallerSession

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

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

func (*BindingCallerSession) Count

func (_Binding *BindingCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*BindingCallerSession) ModuleRegistry

func (_Binding *BindingCallerSession) ModuleRegistry(arg0 common.Address) (bool, error)

ModuleRegistry is a free data retrieval call binding the contract method 0x082a1051.

Solidity: function moduleRegistry(address ) view returns(bool)

func (*BindingCallerSession) Owner

func (_Binding *BindingCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BindingCallerSession) TokenList

func (_Binding *BindingCallerSession) TokenList(arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*BindingCallerSession) TokenMapping

func (_Binding *BindingCallerSession) TokenMapping(arg0 common.Address) (bool, error)

TokenMapping is a free data retrieval call binding the contract method 0xba27f50b.

Solidity: function tokenMapping(address ) view returns(bool)

type BindingFilterer

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

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

func NewBindingFilterer

func NewBindingFilterer(address common.Address, filterer bind.ContractFilterer) (*BindingFilterer, error)

NewBindingFilterer creates a new log filterer instance of Binding, bound to a specific deployed contract.

func (*BindingFilterer) FilterModuleRegistered

func (_Binding *BindingFilterer) FilterModuleRegistered(opts *bind.FilterOpts, module []common.Address) (*BindingModuleRegisteredIterator, error)

FilterModuleRegistered is a free log retrieval operation binding the contract event 0x30091f391c7fccd6f943ec02ae164c4197ea3e43a67edc2edf908f3efc371876.

Solidity: event ModuleRegistered(address indexed module, bool status)

func (*BindingFilterer) FilterOwnershipTransferred

func (_Binding *BindingFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BindingOwnershipTransferredIterator, error)

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

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

func (*BindingFilterer) FilterTokenCreated

func (_Binding *BindingFilterer) FilterTokenCreated(opts *bind.FilterOpts, owner []common.Address) (*BindingTokenCreatedIterator, error)

FilterTokenCreated is a free log retrieval operation binding the contract event 0xd5f9bdf12adf29dab0248c349842c3822d53ae2bb4f36352f301630d018c8139.

Solidity: event TokenCreated(address indexed owner, address token)

func (*BindingFilterer) ParseModuleRegistered

func (_Binding *BindingFilterer) ParseModuleRegistered(log types.Log) (*BindingModuleRegistered, error)

ParseModuleRegistered is a log parse operation binding the contract event 0x30091f391c7fccd6f943ec02ae164c4197ea3e43a67edc2edf908f3efc371876.

Solidity: event ModuleRegistered(address indexed module, bool status)

func (*BindingFilterer) ParseOwnershipTransferred

func (_Binding *BindingFilterer) ParseOwnershipTransferred(log types.Log) (*BindingOwnershipTransferred, error)

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

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

func (*BindingFilterer) ParseTokenCreated

func (_Binding *BindingFilterer) ParseTokenCreated(log types.Log) (*BindingTokenCreated, error)

ParseTokenCreated is a log parse operation binding the contract event 0xd5f9bdf12adf29dab0248c349842c3822d53ae2bb4f36352f301630d018c8139.

Solidity: event TokenCreated(address indexed owner, address token)

func (*BindingFilterer) WatchModuleRegistered

func (_Binding *BindingFilterer) WatchModuleRegistered(opts *bind.WatchOpts, sink chan<- *BindingModuleRegistered, module []common.Address) (event.Subscription, error)

WatchModuleRegistered is a free log subscription operation binding the contract event 0x30091f391c7fccd6f943ec02ae164c4197ea3e43a67edc2edf908f3efc371876.

Solidity: event ModuleRegistered(address indexed module, bool status)

func (*BindingFilterer) WatchOwnershipTransferred

func (_Binding *BindingFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BindingOwnershipTransferred, 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 (*BindingFilterer) WatchTokenCreated

func (_Binding *BindingFilterer) WatchTokenCreated(opts *bind.WatchOpts, sink chan<- *BindingTokenCreated, owner []common.Address) (event.Subscription, error)

WatchTokenCreated is a free log subscription operation binding the contract event 0xd5f9bdf12adf29dab0248c349842c3822d53ae2bb4f36352f301630d018c8139.

Solidity: event TokenCreated(address indexed owner, address token)

type BindingModuleRegistered

type BindingModuleRegistered struct {
	Module common.Address
	Status bool
	Raw    types.Log // Blockchain specific contextual infos
}

BindingModuleRegistered represents a ModuleRegistered event raised by the Binding contract.

type BindingModuleRegisteredIterator

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

BindingModuleRegisteredIterator is returned from FilterModuleRegistered and is used to iterate over the raw logs and unpacked data for ModuleRegistered events raised by the Binding contract.

func (*BindingModuleRegisteredIterator) Close

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

func (*BindingModuleRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BindingModuleRegisteredIterator) 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 BindingOwnershipTransferred

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

BindingOwnershipTransferred represents a OwnershipTransferred event raised by the Binding contract.

type BindingOwnershipTransferredIterator

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

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

func (*BindingOwnershipTransferredIterator) Close

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

func (*BindingOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BindingOwnershipTransferredIterator) 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 BindingRaw

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

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

func (*BindingRaw) Call

func (_Binding *BindingRaw) 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 (*BindingRaw) Transact

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

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

func (*BindingRaw) Transfer

func (_Binding *BindingRaw) 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 BindingSession

type BindingSession struct {
	Contract     *Binding          // 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
}

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

func (*BindingSession) Count

func (_Binding *BindingSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*BindingSession) Create

func (_Binding *BindingSession) Create(module common.Address, name string, symbol string, uri string, data []byte) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x9eeeaa75.

Solidity: function create(address module, string name, string symbol, string uri, bytes data) returns(address)

func (*BindingSession) ModuleRegistry

func (_Binding *BindingSession) ModuleRegistry(arg0 common.Address) (bool, error)

ModuleRegistry is a free data retrieval call binding the contract method 0x082a1051.

Solidity: function moduleRegistry(address ) view returns(bool)

func (*BindingSession) Owner

func (_Binding *BindingSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BindingSession) Register

func (_Binding *BindingSession) Register(module common.Address, status bool) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xab01b469.

Solidity: function register(address module, bool status) returns()

func (*BindingSession) RenounceOwnership

func (_Binding *BindingSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BindingSession) TokenList

func (_Binding *BindingSession) TokenList(arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*BindingSession) TokenMapping

func (_Binding *BindingSession) TokenMapping(arg0 common.Address) (bool, error)

TokenMapping is a free data retrieval call binding the contract method 0xba27f50b.

Solidity: function tokenMapping(address ) view returns(bool)

func (*BindingSession) TransferOwnership

func (_Binding *BindingSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type BindingTokenCreated

type BindingTokenCreated struct {
	Owner common.Address
	Token common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

BindingTokenCreated represents a TokenCreated event raised by the Binding contract.

type BindingTokenCreatedIterator

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

BindingTokenCreatedIterator is returned from FilterTokenCreated and is used to iterate over the raw logs and unpacked data for TokenCreated events raised by the Binding contract.

func (*BindingTokenCreatedIterator) Close

func (it *BindingTokenCreatedIterator) Close() error

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

func (*BindingTokenCreatedIterator) Error

func (it *BindingTokenCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BindingTokenCreatedIterator) Next

func (it *BindingTokenCreatedIterator) Next() bool

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 BindingTransactor

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

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

func NewBindingTransactor

func NewBindingTransactor(address common.Address, transactor bind.ContractTransactor) (*BindingTransactor, error)

NewBindingTransactor creates a new write-only instance of Binding, bound to a specific deployed contract.

func (*BindingTransactor) Create

func (_Binding *BindingTransactor) Create(opts *bind.TransactOpts, module common.Address, name string, symbol string, uri string, data []byte) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x9eeeaa75.

Solidity: function create(address module, string name, string symbol, string uri, bytes data) returns(address)

func (*BindingTransactor) Register

func (_Binding *BindingTransactor) Register(opts *bind.TransactOpts, module common.Address, status bool) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xab01b469.

Solidity: function register(address module, bool status) returns()

func (*BindingTransactor) RenounceOwnership

func (_Binding *BindingTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BindingTransactor) TransferOwnership

func (_Binding *BindingTransactor) 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()

type BindingTransactorRaw

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

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

func (*BindingTransactorRaw) Transact

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

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

func (*BindingTransactorRaw) Transfer

func (_Binding *BindingTransactorRaw) 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 BindingTransactorSession

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

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

func (*BindingTransactorSession) Create

func (_Binding *BindingTransactorSession) Create(module common.Address, name string, symbol string, uri string, data []byte) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x9eeeaa75.

Solidity: function create(address module, string name, string symbol, string uri, bytes data) returns(address)

func (*BindingTransactorSession) Register

func (_Binding *BindingTransactorSession) Register(module common.Address, status bool) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xab01b469.

Solidity: function register(address module, bool status) returns()

func (*BindingTransactorSession) RenounceOwnership

func (_Binding *BindingTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BindingTransactorSession) TransferOwnership

func (_Binding *BindingTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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