erc1155

package
v0.0.0-...-745d81a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 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 Erc1155Bin = Erc1155MetaData.Bin

Erc1155Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Erc1155MetaData.Bin instead.

View Source
var Erc1155MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"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\":\"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\":\"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\":\"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\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801562000010575f80fd5b506040805180820190915260078152664452433131353560c81b60208201526200003a8162000041565b50620001bb565b60026200004f8282620000f3565b5050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200007c57607f821691505b6020821081036200009b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620000ee575f81815260208120601f850160051c81016020861015620000c95750805b601f850160051c820191505b81811015620000ea57828155600101620000d5565b5050505b505050565b81516001600160401b038111156200010f576200010f62000053565b620001278162000120845462000067565b84620000a1565b602080601f8311600181146200015d575f8415620001455750858301515b5f19600386901b1c1916600185901b178555620000ea565b5f85815260208120601f198616915b828110156200018d578886015182559484019460019091019084016200016c565b5085821015620001ab57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b61132380620001c95f395ff3fe608060405234801561000f575f80fd5b5060043610610084575f3560e01c80634e1273f4116100585780634e1273f414610106578063a22cb46514610126578063e985e9c514610139578063f242432a14610174575f80fd5b8062fdd58e1461008857806301ffc9a7146100ae5780630e89341c146100d15780632eb2c2d6146100f1575b5f80fd5b61009b610096366004610b25565b610187565b6040519081526020015b60405180910390f35b6100c16100bc366004610b65565b61021e565b60405190151581526020016100a5565b6100e46100df366004610b87565b61026d565b6040516100a59190610be1565b6101046100ff366004610d35565b6102ff565b005b610119610114366004610dd8565b61034b565b6040516100a59190610ed6565b610104610134366004610ee8565b610473565b6100c1610147366004610f21565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b610104610182366004610f52565b610482565b5f6001600160a01b0383166101f65760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b505f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b148061024e57506001600160e01b031982166303a24d0760e21b145b8061021857506301ffc9a760e01b6001600160e01b0319831614610218565b60606002805461027c90610fb2565b80601f01602080910402602001604051908101604052809291908181526020018280546102a890610fb2565b80156102f35780601f106102ca576101008083540402835291602001916102f3565b820191905f5260205f20905b8154815290600101906020018083116102d657829003601f168201915b50505050509050919050565b6001600160a01b03851633148061031b575061031b8533610147565b6103375760405162461bcd60e51b81526004016101ed90610fea565b61034485858585856104c7565b5050505050565b606081518351146103b05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016101ed565b5f835167ffffffffffffffff8111156103cb576103cb610bf3565b6040519080825280602002602001820160405280156103f4578160200160208202803683370190505b5090505f5b845181101561046b5761043e85828151811061041757610417611038565b602002602001015185838151811061043157610431611038565b6020026020010151610187565b82828151811061045057610450611038565b602090810291909101015261046481611060565b90506103f9565b509392505050565b61047e33838361069f565b5050565b6001600160a01b03851633148061049e575061049e8533610147565b6104ba5760405162461bcd60e51b81526004016101ed90610fea565b610344858585858561077e565b81518351146105295760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016101ed565b6001600160a01b03841661054f5760405162461bcd60e51b81526004016101ed90611078565b335f5b8451811015610631575f85828151811061056e5761056e611038565b602002602001015190505f85838151811061058b5761058b611038565b6020908102919091018101515f84815280835260408082206001600160a01b038e1683529093529190912054909150818110156105da5760405162461bcd60e51b81526004016101ed906110bd565b5f838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610616908490611107565b925050819055505050508061062a90611060565b9050610552565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161068192919061111a565b60405180910390a46106978187878787876108a4565b505050505050565b816001600160a01b0316836001600160a01b0316036107125760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016101ed565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166107a45760405162461bcd60e51b81526004016101ed90611078565b335f6107af85610a07565b90505f6107bb85610a07565b90505f868152602081815260408083206001600160a01b038c168452909152902054858110156107fd5760405162461bcd60e51b81526004016101ed906110bd565b5f878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290610839908490611107565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610899848a8a8a8a8a610a50565b505050505050505050565b6001600160a01b0384163b156106975760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906108e89089908990889088908890600401611147565b6020604051808303815f875af1925050508015610922575060408051601f3d908101601f1916820190925261091f918101906111a4565b60015b6109ce5761092e6111bf565b806308c379a00361096757506109426111d8565b8061094d5750610969565b8060405162461bcd60e51b81526004016101ed9190610be1565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016101ed565b6001600160e01b0319811663bc197c8160e01b146109fe5760405162461bcd60e51b81526004016101ed90611261565b50505050505050565b6040805160018082528183019092526060915f91906020808301908036833701905050905082815f81518110610a3f57610a3f611038565b602090810291909101015292915050565b6001600160a01b0384163b156106975760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610a9490899089908890889088906004016112a9565b6020604051808303815f875af1925050508015610ace575060408051601f3d908101601f19168201909252610acb918101906111a4565b60015b610ada5761092e6111bf565b6001600160e01b0319811663f23a6e6160e01b146109fe5760405162461bcd60e51b81526004016101ed90611261565b80356001600160a01b0381168114610b20575f80fd5b919050565b5f8060408385031215610b36575f80fd5b610b3f83610b0a565b946020939093013593505050565b6001600160e01b031981168114610b62575f80fd5b50565b5f60208284031215610b75575f80fd5b8135610b8081610b4d565b9392505050565b5f60208284031215610b97575f80fd5b5035919050565b5f81518084525f5b81811015610bc257602081850181015186830182015201610ba6565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f610b806020830184610b9e565b634e487b7160e01b5f52604160045260245ffd5b601f8201601f1916810167ffffffffffffffff81118282101715610c2d57610c2d610bf3565b6040525050565b5f67ffffffffffffffff821115610c4d57610c4d610bf3565b5060051b60200190565b5f82601f830112610c66575f80fd5b81356020610c7382610c34565b604051610c808282610c07565b83815260059390931b8501820192828101915086841115610c9f575f80fd5b8286015b84811015610cba5780358352918301918301610ca3565b509695505050505050565b5f82601f830112610cd4575f80fd5b813567ffffffffffffffff811115610cee57610cee610bf3565b604051610d05601f8301601f191660200182610c07565b818152846020838601011115610d19575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a08688031215610d49575f80fd5b610d5286610b0a565b9450610d6060208701610b0a565b9350604086013567ffffffffffffffff80821115610d7c575f80fd5b610d8889838a01610c57565b94506060880135915080821115610d9d575f80fd5b610da989838a01610c57565b93506080880135915080821115610dbe575f80fd5b50610dcb88828901610cc5565b9150509295509295909350565b5f8060408385031215610de9575f80fd5b823567ffffffffffffffff80821115610e00575f80fd5b818501915085601f830112610e13575f80fd5b81356020610e2082610c34565b604051610e2d8282610c07565b83815260059390931b8501820192828101915089841115610e4c575f80fd5b948201945b83861015610e7157610e6286610b0a565b82529482019490820190610e51565b96505086013592505080821115610e86575f80fd5b50610e9385828601610c57565b9150509250929050565b5f8151808452602080850194508084015f5b83811015610ecb57815187529582019590820190600101610eaf565b509495945050505050565b602081525f610b806020830184610e9d565b5f8060408385031215610ef9575f80fd5b610f0283610b0a565b915060208301358015158114610f16575f80fd5b809150509250929050565b5f8060408385031215610f32575f80fd5b610f3b83610b0a565b9150610f4960208401610b0a565b90509250929050565b5f805f805f60a08688031215610f66575f80fd5b610f6f86610b0a565b9450610f7d60208701610b0a565b93506040860135925060608601359150608086013567ffffffffffffffff811115610fa6575f80fd5b610dcb88828901610cc5565b600181811c90821680610fc657607f821691505b602082108103610fe457634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016110715761107161104c565b5060010190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b808201808211156102185761021861104c565b604081525f61112c6040830185610e9d565b828103602084015261113e8185610e9d565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190525f9061117290830186610e9d565b82810360608401526111848186610e9d565b905082810360808401526111988185610b9e565b98975050505050505050565b5f602082840312156111b4575f80fd5b8151610b8081610b4d565b5f60033d11156111d55760045f803e505f5160e01c5b90565b5f60443d10156111e55790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561121557505050505090565b828501915081518181111561122d5750505050505090565b843d87010160208285010111156112475750505050505090565b61125660208286010187610c07565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f906112e290830184610b9e565b97965050505050505056fea264697066735822122061a322da6adf0d936e5880e86ac60ce920e4a663461a9ccc567fcdeca563f3ae64736f6c63430008150033",
}

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 DeployErc1155

func DeployErc1155(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Erc1155, error)

DeployErc1155 deploys a new Ethereum contract, binding an instance of Erc1155 to it.

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) 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, arg0 *big.Int) (string, error)

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

Solidity: function uri(uint256 ) 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) 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(arg0 *big.Int) (string, error)

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

Solidity: function uri(uint256 ) 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) 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) 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) 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 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) 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) 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) Uri

func (_Erc1155 *Erc1155Session) Uri(arg0 *big.Int) (string, error)

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

Solidity: function uri(uint256 ) 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) 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()

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) 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()

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