Versions in this module Expand all Collapse all v0 v0.18.1 Jan 31, 2024 v0.18.0 Jan 29, 2024 v0.17.5 Dec 15, 2023 Changes in this version type NftPosition + Collection Address + Currency *Token + TokenId Z v0.17.4 Nov 1, 2023 v0.17.3 Oct 6, 2023 v0.17.2 Jul 4, 2023 Changes in this version + var ParseAddress = tezos.ParseAddress + type Address = tezos.Address + type NftAPI interface + GetMarket func(context.Context, Address) (*NftMarket, error) + ListEvents func(context.Context, Query) ([]*NftEvent, error) + ListMarketEvents func(context.Context, Address, Query) ([]*NftEvent, error) + ListMarketPositions func(context.Context, Address, Query) ([]*NftPosition, error) + ListMarketTrades func(context.Context, Address, Query) ([]*NftTrade, error) + ListMarkets func(context.Context, Query) ([]*NftMarket, error) + ListPositions func(context.Context, Query) ([]*NftPosition, error) + ListTrades func(context.Context, Query) ([]*NftTrade, error) + func NewNftAPI(c *client.Client) NftAPI + type NftEvent struct + Amount Z + Block int64 + Category string + Collection string + Contract string + Currency *Token + Entity string + EventType string + Fee Z + Id uint64 + Name string + NumUnits int64 + Royalty Z + RoyaltyBps int64 + SaleId int64 + SaleType string + Sender string + Signer string + Time time.Time + TokenId Z + TxFee int64 + TxHash string + type NftMarket struct + Contract string + Creator string + Entity string + FirstBlock int64 + FirstTime time.Time + Id uint64 + Kind string + Name string + Tags []string + func (m NftMarket) Address() Address + type NftPosition struct + AskPrice Z + BidPrice Z + Buyer string + Category string + CloseBlock int64 + CloseTime *time.Time + Contract string + Entity string + Id uint64 + IsClosed bool + MaxUnits int64 + Name string + OpenBlock int64 + OpenTime time.Time + RoyaltyBps int64 + SaleId int64 + SaleStatus string + SaleType string + Seller string + SoldUnits int64 + type NftTrade struct + Block int64 + Buyer Address + Category string + Collection Address + Contract string + Currency *Token + Entity string + Fee Z + Id uint64 + Name string + NumUnits int64 + Price Z + Royalty Z + SaleId int64 + SaleType string + Seller Address + Time time.Time + TokenId Z + TxFee int64 + TxHash OpHash + type OpHash = tezos.OpHash + type Query = client.Query + type Token = token.Token + type Z = tezos.Z