erc1155

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC1155ABI = ERC1155MetaData.ABI

ERC1155ABI is the input ABI used to generate the binding from. Deprecated: Use ERC1155MetaData.ABI instead.

View Source
var ERC1155MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"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\":\"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\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"payer_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"tokenURI_\",\"type\":\"string\"}],\"name\":\"mintTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"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\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"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\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ERC1155MetaData contains all meta data concerning the ERC1155 contract.

Functions

This section is empty.

Types

type ERC1155

type ERC1155 struct {
	ERC1155Caller     // Read-only binding to the contract
	ERC1155Transactor // Write-only binding to the contract
	ERC1155Filterer   // Log filterer for contract events
}

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

func NewERC1155

func NewERC1155(address common.Address, backend bind.ContractBackend) (*ERC1155, error)

NewERC1155 creates a new instance of ERC1155, bound to a specific deployed contract.

type ERC1155ApprovalForAll

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

ERC1155ApprovalForAll represents a ApprovalForAll event raised by the ERC1155 contract.

type ERC1155ApprovalForAllIterator

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

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

func (*ERC1155ApprovalForAllIterator) Close

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

func (*ERC1155ApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC1155ApprovalForAllIterator) 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 ERC1155Caller

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

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

func NewERC1155Caller

func NewERC1155Caller(address common.Address, caller bind.ContractCaller) (*ERC1155Caller, error)

NewERC1155Caller creates a new read-only instance of ERC1155, bound to a specific deployed contract.

func (*ERC1155Caller) BalanceOf

func (_ERC1155 *ERC1155Caller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ERC1155Caller) BalanceOfBatch

func (_ERC1155 *ERC1155Caller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ERC1155Caller) IsApprovedForAll

func (_ERC1155 *ERC1155Caller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)

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

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

func (*ERC1155Caller) Owner

func (_ERC1155 *ERC1155Caller) 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 (*ERC1155Caller) SupportsInterface

func (_ERC1155 *ERC1155Caller) 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 (*ERC1155Caller) Uri

func (_ERC1155 *ERC1155Caller) Uri(opts *bind.CallOpts, tokenId *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

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

type ERC1155CallerRaw

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

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

func (*ERC1155CallerRaw) Call

func (_ERC1155 *ERC1155CallerRaw) 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 ERC1155CallerSession

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

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

func (*ERC1155CallerSession) BalanceOf

func (_ERC1155 *ERC1155CallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ERC1155CallerSession) BalanceOfBatch

func (_ERC1155 *ERC1155CallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ERC1155CallerSession) IsApprovedForAll

func (_ERC1155 *ERC1155CallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

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

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

func (*ERC1155CallerSession) Owner

func (_ERC1155 *ERC1155CallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ERC1155CallerSession) SupportsInterface

func (_ERC1155 *ERC1155CallerSession) 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 (*ERC1155CallerSession) Uri

func (_ERC1155 *ERC1155CallerSession) Uri(tokenId *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

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

type ERC1155Filterer

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

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

func NewERC1155Filterer

func NewERC1155Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC1155Filterer, error)

NewERC1155Filterer creates a new log filterer instance of ERC1155, bound to a specific deployed contract.

func (*ERC1155Filterer) FilterApprovalForAll

func (_ERC1155 *ERC1155Filterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*ERC1155ApprovalForAllIterator, error)

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

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

func (*ERC1155Filterer) FilterOwnershipTransferred

func (_ERC1155 *ERC1155Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ERC1155OwnershipTransferredIterator, error)

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

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

func (*ERC1155Filterer) FilterTransferBatch

func (_ERC1155 *ERC1155Filterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ERC1155TransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ERC1155Filterer) FilterTransferSingle

func (_ERC1155 *ERC1155Filterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ERC1155TransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ERC1155Filterer) FilterURI

func (_ERC1155 *ERC1155Filterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*ERC1155URIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ERC1155Filterer) ParseApprovalForAll

func (_ERC1155 *ERC1155Filterer) ParseApprovalForAll(log types.Log) (*ERC1155ApprovalForAll, error)

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

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

func (*ERC1155Filterer) ParseOwnershipTransferred

func (_ERC1155 *ERC1155Filterer) ParseOwnershipTransferred(log types.Log) (*ERC1155OwnershipTransferred, error)

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

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

func (*ERC1155Filterer) ParseTransferBatch

func (_ERC1155 *ERC1155Filterer) ParseTransferBatch(log types.Log) (*ERC1155TransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ERC1155Filterer) ParseTransferSingle

func (_ERC1155 *ERC1155Filterer) ParseTransferSingle(log types.Log) (*ERC1155TransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ERC1155Filterer) ParseURI

func (_ERC1155 *ERC1155Filterer) ParseURI(log types.Log) (*ERC1155URI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ERC1155Filterer) WatchApprovalForAll

func (_ERC1155 *ERC1155Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ERC1155ApprovalForAll, account []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 account, address indexed operator, bool approved)

func (*ERC1155Filterer) WatchOwnershipTransferred

func (_ERC1155 *ERC1155Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ERC1155OwnershipTransferred, 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 (*ERC1155Filterer) WatchTransferBatch

func (_ERC1155 *ERC1155Filterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *ERC1155TransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ERC1155Filterer) WatchTransferSingle

func (_ERC1155 *ERC1155Filterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *ERC1155TransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ERC1155Filterer) WatchURI

func (_ERC1155 *ERC1155Filterer) WatchURI(opts *bind.WatchOpts, sink chan<- *ERC1155URI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

type ERC1155OwnershipTransferred

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

ERC1155OwnershipTransferred represents a OwnershipTransferred event raised by the ERC1155 contract.

type ERC1155OwnershipTransferredIterator

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

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

func (*ERC1155OwnershipTransferredIterator) Close

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

func (*ERC1155OwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC1155OwnershipTransferredIterator) 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 ERC1155Raw

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

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

func (*ERC1155Raw) Call

func (_ERC1155 *ERC1155Raw) 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 (*ERC1155Raw) Transact

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

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

func (*ERC1155Raw) Transfer

func (_ERC1155 *ERC1155Raw) 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 ERC1155Session

type ERC1155Session struct {
	Contract     *ERC1155          // 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
}

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

func (*ERC1155Session) BalanceOf

func (_ERC1155 *ERC1155Session) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ERC1155Session) BalanceOfBatch

func (_ERC1155 *ERC1155Session) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ERC1155Session) BurnFrom

func (_ERC1155 *ERC1155Session) BurnFrom(payer_ common.Address, tokenId_ *big.Int, amount_ *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x124d91e5.

Solidity: function burnFrom(address payer_, uint256 tokenId_, uint256 amount_) returns()

func (*ERC1155Session) IsApprovedForAll

func (_ERC1155 *ERC1155Session) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

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

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

func (*ERC1155Session) MintTo

func (_ERC1155 *ERC1155Session) MintTo(receiver_ common.Address, tokenId_ *big.Int, amount_ *big.Int, tokenURI_ string) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0x3dbd5b25.

Solidity: function mintTo(address receiver_, uint256 tokenId_, uint256 amount_, string tokenURI_) returns()

func (*ERC1155Session) Owner

func (_ERC1155 *ERC1155Session) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ERC1155Session) RenounceOwnership

func (_ERC1155 *ERC1155Session) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ERC1155Session) SafeBatchTransferFrom

func (_ERC1155 *ERC1155Session) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ERC1155Session) SafeTransferFrom

func (_ERC1155 *ERC1155Session) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

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

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

func (*ERC1155Session) SetApprovalForAll

func (_ERC1155 *ERC1155Session) 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 (*ERC1155Session) SupportsInterface

func (_ERC1155 *ERC1155Session) 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 (*ERC1155Session) TransferOwnership

func (_ERC1155 *ERC1155Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*ERC1155Session) Uri

func (_ERC1155 *ERC1155Session) Uri(tokenId *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

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

type ERC1155Transactor

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

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

func NewERC1155Transactor

func NewERC1155Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC1155Transactor, error)

NewERC1155Transactor creates a new write-only instance of ERC1155, bound to a specific deployed contract.

func (*ERC1155Transactor) BurnFrom

func (_ERC1155 *ERC1155Transactor) BurnFrom(opts *bind.TransactOpts, payer_ common.Address, tokenId_ *big.Int, amount_ *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x124d91e5.

Solidity: function burnFrom(address payer_, uint256 tokenId_, uint256 amount_) returns()

func (*ERC1155Transactor) MintTo

func (_ERC1155 *ERC1155Transactor) MintTo(opts *bind.TransactOpts, receiver_ common.Address, tokenId_ *big.Int, amount_ *big.Int, tokenURI_ string) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0x3dbd5b25.

Solidity: function mintTo(address receiver_, uint256 tokenId_, uint256 amount_, string tokenURI_) returns()

func (*ERC1155Transactor) RenounceOwnership

func (_ERC1155 *ERC1155Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ERC1155Transactor) SafeBatchTransferFrom

func (_ERC1155 *ERC1155Transactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ERC1155Transactor) SafeTransferFrom

func (_ERC1155 *ERC1155Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

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

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

func (*ERC1155Transactor) SetApprovalForAll

func (_ERC1155 *ERC1155Transactor) 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 (*ERC1155Transactor) TransferOwnership

func (_ERC1155 *ERC1155Transactor) 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 ERC1155TransactorRaw

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

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

func (*ERC1155TransactorRaw) Transact

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

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

func (*ERC1155TransactorRaw) Transfer

func (_ERC1155 *ERC1155TransactorRaw) 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 ERC1155TransactorSession

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

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

func (*ERC1155TransactorSession) BurnFrom

func (_ERC1155 *ERC1155TransactorSession) BurnFrom(payer_ common.Address, tokenId_ *big.Int, amount_ *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x124d91e5.

Solidity: function burnFrom(address payer_, uint256 tokenId_, uint256 amount_) returns()

func (*ERC1155TransactorSession) MintTo

func (_ERC1155 *ERC1155TransactorSession) MintTo(receiver_ common.Address, tokenId_ *big.Int, amount_ *big.Int, tokenURI_ string) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0x3dbd5b25.

Solidity: function mintTo(address receiver_, uint256 tokenId_, uint256 amount_, string tokenURI_) returns()

func (*ERC1155TransactorSession) RenounceOwnership

func (_ERC1155 *ERC1155TransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ERC1155TransactorSession) SafeBatchTransferFrom

func (_ERC1155 *ERC1155TransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*ERC1155TransactorSession) SafeTransferFrom

func (_ERC1155 *ERC1155TransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

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

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

func (*ERC1155TransactorSession) SetApprovalForAll

func (_ERC1155 *ERC1155TransactorSession) 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 (*ERC1155TransactorSession) TransferOwnership

func (_ERC1155 *ERC1155TransactorSession) 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 ERC1155TransferBatch

type ERC1155TransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Values   []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ERC1155TransferBatch represents a TransferBatch event raised by the ERC1155 contract.

type ERC1155TransferBatchIterator

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

ERC1155TransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the ERC1155 contract.

func (*ERC1155TransferBatchIterator) Close

func (it *ERC1155TransferBatchIterator) Close() error

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

func (*ERC1155TransferBatchIterator) Error

func (it *ERC1155TransferBatchIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC1155TransferBatchIterator) 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 ERC1155TransferSingle

type ERC1155TransferSingle struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Id       *big.Int
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ERC1155TransferSingle represents a TransferSingle event raised by the ERC1155 contract.

type ERC1155TransferSingleIterator

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

ERC1155TransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the ERC1155 contract.

func (*ERC1155TransferSingleIterator) Close

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

func (*ERC1155TransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC1155TransferSingleIterator) 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 ERC1155URI

type ERC1155URI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC1155URI represents a URI event raised by the ERC1155 contract.

type ERC1155URIIterator

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

ERC1155URIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the ERC1155 contract.

func (*ERC1155URIIterator) Close

func (it *ERC1155URIIterator) Close() error

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

func (*ERC1155URIIterator) Error

func (it *ERC1155URIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC1155URIIterator) Next

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

Jump to

Keyboard shortcuts

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