tips

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TipsABI = TipsMetaData.ABI

TipsABI is the input ABI used to generate the binding from. Deprecated: Use TipsMetaData.ABI instead.

View Source
var TipsMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"error\",\"name\":\"ErrCallerNotCharacterOwner\",\"inputs\":[]},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"type\":\"uint8\",\"name\":\"version\",\"internalType\":\"uint8\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TipCharacter\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"fromCharacterId\",\"internalType\":\"uint256\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"toCharacterId\",\"internalType\":\"uint256\",\"indexed\":true},{\"type\":\"address\",\"name\":\"token\",\"internalType\":\"address\",\"indexed\":false},{\"type\":\"uint256\",\"name\":\"amount\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"TipCharacterForNote\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"fromCharacterId\",\"internalType\":\"uint256\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"toCharacterId\",\"internalType\":\"uint256\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"toNoteId\",\"internalType\":\"uint256\",\"indexed\":true},{\"type\":\"address\",\"name\":\"token\",\"internalType\":\"address\",\"indexed\":false},{\"type\":\"uint256\",\"name\":\"amount\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"contractIERC1820Registry\"}],\"name\":\"ERC1820_REGISTRY\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"bytes32\",\"name\":\"\",\"internalType\":\"bytes32\"}],\"name\":\"TOKENS_RECIPIENT_INTERFACE_HASH\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"getToken\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"getWeb3Entry\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"initialize\",\"inputs\":[{\"type\":\"address\",\"name\":\"web3Entry_\",\"internalType\":\"address\"},{\"type\":\"address\",\"name\":\"token_\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"tokensReceived\",\"inputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"},{\"type\":\"address\",\"name\":\"from\",\"internalType\":\"address\"},{\"type\":\"address\",\"name\":\"to\",\"internalType\":\"address\"},{\"type\":\"uint256\",\"name\":\"amount\",\"internalType\":\"uint256\"},{\"type\":\"bytes\",\"name\":\"userData\",\"internalType\":\"bytes\"},{\"type\":\"bytes\",\"name\":\"operatorData\",\"internalType\":\"bytes\"}]}]",
}

TipsMetaData contains all meta data concerning the Tips contract.

Functions

This section is empty.

Types

type Tips

type Tips struct {
	TipsCaller     // Read-only binding to the contract
	TipsTransactor // Write-only binding to the contract
	TipsFilterer   // Log filterer for contract events
}

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

func NewTips

func NewTips(address common.Address, backend bind.ContractBackend) (*Tips, error)

NewTips creates a new instance of Tips, bound to a specific deployed contract.

type TipsCaller

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

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

func NewTipsCaller

func NewTipsCaller(address common.Address, caller bind.ContractCaller) (*TipsCaller, error)

NewTipsCaller creates a new read-only instance of Tips, bound to a specific deployed contract.

func (*TipsCaller) ERC1820REGISTRY

func (_Tips *TipsCaller) ERC1820REGISTRY(opts *bind.CallOpts) (common.Address, error)

ERC1820REGISTRY is a free data retrieval call binding the contract method 0x013eb177.

Solidity: function ERC1820_REGISTRY() view returns(address)

func (*TipsCaller) GetToken

func (_Tips *TipsCaller) GetToken(opts *bind.CallOpts) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*TipsCaller) GetWeb3Entry

func (_Tips *TipsCaller) GetWeb3Entry(opts *bind.CallOpts) (common.Address, error)

GetWeb3Entry is a free data retrieval call binding the contract method 0xd1fc884c.

Solidity: function getWeb3Entry() view returns(address)

func (*TipsCaller) TOKENSRECIPIENTINTERFACEHASH

func (_Tips *TipsCaller) TOKENSRECIPIENTINTERFACEHASH(opts *bind.CallOpts) ([32]byte, error)

TOKENSRECIPIENTINTERFACEHASH is a free data retrieval call binding the contract method 0x72581cc0.

Solidity: function TOKENS_RECIPIENT_INTERFACE_HASH() view returns(bytes32)

type TipsCallerRaw

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

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

func (*TipsCallerRaw) Call

func (_Tips *TipsCallerRaw) 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 TipsCallerSession

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

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

func (*TipsCallerSession) ERC1820REGISTRY

func (_Tips *TipsCallerSession) ERC1820REGISTRY() (common.Address, error)

ERC1820REGISTRY is a free data retrieval call binding the contract method 0x013eb177.

Solidity: function ERC1820_REGISTRY() view returns(address)

func (*TipsCallerSession) GetToken

func (_Tips *TipsCallerSession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*TipsCallerSession) GetWeb3Entry

func (_Tips *TipsCallerSession) GetWeb3Entry() (common.Address, error)

GetWeb3Entry is a free data retrieval call binding the contract method 0xd1fc884c.

Solidity: function getWeb3Entry() view returns(address)

func (*TipsCallerSession) TOKENSRECIPIENTINTERFACEHASH

func (_Tips *TipsCallerSession) TOKENSRECIPIENTINTERFACEHASH() ([32]byte, error)

TOKENSRECIPIENTINTERFACEHASH is a free data retrieval call binding the contract method 0x72581cc0.

Solidity: function TOKENS_RECIPIENT_INTERFACE_HASH() view returns(bytes32)

type TipsFilterer

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

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

func NewTipsFilterer

func NewTipsFilterer(address common.Address, filterer bind.ContractFilterer) (*TipsFilterer, error)

NewTipsFilterer creates a new log filterer instance of Tips, bound to a specific deployed contract.

func (*TipsFilterer) FilterInitialized

func (_Tips *TipsFilterer) FilterInitialized(opts *bind.FilterOpts) (*TipsInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TipsFilterer) FilterTipCharacter

func (_Tips *TipsFilterer) FilterTipCharacter(opts *bind.FilterOpts, fromCharacterId []*big.Int, toCharacterId []*big.Int) (*TipsTipCharacterIterator, error)

FilterTipCharacter is a free log retrieval operation binding the contract event 0x9aa19e93d7c44ea227cf13c500c5e9bfcc7df95775b643011bf571ac13fa6038.

Solidity: event TipCharacter(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, address token, uint256 amount)

func (*TipsFilterer) FilterTipCharacterForNote

func (_Tips *TipsFilterer) FilterTipCharacterForNote(opts *bind.FilterOpts, fromCharacterId []*big.Int, toCharacterId []*big.Int, toNoteId []*big.Int) (*TipsTipCharacterForNoteIterator, error)

FilterTipCharacterForNote is a free log retrieval operation binding the contract event 0x3cfc312a05bba2ef0c4efdf6a7a4ef883e9e35f403da1b4cbc810b3ba738dab5.

Solidity: event TipCharacterForNote(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, uint256 indexed toNoteId, address token, uint256 amount)

func (*TipsFilterer) ParseInitialized

func (_Tips *TipsFilterer) ParseInitialized(log types.Log) (*TipsInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TipsFilterer) ParseTipCharacter

func (_Tips *TipsFilterer) ParseTipCharacter(log types.Log) (*TipsTipCharacter, error)

ParseTipCharacter is a log parse operation binding the contract event 0x9aa19e93d7c44ea227cf13c500c5e9bfcc7df95775b643011bf571ac13fa6038.

Solidity: event TipCharacter(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, address token, uint256 amount)

func (*TipsFilterer) ParseTipCharacterForNote

func (_Tips *TipsFilterer) ParseTipCharacterForNote(log types.Log) (*TipsTipCharacterForNote, error)

ParseTipCharacterForNote is a log parse operation binding the contract event 0x3cfc312a05bba2ef0c4efdf6a7a4ef883e9e35f403da1b4cbc810b3ba738dab5.

Solidity: event TipCharacterForNote(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, uint256 indexed toNoteId, address token, uint256 amount)

func (*TipsFilterer) WatchInitialized

func (_Tips *TipsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *TipsInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*TipsFilterer) WatchTipCharacter

func (_Tips *TipsFilterer) WatchTipCharacter(opts *bind.WatchOpts, sink chan<- *TipsTipCharacter, fromCharacterId []*big.Int, toCharacterId []*big.Int) (event.Subscription, error)

WatchTipCharacter is a free log subscription operation binding the contract event 0x9aa19e93d7c44ea227cf13c500c5e9bfcc7df95775b643011bf571ac13fa6038.

Solidity: event TipCharacter(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, address token, uint256 amount)

func (*TipsFilterer) WatchTipCharacterForNote

func (_Tips *TipsFilterer) WatchTipCharacterForNote(opts *bind.WatchOpts, sink chan<- *TipsTipCharacterForNote, fromCharacterId []*big.Int, toCharacterId []*big.Int, toNoteId []*big.Int) (event.Subscription, error)

WatchTipCharacterForNote is a free log subscription operation binding the contract event 0x3cfc312a05bba2ef0c4efdf6a7a4ef883e9e35f403da1b4cbc810b3ba738dab5.

Solidity: event TipCharacterForNote(uint256 indexed fromCharacterId, uint256 indexed toCharacterId, uint256 indexed toNoteId, address token, uint256 amount)

type TipsInitialized

type TipsInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

TipsInitialized represents a Initialized event raised by the Tips contract.

type TipsInitializedIterator

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

TipsInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Tips contract.

func (*TipsInitializedIterator) Close

func (it *TipsInitializedIterator) Close() error

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

func (*TipsInitializedIterator) Error

func (it *TipsInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TipsInitializedIterator) Next

func (it *TipsInitializedIterator) 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 TipsRaw

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

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

func (*TipsRaw) Call

func (_Tips *TipsRaw) 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 (*TipsRaw) Transact

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

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

func (*TipsRaw) Transfer

func (_Tips *TipsRaw) 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 TipsSession

type TipsSession struct {
	Contract     *Tips             // 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
}

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

func (*TipsSession) ERC1820REGISTRY

func (_Tips *TipsSession) ERC1820REGISTRY() (common.Address, error)

ERC1820REGISTRY is a free data retrieval call binding the contract method 0x013eb177.

Solidity: function ERC1820_REGISTRY() view returns(address)

func (*TipsSession) GetToken

func (_Tips *TipsSession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*TipsSession) GetWeb3Entry

func (_Tips *TipsSession) GetWeb3Entry() (common.Address, error)

GetWeb3Entry is a free data retrieval call binding the contract method 0xd1fc884c.

Solidity: function getWeb3Entry() view returns(address)

func (*TipsSession) Initialize

func (_Tips *TipsSession) Initialize(web3Entry_ common.Address, token_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address web3Entry_, address token_) returns()

func (*TipsSession) TOKENSRECIPIENTINTERFACEHASH

func (_Tips *TipsSession) TOKENSRECIPIENTINTERFACEHASH() ([32]byte, error)

TOKENSRECIPIENTINTERFACEHASH is a free data retrieval call binding the contract method 0x72581cc0.

Solidity: function TOKENS_RECIPIENT_INTERFACE_HASH() view returns(bytes32)

func (*TipsSession) TokensReceived

func (_Tips *TipsSession) TokensReceived(arg0 common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error)

TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.

Solidity: function tokensReceived(address , address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()

type TipsTipCharacter

type TipsTipCharacter struct {
	FromCharacterId *big.Int
	ToCharacterId   *big.Int
	Token           common.Address
	Amount          *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

TipsTipCharacter represents a TipCharacter event raised by the Tips contract.

type TipsTipCharacterForNote

type TipsTipCharacterForNote struct {
	FromCharacterId *big.Int
	ToCharacterId   *big.Int
	ToNoteId        *big.Int
	Token           common.Address
	Amount          *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

TipsTipCharacterForNote represents a TipCharacterForNote event raised by the Tips contract.

type TipsTipCharacterForNoteIterator

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

TipsTipCharacterForNoteIterator is returned from FilterTipCharacterForNote and is used to iterate over the raw logs and unpacked data for TipCharacterForNote events raised by the Tips contract.

func (*TipsTipCharacterForNoteIterator) Close

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

func (*TipsTipCharacterForNoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TipsTipCharacterForNoteIterator) 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 TipsTipCharacterIterator

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

TipsTipCharacterIterator is returned from FilterTipCharacter and is used to iterate over the raw logs and unpacked data for TipCharacter events raised by the Tips contract.

func (*TipsTipCharacterIterator) Close

func (it *TipsTipCharacterIterator) Close() error

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

func (*TipsTipCharacterIterator) Error

func (it *TipsTipCharacterIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TipsTipCharacterIterator) Next

func (it *TipsTipCharacterIterator) 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 TipsTransactor

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

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

func NewTipsTransactor

func NewTipsTransactor(address common.Address, transactor bind.ContractTransactor) (*TipsTransactor, error)

NewTipsTransactor creates a new write-only instance of Tips, bound to a specific deployed contract.

func (*TipsTransactor) Initialize

func (_Tips *TipsTransactor) Initialize(opts *bind.TransactOpts, web3Entry_ common.Address, token_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address web3Entry_, address token_) returns()

func (*TipsTransactor) TokensReceived

func (_Tips *TipsTransactor) TokensReceived(opts *bind.TransactOpts, arg0 common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error)

TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.

Solidity: function tokensReceived(address , address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()

type TipsTransactorRaw

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

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

func (*TipsTransactorRaw) Transact

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

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

func (*TipsTransactorRaw) Transfer

func (_Tips *TipsTransactorRaw) 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 TipsTransactorSession

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

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

func (*TipsTransactorSession) Initialize

func (_Tips *TipsTransactorSession) Initialize(web3Entry_ common.Address, token_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address web3Entry_, address token_) returns()

func (*TipsTransactorSession) TokensReceived

func (_Tips *TipsTransactorSession) TokensReceived(arg0 common.Address, from common.Address, to common.Address, amount *big.Int, userData []byte, operatorData []byte) (*types.Transaction, error)

TokensReceived is a paid mutator transaction binding the contract method 0x0023de29.

Solidity: function tokensReceived(address , address from, address to, uint256 amount, bytes userData, bytes operatorData) returns()

Jump to

Keyboard shortcuts

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