matters

package
v0.4.42 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressCuration = common.HexToAddress("0x5edebbdae7B5C79a69AaCF7873796bb1Ec664DB8")

	EventCuration = contract.EventHash("Curation(address,address,address,string,uint256)")
)
View Source
var MattersABI = MattersMetaData.ABI

MattersABI is the input ABI used to generate the binding from. Deprecated: Use MattersMetaData.ABI instead.

View Source
var MattersMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InvalidURI\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SelfCuration\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAmount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Curation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Curation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"token_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"uri_\",\"type\":\"string\"}],\"name\":\"curate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri_\",\"type\":\"string\"}],\"name\":\"curate\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId_\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

MattersMetaData contains all meta data concerning the Matters contract.

Functions

This section is empty.

Types

type Matters

type Matters struct {
	MattersCaller     // Read-only binding to the contract
	MattersTransactor // Write-only binding to the contract
	MattersFilterer   // Log filterer for contract events
}

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

func NewMatters

func NewMatters(address common.Address, backend bind.ContractBackend) (*Matters, error)

NewMatters creates a new instance of Matters, bound to a specific deployed contract.

type MattersCaller

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

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

func NewMattersCaller

func NewMattersCaller(address common.Address, caller bind.ContractCaller) (*MattersCaller, error)

NewMattersCaller creates a new read-only instance of Matters, bound to a specific deployed contract.

func (*MattersCaller) SupportsInterface

func (_Matters *MattersCaller) SupportsInterface(opts *bind.CallOpts, interfaceId_ [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId_) view returns(bool)

type MattersCallerRaw

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

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

func (*MattersCallerRaw) Call

func (_Matters *MattersCallerRaw) 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 MattersCallerSession

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

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

func (*MattersCallerSession) SupportsInterface

func (_Matters *MattersCallerSession) SupportsInterface(interfaceId_ [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId_) view returns(bool)

type MattersCuration

type MattersCuration struct {
	From   common.Address
	To     common.Address
	Token  common.Address
	Uri    string
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

MattersCuration represents a Curation event raised by the Matters contract.

type MattersCuration0

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

MattersCuration0 represents a Curation0 event raised by the Matters contract.

type MattersCuration0Iterator

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

MattersCuration0Iterator is returned from FilterCuration0 and is used to iterate over the raw logs and unpacked data for Curation0 events raised by the Matters contract.

func (*MattersCuration0Iterator) Close

func (it *MattersCuration0Iterator) Close() error

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

func (*MattersCuration0Iterator) Error

func (it *MattersCuration0Iterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MattersCuration0Iterator) Next

func (it *MattersCuration0Iterator) 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 MattersCurationIterator

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

MattersCurationIterator is returned from FilterCuration and is used to iterate over the raw logs and unpacked data for Curation events raised by the Matters contract.

func (*MattersCurationIterator) Close

func (it *MattersCurationIterator) Close() error

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

func (*MattersCurationIterator) Error

func (it *MattersCurationIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MattersCurationIterator) Next

func (it *MattersCurationIterator) 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 MattersFilterer

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

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

func NewMattersFilterer

func NewMattersFilterer(address common.Address, filterer bind.ContractFilterer) (*MattersFilterer, error)

NewMattersFilterer creates a new log filterer instance of Matters, bound to a specific deployed contract.

func (*MattersFilterer) FilterCuration

func (_Matters *MattersFilterer) FilterCuration(opts *bind.FilterOpts, from []common.Address, to []common.Address, token []common.Address) (*MattersCurationIterator, error)

FilterCuration is a free log retrieval operation binding the contract event 0xc2e41b3d49bbccbac6ceb142bad6119608adf4f1ee1ca5cc6fc332e0ca2fc602.

Solidity: event Curation(address indexed from, address indexed to, address indexed token, string uri, uint256 amount)

func (*MattersFilterer) FilterCuration0

func (_Matters *MattersFilterer) FilterCuration0(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MattersCuration0Iterator, error)

FilterCuration0 is a free log retrieval operation binding the contract event 0xd7dc0722e6bc9987e505da6eb6e28fb6cab480d622b478011168976231055694.

Solidity: event Curation(address indexed from, address indexed to, string uri, uint256 amount)

func (*MattersFilterer) ParseCuration

func (_Matters *MattersFilterer) ParseCuration(log types.Log) (*MattersCuration, error)

ParseCuration is a log parse operation binding the contract event 0xc2e41b3d49bbccbac6ceb142bad6119608adf4f1ee1ca5cc6fc332e0ca2fc602.

Solidity: event Curation(address indexed from, address indexed to, address indexed token, string uri, uint256 amount)

func (*MattersFilterer) ParseCuration0

func (_Matters *MattersFilterer) ParseCuration0(log types.Log) (*MattersCuration0, error)

ParseCuration0 is a log parse operation binding the contract event 0xd7dc0722e6bc9987e505da6eb6e28fb6cab480d622b478011168976231055694.

Solidity: event Curation(address indexed from, address indexed to, string uri, uint256 amount)

func (*MattersFilterer) WatchCuration

func (_Matters *MattersFilterer) WatchCuration(opts *bind.WatchOpts, sink chan<- *MattersCuration, from []common.Address, to []common.Address, token []common.Address) (event.Subscription, error)

WatchCuration is a free log subscription operation binding the contract event 0xc2e41b3d49bbccbac6ceb142bad6119608adf4f1ee1ca5cc6fc332e0ca2fc602.

Solidity: event Curation(address indexed from, address indexed to, address indexed token, string uri, uint256 amount)

func (*MattersFilterer) WatchCuration0

func (_Matters *MattersFilterer) WatchCuration0(opts *bind.WatchOpts, sink chan<- *MattersCuration0, from []common.Address, to []common.Address) (event.Subscription, error)

WatchCuration0 is a free log subscription operation binding the contract event 0xd7dc0722e6bc9987e505da6eb6e28fb6cab480d622b478011168976231055694.

Solidity: event Curation(address indexed from, address indexed to, string uri, uint256 amount)

type MattersRaw

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

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

func (*MattersRaw) Call

func (_Matters *MattersRaw) 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 (*MattersRaw) Transact

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

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

func (*MattersRaw) Transfer

func (_Matters *MattersRaw) 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 MattersSession

type MattersSession struct {
	Contract     *Matters          // 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
}

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

func (*MattersSession) Curate

func (_Matters *MattersSession) Curate(to_ common.Address, token_ common.Address, amount_ *big.Int, uri_ string) (*types.Transaction, error)

Curate is a paid mutator transaction binding the contract method 0xdbcdaf5b.

Solidity: function curate(address to_, address token_, uint256 amount_, string uri_) returns()

func (*MattersSession) Curate0

func (_Matters *MattersSession) Curate0(to_ common.Address, uri_ string) (*types.Transaction, error)

Curate0 is a paid mutator transaction binding the contract method 0xec1cccf8.

Solidity: function curate(address to_, string uri_) payable returns()

func (*MattersSession) SupportsInterface

func (_Matters *MattersSession) SupportsInterface(interfaceId_ [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId_) view returns(bool)

type MattersTransactor

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

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

func NewMattersTransactor

func NewMattersTransactor(address common.Address, transactor bind.ContractTransactor) (*MattersTransactor, error)

NewMattersTransactor creates a new write-only instance of Matters, bound to a specific deployed contract.

func (*MattersTransactor) Curate

func (_Matters *MattersTransactor) Curate(opts *bind.TransactOpts, to_ common.Address, token_ common.Address, amount_ *big.Int, uri_ string) (*types.Transaction, error)

Curate is a paid mutator transaction binding the contract method 0xdbcdaf5b.

Solidity: function curate(address to_, address token_, uint256 amount_, string uri_) returns()

func (*MattersTransactor) Curate0

func (_Matters *MattersTransactor) Curate0(opts *bind.TransactOpts, to_ common.Address, uri_ string) (*types.Transaction, error)

Curate0 is a paid mutator transaction binding the contract method 0xec1cccf8.

Solidity: function curate(address to_, string uri_) payable returns()

type MattersTransactorRaw

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

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

func (*MattersTransactorRaw) Transact

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

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

func (*MattersTransactorRaw) Transfer

func (_Matters *MattersTransactorRaw) 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 MattersTransactorSession

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

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

func (*MattersTransactorSession) Curate

func (_Matters *MattersTransactorSession) Curate(to_ common.Address, token_ common.Address, amount_ *big.Int, uri_ string) (*types.Transaction, error)

Curate is a paid mutator transaction binding the contract method 0xdbcdaf5b.

Solidity: function curate(address to_, address token_, uint256 amount_, string uri_) returns()

func (*MattersTransactorSession) Curate0

func (_Matters *MattersTransactorSession) Curate0(to_ common.Address, uri_ string) (*types.Transaction, error)

Curate0 is a paid mutator transaction binding the contract method 0xec1cccf8.

Solidity: function curate(address to_, string uri_) payable returns()

Jump to

Keyboard shortcuts

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