Versions in this module Expand all Collapse all v1 v1.7.0 Aug 31, 2023 v1.6.1 Jul 20, 2023 v1.6.0 Jul 20, 2023 Changes in this version + var File_proto_nft_proto protoreflect.FileDescriptor + func NewNftEndpoints() []*api.Endpoint + func RegisterNftHandler(s server.Server, hdlr NftHandler, opts ...server.HandlerOption) error + type Asset struct + Collection *Collection + Contract *Contract + Creator *User + Description string + Id int32 + ImageUrl string + LastSale *Sale + ListingDate string + Name string + Owner *User + Permalink string + Presale bool + Sales int32 + TokenId string + Traits []*_struct.Struct + func (*Asset) Descriptor() ([]byte, []int) + func (*Asset) ProtoMessage() + func (x *Asset) GetCollection() *Collection + func (x *Asset) GetContract() *Contract + func (x *Asset) GetCreator() *User + func (x *Asset) GetDescription() string + func (x *Asset) GetId() int32 + func (x *Asset) GetImageUrl() string + func (x *Asset) GetLastSale() *Sale + func (x *Asset) GetListingDate() string + func (x *Asset) GetName() string + func (x *Asset) GetOwner() *User + func (x *Asset) GetPermalink() string + func (x *Asset) GetPresale() bool + func (x *Asset) GetSales() int32 + func (x *Asset) GetTokenId() string + func (x *Asset) GetTraits() []*_struct.Struct + func (x *Asset) ProtoReflect() protoreflect.Message + func (x *Asset) Reset() + func (x *Asset) String() string + type AssetRequest struct + ContractAddress string + TokenId string + func (*AssetRequest) Descriptor() ([]byte, []int) + func (*AssetRequest) ProtoMessage() + func (x *AssetRequest) GetContractAddress() string + func (x *AssetRequest) GetTokenId() string + func (x *AssetRequest) ProtoReflect() protoreflect.Message + func (x *AssetRequest) Reset() + func (x *AssetRequest) String() string + type AssetResponse struct + Asset *Asset + func (*AssetResponse) Descriptor() ([]byte, []int) + func (*AssetResponse) ProtoMessage() + func (x *AssetResponse) GetAsset() *Asset + func (x *AssetResponse) ProtoReflect() protoreflect.Message + func (x *AssetResponse) Reset() + func (x *AssetResponse) String() string + type AssetsRequest struct + Collection string + Cursor string + Limit int32 + Offset int32 + Order string + OrderBy string + Owner string + func (*AssetsRequest) Descriptor() ([]byte, []int) + func (*AssetsRequest) ProtoMessage() + func (x *AssetsRequest) GetCollection() string + func (x *AssetsRequest) GetCursor() string + func (x *AssetsRequest) GetLimit() int32 + func (x *AssetsRequest) GetOffset() int32 + func (x *AssetsRequest) GetOrder() string + func (x *AssetsRequest) GetOrderBy() string + func (x *AssetsRequest) GetOwner() string + func (x *AssetsRequest) ProtoReflect() protoreflect.Message + func (x *AssetsRequest) Reset() + func (x *AssetsRequest) String() string + type AssetsResponse struct + Assets []*Asset + Next string + Previous string + func (*AssetsResponse) Descriptor() ([]byte, []int) + func (*AssetsResponse) ProtoMessage() + func (x *AssetsResponse) GetAssets() []*Asset + func (x *AssetsResponse) GetNext() string + func (x *AssetsResponse) GetPrevious() string + func (x *AssetsResponse) ProtoReflect() protoreflect.Message + func (x *AssetsResponse) Reset() + func (x *AssetsResponse) String() string + type Collection struct + BannerImageUrl string + CreatedAt string + Description string + Editors []string + ExternalLink string + ImageUrl string + Name string + PaymentTokens []*Token + PayoutAddress string + PrimaryAssetContracts []*Contract + SafelistRequestStatus string + SellerFees string + Slug string + Stats *_struct.Struct + Traits *_struct.Struct + func (*Collection) Descriptor() ([]byte, []int) + func (*Collection) ProtoMessage() + func (x *Collection) GetBannerImageUrl() string + func (x *Collection) GetCreatedAt() string + func (x *Collection) GetDescription() string + func (x *Collection) GetEditors() []string + func (x *Collection) GetExternalLink() string + func (x *Collection) GetImageUrl() string + func (x *Collection) GetName() string + func (x *Collection) GetPaymentTokens() []*Token + func (x *Collection) GetPayoutAddress() string + func (x *Collection) GetPrimaryAssetContracts() []*Contract + func (x *Collection) GetSafelistRequestStatus() string + func (x *Collection) GetSellerFees() string + func (x *Collection) GetSlug() string + func (x *Collection) GetStats() *_struct.Struct + func (x *Collection) GetTraits() *_struct.Struct + func (x *Collection) ProtoReflect() protoreflect.Message + func (x *Collection) Reset() + func (x *Collection) String() string + type CollectionRequest struct + Slug string + func (*CollectionRequest) Descriptor() ([]byte, []int) + func (*CollectionRequest) ProtoMessage() + func (x *CollectionRequest) GetSlug() string + func (x *CollectionRequest) ProtoReflect() protoreflect.Message + func (x *CollectionRequest) Reset() + func (x *CollectionRequest) String() string + type CollectionResponse struct + Collection *Collection + func (*CollectionResponse) Descriptor() ([]byte, []int) + func (*CollectionResponse) ProtoMessage() + func (x *CollectionResponse) GetCollection() *Collection + func (x *CollectionResponse) ProtoReflect() protoreflect.Message + func (x *CollectionResponse) Reset() + func (x *CollectionResponse) String() string + type CollectionsRequest struct + Limit int32 + Offset int32 + Owner string + func (*CollectionsRequest) Descriptor() ([]byte, []int) + func (*CollectionsRequest) ProtoMessage() + func (x *CollectionsRequest) GetLimit() int32 + func (x *CollectionsRequest) GetOffset() int32 + func (x *CollectionsRequest) GetOwner() string + func (x *CollectionsRequest) ProtoReflect() protoreflect.Message + func (x *CollectionsRequest) Reset() + func (x *CollectionsRequest) String() string + type CollectionsResponse struct + Collections []*Collection + func (*CollectionsResponse) Descriptor() ([]byte, []int) + func (*CollectionsResponse) ProtoMessage() + func (x *CollectionsResponse) GetCollections() []*Collection + func (x *CollectionsResponse) ProtoReflect() protoreflect.Message + func (x *CollectionsResponse) Reset() + func (x *CollectionsResponse) String() string + type Contract struct + Address string + CreatedAt string + Description string + Name string + Owner string + PayoutAddress string + Schema string + SellerFees string + Symbol string + Type string + func (*Contract) Descriptor() ([]byte, []int) + func (*Contract) ProtoMessage() + func (x *Contract) GetAddress() string + func (x *Contract) GetCreatedAt() string + func (x *Contract) GetDescription() string + func (x *Contract) GetName() string + func (x *Contract) GetOwner() string + func (x *Contract) GetPayoutAddress() string + func (x *Contract) GetSchema() string + func (x *Contract) GetSellerFees() string + func (x *Contract) GetSymbol() string + func (x *Contract) GetType() string + func (x *Contract) ProtoReflect() protoreflect.Message + func (x *Contract) Reset() + func (x *Contract) String() string + type CreateRequest struct + Data []byte + Description string + Image []byte + Name string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (x *CreateRequest) GetData() []byte + func (x *CreateRequest) GetDescription() string + func (x *CreateRequest) GetImage() []byte + func (x *CreateRequest) GetName() string + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateResponse struct + Asset *Asset + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (x *CreateResponse) GetAsset() *Asset + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type NftHandler interface + Asset func(context.Context, *AssetRequest, *AssetResponse) error + Assets func(context.Context, *AssetsRequest, *AssetsResponse) error + Collection func(context.Context, *CollectionRequest, *CollectionResponse) error + Collections func(context.Context, *CollectionsRequest, *CollectionsResponse) error + Create func(context.Context, *CreateRequest, *CreateResponse) error + type NftService interface + Asset func(ctx context.Context, in *AssetRequest, opts ...client.CallOption) (*AssetResponse, error) + Assets func(ctx context.Context, in *AssetsRequest, opts ...client.CallOption) (*AssetsResponse, error) + Collection func(ctx context.Context, in *CollectionRequest, opts ...client.CallOption) (*CollectionResponse, error) + Collections func(ctx context.Context, in *CollectionsRequest, opts ...client.CallOption) (*CollectionsResponse, error) + Create func(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) + func NewNftService(name string, c client.Client) NftService + type Sale struct + AssetDecimals int32 + AssetTokenId string + CreatedAt string + EventTimestamp string + EventType string + PaymentToken *Token + Quantity string + TotalPrice string + Transaction *Transaction + func (*Sale) Descriptor() ([]byte, []int) + func (*Sale) ProtoMessage() + func (x *Sale) GetAssetDecimals() int32 + func (x *Sale) GetAssetTokenId() string + func (x *Sale) GetCreatedAt() string + func (x *Sale) GetEventTimestamp() string + func (x *Sale) GetEventType() string + func (x *Sale) GetPaymentToken() *Token + func (x *Sale) GetQuantity() string + func (x *Sale) GetTotalPrice() string + func (x *Sale) GetTransaction() *Transaction + func (x *Sale) ProtoReflect() protoreflect.Message + func (x *Sale) Reset() + func (x *Sale) String() string + type Token struct + Address string + Decimals int32 + EthPrice string + Id int32 + ImageUrl string + Name string + Symbol string + UsdPrice string + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetAddress() string + func (x *Token) GetDecimals() int32 + func (x *Token) GetEthPrice() string + func (x *Token) GetId() int32 + func (x *Token) GetImageUrl() string + func (x *Token) GetName() string + func (x *Token) GetSymbol() string + func (x *Token) GetUsdPrice() string + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type Transaction struct + BlockHash string + BlockNumber string + FromAccount *User + Id int32 + Timestamp string + ToAccount *User + TransactionHash string + TransactionIndex string + func (*Transaction) Descriptor() ([]byte, []int) + func (*Transaction) ProtoMessage() + func (x *Transaction) GetBlockHash() string + func (x *Transaction) GetBlockNumber() string + func (x *Transaction) GetFromAccount() *User + func (x *Transaction) GetId() int32 + func (x *Transaction) GetTimestamp() string + func (x *Transaction) GetToAccount() *User + func (x *Transaction) GetTransactionHash() string + func (x *Transaction) GetTransactionIndex() string + func (x *Transaction) ProtoReflect() protoreflect.Message + func (x *Transaction) Reset() + func (x *Transaction) String() string + type User struct + Address string + ProfileUrl string + Username string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAddress() string + func (x *User) GetProfileUrl() string + func (x *User) GetUsername() string + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string