nft

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_nft_proto protoreflect.FileDescriptor

Functions

func NewNftEndpoints

func NewNftEndpoints() []*api.Endpoint

func RegisterNftHandler

func RegisterNftHandler(s server.Server, hdlr NftHandler, opts ...server.HandlerOption) error

Types

type Asset

type Asset struct {

	// id of the asset
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// the token id
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// name of the asset
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// related description
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// the image url
	ImageUrl string `protobuf:"bytes,5,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// number of sales
	Sales int32 `protobuf:"varint,6,opt,name=sales,proto3" json:"sales,omitempty"`
	// the permalink
	Permalink string `protobuf:"bytes,7,opt,name=permalink,proto3" json:"permalink,omitempty"`
	// asset contract
	Contract *Contract `protobuf:"bytes,8,opt,name=contract,proto3" json:"contract,omitempty"`
	// associated collection
	Collection *Collection `protobuf:"bytes,9,opt,name=collection,proto3" json:"collection,omitempty"`
	// Creator of the NFT
	Creator *User `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"`
	// Owner of the NFT
	Owner *User `protobuf:"bytes,11,opt,name=owner,proto3" json:"owner,omitempty"`
	// is it a presale
	Presale bool `protobuf:"varint,12,opt,name=presale,proto3" json:"presale,omitempty"`
	// last time sold
	LastSale *Sale `protobuf:"bytes,13,opt,name=last_sale,json=lastSale,proto3" json:"last_sale,omitempty"`
	// listing date
	ListingDate string `protobuf:"bytes,14,opt,name=listing_date,json=listingDate,proto3" json:"listing_date,omitempty"`
	// traits associated with the item
	Traits []*_struct.Struct `protobuf:"bytes,15,rep,name=traits,proto3" json:"traits,omitempty"`
	// contains filtered or unexported fields
}

func (*Asset) Descriptor deprecated

func (*Asset) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetCollection

func (x *Asset) GetCollection() *Collection

func (*Asset) GetContract

func (x *Asset) GetContract() *Contract

func (*Asset) GetCreator

func (x *Asset) GetCreator() *User

func (*Asset) GetDescription

func (x *Asset) GetDescription() string

func (*Asset) GetId

func (x *Asset) GetId() int32

func (*Asset) GetImageUrl

func (x *Asset) GetImageUrl() string

func (*Asset) GetLastSale

func (x *Asset) GetLastSale() *Sale

func (*Asset) GetListingDate

func (x *Asset) GetListingDate() string

func (*Asset) GetName

func (x *Asset) GetName() string

func (*Asset) GetOwner

func (x *Asset) GetOwner() *User
func (x *Asset) GetPermalink() string

func (*Asset) GetPresale

func (x *Asset) GetPresale() bool

func (*Asset) GetSales

func (x *Asset) GetSales() int32

func (*Asset) GetTokenId

func (x *Asset) GetTokenId() string

func (*Asset) GetTraits

func (x *Asset) GetTraits() []*_struct.Struct

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetRequest

type AssetRequest struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	TokenId         string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// contains filtered or unexported fields
}

Get a single asset by the contract

func (*AssetRequest) Descriptor deprecated

func (*AssetRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssetRequest.ProtoReflect.Descriptor instead.

func (*AssetRequest) GetContractAddress

func (x *AssetRequest) GetContractAddress() string

func (*AssetRequest) GetTokenId

func (x *AssetRequest) GetTokenId() string

func (*AssetRequest) ProtoMessage

func (*AssetRequest) ProtoMessage()

func (*AssetRequest) ProtoReflect

func (x *AssetRequest) ProtoReflect() protoreflect.Message

func (*AssetRequest) Reset

func (x *AssetRequest) Reset()

func (*AssetRequest) String

func (x *AssetRequest) String() string

type AssetResponse

type AssetResponse struct {
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetResponse) Descriptor deprecated

func (*AssetResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetResponse.ProtoReflect.Descriptor instead.

func (*AssetResponse) GetAsset

func (x *AssetResponse) GetAsset() *Asset

func (*AssetResponse) ProtoMessage

func (*AssetResponse) ProtoMessage()

func (*AssetResponse) ProtoReflect

func (x *AssetResponse) ProtoReflect() protoreflect.Message

func (*AssetResponse) Reset

func (x *AssetResponse) Reset()

func (*AssetResponse) String

func (x *AssetResponse) String() string

type AssetsRequest

type AssetsRequest struct {

	// limit returned assets
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// DEPRECATED offset for pagination, please use cursor instead
	//
	// Deprecated: Do not use.
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// order "asc" or "desc"
	Order string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"`
	// order by "sale_date", "sale_count", "sale_price", "total_price"
	OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// limit to members of a collection by slug name (case sensitive)
	Collection string `protobuf:"bytes,5,opt,name=collection,proto3" json:"collection,omitempty"`
	// A cursor pointing to the page to retrieve
	Cursor string `protobuf:"bytes,6,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// owner wallet address
	Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

Return a list of assets

func (*AssetsRequest) Descriptor deprecated

func (*AssetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssetsRequest.ProtoReflect.Descriptor instead.

func (*AssetsRequest) GetCollection

func (x *AssetsRequest) GetCollection() string

func (*AssetsRequest) GetCursor

func (x *AssetsRequest) GetCursor() string

func (*AssetsRequest) GetLimit

func (x *AssetsRequest) GetLimit() int32

func (*AssetsRequest) GetOffset deprecated

func (x *AssetsRequest) GetOffset() int32

Deprecated: Do not use.

func (*AssetsRequest) GetOrder

func (x *AssetsRequest) GetOrder() string

func (*AssetsRequest) GetOrderBy

func (x *AssetsRequest) GetOrderBy() string

func (*AssetsRequest) GetOwner

func (x *AssetsRequest) GetOwner() string

func (*AssetsRequest) ProtoMessage

func (*AssetsRequest) ProtoMessage()

func (*AssetsRequest) ProtoReflect

func (x *AssetsRequest) ProtoReflect() protoreflect.Message

func (*AssetsRequest) Reset

func (x *AssetsRequest) Reset()

func (*AssetsRequest) String

func (x *AssetsRequest) String() string

type AssetsResponse

type AssetsResponse struct {

	// list of assets
	Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// A cursor to be supplied to retrieve the next page of results
	Next string `protobuf:"bytes,2,opt,name=next,proto3" json:"next,omitempty"`
	// A cursor to be supplied to retrieve the previous page of results
	Previous string `protobuf:"bytes,3,opt,name=previous,proto3" json:"previous,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetsResponse) Descriptor deprecated

func (*AssetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssetsResponse.ProtoReflect.Descriptor instead.

func (*AssetsResponse) GetAssets

func (x *AssetsResponse) GetAssets() []*Asset

func (*AssetsResponse) GetNext

func (x *AssetsResponse) GetNext() string

func (*AssetsResponse) GetPrevious

func (x *AssetsResponse) GetPrevious() string

func (*AssetsResponse) ProtoMessage

func (*AssetsResponse) ProtoMessage()

func (*AssetsResponse) ProtoReflect

func (x *AssetsResponse) ProtoReflect() protoreflect.Message

func (*AssetsResponse) Reset

func (x *AssetsResponse) Reset()

func (*AssetsResponse) String

func (x *AssetsResponse) String() string

type Collection

type Collection struct {

	// name of the collection
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// description of the collection
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// collection slug
	Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"`
	// an image for the collection
	ImageUrl string `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// creation time
	CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// payout address for the collection's royalties
	PayoutAddress string `protobuf:"bytes,6,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"`
	// external link to the original website for the collection
	ExternalLink string `protobuf:"bytes,7,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
	// image used in the banner for the collection
	BannerImageUrl string `protobuf:"bytes,8,opt,name=banner_image_url,json=bannerImageUrl,proto3" json:"banner_image_url,omitempty"`
	// the fees that get paid out when a sale is made
	SellerFees string `protobuf:"bytes,9,opt,name=seller_fees,json=sellerFees,proto3" json:"seller_fees,omitempty"`
	// the collection's approval status on OpenSea
	SafelistRequestStatus string `` /* 127-byte string literal not displayed */
	// a list of the contracts associated with this collection
	PrimaryAssetContracts []*Contract `` /* 127-byte string literal not displayed */
	// listing of all the trait types available within this collection
	Traits *_struct.Struct `protobuf:"bytes,12,opt,name=traits,proto3" json:"traits,omitempty"`
	// the payment tokens accepted for this collection
	PaymentTokens []*Token `protobuf:"bytes,13,rep,name=payment_tokens,json=paymentTokens,proto3" json:"payment_tokens,omitempty"`
	// approved editors for this collection
	Editors []string `protobuf:"bytes,14,rep,name=editors,proto3" json:"editors,omitempty"`
	// sales statistics associated with the collection
	Stats *_struct.Struct `protobuf:"bytes,15,opt,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated

func (*Collection) Descriptor() ([]byte, []int)

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetBannerImageUrl

func (x *Collection) GetBannerImageUrl() string

func (*Collection) GetCreatedAt

func (x *Collection) GetCreatedAt() string

func (*Collection) GetDescription

func (x *Collection) GetDescription() string

func (*Collection) GetEditors

func (x *Collection) GetEditors() []string
func (x *Collection) GetExternalLink() string

func (*Collection) GetImageUrl

func (x *Collection) GetImageUrl() string

func (*Collection) GetName

func (x *Collection) GetName() string

func (*Collection) GetPaymentTokens

func (x *Collection) GetPaymentTokens() []*Token

func (*Collection) GetPayoutAddress

func (x *Collection) GetPayoutAddress() string

func (*Collection) GetPrimaryAssetContracts

func (x *Collection) GetPrimaryAssetContracts() []*Contract

func (*Collection) GetSafelistRequestStatus

func (x *Collection) GetSafelistRequestStatus() string

func (*Collection) GetSellerFees

func (x *Collection) GetSellerFees() string

func (*Collection) GetSlug

func (x *Collection) GetSlug() string

func (*Collection) GetStats

func (x *Collection) GetStats() *_struct.Struct

func (*Collection) GetTraits

func (x *Collection) GetTraits() *_struct.Struct

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect

func (x *Collection) ProtoReflect() protoreflect.Message

func (*Collection) Reset

func (x *Collection) Reset()

func (*Collection) String

func (x *Collection) String() string

type CollectionRequest

type CollectionRequest struct {
	Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
	// contains filtered or unexported fields
}

Get a collection by its slug

func (*CollectionRequest) Descriptor deprecated

func (*CollectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CollectionRequest.ProtoReflect.Descriptor instead.

func (*CollectionRequest) GetSlug

func (x *CollectionRequest) GetSlug() string

func (*CollectionRequest) ProtoMessage

func (*CollectionRequest) ProtoMessage()

func (*CollectionRequest) ProtoReflect

func (x *CollectionRequest) ProtoReflect() protoreflect.Message

func (*CollectionRequest) Reset

func (x *CollectionRequest) Reset()

func (*CollectionRequest) String

func (x *CollectionRequest) String() string

type CollectionResponse

type CollectionResponse struct {
	Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionResponse) Descriptor deprecated

func (*CollectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CollectionResponse.ProtoReflect.Descriptor instead.

func (*CollectionResponse) GetCollection

func (x *CollectionResponse) GetCollection() *Collection

func (*CollectionResponse) ProtoMessage

func (*CollectionResponse) ProtoMessage()

func (*CollectionResponse) ProtoReflect

func (x *CollectionResponse) ProtoReflect() protoreflect.Message

func (*CollectionResponse) Reset

func (x *CollectionResponse) Reset()

func (*CollectionResponse) String

func (x *CollectionResponse) String() string

type CollectionsRequest

type CollectionsRequest struct {
	Limit  int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// owner wallet address
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

Get a list of collections

func (*CollectionsRequest) Descriptor deprecated

func (*CollectionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CollectionsRequest.ProtoReflect.Descriptor instead.

func (*CollectionsRequest) GetLimit

func (x *CollectionsRequest) GetLimit() int32

func (*CollectionsRequest) GetOffset

func (x *CollectionsRequest) GetOffset() int32

func (*CollectionsRequest) GetOwner

func (x *CollectionsRequest) GetOwner() string

func (*CollectionsRequest) ProtoMessage

func (*CollectionsRequest) ProtoMessage()

func (*CollectionsRequest) ProtoReflect

func (x *CollectionsRequest) ProtoReflect() protoreflect.Message

func (*CollectionsRequest) Reset

func (x *CollectionsRequest) Reset()

func (*CollectionsRequest) String

func (x *CollectionsRequest) String() string

type CollectionsResponse

type CollectionsResponse struct {
	Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionsResponse) Descriptor deprecated

func (*CollectionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use CollectionsResponse.ProtoReflect.Descriptor instead.

func (*CollectionsResponse) GetCollections

func (x *CollectionsResponse) GetCollections() []*Collection

func (*CollectionsResponse) ProtoMessage

func (*CollectionsResponse) ProtoMessage()

func (*CollectionsResponse) ProtoReflect

func (x *CollectionsResponse) ProtoReflect() protoreflect.Message

func (*CollectionsResponse) Reset

func (x *CollectionsResponse) Reset()

func (*CollectionsResponse) String

func (x *CollectionsResponse) String() string

type Contract

type Contract struct {

	// name of contract
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ethereum address
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// type of contract e.g "semi-fungible"
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// timestamp of creation
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// owner id
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// aka "ERC1155"
	Schema string `protobuf:"bytes,6,opt,name=schema,proto3" json:"schema,omitempty"`
	// related symbol
	Symbol string `protobuf:"bytes,7,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// description of contract
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// payout address
	PayoutAddress string `protobuf:"bytes,9,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"`
	// seller fees
	SellerFees string `protobuf:"bytes,10,opt,name=seller_fees,json=sellerFees,proto3" json:"seller_fees,omitempty"`
	// contains filtered or unexported fields
}

func (*Contract) Descriptor deprecated

func (*Contract) Descriptor() ([]byte, []int)

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetAddress

func (x *Contract) GetAddress() string

func (*Contract) GetCreatedAt

func (x *Contract) GetCreatedAt() string

func (*Contract) GetDescription

func (x *Contract) GetDescription() string

func (*Contract) GetName

func (x *Contract) GetName() string

func (*Contract) GetOwner

func (x *Contract) GetOwner() string

func (*Contract) GetPayoutAddress

func (x *Contract) GetPayoutAddress() string

func (*Contract) GetSchema

func (x *Contract) GetSchema() string

func (*Contract) GetSellerFees

func (x *Contract) GetSellerFees() string

func (*Contract) GetSymbol

func (x *Contract) GetSymbol() string

func (*Contract) GetType

func (x *Contract) GetType() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

func (x *Contract) ProtoReflect() protoreflect.Message

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type CreateRequest

type CreateRequest struct {

	// name of the NFT
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// description
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// image data
	Image []byte `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// data if not image
	Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Create your own NFT (coming soon)

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetData

func (x *CreateRequest) GetData() []byte

func (*CreateRequest) GetDescription

func (x *CreateRequest) GetDescription() string

func (*CreateRequest) GetImage

func (x *CreateRequest) GetImage() []byte

func (*CreateRequest) GetName

func (x *CreateRequest) GetName() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

func (*CreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetAsset

func (x *CreateResponse) GetAsset() *Asset

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

func (x *CreateResponse) ProtoReflect() protoreflect.Message

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type NftService

type NftService interface {
	Assets(ctx context.Context, in *AssetsRequest, opts ...client.CallOption) (*AssetsResponse, error)
	Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error)
	Collections(ctx context.Context, in *CollectionsRequest, opts ...client.CallOption) (*CollectionsResponse, error)
	Asset(ctx context.Context, in *AssetRequest, opts ...client.CallOption) (*AssetResponse, error)
	Collection(ctx context.Context, in *CollectionRequest, opts ...client.CallOption) (*CollectionResponse, error)
}

func NewNftService

func NewNftService(name string, c client.Client) NftService

type Sale

type Sale struct {
	AssetTokenId   string       `protobuf:"bytes,1,opt,name=asset_token_id,json=assetTokenId,proto3" json:"asset_token_id,omitempty"`
	AssetDecimals  int32        `protobuf:"varint,2,opt,name=asset_decimals,json=assetDecimals,proto3" json:"asset_decimals,omitempty"`
	EventType      string       `protobuf:"bytes,3,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	EventTimestamp string       `protobuf:"bytes,4,opt,name=event_timestamp,json=eventTimestamp,proto3" json:"event_timestamp,omitempty"`
	TotalPrice     string       `protobuf:"bytes,5,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	Quantity       string       `protobuf:"bytes,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	CreatedAt      string       `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Transaction    *Transaction `protobuf:"bytes,8,opt,name=transaction,proto3" json:"transaction,omitempty"`
	PaymentToken   *Token       `protobuf:"bytes,9,opt,name=payment_token,json=paymentToken,proto3" json:"payment_token,omitempty"`
	// contains filtered or unexported fields
}

func (*Sale) Descriptor deprecated

func (*Sale) Descriptor() ([]byte, []int)

Deprecated: Use Sale.ProtoReflect.Descriptor instead.

func (*Sale) GetAssetDecimals

func (x *Sale) GetAssetDecimals() int32

func (*Sale) GetAssetTokenId

func (x *Sale) GetAssetTokenId() string

func (*Sale) GetCreatedAt

func (x *Sale) GetCreatedAt() string

func (*Sale) GetEventTimestamp

func (x *Sale) GetEventTimestamp() string

func (*Sale) GetEventType

func (x *Sale) GetEventType() string

func (*Sale) GetPaymentToken

func (x *Sale) GetPaymentToken() *Token

func (*Sale) GetQuantity

func (x *Sale) GetQuantity() string

func (*Sale) GetTotalPrice

func (x *Sale) GetTotalPrice() string

func (*Sale) GetTransaction

func (x *Sale) GetTransaction() *Transaction

func (*Sale) ProtoMessage

func (*Sale) ProtoMessage()

func (*Sale) ProtoReflect

func (x *Sale) ProtoReflect() protoreflect.Message

func (*Sale) Reset

func (x *Sale) Reset()

func (*Sale) String

func (x *Sale) String() string

type Token

type Token struct {
	Id       int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Symbol   string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address  string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	ImageUrl string `protobuf:"bytes,5,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Decimals int32  `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"`
	EthPrice string `protobuf:"bytes,7,opt,name=eth_price,json=ethPrice,proto3" json:"eth_price,omitempty"`
	UsdPrice string `protobuf:"bytes,8,opt,name=usd_price,json=usdPrice,proto3" json:"usd_price,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

func (*Token) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetAddress

func (x *Token) GetAddress() string

func (*Token) GetDecimals

func (x *Token) GetDecimals() int32

func (*Token) GetEthPrice

func (x *Token) GetEthPrice() string

func (*Token) GetId

func (x *Token) GetId() int32

func (*Token) GetImageUrl

func (x *Token) GetImageUrl() string

func (*Token) GetName

func (x *Token) GetName() string

func (*Token) GetSymbol

func (x *Token) GetSymbol() string

func (*Token) GetUsdPrice

func (x *Token) GetUsdPrice() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type Transaction

type Transaction struct {
	Id               int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Timestamp        string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	BlockHash        string `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	BlockNumber      string `protobuf:"bytes,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	FromAccount      *User  `protobuf:"bytes,5,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	ToAccount        *User  `protobuf:"bytes,6,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"`
	TransactionHash  string `protobuf:"bytes,7,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	TransactionIndex string `protobuf:"bytes,8,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetBlockHash

func (x *Transaction) GetBlockHash() string

func (*Transaction) GetBlockNumber

func (x *Transaction) GetBlockNumber() string

func (*Transaction) GetFromAccount

func (x *Transaction) GetFromAccount() *User

func (*Transaction) GetId

func (x *Transaction) GetId() int32

func (*Transaction) GetTimestamp

func (x *Transaction) GetTimestamp() string

func (*Transaction) GetToAccount

func (x *Transaction) GetToAccount() *User

func (*Transaction) GetTransactionHash

func (x *Transaction) GetTransactionHash() string

func (*Transaction) GetTransactionIndex

func (x *Transaction) GetTransactionIndex() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type User

type User struct {
	Username   string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	ProfileUrl string `protobuf:"bytes,2,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"`
	Address    string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAddress

func (x *User) GetAddress() string

func (*User) GetProfileUrl

func (x *User) GetProfileUrl() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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