ethereum

package
v0.0.0-...-9fe6307 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = "eth"

	ChainID     = "chain_id"
	NodeRPCAddr = "node_rpc_addr"
	GasLimit    = "gas_limit"
	GasPrice    = "gas_price"
	Key         = "key"

	NftContractAddr = "nft_contract_addr"
)
View Source
const NFTABI = "" /* 11214-byte string literal not displayed */

NFTABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

func ParseABI

func ParseABI(abiJSON string) (abi.ABI, error)

ParseABI parses the given JSON-formatted abi

Types

type Config

type Config struct {
	ChainID     string `yaml:"chain_id"`
	NodeRPCAddr string `yaml:"node_rpc_addr"`
	GasLimit    uint64 `yaml:"gas_limit"`
	GasPrice    uint64 `yaml:"gas_price"`
	Key         string `yaml:"key"`

	NftContractAddr string `yaml:"nft_contract_addr"`
}

Config represents the Ethereum chain config

func NewConfig

func NewConfig(v *viper.Viper) Config

NewConfig constructs a new Config from viper

type EthChain

type EthChain struct {
	ChainID     string
	NodeRPCAddr string
	Client      *ethclient.Client
	GasLimit    uint64
	GasPrice    *big.Int
	Key         string
	Passphrase  string

	NftContractAddr string // nft contract address

	NftContractABI abi.ABI // nft contract ABI
	NftContract    *NFT    // nft contract
}

EthChain defines the Ethereum chain

func MakeEthChain

func MakeEthChain(config Config) EthChain

MakeEthChain builds an Ethereum chain from the given config

func NewEthChain

func NewEthChain(
	chainID string,
	nodeRPCAddr string,
	gasLimit uint64,
	gasPrice uint64,
	key string,
	nftContractAddr string,
) EthChain

NewEthChain constructs a new EthChain instance

func (EthChain) BuildAuthTransactor

func (ec EthChain) BuildAuthTransactor() (*bind.TransactOpts, error)

BuildAuthTransactor builds an authenticated transactor

func (EthChain) GetChainID

func (ec EthChain) GetChainID() string

GetChainID implements AppChainI

func (EthChain) WaitForReceipt

func (ec EthChain) WaitForReceipt(tx *ethtypes.Transaction, name string) (string, error)

WaitForReceipt waits for the receipt of the given tx

type NFT

type NFT struct {
	NFTCaller     // Read-only binding to the contract
	NFTTransactor // Write-only binding to the contract
	NFTFilterer   // Log filterer for contract events
}

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

func NewNFT

func NewNFT(address common.Address, backend bind.ContractBackend) (*NFT, error)

NewNFT creates a new instance of NFT, bound to a specific deployed contract.

type NFTApproval

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

NFTApproval represents a Approval event raised by the NFT contract.

type NFTApprovalForAll

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

NFTApprovalForAll represents a ApprovalForAll event raised by the NFT contract.

type NFTApprovalForAllIterator

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

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

func (*NFTApprovalForAllIterator) Close

func (it *NFTApprovalForAllIterator) Close() error

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

func (*NFTApprovalForAllIterator) Error

func (it *NFTApprovalForAllIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTApprovalForAllIterator) Next

func (it *NFTApprovalForAllIterator) 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 NFTApprovalIterator

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

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

func (*NFTApprovalIterator) Close

func (it *NFTApprovalIterator) Close() error

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

func (*NFTApprovalIterator) Error

func (it *NFTApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTApprovalIterator) Next

func (it *NFTApprovalIterator) 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 NFTBatchBurned

type NFTBatchBurned struct {
	MetaId string
	Ids    []*big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

NFTBatchBurned represents a BatchBurned event raised by the NFT contract.

type NFTBatchBurnedIterator

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

NFTBatchBurnedIterator is returned from FilterBatchBurned and is used to iterate over the raw logs and unpacked data for BatchBurned events raised by the NFT contract.

func (*NFTBatchBurnedIterator) Close

func (it *NFTBatchBurnedIterator) Close() error

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

func (*NFTBatchBurnedIterator) Error

func (it *NFTBatchBurnedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBatchBurnedIterator) Next

func (it *NFTBatchBurnedIterator) 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 NFTBatchForSale

type NFTBatchForSale struct {
	Ids    []*big.Int
	MetaId string
	Raw    types.Log // Blockchain specific contextual infos
}

NFTBatchForSale represents a BatchForSale event raised by the NFT contract.

type NFTBatchForSaleIterator

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

NFTBatchForSaleIterator is returned from FilterBatchForSale and is used to iterate over the raw logs and unpacked data for BatchForSale events raised by the NFT contract.

func (*NFTBatchForSaleIterator) Close

func (it *NFTBatchForSaleIterator) Close() error

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

func (*NFTBatchForSaleIterator) Error

func (it *NFTBatchForSaleIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBatchForSaleIterator) Next

func (it *NFTBatchForSaleIterator) 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 NFTBatchTransfered

type NFTBatchTransfered struct {
	MetaId     string
	Recipients []common.Address
	Ids        []*big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

NFTBatchTransfered represents a BatchTransfered event raised by the NFT contract.

type NFTBatchTransferedIterator

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

NFTBatchTransferedIterator is returned from FilterBatchTransfered and is used to iterate over the raw logs and unpacked data for BatchTransfered events raised by the NFT contract.

func (*NFTBatchTransferedIterator) Close

func (it *NFTBatchTransferedIterator) Close() error

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

func (*NFTBatchTransferedIterator) Error

func (it *NFTBatchTransferedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBatchTransferedIterator) Next

func (it *NFTBatchTransferedIterator) 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 NFTBought

type NFTBought struct {
	TokenId *big.Int
	MetaId  string
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

NFTBought represents a Bought event raised by the NFT contract.

type NFTBoughtIterator

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

NFTBoughtIterator is returned from FilterBought and is used to iterate over the raw logs and unpacked data for Bought events raised by the NFT contract.

func (*NFTBoughtIterator) Close

func (it *NFTBoughtIterator) Close() error

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

func (*NFTBoughtIterator) Error

func (it *NFTBoughtIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTBoughtIterator) Next

func (it *NFTBoughtIterator) 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 NFTCaller

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

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

func NewNFTCaller

func NewNFTCaller(address common.Address, caller bind.ContractCaller) (*NFTCaller, error)

NewNFTCaller creates a new read-only instance of NFT, bound to a specific deployed contract.

func (*NFTCaller) BalanceOf

func (_NFT *NFTCaller) 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 (*NFTCaller) BaseUri

func (_NFT *NFTCaller) BaseUri(opts *bind.CallOpts) (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*NFTCaller) GetApproved

func (_NFT *NFTCaller) 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 (*NFTCaller) Id

func (_NFT *NFTCaller) Id(opts *bind.CallOpts) (*big.Int, error)

Id is a free data retrieval call binding the contract method 0xaf640d0f.

Solidity: function id() view returns(uint256)

func (*NFTCaller) IsApprovedForAll

func (_NFT *NFTCaller) 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 (*NFTCaller) IsMinter

func (_NFT *NFTCaller) IsMinter(opts *bind.CallOpts, account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(address account) view returns(bool)

func (*NFTCaller) IsOwner

func (_NFT *NFTCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*NFTCaller) Items

func (_NFT *NFTCaller) Items(opts *bind.CallOpts, arg0 *big.Int) (struct {
	TokenId *big.Int
	Price   *big.Int
	MetaId  string
	State   uint8
}, error)

Items is a free data retrieval call binding the contract method 0xbfb231d2.

Solidity: function items(uint256 ) view returns(uint256 tokenId, uint256 price, string metaId, uint8 state)

func (*NFTCaller) Maker

func (_NFT *NFTCaller) Maker(opts *bind.CallOpts) (common.Address, error)

Maker is a free data retrieval call binding the contract method 0x50655d8c.

Solidity: function maker() view returns(address)

func (*NFTCaller) Name

func (_NFT *NFTCaller) 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 (*NFTCaller) Owner

func (_NFT *NFTCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NFTCaller) OwnerOf

func (_NFT *NFTCaller) 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 (*NFTCaller) SupportsInterface

func (_NFT *NFTCaller) 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 (*NFTCaller) Symbol

func (_NFT *NFTCaller) 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 (*NFTCaller) TokenByIndex

func (_NFT *NFTCaller) 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 (*NFTCaller) TokenOfOwnerByIndex

func (_NFT *NFTCaller) 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 (*NFTCaller) TokenURI

func (_NFT *NFTCaller) 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 (*NFTCaller) TokensOfOwner

func (_NFT *NFTCaller) TokensOfOwner(opts *bind.CallOpts, owner common.Address) ([]*big.Int, error)

TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c.

Solidity: function tokensOfOwner(address owner) view returns(uint256[])

func (*NFTCaller) TotalSupply

func (_NFT *NFTCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type NFTCallerRaw

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

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

func (*NFTCallerRaw) Call

func (_NFT *NFTCallerRaw) 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 NFTCallerSession

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

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

func (*NFTCallerSession) BalanceOf

func (_NFT *NFTCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*NFTCallerSession) BaseUri

func (_NFT *NFTCallerSession) BaseUri() (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*NFTCallerSession) GetApproved

func (_NFT *NFTCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

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

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

func (*NFTCallerSession) Id

func (_NFT *NFTCallerSession) Id() (*big.Int, error)

Id is a free data retrieval call binding the contract method 0xaf640d0f.

Solidity: function id() view returns(uint256)

func (*NFTCallerSession) IsApprovedForAll

func (_NFT *NFTCallerSession) 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 (*NFTCallerSession) IsMinter

func (_NFT *NFTCallerSession) IsMinter(account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(address account) view returns(bool)

func (*NFTCallerSession) IsOwner

func (_NFT *NFTCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*NFTCallerSession) Items

func (_NFT *NFTCallerSession) Items(arg0 *big.Int) (struct {
	TokenId *big.Int
	Price   *big.Int
	MetaId  string
	State   uint8
}, error)

Items is a free data retrieval call binding the contract method 0xbfb231d2.

Solidity: function items(uint256 ) view returns(uint256 tokenId, uint256 price, string metaId, uint8 state)

func (*NFTCallerSession) Maker

func (_NFT *NFTCallerSession) Maker() (common.Address, error)

Maker is a free data retrieval call binding the contract method 0x50655d8c.

Solidity: function maker() view returns(address)

func (*NFTCallerSession) Name

func (_NFT *NFTCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NFTCallerSession) Owner

func (_NFT *NFTCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NFTCallerSession) OwnerOf

func (_NFT *NFTCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

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

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

func (*NFTCallerSession) SupportsInterface

func (_NFT *NFTCallerSession) 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 (*NFTCallerSession) Symbol

func (_NFT *NFTCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NFTCallerSession) TokenByIndex

func (_NFT *NFTCallerSession) TokenByIndex(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 (*NFTCallerSession) TokenOfOwnerByIndex

func (_NFT *NFTCallerSession) 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 (*NFTCallerSession) TokenURI

func (_NFT *NFTCallerSession) 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 (*NFTCallerSession) TokensOfOwner

func (_NFT *NFTCallerSession) TokensOfOwner(owner common.Address) ([]*big.Int, error)

TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c.

Solidity: function tokensOfOwner(address owner) view returns(uint256[])

func (*NFTCallerSession) TotalSupply

func (_NFT *NFTCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type NFTDestroy

type NFTDestroy struct {
	Raw types.Log // Blockchain specific contextual infos
}

NFTDestroy represents a Destroy event raised by the NFT contract.

type NFTDestroyIterator

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

NFTDestroyIterator is returned from FilterDestroy and is used to iterate over the raw logs and unpacked data for Destroy events raised by the NFT contract.

func (*NFTDestroyIterator) Close

func (it *NFTDestroyIterator) Close() error

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

func (*NFTDestroyIterator) Error

func (it *NFTDestroyIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTDestroyIterator) Next

func (it *NFTDestroyIterator) 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 NFTErrorOut

type NFTErrorOut struct {
	Error   string
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

NFTErrorOut represents a ErrorOut event raised by the NFT contract.

type NFTErrorOutIterator

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

NFTErrorOutIterator is returned from FilterErrorOut and is used to iterate over the raw logs and unpacked data for ErrorOut events raised by the NFT contract.

func (*NFTErrorOutIterator) Close

func (it *NFTErrorOutIterator) Close() error

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

func (*NFTErrorOutIterator) Error

func (it *NFTErrorOutIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTErrorOutIterator) Next

func (it *NFTErrorOutIterator) 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 NFTFilterer

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

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

func NewNFTFilterer

func NewNFTFilterer(address common.Address, filterer bind.ContractFilterer) (*NFTFilterer, error)

NewNFTFilterer creates a new log filterer instance of NFT, bound to a specific deployed contract.

func (*NFTFilterer) FilterApproval

func (_NFT *NFTFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*NFTApprovalIterator, 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 (*NFTFilterer) FilterApprovalForAll

func (_NFT *NFTFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*NFTApprovalForAllIterator, 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 (*NFTFilterer) FilterBatchBurned

func (_NFT *NFTFilterer) FilterBatchBurned(opts *bind.FilterOpts) (*NFTBatchBurnedIterator, error)

FilterBatchBurned is a free log retrieval operation binding the contract event 0x68f2536b9ff968bd2acc006b7cf7be7ca83c2f4a462c355e925bb354e5ce43d5.

Solidity: event BatchBurned(string metaId, uint256[] ids)

func (*NFTFilterer) FilterBatchForSale

func (_NFT *NFTFilterer) FilterBatchForSale(opts *bind.FilterOpts) (*NFTBatchForSaleIterator, error)

FilterBatchForSale is a free log retrieval operation binding the contract event 0xefd56044628f374cec68c952a0580a76d23b4bd06d17bb887193f2176ba6c48b.

Solidity: event BatchForSale(uint256[] ids, string metaId)

func (*NFTFilterer) FilterBatchTransfered

func (_NFT *NFTFilterer) FilterBatchTransfered(opts *bind.FilterOpts) (*NFTBatchTransferedIterator, error)

FilterBatchTransfered is a free log retrieval operation binding the contract event 0xe0bdff057bc74b2545c13ac89393038d336f254b2245c876efa9669ddcc09b97.

Solidity: event BatchTransfered(string metaId, address[] recipients, uint256[] ids)

func (*NFTFilterer) FilterBought

func (_NFT *NFTFilterer) FilterBought(opts *bind.FilterOpts) (*NFTBoughtIterator, error)

FilterBought is a free log retrieval operation binding the contract event 0x46e70e87b058d8f3cde334fc179a61ac8acadcc4fdc26735e4195106b3c88eb3.

Solidity: event Bought(uint256 tokenId, string metaId, uint256 value)

func (*NFTFilterer) FilterDestroy

func (_NFT *NFTFilterer) FilterDestroy(opts *bind.FilterOpts) (*NFTDestroyIterator, error)

FilterDestroy is a free log retrieval operation binding the contract event 0xf58fef8e187ef8dfd7bef096c1ef3e4f3c54f98d95b8ad5659349b07e61204df.

Solidity: event Destroy()

func (*NFTFilterer) FilterErrorOut

func (_NFT *NFTFilterer) FilterErrorOut(opts *bind.FilterOpts) (*NFTErrorOutIterator, error)

FilterErrorOut is a free log retrieval operation binding the contract event 0x62f7925b321cb13eb5bae75960341d045933b23884aa3bb6cf1deaecf307aec1.

Solidity: event ErrorOut(string error, uint256 tokenId)

func (*NFTFilterer) FilterMinted

func (_NFT *NFTFilterer) FilterMinted(opts *bind.FilterOpts) (*NFTMintedIterator, error)

FilterMinted is a free log retrieval operation binding the contract event 0xadef11a3979b8ceb0573eb6ef0678134a09c23a0d94e5ea47cd18ac3a9fc0194.

Solidity: event Minted(uint256 id, string metaId)

func (*NFTFilterer) FilterMinterAdded

func (_NFT *NFTFilterer) FilterMinterAdded(opts *bind.FilterOpts, account []common.Address) (*NFTMinterAddedIterator, error)

FilterMinterAdded is a free log retrieval operation binding the contract event 0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6.

Solidity: event MinterAdded(address indexed account)

func (*NFTFilterer) FilterMinterRemoved

func (_NFT *NFTFilterer) FilterMinterRemoved(opts *bind.FilterOpts, account []common.Address) (*NFTMinterRemovedIterator, error)

FilterMinterRemoved is a free log retrieval operation binding the contract event 0xe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692.

Solidity: event MinterRemoved(address indexed account)

func (*NFTFilterer) FilterOwnershipTransferred

func (_NFT *NFTFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*NFTOwnershipTransferredIterator, error)

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

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

func (*NFTFilterer) FilterTransfer

func (_NFT *NFTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*NFTTransferIterator, 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 (*NFTFilterer) ParseApproval

func (_NFT *NFTFilterer) ParseApproval(log types.Log) (*NFTApproval, 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 (*NFTFilterer) ParseApprovalForAll

func (_NFT *NFTFilterer) ParseApprovalForAll(log types.Log) (*NFTApprovalForAll, error)

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

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

func (*NFTFilterer) ParseBatchBurned

func (_NFT *NFTFilterer) ParseBatchBurned(log types.Log) (*NFTBatchBurned, error)

ParseBatchBurned is a log parse operation binding the contract event 0x68f2536b9ff968bd2acc006b7cf7be7ca83c2f4a462c355e925bb354e5ce43d5.

Solidity: event BatchBurned(string metaId, uint256[] ids)

func (*NFTFilterer) ParseBatchForSale

func (_NFT *NFTFilterer) ParseBatchForSale(log types.Log) (*NFTBatchForSale, error)

ParseBatchForSale is a log parse operation binding the contract event 0xefd56044628f374cec68c952a0580a76d23b4bd06d17bb887193f2176ba6c48b.

Solidity: event BatchForSale(uint256[] ids, string metaId)

func (*NFTFilterer) ParseBatchTransfered

func (_NFT *NFTFilterer) ParseBatchTransfered(log types.Log) (*NFTBatchTransfered, error)

ParseBatchTransfered is a log parse operation binding the contract event 0xe0bdff057bc74b2545c13ac89393038d336f254b2245c876efa9669ddcc09b97.

Solidity: event BatchTransfered(string metaId, address[] recipients, uint256[] ids)

func (*NFTFilterer) ParseBought

func (_NFT *NFTFilterer) ParseBought(log types.Log) (*NFTBought, error)

ParseBought is a log parse operation binding the contract event 0x46e70e87b058d8f3cde334fc179a61ac8acadcc4fdc26735e4195106b3c88eb3.

Solidity: event Bought(uint256 tokenId, string metaId, uint256 value)

func (*NFTFilterer) ParseDestroy

func (_NFT *NFTFilterer) ParseDestroy(log types.Log) (*NFTDestroy, error)

ParseDestroy is a log parse operation binding the contract event 0xf58fef8e187ef8dfd7bef096c1ef3e4f3c54f98d95b8ad5659349b07e61204df.

Solidity: event Destroy()

func (*NFTFilterer) ParseErrorOut

func (_NFT *NFTFilterer) ParseErrorOut(log types.Log) (*NFTErrorOut, error)

ParseErrorOut is a log parse operation binding the contract event 0x62f7925b321cb13eb5bae75960341d045933b23884aa3bb6cf1deaecf307aec1.

Solidity: event ErrorOut(string error, uint256 tokenId)

func (*NFTFilterer) ParseMinted

func (_NFT *NFTFilterer) ParseMinted(log types.Log) (*NFTMinted, error)

ParseMinted is a log parse operation binding the contract event 0xadef11a3979b8ceb0573eb6ef0678134a09c23a0d94e5ea47cd18ac3a9fc0194.

Solidity: event Minted(uint256 id, string metaId)

func (*NFTFilterer) ParseMinterAdded

func (_NFT *NFTFilterer) ParseMinterAdded(log types.Log) (*NFTMinterAdded, error)

ParseMinterAdded is a log parse operation binding the contract event 0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6.

Solidity: event MinterAdded(address indexed account)

func (*NFTFilterer) ParseMinterRemoved

func (_NFT *NFTFilterer) ParseMinterRemoved(log types.Log) (*NFTMinterRemoved, error)

ParseMinterRemoved is a log parse operation binding the contract event 0xe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692.

Solidity: event MinterRemoved(address indexed account)

func (*NFTFilterer) ParseOwnershipTransferred

func (_NFT *NFTFilterer) ParseOwnershipTransferred(log types.Log) (*NFTOwnershipTransferred, error)

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

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

func (*NFTFilterer) ParseTransfer

func (_NFT *NFTFilterer) ParseTransfer(log types.Log) (*NFTTransfer, 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 (*NFTFilterer) WatchApproval

func (_NFT *NFTFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NFTApproval, 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 (*NFTFilterer) WatchApprovalForAll

func (_NFT *NFTFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NFTApprovalForAll, 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 (*NFTFilterer) WatchBatchBurned

func (_NFT *NFTFilterer) WatchBatchBurned(opts *bind.WatchOpts, sink chan<- *NFTBatchBurned) (event.Subscription, error)

WatchBatchBurned is a free log subscription operation binding the contract event 0x68f2536b9ff968bd2acc006b7cf7be7ca83c2f4a462c355e925bb354e5ce43d5.

Solidity: event BatchBurned(string metaId, uint256[] ids)

func (*NFTFilterer) WatchBatchForSale

func (_NFT *NFTFilterer) WatchBatchForSale(opts *bind.WatchOpts, sink chan<- *NFTBatchForSale) (event.Subscription, error)

WatchBatchForSale is a free log subscription operation binding the contract event 0xefd56044628f374cec68c952a0580a76d23b4bd06d17bb887193f2176ba6c48b.

Solidity: event BatchForSale(uint256[] ids, string metaId)

func (*NFTFilterer) WatchBatchTransfered

func (_NFT *NFTFilterer) WatchBatchTransfered(opts *bind.WatchOpts, sink chan<- *NFTBatchTransfered) (event.Subscription, error)

WatchBatchTransfered is a free log subscription operation binding the contract event 0xe0bdff057bc74b2545c13ac89393038d336f254b2245c876efa9669ddcc09b97.

Solidity: event BatchTransfered(string metaId, address[] recipients, uint256[] ids)

func (*NFTFilterer) WatchBought

func (_NFT *NFTFilterer) WatchBought(opts *bind.WatchOpts, sink chan<- *NFTBought) (event.Subscription, error)

WatchBought is a free log subscription operation binding the contract event 0x46e70e87b058d8f3cde334fc179a61ac8acadcc4fdc26735e4195106b3c88eb3.

Solidity: event Bought(uint256 tokenId, string metaId, uint256 value)

func (*NFTFilterer) WatchDestroy

func (_NFT *NFTFilterer) WatchDestroy(opts *bind.WatchOpts, sink chan<- *NFTDestroy) (event.Subscription, error)

WatchDestroy is a free log subscription operation binding the contract event 0xf58fef8e187ef8dfd7bef096c1ef3e4f3c54f98d95b8ad5659349b07e61204df.

Solidity: event Destroy()

func (*NFTFilterer) WatchErrorOut

func (_NFT *NFTFilterer) WatchErrorOut(opts *bind.WatchOpts, sink chan<- *NFTErrorOut) (event.Subscription, error)

WatchErrorOut is a free log subscription operation binding the contract event 0x62f7925b321cb13eb5bae75960341d045933b23884aa3bb6cf1deaecf307aec1.

Solidity: event ErrorOut(string error, uint256 tokenId)

func (*NFTFilterer) WatchMinted

func (_NFT *NFTFilterer) WatchMinted(opts *bind.WatchOpts, sink chan<- *NFTMinted) (event.Subscription, error)

WatchMinted is a free log subscription operation binding the contract event 0xadef11a3979b8ceb0573eb6ef0678134a09c23a0d94e5ea47cd18ac3a9fc0194.

Solidity: event Minted(uint256 id, string metaId)

func (*NFTFilterer) WatchMinterAdded

func (_NFT *NFTFilterer) WatchMinterAdded(opts *bind.WatchOpts, sink chan<- *NFTMinterAdded, account []common.Address) (event.Subscription, error)

WatchMinterAdded is a free log subscription operation binding the contract event 0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6.

Solidity: event MinterAdded(address indexed account)

func (*NFTFilterer) WatchMinterRemoved

func (_NFT *NFTFilterer) WatchMinterRemoved(opts *bind.WatchOpts, sink chan<- *NFTMinterRemoved, account []common.Address) (event.Subscription, error)

WatchMinterRemoved is a free log subscription operation binding the contract event 0xe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692.

Solidity: event MinterRemoved(address indexed account)

func (*NFTFilterer) WatchOwnershipTransferred

func (_NFT *NFTFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *NFTOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

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

func (*NFTFilterer) WatchTransfer

func (_NFT *NFTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NFTTransfer, 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 NFTMinted

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

NFTMinted represents a Minted event raised by the NFT contract.

type NFTMintedIterator

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

NFTMintedIterator is returned from FilterMinted and is used to iterate over the raw logs and unpacked data for Minted events raised by the NFT contract.

func (*NFTMintedIterator) Close

func (it *NFTMintedIterator) Close() error

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

func (*NFTMintedIterator) Error

func (it *NFTMintedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTMintedIterator) Next

func (it *NFTMintedIterator) 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 NFTMinterAdded

type NFTMinterAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTMinterAdded represents a MinterAdded event raised by the NFT contract.

type NFTMinterAddedIterator

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

NFTMinterAddedIterator is returned from FilterMinterAdded and is used to iterate over the raw logs and unpacked data for MinterAdded events raised by the NFT contract.

func (*NFTMinterAddedIterator) Close

func (it *NFTMinterAddedIterator) Close() error

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

func (*NFTMinterAddedIterator) Error

func (it *NFTMinterAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTMinterAddedIterator) Next

func (it *NFTMinterAddedIterator) 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 NFTMinterRemoved

type NFTMinterRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

NFTMinterRemoved represents a MinterRemoved event raised by the NFT contract.

type NFTMinterRemovedIterator

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

NFTMinterRemovedIterator is returned from FilterMinterRemoved and is used to iterate over the raw logs and unpacked data for MinterRemoved events raised by the NFT contract.

func (*NFTMinterRemovedIterator) Close

func (it *NFTMinterRemovedIterator) Close() error

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

func (*NFTMinterRemovedIterator) Error

func (it *NFTMinterRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTMinterRemovedIterator) Next

func (it *NFTMinterRemovedIterator) 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 NFTOwnershipTransferred

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

NFTOwnershipTransferred represents a OwnershipTransferred event raised by the NFT contract.

type NFTOwnershipTransferredIterator

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

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

func (*NFTOwnershipTransferredIterator) Close

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

func (*NFTOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTOwnershipTransferredIterator) 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 NFTRaw

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

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

func (*NFTRaw) Call

func (_NFT *NFTRaw) 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 (*NFTRaw) Transact

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

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

func (*NFTRaw) Transfer

func (_NFT *NFTRaw) 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 NFTSession

type NFTSession struct {
	Contract     *NFT              // 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
}

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

func (*NFTSession) AddMinter

func (_NFT *NFTSession) AddMinter(account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(address account) returns()

func (*NFTSession) Approve

func (_NFT *NFTSession) 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 (*NFTSession) BalanceOf

func (_NFT *NFTSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*NFTSession) BaseUri

func (_NFT *NFTSession) BaseUri() (string, error)

BaseUri is a free data retrieval call binding the contract method 0x9abc8320.

Solidity: function baseUri() view returns(string)

func (*NFTSession) BatchBurn

func (_NFT *NFTSession) BatchBurn(tokenIds []*big.Int) (*types.Transaction, error)

BatchBurn is a paid mutator transaction binding the contract method 0xdc8e92ea.

Solidity: function batchBurn(uint256[] tokenIds) returns()

func (*NFTSession) BatchMint

func (_NFT *NFTSession) BatchMint(to common.Address, amountToMint *big.Int, metaId string, setPrice *big.Int, isForSale bool) (*types.Transaction, error)

BatchMint is a paid mutator transaction binding the contract method 0x98588a2b.

Solidity: function batchMint(address to, uint256 amountToMint, string metaId, uint256 setPrice, bool isForSale) returns()

func (*NFTSession) BatchTransfer

func (_NFT *NFTSession) BatchTransfer(giver common.Address, recipients []common.Address, values []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1239ec8c.

Solidity: function batchTransfer(address giver, address[] recipients, uint256[] values) returns()

func (*NFTSession) Burn

func (_NFT *NFTSession) 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 (*NFTSession) BuyThing

func (_NFT *NFTSession) BuyThing(_tokenId *big.Int) (*types.Transaction, error)

BuyThing is a paid mutator transaction binding the contract method 0x80482491.

Solidity: function buyThing(uint256 _tokenId) payable returns(bool)

func (*NFTSession) DestroyAndSend

func (_NFT *NFTSession) DestroyAndSend() (*types.Transaction, error)

DestroyAndSend is a paid mutator transaction binding the contract method 0x45cefcec.

Solidity: function destroyAndSend() returns()

func (*NFTSession) GetApproved

func (_NFT *NFTSession) GetApproved(tokenId *big.Int) (common.Address, error)

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

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

func (*NFTSession) Id

func (_NFT *NFTSession) Id() (*big.Int, error)

Id is a free data retrieval call binding the contract method 0xaf640d0f.

Solidity: function id() view returns(uint256)

func (*NFTSession) IsApprovedForAll

func (_NFT *NFTSession) 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 (*NFTSession) IsMinter

func (_NFT *NFTSession) IsMinter(account common.Address) (bool, error)

IsMinter is a free data retrieval call binding the contract method 0xaa271e1a.

Solidity: function isMinter(address account) view returns(bool)

func (*NFTSession) IsOwner

func (_NFT *NFTSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*NFTSession) Items

func (_NFT *NFTSession) Items(arg0 *big.Int) (struct {
	TokenId *big.Int
	Price   *big.Int
	MetaId  string
	State   uint8
}, error)

Items is a free data retrieval call binding the contract method 0xbfb231d2.

Solidity: function items(uint256 ) view returns(uint256 tokenId, uint256 price, string metaId, uint8 state)

func (*NFTSession) Maker

func (_NFT *NFTSession) Maker() (common.Address, error)

Maker is a free data retrieval call binding the contract method 0x50655d8c.

Solidity: function maker() view returns(address)

func (*NFTSession) MintWithTokenURI

func (_NFT *NFTSession) MintWithTokenURI(to common.Address, tokenId *big.Int, tokenURI string) (*types.Transaction, error)

MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f.

Solidity: function mintWithTokenURI(address to, uint256 tokenId, string tokenURI) returns(bool)

func (*NFTSession) Name

func (_NFT *NFTSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*NFTSession) Owner

func (_NFT *NFTSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NFTSession) OwnerOf

func (_NFT *NFTSession) OwnerOf(tokenId *big.Int) (common.Address, error)

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

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

func (*NFTSession) RenounceMinter

func (_NFT *NFTSession) RenounceMinter() (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*NFTSession) RenounceOwnership

func (_NFT *NFTSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NFTSession) SafeTransferFrom

func (_NFT *NFTSession) 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 (*NFTSession) SafeTransferFrom0

func (_NFT *NFTSession) 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 (*NFTSession) SetApprovalForAll

func (_NFT *NFTSession) SetApprovalForAll(to common.Address, approved bool) (*types.Transaction, error)

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

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

func (*NFTSession) SetTokenPrice

func (_NFT *NFTSession) SetTokenPrice(ids []*big.Int, setPrice *big.Int) (*types.Transaction, error)

SetTokenPrice is a paid mutator transaction binding the contract method 0xe564da69.

Solidity: function setTokenPrice(uint256[] ids, uint256 setPrice) returns()

func (*NFTSession) SetTokenState

func (_NFT *NFTSession) SetTokenState(ids []*big.Int, isEnabled bool) (*types.Transaction, error)

SetTokenState is a paid mutator transaction binding the contract method 0xd4477b3c.

Solidity: function setTokenState(uint256[] ids, bool isEnabled) returns()

func (*NFTSession) SupportsInterface

func (_NFT *NFTSession) 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 (*NFTSession) Symbol

func (_NFT *NFTSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*NFTSession) TokenByIndex

func (_NFT *NFTSession) TokenByIndex(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 (*NFTSession) TokenOfOwnerByIndex

func (_NFT *NFTSession) 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 (*NFTSession) TokenURI

func (_NFT *NFTSession) 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 (*NFTSession) TokensOfOwner

func (_NFT *NFTSession) TokensOfOwner(owner common.Address) ([]*big.Int, error)

TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c.

Solidity: function tokensOfOwner(address owner) view returns(uint256[])

func (*NFTSession) TotalSupply

func (_NFT *NFTSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*NFTSession) TransferFrom

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

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

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

func (*NFTSession) TransferOwnership

func (_NFT *NFTSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NFTTransactor

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

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

func NewNFTTransactor

func NewNFTTransactor(address common.Address, transactor bind.ContractTransactor) (*NFTTransactor, error)

NewNFTTransactor creates a new write-only instance of NFT, bound to a specific deployed contract.

func (*NFTTransactor) AddMinter

func (_NFT *NFTTransactor) AddMinter(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(address account) returns()

func (*NFTTransactor) Approve

func (_NFT *NFTTransactor) 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 (*NFTTransactor) BatchBurn

func (_NFT *NFTTransactor) BatchBurn(opts *bind.TransactOpts, tokenIds []*big.Int) (*types.Transaction, error)

BatchBurn is a paid mutator transaction binding the contract method 0xdc8e92ea.

Solidity: function batchBurn(uint256[] tokenIds) returns()

func (*NFTTransactor) BatchMint

func (_NFT *NFTTransactor) BatchMint(opts *bind.TransactOpts, to common.Address, amountToMint *big.Int, metaId string, setPrice *big.Int, isForSale bool) (*types.Transaction, error)

BatchMint is a paid mutator transaction binding the contract method 0x98588a2b.

Solidity: function batchMint(address to, uint256 amountToMint, string metaId, uint256 setPrice, bool isForSale) returns()

func (*NFTTransactor) BatchTransfer

func (_NFT *NFTTransactor) BatchTransfer(opts *bind.TransactOpts, giver common.Address, recipients []common.Address, values []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1239ec8c.

Solidity: function batchTransfer(address giver, address[] recipients, uint256[] values) returns()

func (*NFTTransactor) Burn

func (_NFT *NFTTransactor) 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 (*NFTTransactor) BuyThing

func (_NFT *NFTTransactor) BuyThing(opts *bind.TransactOpts, _tokenId *big.Int) (*types.Transaction, error)

BuyThing is a paid mutator transaction binding the contract method 0x80482491.

Solidity: function buyThing(uint256 _tokenId) payable returns(bool)

func (*NFTTransactor) DestroyAndSend

func (_NFT *NFTTransactor) DestroyAndSend(opts *bind.TransactOpts) (*types.Transaction, error)

DestroyAndSend is a paid mutator transaction binding the contract method 0x45cefcec.

Solidity: function destroyAndSend() returns()

func (*NFTTransactor) MintWithTokenURI

func (_NFT *NFTTransactor) MintWithTokenURI(opts *bind.TransactOpts, to common.Address, tokenId *big.Int, tokenURI string) (*types.Transaction, error)

MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f.

Solidity: function mintWithTokenURI(address to, uint256 tokenId, string tokenURI) returns(bool)

func (*NFTTransactor) RenounceMinter

func (_NFT *NFTTransactor) RenounceMinter(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*NFTTransactor) RenounceOwnership

func (_NFT *NFTTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NFTTransactor) SafeTransferFrom

func (_NFT *NFTTransactor) 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 (*NFTTransactor) SafeTransferFrom0

func (_NFT *NFTTransactor) 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 (*NFTTransactor) SetApprovalForAll

func (_NFT *NFTTransactor) SetApprovalForAll(opts *bind.TransactOpts, to common.Address, approved bool) (*types.Transaction, error)

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

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

func (*NFTTransactor) SetTokenPrice

func (_NFT *NFTTransactor) SetTokenPrice(opts *bind.TransactOpts, ids []*big.Int, setPrice *big.Int) (*types.Transaction, error)

SetTokenPrice is a paid mutator transaction binding the contract method 0xe564da69.

Solidity: function setTokenPrice(uint256[] ids, uint256 setPrice) returns()

func (*NFTTransactor) SetTokenState

func (_NFT *NFTTransactor) SetTokenState(opts *bind.TransactOpts, ids []*big.Int, isEnabled bool) (*types.Transaction, error)

SetTokenState is a paid mutator transaction binding the contract method 0xd4477b3c.

Solidity: function setTokenState(uint256[] ids, bool isEnabled) returns()

func (*NFTTransactor) TransferFrom

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

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

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

func (*NFTTransactor) TransferOwnership

func (_NFT *NFTTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NFTTransactorRaw

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

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

func (*NFTTransactorRaw) Transact

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

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

func (*NFTTransactorRaw) Transfer

func (_NFT *NFTTransactorRaw) 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 NFTTransactorSession

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

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

func (*NFTTransactorSession) AddMinter

func (_NFT *NFTTransactorSession) AddMinter(account common.Address) (*types.Transaction, error)

AddMinter is a paid mutator transaction binding the contract method 0x983b2d56.

Solidity: function addMinter(address account) returns()

func (*NFTTransactorSession) Approve

func (_NFT *NFTTransactorSession) 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 (*NFTTransactorSession) BatchBurn

func (_NFT *NFTTransactorSession) BatchBurn(tokenIds []*big.Int) (*types.Transaction, error)

BatchBurn is a paid mutator transaction binding the contract method 0xdc8e92ea.

Solidity: function batchBurn(uint256[] tokenIds) returns()

func (*NFTTransactorSession) BatchMint

func (_NFT *NFTTransactorSession) BatchMint(to common.Address, amountToMint *big.Int, metaId string, setPrice *big.Int, isForSale bool) (*types.Transaction, error)

BatchMint is a paid mutator transaction binding the contract method 0x98588a2b.

Solidity: function batchMint(address to, uint256 amountToMint, string metaId, uint256 setPrice, bool isForSale) returns()

func (*NFTTransactorSession) BatchTransfer

func (_NFT *NFTTransactorSession) BatchTransfer(giver common.Address, recipients []common.Address, values []*big.Int) (*types.Transaction, error)

BatchTransfer is a paid mutator transaction binding the contract method 0x1239ec8c.

Solidity: function batchTransfer(address giver, address[] recipients, uint256[] values) returns()

func (*NFTTransactorSession) Burn

func (_NFT *NFTTransactorSession) 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 (*NFTTransactorSession) BuyThing

func (_NFT *NFTTransactorSession) BuyThing(_tokenId *big.Int) (*types.Transaction, error)

BuyThing is a paid mutator transaction binding the contract method 0x80482491.

Solidity: function buyThing(uint256 _tokenId) payable returns(bool)

func (*NFTTransactorSession) DestroyAndSend

func (_NFT *NFTTransactorSession) DestroyAndSend() (*types.Transaction, error)

DestroyAndSend is a paid mutator transaction binding the contract method 0x45cefcec.

Solidity: function destroyAndSend() returns()

func (*NFTTransactorSession) MintWithTokenURI

func (_NFT *NFTTransactorSession) MintWithTokenURI(to common.Address, tokenId *big.Int, tokenURI string) (*types.Transaction, error)

MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f.

Solidity: function mintWithTokenURI(address to, uint256 tokenId, string tokenURI) returns(bool)

func (*NFTTransactorSession) RenounceMinter

func (_NFT *NFTTransactorSession) RenounceMinter() (*types.Transaction, error)

RenounceMinter is a paid mutator transaction binding the contract method 0x98650275.

Solidity: function renounceMinter() returns()

func (*NFTTransactorSession) RenounceOwnership

func (_NFT *NFTTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NFTTransactorSession) SafeTransferFrom

func (_NFT *NFTTransactorSession) 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 (*NFTTransactorSession) SafeTransferFrom0

func (_NFT *NFTTransactorSession) 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 (*NFTTransactorSession) SetApprovalForAll

func (_NFT *NFTTransactorSession) SetApprovalForAll(to common.Address, approved bool) (*types.Transaction, error)

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

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

func (*NFTTransactorSession) SetTokenPrice

func (_NFT *NFTTransactorSession) SetTokenPrice(ids []*big.Int, setPrice *big.Int) (*types.Transaction, error)

SetTokenPrice is a paid mutator transaction binding the contract method 0xe564da69.

Solidity: function setTokenPrice(uint256[] ids, uint256 setPrice) returns()

func (*NFTTransactorSession) SetTokenState

func (_NFT *NFTTransactorSession) SetTokenState(ids []*big.Int, isEnabled bool) (*types.Transaction, error)

SetTokenState is a paid mutator transaction binding the contract method 0xd4477b3c.

Solidity: function setTokenState(uint256[] ids, bool isEnabled) returns()

func (*NFTTransactorSession) TransferFrom

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

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

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

func (*NFTTransactorSession) TransferOwnership

func (_NFT *NFTTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type NFTTransfer

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

NFTTransfer represents a Transfer event raised by the NFT contract.

type NFTTransferIterator

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

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

func (*NFTTransferIterator) Close

func (it *NFTTransferIterator) Close() error

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

func (*NFTTransferIterator) Error

func (it *NFTTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTTransferIterator) Next

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