erc721client

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0, BSD-2-Clause, Apache-2.0, + 1 more Imports: 1 Imported by: 0

Documentation

Index

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 EventInit

type EventInit struct {
	wasmclient.Event
	Name   string
	Symbol string
}

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 (*GetApprovedView) TokenID

func (f *GetApprovedView) TokenID(v wasmclient.Hash)

type InitFunc

type InitFunc struct {
	wasmclient.ClientFunc
	// contains filtered or unexported fields
}

func (*InitFunc) Name

func (f *InitFunc) Name(v string)

func (*InitFunc) Post

func (f *InitFunc) Post() wasmclient.Request

func (*InitFunc) Symbol

func (f *InitFunc) Symbol(v string)

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 (*IsApprovedForAllView) Operator

func (f *IsApprovedForAllView) Operator(v wasmclient.AgentID)

func (*IsApprovedForAllView) Owner

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)

func (*MintFunc) TokenURI

func (f *MintFunc) TokenURI(v string)

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 (*SafeTransferFromFunc) Post

func (*SafeTransferFromFunc) To

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

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 (*TransferFromFunc) To

func (*TransferFromFunc) TokenID

func (f *TransferFromFunc) TokenID(v wasmclient.Hash)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL