Documentation
¶
Index ¶
- Constants
- type ApproveFunc
- type BalanceOfResults
- type BalanceOfView
- type BurnFunc
- type Erc721Events
- func (h *Erc721Events) CallHandler(topic string, params []string)
- func (h *Erc721Events) OnErc721Approval(handler func(e *EventApproval))
- func (h *Erc721Events) OnErc721ApprovalForAll(handler func(e *EventApprovalForAll))
- func (h *Erc721Events) OnErc721Init(handler func(e *EventInit))
- func (h *Erc721Events) OnErc721Mint(handler func(e *EventMint))
- func (h *Erc721Events) OnErc721Transfer(handler func(e *EventTransfer))
- type Erc721Service
- func (s *Erc721Service) Approve() ApproveFunc
- func (s *Erc721Service) BalanceOf() BalanceOfView
- func (s *Erc721Service) Burn() BurnFunc
- func (s *Erc721Service) GetApproved() GetApprovedView
- func (s *Erc721Service) Init() InitFunc
- func (s *Erc721Service) IsApprovedForAll() IsApprovedForAllView
- func (s *Erc721Service) Mint() MintFunc
- func (s *Erc721Service) Name() NameView
- func (s *Erc721Service) NewEventHandler() *Erc721Events
- func (s *Erc721Service) OwnerOf() OwnerOfView
- func (s *Erc721Service) SafeTransferFrom() SafeTransferFromFunc
- func (s *Erc721Service) SetApprovalForAll() SetApprovalForAllFunc
- func (s *Erc721Service) Symbol() SymbolView
- func (s *Erc721Service) TokenURI() TokenURIView
- func (s *Erc721Service) TransferFrom() TransferFromFunc
- type EventApproval
- type EventApprovalForAll
- type EventInit
- type EventMint
- type EventTransfer
- type GetApprovedResults
- type GetApprovedView
- type InitFunc
- type IsApprovedForAllResults
- type IsApprovedForAllView
- type MintFunc
- type NameResults
- type NameView
- type OwnerOfResults
- type OwnerOfView
- type SafeTransferFromFunc
- type SetApprovalForAllFunc
- type SymbolResults
- type SymbolView
- type TokenURIResults
- type TokenURIView
- type TransferFromFunc
Constants ¶
View Source
const ( ArgApproval = "approval" ArgApproved = "approved" ArgData = "data" ArgFrom = "from" ArgName = "n" ArgOperator = "operator" ArgOwner = "owner" ArgSymbol = "s" ArgTo = "to" ArgTokenID = "tokenID" ArgTokenURI = "tokenURI" ResAmount = "amount" ResApproval = "approval" ResApproved = "approved" ResName = "name" ResOwner = "owner" ResSymbol = "symbol" ResTokenURI = "tokenURI" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApproveFunc ¶
type ApproveFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*ApproveFunc) Approved ¶
func (f *ApproveFunc) Approved(v wasmclient.AgentID)
func (*ApproveFunc) Post ¶
func (f *ApproveFunc) Post() wasmclient.Request
func (*ApproveFunc) TokenID ¶
func (f *ApproveFunc) TokenID(v wasmclient.Hash)
type BalanceOfResults ¶
type BalanceOfResults struct {
// contains filtered or unexported fields
}
func (*BalanceOfResults) Amount ¶
func (r *BalanceOfResults) Amount() uint64
func (*BalanceOfResults) AmountExists ¶
func (r *BalanceOfResults) AmountExists() bool
type BalanceOfView ¶
type BalanceOfView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*BalanceOfView) Call ¶
func (f *BalanceOfView) Call() BalanceOfResults
func (*BalanceOfView) Owner ¶
func (f *BalanceOfView) Owner(v wasmclient.AgentID)
type BurnFunc ¶
type BurnFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*BurnFunc) Post ¶
func (f *BurnFunc) Post() wasmclient.Request
func (*BurnFunc) TokenID ¶
func (f *BurnFunc) TokenID(v wasmclient.Hash)
type Erc721Events ¶
type Erc721Events struct {
// contains filtered or unexported fields
}
func (*Erc721Events) CallHandler ¶
func (h *Erc721Events) CallHandler(topic string, params []string)
func (*Erc721Events) OnErc721Approval ¶
func (h *Erc721Events) OnErc721Approval(handler func(e *EventApproval))
func (*Erc721Events) OnErc721ApprovalForAll ¶
func (h *Erc721Events) OnErc721ApprovalForAll(handler func(e *EventApprovalForAll))
func (*Erc721Events) OnErc721Init ¶
func (h *Erc721Events) OnErc721Init(handler func(e *EventInit))
func (*Erc721Events) OnErc721Mint ¶
func (h *Erc721Events) OnErc721Mint(handler func(e *EventMint))
func (*Erc721Events) OnErc721Transfer ¶
func (h *Erc721Events) OnErc721Transfer(handler func(e *EventTransfer))
type Erc721Service ¶
type Erc721Service struct {
wasmclient.Service
}
func NewErc721Service ¶
func NewErc721Service(cl *wasmclient.ServiceClient, chainID string) (*Erc721Service, error)
func (*Erc721Service) Approve ¶
func (s *Erc721Service) Approve() ApproveFunc
func (*Erc721Service) BalanceOf ¶
func (s *Erc721Service) BalanceOf() BalanceOfView
func (*Erc721Service) Burn ¶
func (s *Erc721Service) Burn() BurnFunc
func (*Erc721Service) GetApproved ¶
func (s *Erc721Service) GetApproved() GetApprovedView
func (*Erc721Service) Init ¶
func (s *Erc721Service) Init() InitFunc
func (*Erc721Service) IsApprovedForAll ¶
func (s *Erc721Service) IsApprovedForAll() IsApprovedForAllView
func (*Erc721Service) Mint ¶
func (s *Erc721Service) Mint() MintFunc
func (*Erc721Service) Name ¶
func (s *Erc721Service) Name() NameView
func (*Erc721Service) NewEventHandler ¶
func (s *Erc721Service) NewEventHandler() *Erc721Events
func (*Erc721Service) OwnerOf ¶
func (s *Erc721Service) OwnerOf() OwnerOfView
func (*Erc721Service) SafeTransferFrom ¶
func (s *Erc721Service) SafeTransferFrom() SafeTransferFromFunc
func (*Erc721Service) SetApprovalForAll ¶
func (s *Erc721Service) SetApprovalForAll() SetApprovalForAllFunc
func (*Erc721Service) Symbol ¶
func (s *Erc721Service) Symbol() SymbolView
func (*Erc721Service) TokenURI ¶
func (s *Erc721Service) TokenURI() TokenURIView
func (*Erc721Service) TransferFrom ¶
func (s *Erc721Service) TransferFrom() TransferFromFunc
type EventApproval ¶
type EventApproval struct { wasmclient.Event Approved wasmclient.AgentID Owner wasmclient.AgentID TokenID wasmclient.Hash }
type EventApprovalForAll ¶
type EventApprovalForAll struct { wasmclient.Event Approval bool Operator wasmclient.AgentID Owner wasmclient.AgentID }
type EventMint ¶
type EventMint struct { wasmclient.Event Balance uint64 Owner wasmclient.AgentID TokenID wasmclient.Hash }
type EventTransfer ¶
type EventTransfer struct { wasmclient.Event From wasmclient.AgentID To wasmclient.AgentID TokenID wasmclient.Hash }
type GetApprovedResults ¶
type GetApprovedResults struct {
// contains filtered or unexported fields
}
func (*GetApprovedResults) Approved ¶
func (r *GetApprovedResults) Approved() wasmclient.AgentID
func (*GetApprovedResults) ApprovedExists ¶
func (r *GetApprovedResults) ApprovedExists() bool
type GetApprovedView ¶
type GetApprovedView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*GetApprovedView) Call ¶
func (f *GetApprovedView) Call() GetApprovedResults
func (*GetApprovedView) TokenID ¶
func (f *GetApprovedView) TokenID(v wasmclient.Hash)
type InitFunc ¶
type InitFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*InitFunc) Post ¶
func (f *InitFunc) Post() wasmclient.Request
type IsApprovedForAllResults ¶
type IsApprovedForAllResults struct {
// contains filtered or unexported fields
}
func (*IsApprovedForAllResults) Approval ¶
func (r *IsApprovedForAllResults) Approval() bool
func (*IsApprovedForAllResults) ApprovalExists ¶
func (r *IsApprovedForAllResults) ApprovalExists() bool
type IsApprovedForAllView ¶
type IsApprovedForAllView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*IsApprovedForAllView) Call ¶
func (f *IsApprovedForAllView) Call() IsApprovedForAllResults
func (*IsApprovedForAllView) Operator ¶
func (f *IsApprovedForAllView) Operator(v wasmclient.AgentID)
func (*IsApprovedForAllView) Owner ¶
func (f *IsApprovedForAllView) Owner(v wasmclient.AgentID)
type MintFunc ¶
type MintFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*MintFunc) Post ¶
func (f *MintFunc) Post() wasmclient.Request
func (*MintFunc) TokenID ¶
func (f *MintFunc) TokenID(v wasmclient.Hash)
type NameResults ¶
type NameResults struct {
// contains filtered or unexported fields
}
func (*NameResults) Name ¶
func (r *NameResults) Name() string
type NameView ¶
type NameView struct {
wasmclient.ClientView
}
func (*NameView) Call ¶
func (f *NameView) Call() NameResults
type OwnerOfResults ¶
type OwnerOfResults struct {
// contains filtered or unexported fields
}
func (*OwnerOfResults) Owner ¶
func (r *OwnerOfResults) Owner() wasmclient.AgentID
func (*OwnerOfResults) OwnerExists ¶
func (r *OwnerOfResults) OwnerExists() bool
type OwnerOfView ¶
type OwnerOfView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*OwnerOfView) Call ¶
func (f *OwnerOfView) Call() OwnerOfResults
func (*OwnerOfView) TokenID ¶
func (f *OwnerOfView) TokenID(v wasmclient.Hash)
type SafeTransferFromFunc ¶
type SafeTransferFromFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*SafeTransferFromFunc) Data ¶
func (f *SafeTransferFromFunc) Data(v []byte)
func (*SafeTransferFromFunc) From ¶
func (f *SafeTransferFromFunc) From(v wasmclient.AgentID)
func (*SafeTransferFromFunc) Post ¶
func (f *SafeTransferFromFunc) Post() wasmclient.Request
func (*SafeTransferFromFunc) To ¶
func (f *SafeTransferFromFunc) To(v wasmclient.AgentID)
func (*SafeTransferFromFunc) TokenID ¶
func (f *SafeTransferFromFunc) TokenID(v wasmclient.Hash)
type SetApprovalForAllFunc ¶
type SetApprovalForAllFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*SetApprovalForAllFunc) Approval ¶
func (f *SetApprovalForAllFunc) Approval(v bool)
func (*SetApprovalForAllFunc) Operator ¶
func (f *SetApprovalForAllFunc) Operator(v wasmclient.AgentID)
func (*SetApprovalForAllFunc) Post ¶
func (f *SetApprovalForAllFunc) Post() wasmclient.Request
type SymbolResults ¶
type SymbolResults struct {
// contains filtered or unexported fields
}
func (*SymbolResults) Symbol ¶
func (r *SymbolResults) Symbol() string
type SymbolView ¶
type SymbolView struct {
wasmclient.ClientView
}
func (*SymbolView) Call ¶
func (f *SymbolView) Call() SymbolResults
type TokenURIResults ¶
type TokenURIResults struct {
// contains filtered or unexported fields
}
func (*TokenURIResults) TokenURI ¶
func (r *TokenURIResults) TokenURI() string
func (*TokenURIResults) TokenURIExists ¶
func (r *TokenURIResults) TokenURIExists() bool
type TokenURIView ¶
type TokenURIView struct { wasmclient.ClientView // contains filtered or unexported fields }
func (*TokenURIView) Call ¶
func (f *TokenURIView) Call() TokenURIResults
func (*TokenURIView) TokenID ¶
func (f *TokenURIView) TokenID(v wasmclient.Hash)
type TransferFromFunc ¶
type TransferFromFunc struct { wasmclient.ClientFunc // contains filtered or unexported fields }
func (*TransferFromFunc) From ¶
func (f *TransferFromFunc) From(v wasmclient.AgentID)
func (*TransferFromFunc) Post ¶
func (f *TransferFromFunc) Post() wasmclient.Request
func (*TransferFromFunc) To ¶
func (f *TransferFromFunc) To(v wasmclient.AgentID)
func (*TransferFromFunc) TokenID ¶
func (f *TransferFromFunc) TokenID(v wasmclient.Hash)
Click to show internal directories.
Click to hide internal directories.