SingletonNFT

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SingletonNFTABI = SingletonNFTMetaData.ABI

SingletonNFTABI is the input ABI used to generate the binding from. Deprecated: Use SingletonNFTMetaData.ABI instead.

View Source
var SingletonNFTMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"smbl_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"file_id\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"token_id\",\"type\":\"uint256\"}],\"name\":\"ItemCreated\",\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"file_id\",\"type\":\"string\"}],\"name\":\"CreateItem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"token_id\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SingletonNFTMetaData contains all meta data concerning the SingletonNFT contract.

Functions

This section is empty.

Types

type SingletonNFT

type SingletonNFT struct {
	SingletonNFTCaller     // Read-only binding to the contract
	SingletonNFTTransactor // Write-only binding to the contract
	SingletonNFTFilterer   // Log filterer for contract events
}

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

func NewSingletonNFT

func NewSingletonNFT(address common.Address, backend bind.ContractBackend) (*SingletonNFT, error)

NewSingletonNFT creates a new instance of SingletonNFT, bound to a specific deployed contract.

type SingletonNFTApproval

type SingletonNFTApproval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

SingletonNFTApproval represents a Approval event raised by the SingletonNFT contract.

type SingletonNFTApprovalForAll

type SingletonNFTApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

SingletonNFTApprovalForAll represents a ApprovalForAll event raised by the SingletonNFT contract.

type SingletonNFTApprovalForAllIterator

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

SingletonNFTApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the SingletonNFT contract.

func (*SingletonNFTApprovalForAllIterator) Close

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

func (*SingletonNFTApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SingletonNFTApprovalForAllIterator) 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 SingletonNFTApprovalIterator

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

SingletonNFTApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the SingletonNFT contract.

func (*SingletonNFTApprovalIterator) Close

func (it *SingletonNFTApprovalIterator) Close() error

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

func (*SingletonNFTApprovalIterator) Error

func (it *SingletonNFTApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SingletonNFTApprovalIterator) 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 SingletonNFTCaller

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

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

func NewSingletonNFTCaller

func NewSingletonNFTCaller(address common.Address, caller bind.ContractCaller) (*SingletonNFTCaller, error)

NewSingletonNFTCaller creates a new read-only instance of SingletonNFT, bound to a specific deployed contract.

func (*SingletonNFTCaller) BalanceOf

func (_SingletonNFT *SingletonNFTCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*SingletonNFTCaller) GetApproved

func (_SingletonNFT *SingletonNFTCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*SingletonNFTCaller) IsApprovedForAll

func (_SingletonNFT *SingletonNFTCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*SingletonNFTCaller) Name

func (_SingletonNFT *SingletonNFTCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SingletonNFTCaller) Owner added in v0.3.0

func (_SingletonNFT *SingletonNFTCaller) 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 (*SingletonNFTCaller) OwnerOf

func (_SingletonNFT *SingletonNFTCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*SingletonNFTCaller) SupportsInterface

func (_SingletonNFT *SingletonNFTCaller) 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)

func (*SingletonNFTCaller) Symbol

func (_SingletonNFT *SingletonNFTCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SingletonNFTCaller) TokenURI

func (_SingletonNFT *SingletonNFTCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

type SingletonNFTCallerRaw

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

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

func (*SingletonNFTCallerRaw) Call

func (_SingletonNFT *SingletonNFTCallerRaw) 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 SingletonNFTCallerSession

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

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

func (*SingletonNFTCallerSession) BalanceOf

func (_SingletonNFT *SingletonNFTCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*SingletonNFTCallerSession) GetApproved

func (_SingletonNFT *SingletonNFTCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*SingletonNFTCallerSession) IsApprovedForAll

func (_SingletonNFT *SingletonNFTCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*SingletonNFTCallerSession) Name

func (_SingletonNFT *SingletonNFTCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SingletonNFTCallerSession) Owner added in v0.3.0

func (_SingletonNFT *SingletonNFTCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SingletonNFTCallerSession) OwnerOf

func (_SingletonNFT *SingletonNFTCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*SingletonNFTCallerSession) SupportsInterface

func (_SingletonNFT *SingletonNFTCallerSession) 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)

func (*SingletonNFTCallerSession) Symbol

func (_SingletonNFT *SingletonNFTCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SingletonNFTCallerSession) TokenURI

func (_SingletonNFT *SingletonNFTCallerSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

type SingletonNFTFilterer

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

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

func NewSingletonNFTFilterer

func NewSingletonNFTFilterer(address common.Address, filterer bind.ContractFilterer) (*SingletonNFTFilterer, error)

NewSingletonNFTFilterer creates a new log filterer instance of SingletonNFT, bound to a specific deployed contract.

func (*SingletonNFTFilterer) FilterApproval

func (_SingletonNFT *SingletonNFTFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*SingletonNFTApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*SingletonNFTFilterer) FilterApprovalForAll

func (_SingletonNFT *SingletonNFTFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*SingletonNFTApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*SingletonNFTFilterer) FilterItemCreated

func (_SingletonNFT *SingletonNFTFilterer) FilterItemCreated(opts *bind.FilterOpts, file_id []string) (*SingletonNFTItemCreatedIterator, error)

FilterItemCreated is a free log retrieval operation binding the contract event 0xcf9e86cbc2da311d9fea61267a2b27d6b148f3394556d956d14af0dd849d2f03.

Solidity: event ItemCreated(string indexed file_id, uint256 token_id)

func (*SingletonNFTFilterer) FilterOwnershipTransferred added in v0.3.0

func (_SingletonNFT *SingletonNFTFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SingletonNFTOwnershipTransferredIterator, error)

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

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

func (*SingletonNFTFilterer) FilterTransfer

func (_SingletonNFT *SingletonNFTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*SingletonNFTTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

func (*SingletonNFTFilterer) ParseApproval

func (_SingletonNFT *SingletonNFTFilterer) ParseApproval(log types.Log) (*SingletonNFTApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*SingletonNFTFilterer) ParseApprovalForAll

func (_SingletonNFT *SingletonNFTFilterer) ParseApprovalForAll(log types.Log) (*SingletonNFTApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*SingletonNFTFilterer) ParseItemCreated

func (_SingletonNFT *SingletonNFTFilterer) ParseItemCreated(log types.Log) (*SingletonNFTItemCreated, error)

ParseItemCreated is a log parse operation binding the contract event 0xcf9e86cbc2da311d9fea61267a2b27d6b148f3394556d956d14af0dd849d2f03.

Solidity: event ItemCreated(string indexed file_id, uint256 token_id)

func (*SingletonNFTFilterer) ParseOwnershipTransferred added in v0.3.0

func (_SingletonNFT *SingletonNFTFilterer) ParseOwnershipTransferred(log types.Log) (*SingletonNFTOwnershipTransferred, error)

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

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

func (*SingletonNFTFilterer) ParseTransfer

func (_SingletonNFT *SingletonNFTFilterer) ParseTransfer(log types.Log) (*SingletonNFTTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

func (*SingletonNFTFilterer) WatchApproval

func (_SingletonNFT *SingletonNFTFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *SingletonNFTApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*SingletonNFTFilterer) WatchApprovalForAll

func (_SingletonNFT *SingletonNFTFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *SingletonNFTApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*SingletonNFTFilterer) WatchItemCreated

func (_SingletonNFT *SingletonNFTFilterer) WatchItemCreated(opts *bind.WatchOpts, sink chan<- *SingletonNFTItemCreated, file_id []string) (event.Subscription, error)

WatchItemCreated is a free log subscription operation binding the contract event 0xcf9e86cbc2da311d9fea61267a2b27d6b148f3394556d956d14af0dd849d2f03.

Solidity: event ItemCreated(string indexed file_id, uint256 token_id)

func (*SingletonNFTFilterer) WatchOwnershipTransferred added in v0.3.0

func (_SingletonNFT *SingletonNFTFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SingletonNFTOwnershipTransferred, 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 (*SingletonNFTFilterer) WatchTransfer

func (_SingletonNFT *SingletonNFTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *SingletonNFTTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

type SingletonNFTItemCreated

type SingletonNFTItemCreated struct {
	FileId  common.Hash
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

SingletonNFTItemCreated represents a ItemCreated event raised by the SingletonNFT contract.

type SingletonNFTItemCreatedIterator

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

SingletonNFTItemCreatedIterator is returned from FilterItemCreated and is used to iterate over the raw logs and unpacked data for ItemCreated events raised by the SingletonNFT contract.

func (*SingletonNFTItemCreatedIterator) Close

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

func (*SingletonNFTItemCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SingletonNFTItemCreatedIterator) 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 SingletonNFTOwnershipTransferred added in v0.3.0

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

SingletonNFTOwnershipTransferred represents a OwnershipTransferred event raised by the SingletonNFT contract.

type SingletonNFTOwnershipTransferredIterator added in v0.3.0

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

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

func (*SingletonNFTOwnershipTransferredIterator) Close added in v0.3.0

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

func (*SingletonNFTOwnershipTransferredIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SingletonNFTOwnershipTransferredIterator) Next added in v0.3.0

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 SingletonNFTRaw

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

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

func (*SingletonNFTRaw) Call

func (_SingletonNFT *SingletonNFTRaw) 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 (*SingletonNFTRaw) Transact

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

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

func (*SingletonNFTRaw) Transfer

func (_SingletonNFT *SingletonNFTRaw) 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 SingletonNFTSession

type SingletonNFTSession struct {
	Contract     *SingletonNFT     // 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
}

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

func (*SingletonNFTSession) Approve

func (_SingletonNFT *SingletonNFTSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*SingletonNFTSession) BalanceOf

func (_SingletonNFT *SingletonNFTSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*SingletonNFTSession) CreateItem

func (_SingletonNFT *SingletonNFTSession) CreateItem(file_id string) (*types.Transaction, error)

CreateItem is a paid mutator transaction binding the contract method 0x6c7be44b.

Solidity: function CreateItem(string file_id) returns(uint256 token_id)

func (*SingletonNFTSession) GetApproved

func (_SingletonNFT *SingletonNFTSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*SingletonNFTSession) IsApprovedForAll

func (_SingletonNFT *SingletonNFTSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*SingletonNFTSession) Name

func (_SingletonNFT *SingletonNFTSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*SingletonNFTSession) Owner added in v0.3.0

func (_SingletonNFT *SingletonNFTSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SingletonNFTSession) OwnerOf

func (_SingletonNFT *SingletonNFTSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*SingletonNFTSession) RenounceOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SingletonNFTSession) SafeTransferFrom

func (_SingletonNFT *SingletonNFTSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTSession) SafeTransferFrom0

func (_SingletonNFT *SingletonNFTSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*SingletonNFTSession) SetApprovalForAll

func (_SingletonNFT *SingletonNFTSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*SingletonNFTSession) SupportsInterface

func (_SingletonNFT *SingletonNFTSession) 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)

func (*SingletonNFTSession) Symbol

func (_SingletonNFT *SingletonNFTSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*SingletonNFTSession) TokenURI

func (_SingletonNFT *SingletonNFTSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

func (*SingletonNFTSession) TransferFrom

func (_SingletonNFT *SingletonNFTSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTSession) TransferOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTSession) 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 SingletonNFTTransactor

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

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

func NewSingletonNFTTransactor

func NewSingletonNFTTransactor(address common.Address, transactor bind.ContractTransactor) (*SingletonNFTTransactor, error)

NewSingletonNFTTransactor creates a new write-only instance of SingletonNFT, bound to a specific deployed contract.

func (*SingletonNFTTransactor) Approve

func (_SingletonNFT *SingletonNFTTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*SingletonNFTTransactor) CreateItem

func (_SingletonNFT *SingletonNFTTransactor) CreateItem(opts *bind.TransactOpts, file_id string) (*types.Transaction, error)

CreateItem is a paid mutator transaction binding the contract method 0x6c7be44b.

Solidity: function CreateItem(string file_id) returns(uint256 token_id)

func (*SingletonNFTTransactor) RenounceOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SingletonNFTTransactor) SafeTransferFrom

func (_SingletonNFT *SingletonNFTTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTTransactor) SafeTransferFrom0

func (_SingletonNFT *SingletonNFTTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*SingletonNFTTransactor) SetApprovalForAll

func (_SingletonNFT *SingletonNFTTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*SingletonNFTTransactor) TransferFrom

func (_SingletonNFT *SingletonNFTTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTTransactor) TransferOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTTransactor) 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 SingletonNFTTransactorRaw

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

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

func (*SingletonNFTTransactorRaw) Transact

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

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

func (*SingletonNFTTransactorRaw) Transfer

func (_SingletonNFT *SingletonNFTTransactorRaw) 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 SingletonNFTTransactorSession

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

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

func (*SingletonNFTTransactorSession) Approve

func (_SingletonNFT *SingletonNFTTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*SingletonNFTTransactorSession) CreateItem

func (_SingletonNFT *SingletonNFTTransactorSession) CreateItem(file_id string) (*types.Transaction, error)

CreateItem is a paid mutator transaction binding the contract method 0x6c7be44b.

Solidity: function CreateItem(string file_id) returns(uint256 token_id)

func (*SingletonNFTTransactorSession) RenounceOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SingletonNFTTransactorSession) SafeTransferFrom

func (_SingletonNFT *SingletonNFTTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTTransactorSession) SafeTransferFrom0

func (_SingletonNFT *SingletonNFTTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*SingletonNFTTransactorSession) SetApprovalForAll

func (_SingletonNFT *SingletonNFTTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*SingletonNFTTransactorSession) TransferFrom

func (_SingletonNFT *SingletonNFTTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

func (*SingletonNFTTransactorSession) TransferOwnership added in v0.3.0

func (_SingletonNFT *SingletonNFTTransactorSession) 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 SingletonNFTTransfer

type SingletonNFTTransfer struct {
	From    common.Address
	To      common.Address
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

SingletonNFTTransfer represents a Transfer event raised by the SingletonNFT contract.

type SingletonNFTTransferIterator

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

SingletonNFTTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the SingletonNFT contract.

func (*SingletonNFTTransferIterator) Close

func (it *SingletonNFTTransferIterator) Close() error

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

func (*SingletonNFTTransferIterator) Error

func (it *SingletonNFTTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SingletonNFTTransferIterator) 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.

Jump to

Keyboard shortcuts

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