Documentation ¶
Index ¶
- Variables
- type Locker
- type LockerCaller
- type LockerCallerRaw
- type LockerCallerSession
- type LockerFilterer
- func (_Locker *LockerFilterer) FilterLockNFT(opts *bind.FilterOpts) (*LockerLockNFTIterator, error)
- func (_Locker *LockerFilterer) FilterReleaseNFT(opts *bind.FilterOpts) (*LockerReleaseNFTIterator, error)
- func (_Locker *LockerFilterer) ParseLockNFT(log types.Log) (*LockerLockNFT, error)
- func (_Locker *LockerFilterer) ParseReleaseNFT(log types.Log) (*LockerReleaseNFT, error)
- func (_Locker *LockerFilterer) WatchLockNFT(opts *bind.WatchOpts, sink chan<- *LockerLockNFT) (event.Subscription, error)
- func (_Locker *LockerFilterer) WatchReleaseNFT(opts *bind.WatchOpts, sink chan<- *LockerReleaseNFT) (event.Subscription, error)
- type LockerLockNFT
- type LockerLockNFTIterator
- type LockerRaw
- func (_Locker *LockerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Locker *LockerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Locker *LockerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type LockerReleaseNFT
- type LockerReleaseNFTIterator
- type LockerSession
- func (_Locker *LockerSession) Lock(_nftAddress common.Address, _tokenId *big.Int, _data string) (*types.Transaction, error)
- func (_Locker *LockerSession) OnERC721Received(operator common.Address, from common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Locker *LockerSession) Release(_nftAddress common.Address, _tokenId *big.Int, _receiver common.Address, ...) (*types.Transaction, error)
- type LockerTransactor
- func (_Locker *LockerTransactor) Lock(opts *bind.TransactOpts, _nftAddress common.Address, _tokenId *big.Int, ...) (*types.Transaction, error)
- func (_Locker *LockerTransactor) OnERC721Received(opts *bind.TransactOpts, operator common.Address, from common.Address, ...) (*types.Transaction, error)
- func (_Locker *LockerTransactor) Release(opts *bind.TransactOpts, _nftAddress common.Address, _tokenId *big.Int, ...) (*types.Transaction, error)
- type LockerTransactorRaw
- type LockerTransactorSession
- func (_Locker *LockerTransactorSession) Lock(_nftAddress common.Address, _tokenId *big.Int, _data string) (*types.Transaction, error)
- func (_Locker *LockerTransactorSession) OnERC721Received(operator common.Address, from common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Locker *LockerTransactorSession) Release(_nftAddress common.Address, _tokenId *big.Int, _receiver common.Address, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var LockerABI = LockerMetaData.ABI
LockerABI is the input ABI used to generate the binding from. Deprecated: Use LockerMetaData.ABI instead.
var LockerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_approver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"RequiredApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"UnAuthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_nftAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_nounce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_data\",\"type\":\"string\"}],\"name\":\"LockNFT\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_nftAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_nounce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_data\",\"type\":\"string\"}],\"name\":\"ReleaseNFT\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nftAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_data\",\"type\":\"string\"}],\"name\":\"lock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_nftAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_data\",\"type\":\"string\"}],\"name\":\"release\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
LockerMetaData contains all meta data concerning the Locker contract.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct { LockerCaller // Read-only binding to the contract LockerTransactor // Write-only binding to the contract LockerFilterer // Log filterer for contract events }
Locker is an auto generated Go binding around an Ethereum contract.
type LockerCaller ¶
type LockerCaller struct {
// contains filtered or unexported fields
}
LockerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLockerCaller ¶
func NewLockerCaller(address common.Address, caller bind.ContractCaller) (*LockerCaller, error)
NewLockerCaller creates a new read-only instance of Locker, bound to a specific deployed contract.
type LockerCallerRaw ¶
type LockerCallerRaw struct {
Contract *LockerCaller // Generic read-only contract binding to access the raw methods on
}
LockerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*LockerCallerRaw) Call ¶
func (_Locker *LockerCallerRaw) 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 LockerCallerSession ¶
type LockerCallerSession struct { Contract *LockerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
LockerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type LockerFilterer ¶
type LockerFilterer struct {
// contains filtered or unexported fields
}
LockerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLockerFilterer ¶
func NewLockerFilterer(address common.Address, filterer bind.ContractFilterer) (*LockerFilterer, error)
NewLockerFilterer creates a new log filterer instance of Locker, bound to a specific deployed contract.
func (*LockerFilterer) FilterLockNFT ¶
func (_Locker *LockerFilterer) FilterLockNFT(opts *bind.FilterOpts) (*LockerLockNFTIterator, error)
FilterLockNFT is a free log retrieval operation binding the contract event 0x4fee5ebb8064020f4f38f427e9d749e3a49779a1805930493ac35ca840f5edd6.
Solidity: event LockNFT(address _nftAddress, address _from, uint256 _tokenId, uint256 _nounce, string _data)
func (*LockerFilterer) FilterReleaseNFT ¶
func (_Locker *LockerFilterer) FilterReleaseNFT(opts *bind.FilterOpts) (*LockerReleaseNFTIterator, error)
FilterReleaseNFT is a free log retrieval operation binding the contract event 0x70bd022d34c1d3f31f5de67a2f3f26a19fd99a9f868ee153dabe6cd7fb7e50ec.
Solidity: event ReleaseNFT(address _nftAddress, address _to, uint256 _tokenId, uint256 _nounce, string _data)
func (*LockerFilterer) ParseLockNFT ¶
func (_Locker *LockerFilterer) ParseLockNFT(log types.Log) (*LockerLockNFT, error)
ParseLockNFT is a log parse operation binding the contract event 0x4fee5ebb8064020f4f38f427e9d749e3a49779a1805930493ac35ca840f5edd6.
Solidity: event LockNFT(address _nftAddress, address _from, uint256 _tokenId, uint256 _nounce, string _data)
func (*LockerFilterer) ParseReleaseNFT ¶
func (_Locker *LockerFilterer) ParseReleaseNFT(log types.Log) (*LockerReleaseNFT, error)
ParseReleaseNFT is a log parse operation binding the contract event 0x70bd022d34c1d3f31f5de67a2f3f26a19fd99a9f868ee153dabe6cd7fb7e50ec.
Solidity: event ReleaseNFT(address _nftAddress, address _to, uint256 _tokenId, uint256 _nounce, string _data)
func (*LockerFilterer) WatchLockNFT ¶
func (_Locker *LockerFilterer) WatchLockNFT(opts *bind.WatchOpts, sink chan<- *LockerLockNFT) (event.Subscription, error)
WatchLockNFT is a free log subscription operation binding the contract event 0x4fee5ebb8064020f4f38f427e9d749e3a49779a1805930493ac35ca840f5edd6.
Solidity: event LockNFT(address _nftAddress, address _from, uint256 _tokenId, uint256 _nounce, string _data)
func (*LockerFilterer) WatchReleaseNFT ¶
func (_Locker *LockerFilterer) WatchReleaseNFT(opts *bind.WatchOpts, sink chan<- *LockerReleaseNFT) (event.Subscription, error)
WatchReleaseNFT is a free log subscription operation binding the contract event 0x70bd022d34c1d3f31f5de67a2f3f26a19fd99a9f868ee153dabe6cd7fb7e50ec.
Solidity: event ReleaseNFT(address _nftAddress, address _to, uint256 _tokenId, uint256 _nounce, string _data)
type LockerLockNFT ¶
type LockerLockNFT struct { NftAddress common.Address From common.Address TokenId *big.Int Nounce *big.Int Data string Raw types.Log // Blockchain specific contextual infos }
LockerLockNFT represents a LockNFT event raised by the Locker contract.
type LockerLockNFTIterator ¶
type LockerLockNFTIterator struct { Event *LockerLockNFT // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LockerLockNFTIterator is returned from FilterLockNFT and is used to iterate over the raw logs and unpacked data for LockNFT events raised by the Locker contract.
func (*LockerLockNFTIterator) Close ¶
func (it *LockerLockNFTIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LockerLockNFTIterator) Error ¶
func (it *LockerLockNFTIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LockerLockNFTIterator) Next ¶
func (it *LockerLockNFTIterator) 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 LockerRaw ¶
type LockerRaw struct {
Contract *Locker // Generic contract binding to access the raw methods on
}
LockerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*LockerRaw) Call ¶
func (_Locker *LockerRaw) 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 (*LockerRaw) Transact ¶
func (_Locker *LockerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LockerRaw) Transfer ¶
func (_Locker *LockerRaw) 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 LockerReleaseNFT ¶
type LockerReleaseNFT struct { NftAddress common.Address To common.Address TokenId *big.Int Nounce *big.Int Data string Raw types.Log // Blockchain specific contextual infos }
LockerReleaseNFT represents a ReleaseNFT event raised by the Locker contract.
type LockerReleaseNFTIterator ¶
type LockerReleaseNFTIterator struct { Event *LockerReleaseNFT // Event containing the contract specifics and raw log // contains filtered or unexported fields }
LockerReleaseNFTIterator is returned from FilterReleaseNFT and is used to iterate over the raw logs and unpacked data for ReleaseNFT events raised by the Locker contract.
func (*LockerReleaseNFTIterator) Close ¶
func (it *LockerReleaseNFTIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*LockerReleaseNFTIterator) Error ¶
func (it *LockerReleaseNFTIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*LockerReleaseNFTIterator) Next ¶
func (it *LockerReleaseNFTIterator) 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 LockerSession ¶
type LockerSession struct { Contract *Locker // 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 }
LockerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*LockerSession) Lock ¶
func (_Locker *LockerSession) Lock(_nftAddress common.Address, _tokenId *big.Int, _data string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address _nftAddress, uint256 _tokenId, string _data) returns()
func (*LockerSession) OnERC721Received ¶
func (_Locker *LockerSession) OnERC721Received(operator common.Address, from common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address operator, address from, uint256 tokenId, bytes data) returns(bytes4)
func (*LockerSession) Release ¶
func (_Locker *LockerSession) Release(_nftAddress common.Address, _tokenId *big.Int, _receiver common.Address, _data string) (*types.Transaction, error)
Release is a paid mutator transaction binding the contract method 0xd1c89de8.
Solidity: function release(address _nftAddress, uint256 _tokenId, address _receiver, string _data) returns()
type LockerTransactor ¶
type LockerTransactor struct {
// contains filtered or unexported fields
}
LockerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLockerTransactor ¶
func NewLockerTransactor(address common.Address, transactor bind.ContractTransactor) (*LockerTransactor, error)
NewLockerTransactor creates a new write-only instance of Locker, bound to a specific deployed contract.
func (*LockerTransactor) Lock ¶
func (_Locker *LockerTransactor) Lock(opts *bind.TransactOpts, _nftAddress common.Address, _tokenId *big.Int, _data string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address _nftAddress, uint256 _tokenId, string _data) returns()
func (*LockerTransactor) OnERC721Received ¶
func (_Locker *LockerTransactor) OnERC721Received(opts *bind.TransactOpts, operator common.Address, from common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address operator, address from, uint256 tokenId, bytes data) returns(bytes4)
func (*LockerTransactor) Release ¶
func (_Locker *LockerTransactor) Release(opts *bind.TransactOpts, _nftAddress common.Address, _tokenId *big.Int, _receiver common.Address, _data string) (*types.Transaction, error)
Release is a paid mutator transaction binding the contract method 0xd1c89de8.
Solidity: function release(address _nftAddress, uint256 _tokenId, address _receiver, string _data) returns()
type LockerTransactorRaw ¶
type LockerTransactorRaw struct {
Contract *LockerTransactor // Generic write-only contract binding to access the raw methods on
}
LockerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*LockerTransactorRaw) Transact ¶
func (_Locker *LockerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*LockerTransactorRaw) Transfer ¶
func (_Locker *LockerTransactorRaw) 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 LockerTransactorSession ¶
type LockerTransactorSession struct { Contract *LockerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
LockerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*LockerTransactorSession) Lock ¶
func (_Locker *LockerTransactorSession) Lock(_nftAddress common.Address, _tokenId *big.Int, _data string) (*types.Transaction, error)
Lock is a paid mutator transaction binding the contract method 0xc267ce5f.
Solidity: function lock(address _nftAddress, uint256 _tokenId, string _data) returns()
func (*LockerTransactorSession) OnERC721Received ¶
func (_Locker *LockerTransactorSession) OnERC721Received(operator common.Address, from common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address operator, address from, uint256 tokenId, bytes data) returns(bytes4)
func (*LockerTransactorSession) Release ¶
func (_Locker *LockerTransactorSession) Release(_nftAddress common.Address, _tokenId *big.Int, _receiver common.Address, _data string) (*types.Transaction, error)
Release is a paid mutator transaction binding the contract method 0xd1c89de8.
Solidity: function release(address _nftAddress, uint256 _tokenId, address _receiver, string _data) returns()