Documentation ¶
Index ¶
- Variables
- func RunAirdropJob()
- type NftContract
- type NftContractApproval
- type NftContractApprovalForAll
- type NftContractApprovalForAllIterator
- type NftContractApprovalIterator
- type NftContractCaller
- func (_NftContract *NftContractCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_NftContract *NftContractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_NftContract *NftContractCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_NftContract *NftContractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_NftContract *NftContractCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
- func (_NftContract *NftContractCaller) MINTROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_NftContract *NftContractCaller) Name(opts *bind.CallOpts) (string, error)
- func (_NftContract *NftContractCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_NftContract *NftContractCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_NftContract *NftContractCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)
- func (_NftContract *NftContractCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type NftContractCallerRaw
- type NftContractCallerSession
- func (_NftContract *NftContractCallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_NftContract *NftContractCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_NftContract *NftContractCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_NftContract *NftContractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_NftContract *NftContractCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_NftContract *NftContractCallerSession) MINTROLE() ([32]byte, error)
- func (_NftContract *NftContractCallerSession) Name() (string, error)
- func (_NftContract *NftContractCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_NftContract *NftContractCallerSession) Symbol() (string, error)
- func (_NftContract *NftContractCallerSession) TokenByIndex(index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractCallerSession) TokenURI(tokenId *big.Int) (string, error)
- func (_NftContract *NftContractCallerSession) TotalSupply() (*big.Int, error)
- type NftContractFilterer
- func (_NftContract *NftContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, ...) (*NftContractApprovalIterator, error)
- func (_NftContract *NftContractFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*NftContractApprovalForAllIterator, error)
- func (_NftContract *NftContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*NftContractRoleAdminChangedIterator, error)
- func (_NftContract *NftContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*NftContractRoleGrantedIterator, error)
- func (_NftContract *NftContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*NftContractRoleRevokedIterator, error)
- func (_NftContract *NftContractFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, ...) (*NftContractTransferIterator, error)
- func (_NftContract *NftContractFilterer) ParseApproval(log types.Log) (*NftContractApproval, error)
- func (_NftContract *NftContractFilterer) ParseApprovalForAll(log types.Log) (*NftContractApprovalForAll, error)
- func (_NftContract *NftContractFilterer) ParseRoleAdminChanged(log types.Log) (*NftContractRoleAdminChanged, error)
- func (_NftContract *NftContractFilterer) ParseRoleGranted(log types.Log) (*NftContractRoleGranted, error)
- func (_NftContract *NftContractFilterer) ParseRoleRevoked(log types.Log) (*NftContractRoleRevoked, error)
- func (_NftContract *NftContractFilterer) ParseTransfer(log types.Log) (*NftContractTransfer, error)
- func (_NftContract *NftContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NftContractApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_NftContract *NftContractFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NftContractApprovalForAll, ...) (event.Subscription, error)
- func (_NftContract *NftContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *NftContractRoleAdminChanged, ...) (event.Subscription, error)
- func (_NftContract *NftContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NftContractRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_NftContract *NftContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *NftContractRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_NftContract *NftContractFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NftContractTransfer, from []common.Address, ...) (event.Subscription, error)
- type NftContractRaw
- func (_NftContract *NftContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_NftContract *NftContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_NftContract *NftContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type NftContractRoleAdminChanged
- type NftContractRoleAdminChangedIterator
- type NftContractRoleGranted
- type NftContractRoleGrantedIterator
- type NftContractRoleRevoked
- type NftContractRoleRevokedIterator
- type NftContractSession
- func (_NftContract *NftContractSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_NftContract *NftContractSession) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_NftContract *NftContractSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_NftContract *NftContractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_NftContract *NftContractSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_NftContract *NftContractSession) MINTROLE() ([32]byte, error)
- func (_NftContract *NftContractSession) Mint(_address common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractSession) Name() (string, error)
- func (_NftContract *NftContractSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
- func (_NftContract *NftContractSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_NftContract *NftContractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error)
- func (_NftContract *NftContractSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_NftContract *NftContractSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_NftContract *NftContractSession) Symbol() (string, error)
- func (_NftContract *NftContractSession) TokenByIndex(index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)
- func (_NftContract *NftContractSession) TokenURI(tokenId *big.Int) (string, error)
- func (_NftContract *NftContractSession) TotalSupply() (*big.Int, error)
- func (_NftContract *NftContractSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type NftContractTransactor
- func (_NftContract *NftContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) Mint(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, ...) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
- func (_NftContract *NftContractTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type NftContractTransactorRaw
- type NftContractTransactorSession
- func (_NftContract *NftContractTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) Mint(_address common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_NftContract *NftContractTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type NftContractTransfer
- type NftContractTransferIterator
Constants ¶
This section is empty.
Variables ¶
var NftContractABI = NftContractMetaData.ABI
NftContractABI is the input ABI used to generate the binding from. Deprecated: Use NftContractMetaData.ABI instead.
var NftContractMetaData = ð2.MetaData{
ABI: "[{\"inputs\":[],\"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\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"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\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"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\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"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\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\"}]",
}
NftContractMetaData contains all meta data concerning the NftContract contract.
Functions ¶
func RunAirdropJob ¶
func RunAirdropJob()
Types ¶
type NftContract ¶
type NftContract struct { NftContractCaller // Read-only binding to the contract NftContractTransactor // Write-only binding to the contract NftContractFilterer // Log filterer for contract events }
NftContract is an auto generated Go binding around an Ethereum contract.
func NewNftContract ¶
func NewNftContract(address common.Address, backend bind.ContractBackend) (*NftContract, error)
NewNftContract creates a new instance of NftContract, bound to a specific deployed contract.
type NftContractApproval ¶
type NftContractApproval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
NftContractApproval represents a Approval event raised by the NftContract contract.
type NftContractApprovalForAll ¶
type NftContractApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw types.Log // Blockchain specific contextual infos }
NftContractApprovalForAll represents a ApprovalForAll event raised by the NftContract contract.
type NftContractApprovalForAllIterator ¶
type NftContractApprovalForAllIterator struct { Event *NftContractApprovalForAll // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the NftContract contract.
func (*NftContractApprovalForAllIterator) Close ¶
func (it *NftContractApprovalForAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractApprovalForAllIterator) Error ¶
func (it *NftContractApprovalForAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractApprovalForAllIterator) Next ¶
func (it *NftContractApprovalForAllIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type NftContractApprovalIterator ¶
type NftContractApprovalIterator struct { Event *NftContractApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the NftContract contract.
func (*NftContractApprovalIterator) Close ¶
func (it *NftContractApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractApprovalIterator) Error ¶
func (it *NftContractApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractApprovalIterator) Next ¶
func (it *NftContractApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type NftContractCaller ¶
type NftContractCaller struct {
// contains filtered or unexported fields
}
NftContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewNftContractCaller ¶
func NewNftContractCaller(address common.Address, caller bind.ContractCaller) (*NftContractCaller, error)
NewNftContractCaller creates a new read-only instance of NftContract, bound to a specific deployed contract.
func (*NftContractCaller) BalanceOf ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) DEFAULTADMINROLE ¶
func (_NftContract *NftContractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*NftContractCaller) GetApproved ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) GetRoleAdmin ¶
func (_NftContract *NftContractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*NftContractCaller) HasRole ¶
func (_NftContract *NftContractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*NftContractCaller) IsApprovedForAll ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) MINTROLE ¶
func (_NftContract *NftContractCaller) MINTROLE(opts *bind.CallOpts) ([32]byte, error)
MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.
Solidity: function MINT_ROLE() view returns(bytes32)
func (*NftContractCaller) Name ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) OwnerOf ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) SupportsInterface ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) Symbol ¶
func (_NftContract *NftContractCaller) 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 (*NftContractCaller) TokenByIndex ¶
func (_NftContract *NftContractCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)
TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
Solidity: function tokenByIndex(uint256 index) view returns(uint256)
func (*NftContractCaller) TokenOfOwnerByIndex ¶
func (_NftContract *NftContractCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error)
TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
func (*NftContractCaller) TokenURI ¶
func (_NftContract *NftContractCaller) 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)
func (*NftContractCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type NftContractCallerRaw ¶
type NftContractCallerRaw struct {
Contract *NftContractCaller // Generic read-only contract binding to access the raw methods on
}
NftContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*NftContractCallerRaw) Call ¶
func (_NftContract *NftContractCallerRaw) 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 NftContractCallerSession ¶
type NftContractCallerSession struct { Contract *NftContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
NftContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*NftContractCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*NftContractCallerSession) DEFAULTADMINROLE ¶
func (_NftContract *NftContractCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*NftContractCallerSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*NftContractCallerSession) GetRoleAdmin ¶
func (_NftContract *NftContractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*NftContractCallerSession) HasRole ¶
func (_NftContract *NftContractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*NftContractCallerSession) IsApprovedForAll ¶
func (_NftContract *NftContractCallerSession) 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 (*NftContractCallerSession) MINTROLE ¶
func (_NftContract *NftContractCallerSession) MINTROLE() ([32]byte, error)
MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.
Solidity: function MINT_ROLE() view returns(bytes32)
func (*NftContractCallerSession) Name ¶
func (_NftContract *NftContractCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*NftContractCallerSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*NftContractCallerSession) SupportsInterface ¶
func (_NftContract *NftContractCallerSession) 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 (*NftContractCallerSession) Symbol ¶
func (_NftContract *NftContractCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*NftContractCallerSession) TokenByIndex ¶
TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
Solidity: function tokenByIndex(uint256 index) view returns(uint256)
func (*NftContractCallerSession) TokenOfOwnerByIndex ¶
func (_NftContract *NftContractCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)
TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
func (*NftContractCallerSession) TokenURI ¶
func (_NftContract *NftContractCallerSession) 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 (*NftContractCallerSession) TotalSupply ¶
func (_NftContract *NftContractCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type NftContractFilterer ¶
type NftContractFilterer struct {
// contains filtered or unexported fields
}
NftContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewNftContractFilterer ¶
func NewNftContractFilterer(address common.Address, filterer bind.ContractFilterer) (*NftContractFilterer, error)
NewNftContractFilterer creates a new log filterer instance of NftContract, bound to a specific deployed contract.
func (*NftContractFilterer) FilterApproval ¶
func (_NftContract *NftContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*NftContractApprovalIterator, 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 (*NftContractFilterer) FilterApprovalForAll ¶
func (_NftContract *NftContractFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*NftContractApprovalForAllIterator, 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 (*NftContractFilterer) FilterRoleAdminChanged ¶
func (_NftContract *NftContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*NftContractRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*NftContractFilterer) FilterRoleGranted ¶
func (_NftContract *NftContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NftContractRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) FilterRoleRevoked ¶
func (_NftContract *NftContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NftContractRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) FilterTransfer ¶
func (_NftContract *NftContractFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*NftContractTransferIterator, 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 (*NftContractFilterer) ParseApproval ¶
func (_NftContract *NftContractFilterer) ParseApproval(log types.Log) (*NftContractApproval, 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 (*NftContractFilterer) ParseApprovalForAll ¶
func (_NftContract *NftContractFilterer) ParseApprovalForAll(log types.Log) (*NftContractApprovalForAll, error)
ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*NftContractFilterer) ParseRoleAdminChanged ¶
func (_NftContract *NftContractFilterer) ParseRoleAdminChanged(log types.Log) (*NftContractRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*NftContractFilterer) ParseRoleGranted ¶
func (_NftContract *NftContractFilterer) ParseRoleGranted(log types.Log) (*NftContractRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) ParseRoleRevoked ¶
func (_NftContract *NftContractFilterer) ParseRoleRevoked(log types.Log) (*NftContractRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) ParseTransfer ¶
func (_NftContract *NftContractFilterer) ParseTransfer(log types.Log) (*NftContractTransfer, 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 (*NftContractFilterer) WatchApproval ¶
func (_NftContract *NftContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NftContractApproval, 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 (*NftContractFilterer) WatchApprovalForAll ¶
func (_NftContract *NftContractFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NftContractApprovalForAll, 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 (*NftContractFilterer) WatchRoleAdminChanged ¶
func (_NftContract *NftContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *NftContractRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*NftContractFilterer) WatchRoleGranted ¶
func (_NftContract *NftContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NftContractRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) WatchRoleRevoked ¶
func (_NftContract *NftContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *NftContractRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*NftContractFilterer) WatchTransfer ¶
func (_NftContract *NftContractFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NftContractTransfer, 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 NftContractRaw ¶
type NftContractRaw struct {
Contract *NftContract // Generic contract binding to access the raw methods on
}
NftContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*NftContractRaw) Call ¶
func (_NftContract *NftContractRaw) 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 (*NftContractRaw) Transact ¶
func (_NftContract *NftContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NftContractRaw) Transfer ¶
func (_NftContract *NftContractRaw) 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 NftContractRoleAdminChanged ¶
type NftContractRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
NftContractRoleAdminChanged represents a RoleAdminChanged event raised by the NftContract contract.
type NftContractRoleAdminChangedIterator ¶
type NftContractRoleAdminChangedIterator struct { Event *NftContractRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the NftContract contract.
func (*NftContractRoleAdminChangedIterator) Close ¶
func (it *NftContractRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractRoleAdminChangedIterator) Error ¶
func (it *NftContractRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractRoleAdminChangedIterator) Next ¶
func (it *NftContractRoleAdminChangedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type NftContractRoleGranted ¶
type NftContractRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
NftContractRoleGranted represents a RoleGranted event raised by the NftContract contract.
type NftContractRoleGrantedIterator ¶
type NftContractRoleGrantedIterator struct { Event *NftContractRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the NftContract contract.
func (*NftContractRoleGrantedIterator) Close ¶
func (it *NftContractRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractRoleGrantedIterator) Error ¶
func (it *NftContractRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractRoleGrantedIterator) Next ¶
func (it *NftContractRoleGrantedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type NftContractRoleRevoked ¶
type NftContractRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
NftContractRoleRevoked represents a RoleRevoked event raised by the NftContract contract.
type NftContractRoleRevokedIterator ¶
type NftContractRoleRevokedIterator struct { Event *NftContractRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the NftContract contract.
func (*NftContractRoleRevokedIterator) Close ¶
func (it *NftContractRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractRoleRevokedIterator) Error ¶
func (it *NftContractRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractRoleRevokedIterator) Next ¶
func (it *NftContractRoleRevokedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type NftContractSession ¶
type NftContractSession struct { Contract *NftContract // 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 }
NftContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*NftContractSession) Approve ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*NftContractSession) Burn ¶
func (_NftContract *NftContractSession) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*NftContractSession) DEFAULTADMINROLE ¶
func (_NftContract *NftContractSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*NftContractSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*NftContractSession) GetRoleAdmin ¶
func (_NftContract *NftContractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*NftContractSession) GrantRole ¶
func (_NftContract *NftContractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*NftContractSession) HasRole ¶
func (_NftContract *NftContractSession) HasRole(role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*NftContractSession) IsApprovedForAll ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) MINTROLE ¶
func (_NftContract *NftContractSession) MINTROLE() ([32]byte, error)
MINTROLE is a free data retrieval call binding the contract method 0xe9a9c850.
Solidity: function MINT_ROLE() view returns(bytes32)
func (*NftContractSession) Mint ¶
func (_NftContract *NftContractSession) Mint(_address common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address _address) returns(uint256)
func (*NftContractSession) Name ¶
func (_NftContract *NftContractSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*NftContractSession) OnERC721Received ¶
func (_NftContract *NftContractSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)
func (*NftContractSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*NftContractSession) RenounceRole ¶
func (_NftContract *NftContractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*NftContractSession) RevokeRole ¶
func (_NftContract *NftContractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*NftContractSession) SafeTransferFrom ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) SafeTransferFrom0 ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) SetApprovalForAll ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) SupportsInterface ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) Symbol ¶
func (_NftContract *NftContractSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*NftContractSession) TokenByIndex ¶
TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
Solidity: function tokenByIndex(uint256 index) view returns(uint256)
func (*NftContractSession) TokenOfOwnerByIndex ¶
func (_NftContract *NftContractSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)
TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
func (*NftContractSession) TokenURI ¶
func (_NftContract *NftContractSession) 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 (*NftContractSession) TotalSupply ¶
func (_NftContract *NftContractSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*NftContractSession) TransferFrom ¶
func (_NftContract *NftContractSession) 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()
type NftContractTransactor ¶
type NftContractTransactor struct {
// contains filtered or unexported fields
}
NftContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewNftContractTransactor ¶
func NewNftContractTransactor(address common.Address, transactor bind.ContractTransactor) (*NftContractTransactor, error)
NewNftContractTransactor creates a new write-only instance of NftContract, bound to a specific deployed contract.
func (*NftContractTransactor) Approve ¶
func (_NftContract *NftContractTransactor) 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 (*NftContractTransactor) Burn ¶
func (_NftContract *NftContractTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*NftContractTransactor) GrantRole ¶
func (_NftContract *NftContractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*NftContractTransactor) Mint ¶
func (_NftContract *NftContractTransactor) Mint(opts *bind.TransactOpts, _address common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address _address) returns(uint256)
func (*NftContractTransactor) OnERC721Received ¶
func (_NftContract *NftContractTransactor) OnERC721Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)
func (*NftContractTransactor) RenounceRole ¶
func (_NftContract *NftContractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*NftContractTransactor) RevokeRole ¶
func (_NftContract *NftContractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*NftContractTransactor) SafeTransferFrom ¶
func (_NftContract *NftContractTransactor) 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 (*NftContractTransactor) SafeTransferFrom0 ¶
func (_NftContract *NftContractTransactor) 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 (*NftContractTransactor) SetApprovalForAll ¶
func (_NftContract *NftContractTransactor) 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 (*NftContractTransactor) TransferFrom ¶
func (_NftContract *NftContractTransactor) 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()
type NftContractTransactorRaw ¶
type NftContractTransactorRaw struct {
Contract *NftContractTransactor // Generic write-only contract binding to access the raw methods on
}
NftContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*NftContractTransactorRaw) Transact ¶
func (_NftContract *NftContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*NftContractTransactorRaw) Transfer ¶
func (_NftContract *NftContractTransactorRaw) 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 NftContractTransactorSession ¶
type NftContractTransactorSession struct { Contract *NftContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
NftContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*NftContractTransactorSession) Approve ¶
func (_NftContract *NftContractTransactorSession) 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 (*NftContractTransactorSession) Burn ¶
func (_NftContract *NftContractTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*NftContractTransactorSession) GrantRole ¶
func (_NftContract *NftContractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*NftContractTransactorSession) Mint ¶
func (_NftContract *NftContractTransactorSession) Mint(_address common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address _address) returns(uint256)
func (*NftContractTransactorSession) OnERC721Received ¶
func (_NftContract *NftContractTransactorSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) (*types.Transaction, error)
OnERC721Received is a paid mutator transaction binding the contract method 0x150b7a02.
Solidity: function onERC721Received(address , address , uint256 , bytes ) returns(bytes4)
func (*NftContractTransactorSession) RenounceRole ¶
func (_NftContract *NftContractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*NftContractTransactorSession) RevokeRole ¶
func (_NftContract *NftContractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*NftContractTransactorSession) SafeTransferFrom ¶
func (_NftContract *NftContractTransactorSession) 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 (*NftContractTransactorSession) SafeTransferFrom0 ¶
func (_NftContract *NftContractTransactorSession) 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 (*NftContractTransactorSession) SetApprovalForAll ¶
func (_NftContract *NftContractTransactorSession) 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 (*NftContractTransactorSession) TransferFrom ¶
func (_NftContract *NftContractTransactorSession) 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()
type NftContractTransfer ¶
type NftContractTransfer struct { From common.Address To common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
NftContractTransfer represents a Transfer event raised by the NftContract contract.
type NftContractTransferIterator ¶
type NftContractTransferIterator struct { Event *NftContractTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
NftContractTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the NftContract contract.
func (*NftContractTransferIterator) Close ¶
func (it *NftContractTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*NftContractTransferIterator) Error ¶
func (it *NftContractTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*NftContractTransferIterator) Next ¶
func (it *NftContractTransferIterator) 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.