daos

package
v0.0.0-...-a53f43f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaosABI = DaosMetaData.ABI

DaosABI is the input ABI used to generate the binding from. Deprecated: Use DaosMetaData.ABI instead.

View Source
var DaosMetaData = &bind.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\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"tokenURI\",\"type\":\"string\"}],\"name\":\"mintNFT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

DaosMetaData contains all meta data concerning the Daos contract.

Functions

This section is empty.

Types

type DAO

type DAO struct {
	Client         *mongo.Client
	BlockchainColl *mongo.Collection
}

DAO : struct

func NewDAO

func NewDAO(conf *config.Config) (*DAO, error)

NewDAO with config

func (*DAO) FindNFTByQuery

func (d *DAO) FindNFTByQuery(queries bson.M, opts *options.FindOptions) (blockchains []*models.Blockchain, err error)

FindNFTByQuery : ...

func (*DAO) GetNFT

func (d *DAO) GetNFT(queries bson.M, opts *options.FindOneOptions) (art *models.Blockchain, err error)

GetMedia

func (*DAO) Mint

func (d *DAO) Mint(art *models.Blockchain) error

CreateMedia : Add a new media

func (*DAO) WithTransaction

func (d *DAO) WithTransaction(callback func(mongo.SessionContext) (interface{}, error)) error

WithTransaction : callback

type Daos

type Daos struct {
	DaosCaller     // Read-only binding to the contract
	DaosTransactor // Write-only binding to the contract
	DaosFilterer   // Log filterer for contract events
}

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

func NewDaos

func NewDaos(address common.Address, backend bind.ContractBackend) (*Daos, error)

NewDaos creates a new instance of Daos, bound to a specific deployed contract.

type DaosApproval

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

DaosApproval represents a Approval event raised by the Daos contract.

type DaosApprovalForAll

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

DaosApprovalForAll represents a ApprovalForAll event raised by the Daos contract.

type DaosApprovalForAllIterator

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

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

func (*DaosApprovalForAllIterator) Close

func (it *DaosApprovalForAllIterator) Close() error

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

func (*DaosApprovalForAllIterator) Error

func (it *DaosApprovalForAllIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaosApprovalForAllIterator) Next

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

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

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

func (*DaosApprovalIterator) Close

func (it *DaosApprovalIterator) Close() error

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

func (*DaosApprovalIterator) Error

func (it *DaosApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaosApprovalIterator) Next

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

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

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

func NewDaosCaller

func NewDaosCaller(address common.Address, caller bind.ContractCaller) (*DaosCaller, error)

NewDaosCaller creates a new read-only instance of Daos, bound to a specific deployed contract.

func (*DaosCaller) BalanceOf

func (_Daos *DaosCaller) 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 (*DaosCaller) GetApproved

func (_Daos *DaosCaller) 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 (*DaosCaller) IsApprovedForAll

func (_Daos *DaosCaller) 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 (*DaosCaller) Name

func (_Daos *DaosCaller) 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 (*DaosCaller) Owner

func (_Daos *DaosCaller) 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 (*DaosCaller) OwnerOf

func (_Daos *DaosCaller) 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 (*DaosCaller) SupportsInterface

func (_Daos *DaosCaller) 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 (*DaosCaller) Symbol

func (_Daos *DaosCaller) 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 (*DaosCaller) TokenURI

func (_Daos *DaosCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)

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

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

type DaosCallerRaw

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

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

func (*DaosCallerRaw) Call

func (_Daos *DaosCallerRaw) 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 DaosCallerSession

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

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

func (*DaosCallerSession) BalanceOf

func (_Daos *DaosCallerSession) 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 (*DaosCallerSession) GetApproved

func (_Daos *DaosCallerSession) 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 (*DaosCallerSession) IsApprovedForAll

func (_Daos *DaosCallerSession) 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 (*DaosCallerSession) Name

func (_Daos *DaosCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*DaosCallerSession) Owner

func (_Daos *DaosCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DaosCallerSession) OwnerOf

func (_Daos *DaosCallerSession) 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 (*DaosCallerSession) SupportsInterface

func (_Daos *DaosCallerSession) 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 (*DaosCallerSession) Symbol

func (_Daos *DaosCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*DaosCallerSession) TokenURI

func (_Daos *DaosCallerSession) TokenURI(tokenId *big.Int) (string, error)

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

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

type DaosFilterer

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

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

func NewDaosFilterer

func NewDaosFilterer(address common.Address, filterer bind.ContractFilterer) (*DaosFilterer, error)

NewDaosFilterer creates a new log filterer instance of Daos, bound to a specific deployed contract.

func (*DaosFilterer) FilterApproval

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

func (_Daos *DaosFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*DaosApprovalForAllIterator, 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 (*DaosFilterer) FilterOwnershipTransferred

func (_Daos *DaosFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DaosOwnershipTransferredIterator, error)

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

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

func (*DaosFilterer) FilterTransfer

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

func (_Daos *DaosFilterer) ParseApproval(log types.Log) (*DaosApproval, 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 (*DaosFilterer) ParseApprovalForAll

func (_Daos *DaosFilterer) ParseApprovalForAll(log types.Log) (*DaosApprovalForAll, error)

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

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

func (*DaosFilterer) ParseOwnershipTransferred

func (_Daos *DaosFilterer) ParseOwnershipTransferred(log types.Log) (*DaosOwnershipTransferred, error)

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

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

func (*DaosFilterer) ParseTransfer

func (_Daos *DaosFilterer) ParseTransfer(log types.Log) (*DaosTransfer, 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 (*DaosFilterer) WatchApproval

func (_Daos *DaosFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DaosApproval, 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 (*DaosFilterer) WatchApprovalForAll

func (_Daos *DaosFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *DaosApprovalForAll, 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 (*DaosFilterer) WatchOwnershipTransferred

func (_Daos *DaosFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DaosOwnershipTransferred, 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 (*DaosFilterer) WatchTransfer

func (_Daos *DaosFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *DaosTransfer, 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 DaosOwnershipTransferred

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

DaosOwnershipTransferred represents a OwnershipTransferred event raised by the Daos contract.

type DaosOwnershipTransferredIterator

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

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

func (*DaosOwnershipTransferredIterator) Close

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

func (*DaosOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaosOwnershipTransferredIterator) 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 DaosRaw

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

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

func (*DaosRaw) Call

func (_Daos *DaosRaw) 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 (*DaosRaw) Transact

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

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

func (*DaosRaw) Transfer

func (_Daos *DaosRaw) 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 DaosSession

type DaosSession struct {
	Contract     *Daos             // 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
}

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

func (*DaosSession) Approve

func (_Daos *DaosSession) 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 (*DaosSession) BalanceOf

func (_Daos *DaosSession) 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 (*DaosSession) GetApproved

func (_Daos *DaosSession) 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 (*DaosSession) IsApprovedForAll

func (_Daos *DaosSession) 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 (*DaosSession) MintNFT

func (_Daos *DaosSession) MintNFT(recipient common.Address, tokenURI string) (*types.Transaction, error)

MintNFT is a paid mutator transaction binding the contract method 0xeacabe14.

Solidity: function mintNFT(address recipient, string tokenURI) returns(uint256)

func (*DaosSession) Name

func (_Daos *DaosSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*DaosSession) Owner

func (_Daos *DaosSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DaosSession) OwnerOf

func (_Daos *DaosSession) 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 (*DaosSession) RenounceOwnership

func (_Daos *DaosSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DaosSession) SafeTransferFrom

func (_Daos *DaosSession) 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 (*DaosSession) SafeTransferFrom0

func (_Daos *DaosSession) 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 (*DaosSession) SetApprovalForAll

func (_Daos *DaosSession) 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 (*DaosSession) SupportsInterface

func (_Daos *DaosSession) 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 (*DaosSession) Symbol

func (_Daos *DaosSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*DaosSession) TokenURI

func (_Daos *DaosSession) 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 (*DaosSession) TransferFrom

func (_Daos *DaosSession) 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 (*DaosSession) TransferOwnership

func (_Daos *DaosSession) 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 DaosTransactor

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

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

func NewDaosTransactor

func NewDaosTransactor(address common.Address, transactor bind.ContractTransactor) (*DaosTransactor, error)

NewDaosTransactor creates a new write-only instance of Daos, bound to a specific deployed contract.

func (*DaosTransactor) Approve

func (_Daos *DaosTransactor) 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 (*DaosTransactor) MintNFT

func (_Daos *DaosTransactor) MintNFT(opts *bind.TransactOpts, recipient common.Address, tokenURI string) (*types.Transaction, error)

MintNFT is a paid mutator transaction binding the contract method 0xeacabe14.

Solidity: function mintNFT(address recipient, string tokenURI) returns(uint256)

func (*DaosTransactor) RenounceOwnership

func (_Daos *DaosTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DaosTransactor) SafeTransferFrom

func (_Daos *DaosTransactor) 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 (*DaosTransactor) SafeTransferFrom0

func (_Daos *DaosTransactor) 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 (*DaosTransactor) SetApprovalForAll

func (_Daos *DaosTransactor) 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 (*DaosTransactor) TransferFrom

func (_Daos *DaosTransactor) 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 (*DaosTransactor) TransferOwnership

func (_Daos *DaosTransactor) 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 DaosTransactorRaw

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

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

func (*DaosTransactorRaw) Transact

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

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

func (*DaosTransactorRaw) Transfer

func (_Daos *DaosTransactorRaw) 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 DaosTransactorSession

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

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

func (*DaosTransactorSession) Approve

func (_Daos *DaosTransactorSession) 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 (*DaosTransactorSession) MintNFT

func (_Daos *DaosTransactorSession) MintNFT(recipient common.Address, tokenURI string) (*types.Transaction, error)

MintNFT is a paid mutator transaction binding the contract method 0xeacabe14.

Solidity: function mintNFT(address recipient, string tokenURI) returns(uint256)

func (*DaosTransactorSession) RenounceOwnership

func (_Daos *DaosTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DaosTransactorSession) SafeTransferFrom

func (_Daos *DaosTransactorSession) 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 (*DaosTransactorSession) SafeTransferFrom0

func (_Daos *DaosTransactorSession) 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 (*DaosTransactorSession) SetApprovalForAll

func (_Daos *DaosTransactorSession) 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 (*DaosTransactorSession) TransferFrom

func (_Daos *DaosTransactorSession) 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 (*DaosTransactorSession) TransferOwnership

func (_Daos *DaosTransactorSession) 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 DaosTransfer

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

DaosTransfer represents a Transfer event raised by the Daos contract.

type DaosTransferIterator

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

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

func (*DaosTransferIterator) Close

func (it *DaosTransferIterator) Close() error

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

func (*DaosTransferIterator) Error

func (it *DaosTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DaosTransferIterator) Next

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