position

package
v1.4.506 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PositionABI = PositionMetaData.ABI

PositionABI is the input ABI used to generate the binding from. Deprecated: Use PositionMetaData.ABI instead.

View Source
var PositionMetaData = &bind.MetaData{
	ABI: "[{\"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\":false,\"internalType\":\"contractIPositionMetadata\",\"name\":\"metadata\",\"type\":\"address\"}],\"name\":\"SetMetadata\",\"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\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"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\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndexExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PositionMetaData contains all meta data concerning the Position contract.

Functions

This section is empty.

Types

type Position

type Position struct {
	PositionCaller     // Read-only binding to the contract
	PositionTransactor // Write-only binding to the contract
	PositionFilterer   // Log filterer for contract events
}

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

func NewPosition

func NewPosition(address common.Address, backend bind.ContractBackend) (*Position, error)

NewPosition creates a new instance of Position, bound to a specific deployed contract.

type PositionApproval

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

PositionApproval represents a Approval event raised by the Position contract.

type PositionApprovalForAll

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

PositionApprovalForAll represents a ApprovalForAll event raised by the Position contract.

type PositionApprovalForAllIterator

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

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

func (*PositionApprovalForAllIterator) Close

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

func (*PositionApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PositionApprovalForAllIterator) 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 PositionApprovalIterator

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

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

func (*PositionApprovalIterator) Close

func (it *PositionApprovalIterator) Close() error

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

func (*PositionApprovalIterator) Error

func (it *PositionApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PositionApprovalIterator) Next

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

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

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

func NewPositionCaller

func NewPositionCaller(address common.Address, caller bind.ContractCaller) (*PositionCaller, error)

NewPositionCaller creates a new read-only instance of Position, bound to a specific deployed contract.

func (*PositionCaller) BalanceOf

func (_Position *PositionCaller) 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 balance)

func (*PositionCaller) GetApproved

func (_Position *PositionCaller) 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 operator)

func (*PositionCaller) IsApprovedForAll

func (_Position *PositionCaller) 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 (*PositionCaller) OwnerOf

func (_Position *PositionCaller) 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 owner)

func (*PositionCaller) SupportsInterface

func (_Position *PositionCaller) 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 (*PositionCaller) TokenByIndex

func (_Position *PositionCaller) 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 (*PositionCaller) TokenOfOwnerByIndex

func (_Position *PositionCaller) 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 (*PositionCaller) TokenOfOwnerByIndexExists

func (_Position *PositionCaller) TokenOfOwnerByIndexExists(opts *bind.CallOpts, owner common.Address, index *big.Int) (bool, error)

TokenOfOwnerByIndexExists is a free data retrieval call binding the contract method 0x48fd65fe.

Solidity: function tokenOfOwnerByIndexExists(address owner, uint256 index) view returns(bool)

func (*PositionCaller) TotalSupply

func (_Position *PositionCaller) 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 PositionCallerRaw

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

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

func (*PositionCallerRaw) Call

func (_Position *PositionCallerRaw) 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 PositionCallerSession

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

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

func (*PositionCallerSession) BalanceOf

func (_Position *PositionCallerSession) 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 balance)

func (*PositionCallerSession) GetApproved

func (_Position *PositionCallerSession) 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 operator)

func (*PositionCallerSession) IsApprovedForAll

func (_Position *PositionCallerSession) 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 (*PositionCallerSession) OwnerOf

func (_Position *PositionCallerSession) 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 owner)

func (*PositionCallerSession) SupportsInterface

func (_Position *PositionCallerSession) 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 (*PositionCallerSession) TokenByIndex

func (_Position *PositionCallerSession) 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 (*PositionCallerSession) TokenOfOwnerByIndex

func (_Position *PositionCallerSession) 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 (*PositionCallerSession) TokenOfOwnerByIndexExists

func (_Position *PositionCallerSession) TokenOfOwnerByIndexExists(owner common.Address, index *big.Int) (bool, error)

TokenOfOwnerByIndexExists is a free data retrieval call binding the contract method 0x48fd65fe.

Solidity: function tokenOfOwnerByIndexExists(address owner, uint256 index) view returns(bool)

func (*PositionCallerSession) TotalSupply

func (_Position *PositionCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type PositionFilterer

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

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

func NewPositionFilterer

func NewPositionFilterer(address common.Address, filterer bind.ContractFilterer) (*PositionFilterer, error)

NewPositionFilterer creates a new log filterer instance of Position, bound to a specific deployed contract.

func (*PositionFilterer) FilterApproval

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

func (_Position *PositionFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*PositionApprovalForAllIterator, 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 (*PositionFilterer) FilterSetMetadata

func (_Position *PositionFilterer) FilterSetMetadata(opts *bind.FilterOpts) (*PositionSetMetadataIterator, error)

FilterSetMetadata is a free log retrieval operation binding the contract event 0x1e78374720f7ac1595d75f11f10ccc953103fcfd8adc75a397585edd2cf8e7cf.

Solidity: event SetMetadata(address metadata)

func (*PositionFilterer) FilterTransfer

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

func (_Position *PositionFilterer) ParseApproval(log types.Log) (*PositionApproval, 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 (*PositionFilterer) ParseApprovalForAll

func (_Position *PositionFilterer) ParseApprovalForAll(log types.Log) (*PositionApprovalForAll, error)

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

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

func (*PositionFilterer) ParseSetMetadata

func (_Position *PositionFilterer) ParseSetMetadata(log types.Log) (*PositionSetMetadata, error)

ParseSetMetadata is a log parse operation binding the contract event 0x1e78374720f7ac1595d75f11f10ccc953103fcfd8adc75a397585edd2cf8e7cf.

Solidity: event SetMetadata(address metadata)

func (*PositionFilterer) ParseTransfer

func (_Position *PositionFilterer) ParseTransfer(log types.Log) (*PositionTransfer, 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 (*PositionFilterer) WatchApproval

func (_Position *PositionFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PositionApproval, 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 (*PositionFilterer) WatchApprovalForAll

func (_Position *PositionFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *PositionApprovalForAll, 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 (*PositionFilterer) WatchSetMetadata

func (_Position *PositionFilterer) WatchSetMetadata(opts *bind.WatchOpts, sink chan<- *PositionSetMetadata) (event.Subscription, error)

WatchSetMetadata is a free log subscription operation binding the contract event 0x1e78374720f7ac1595d75f11f10ccc953103fcfd8adc75a397585edd2cf8e7cf.

Solidity: event SetMetadata(address metadata)

func (*PositionFilterer) WatchTransfer

func (_Position *PositionFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PositionTransfer, 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 PositionRaw

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

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

func (*PositionRaw) Call

func (_Position *PositionRaw) 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 (*PositionRaw) Transact

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

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

func (*PositionRaw) Transfer

func (_Position *PositionRaw) 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 PositionSession

type PositionSession struct {
	Contract     *Position         // 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
}

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

func (*PositionSession) Approve

func (_Position *PositionSession) 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 (*PositionSession) BalanceOf

func (_Position *PositionSession) 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 balance)

func (*PositionSession) GetApproved

func (_Position *PositionSession) 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 operator)

func (*PositionSession) IsApprovedForAll

func (_Position *PositionSession) 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 (*PositionSession) Mint

func (_Position *PositionSession) Mint(to common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 tokenId)

func (*PositionSession) OwnerOf

func (_Position *PositionSession) 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 owner)

func (*PositionSession) SafeTransferFrom

func (_Position *PositionSession) 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 (*PositionSession) SafeTransferFrom0

func (_Position *PositionSession) 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 (*PositionSession) SetApprovalForAll

func (_Position *PositionSession) 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 (*PositionSession) SupportsInterface

func (_Position *PositionSession) 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 (*PositionSession) TokenByIndex

func (_Position *PositionSession) 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 (*PositionSession) TokenOfOwnerByIndex

func (_Position *PositionSession) 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 (*PositionSession) TokenOfOwnerByIndexExists

func (_Position *PositionSession) TokenOfOwnerByIndexExists(owner common.Address, index *big.Int) (bool, error)

TokenOfOwnerByIndexExists is a free data retrieval call binding the contract method 0x48fd65fe.

Solidity: function tokenOfOwnerByIndexExists(address owner, uint256 index) view returns(bool)

func (*PositionSession) TotalSupply

func (_Position *PositionSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*PositionSession) TransferFrom

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

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

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

type PositionSetMetadata

type PositionSetMetadata struct {
	Metadata common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

PositionSetMetadata represents a SetMetadata event raised by the Position contract.

type PositionSetMetadataIterator

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

PositionSetMetadataIterator is returned from FilterSetMetadata and is used to iterate over the raw logs and unpacked data for SetMetadata events raised by the Position contract.

func (*PositionSetMetadataIterator) Close

func (it *PositionSetMetadataIterator) Close() error

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

func (*PositionSetMetadataIterator) Error

func (it *PositionSetMetadataIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PositionSetMetadataIterator) Next

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

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

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

func NewPositionTransactor

func NewPositionTransactor(address common.Address, transactor bind.ContractTransactor) (*PositionTransactor, error)

NewPositionTransactor creates a new write-only instance of Position, bound to a specific deployed contract.

func (*PositionTransactor) Approve

func (_Position *PositionTransactor) 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 (*PositionTransactor) Mint

func (_Position *PositionTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 tokenId)

func (*PositionTransactor) SafeTransferFrom

func (_Position *PositionTransactor) 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 (*PositionTransactor) SafeTransferFrom0

func (_Position *PositionTransactor) 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 (*PositionTransactor) SetApprovalForAll

func (_Position *PositionTransactor) 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 (*PositionTransactor) TransferFrom

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

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

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

type PositionTransactorRaw

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

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

func (*PositionTransactorRaw) Transact

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

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

func (*PositionTransactorRaw) Transfer

func (_Position *PositionTransactorRaw) 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 PositionTransactorSession

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

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

func (*PositionTransactorSession) Approve

func (_Position *PositionTransactorSession) 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 (*PositionTransactorSession) Mint

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 tokenId)

func (*PositionTransactorSession) SafeTransferFrom

func (_Position *PositionTransactorSession) 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 (*PositionTransactorSession) SafeTransferFrom0

func (_Position *PositionTransactorSession) 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 (*PositionTransactorSession) SetApprovalForAll

func (_Position *PositionTransactorSession) 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 (*PositionTransactorSession) TransferFrom

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

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

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

type PositionTransfer

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

PositionTransfer represents a Transfer event raised by the Position contract.

type PositionTransferIterator

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

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

func (*PositionTransferIterator) Close

func (it *PositionTransferIterator) Close() error

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

func (*PositionTransferIterator) Error

func (it *PositionTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PositionTransferIterator) Next

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