Documentation ¶
Index ¶
- type Account
- type AssetCollection
- type AssetContract
- type AssetPaymentToken
- type BaseItemMetadataType
- type BaseItemType
- type BaseStreamMessage
- type Chain
- type CollectionMetadata
- type CollectionSlug
- type CollectionStats
- type ItemCancelledEvent
- type ItemCancelledEventPayload
- type ItemListedEvent
- type ItemListedEventPayload
- type ItemMetadataUpdateEvent
- type ItemMetadataUpdatePayload
- type ItemReceivedBidEvent
- type ItemReceivedBidEventPayload
- type ItemReceivedOfferEvent
- type ItemReceivedOfferEventPayload
- type ItemSoldEvent
- type ItemSoldEventPayload
- type ItemTransferredEvent
- type ItemTransferredEventPayload
- type MetadataERC721
- type OSCollection
- type PayloadItemAndColl
- type PaymentToken
- type PrimaryAssetContract
- type Trait
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetCollection ¶
type AssetCollection struct { Editors []string `json:"editors"` PaymentTokens []AssetPaymentToken `json:"payment_tokens"` PrimaryAssetContracts []PrimaryAssetContract `json:"primary_asset_contracts"` Traits struct{} `json:"traits"` Stats CollectionStats `json:"stats"` BannerImageURL string `json:"banner_image_url"` ChatURL any `json:"chat_url"` CreatedDate string `json:"created_date"` DefaultToFiat bool `json:"default_to_fiat"` Description string `json:"description"` DevBuyerFeeBasisPoints string `json:"dev_buyer_fee_basis_points"` DevSellerFeeBasisPoints string `json:"dev_seller_fee_basis_points"` DiscordURL string `json:"discord_url"` DisplayData struct { CardDisplayStyle string `json:"card_display_style"` } `json:"display_data"` ExternalURL string `json:"external_url"` Featured bool `json:"featured"` FeaturedImageURL any `json:"featured_image_url"` Hidden bool `json:"hidden"` SafelistRequestStatus string `json:"safelist_request_status"` ImageURL string `json:"image_url"` IsSubjectToWhitelist bool `json:"is_subject_to_whitelist"` LargeImageURL any `json:"large_image_url"` MediumUsername any `json:"medium_username"` Name string `json:"name"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints string `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints string `json:"opensea_seller_fee_basis_points"` PayoutAddress any `json:"payout_address"` RequireEmail bool `json:"require_email"` ShortDescription any `json:"short_description"` Slug string `json:"slug"` TelegramURL any `json:"telegram_url"` TwitterUsername any `json:"twitter_username"` InstagramUsername any `json:"instagram_username"` WikiURL any `json:"wiki_url"` OwnedAssetCount int `json:"owned_asset_count"` }
type AssetContract ¶
type AssetContract struct { Collection OSCollection `json:"collection"` Address string `json:"address"` AssetContractType string `json:"asset_contract_type"` CreatedDate string `json:"created_date"` Name string `json:"name"` NftVersion string `json:"nft_version"` OpenseaVersion any `json:"opensea_version"` Owner int `json:"owner"` SchemaName string `json:"schema_name"` Symbol string `json:"symbol"` TotalSupply any `json:"total_supply"` Description string `json:"description"` ExternalLink string `json:"external_link"` ImageURL string `json:"image_url"` DefaultToFiat bool `json:"default_to_fiat"` DevBuyerFeeBasisPoints int `json:"dev_buyer_fee_basis_points"` DevSellerFeeBasisPoints int `json:"dev_seller_fee_basis_points"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints int `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints int `json:"opensea_seller_fee_basis_points"` BuyerFeeBasisPoints int `json:"buyer_fee_basis_points"` SellerFeeBasisPoints int `json:"seller_fee_basis_points"` PayoutAddress string `json:"payout_address"` }
type AssetPaymentToken ¶
type BaseItemMetadataType ¶
type BaseItemType ¶
type BaseItemType struct { NftID string `mapstructure:"nft_id"` Permalink string `mapstructure:"permalink"` Metadata BaseItemMetadataType `mapstructure:"metadata"` Chain Chain `mapstructure:"chain"` }
type BaseStreamMessage ¶
type CollectionMetadata ¶ added in v0.0.16
type CollectionSlug ¶
type CollectionSlug struct {
Slug string `mapstructure:"slug"`
}
type CollectionStats ¶
type CollectionStats struct { OneDayVolume float64 `json:"one_day_volume"` OneDayChange float64 `json:"one_day_change"` OneDaySales float64 `json:"one_day_sales"` OneDayAveragePrice float64 `json:"one_day_average_price"` SevenDayVolume float64 `json:"seven_day_volume"` SevenDayChange float64 `json:"seven_day_change"` SevenDaySales float64 `json:"seven_day_sales"` SevenDayAveragePrice float64 `json:"seven_day_average_price"` ThirtyDayVolume float64 `json:"thirty_day_volume"` ThirtyDayChange float64 `json:"thirty_day_change"` ThirtyDaySales float64 `json:"thirty_day_sales"` ThirtyDayAveragePrice float64 `json:"thirty_day_average_price"` TotalVolume float64 `json:"total_volume"` TotalSales float64 `json:"total_sales"` TotalSupply float64 `json:"total_supply"` Count float64 `json:"count"` NumOwners float64 `json:"num_owners"` AveragePrice float64 `json:"average_price"` NumReports float64 `json:"num_reports"` MarketCap float64 `json:"market_cap"` FloorPrice float64 `json:"floor_price"` }
type ItemCancelledEvent ¶
type ItemCancelledEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemCancelledEventPayload `mapstructure:"payload"` }
type ItemCancelledEventPayload ¶
type ItemCancelledEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` Quantity int `mapstructure:"quantity"` ListingType string `mapstructure:"listing_type"` Transaction Transaction `mapstructure:"transaction"` PaymentToken PaymentToken `mapstructure:"payment_token"` EventTimestamp string `mapstructure:"event_timestamp"` }
type ItemListedEvent ¶
type ItemListedEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemListedEventPayload `mapstructure:"payload"` }
type ItemListedEventPayload ¶
type ItemListedEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` Quantity int `mapstructure:"quantity"` ListingType string `mapstructure:"listing_type"` ListingDate string `mapstructure:"listing_date"` ExpirationDate string `mapstructure:"expiration_date"` Maker Account `mapstructure:"maker"` Taker Account `mapstructure:"taker"` BasePrice string `mapstructure:"base_price"` PaymentToken PaymentToken `mapstructure:"payment_token"` IsPrivate bool `mapstructure:"is_private"` EventTimestamp string `mapstructure:"event_timestamp"` }
type ItemMetadataUpdateEvent ¶
type ItemMetadataUpdateEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemMetadataUpdatePayload `mapstructure:"payload"` }
type ItemMetadataUpdatePayload ¶
type ItemMetadataUpdatePayload struct { PayloadItemAndColl `mapstructure:",squash"` BaseItemMetadataType `mapstructure:",squash"` Description string `mapstructure:"description"` BackgroundColor string `mapstructure:"background_color"` Traits []Trait `mapstructure:"traits"` }
type ItemReceivedBidEvent ¶
type ItemReceivedBidEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemReceivedBidEventPayload `mapstructure:"payload"` }
type ItemReceivedBidEventPayload ¶
type ItemReceivedBidEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` Quantity int `mapstructure:"quantity"` CreatedDate string `mapstructure:"created_date"` ExpirationDate string `mapstructure:"expiration_date"` Maker Account `mapstructure:"maker"` Taker Account `mapstructure:"taker"` BasePrice string `mapstructure:"base_price"` PaymentToken PaymentToken `mapstructure:"payment_token"` EventTimestamp string `mapstructure:"event_timestamp"` }
type ItemReceivedOfferEvent ¶
type ItemReceivedOfferEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemReceivedOfferEventPayload `mapstructure:"payload"` }
type ItemReceivedOfferEventPayload ¶
type ItemReceivedOfferEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` Quantity int `mapstructure:"quantity"` CreatedDate string `mapstructure:"created_date"` ExpirationDate string `mapstructure:"expiration_date"` Maker Account `mapstructure:"maker"` Taker Account `mapstructure:"taker"` BasePrice string `mapstructure:"base_price"` PaymentToken PaymentToken `mapstructure:"payment_token"` EventTimestamp string `mapstructure:"event_timestamp"` }
type ItemSoldEvent ¶
type ItemSoldEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemSoldEventPayload `mapstructure:"payload"` }
type ItemSoldEventPayload ¶
type ItemSoldEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` ListingType string `mapstructure:"listing_type"` ClosingDate string `mapstructure:"closing_date"` Transaction Transaction `mapstructure:"transaction"` Maker Account `mapstructure:"maker"` Taker Account `mapstructure:"taker"` SalePrice string `mapstructure:"sale_price"` PaymentToken PaymentToken `mapstructure:"payment_token"` IsPrivate bool `mapstructure:"is_private"` EventTimestamp string `mapstructure:"event_timestamp"` }
type ItemTransferredEvent ¶
type ItemTransferredEvent struct { BaseStreamMessage `mapstructure:",squash"` Payload ItemTransferredEventPayload `mapstructure:"payload"` }
type ItemTransferredEventPayload ¶
type ItemTransferredEventPayload struct { PayloadItemAndColl `mapstructure:",squash"` FromAccount Account `mapstructure:"from_account"` Quantity int `mapstructure:"quantity"` ToAccount Account `mapstructure:"to_account"` Transaction Transaction `mapstructure:"transaction"` EventTimestamp string `mapstructure:"event_timestamp"` }
type MetadataERC721 ¶ added in v0.0.16
type MetadataERC721 struct {
Image string `json:"image"`
}
type OSCollection ¶
type OSCollection struct { BannerImageURL string `json:"banner_image_url"` ChatURL any `json:"chat_url"` CreatedDate string `json:"created_date"` DefaultToFiat bool `json:"default_to_fiat"` Description string `json:"description"` DevBuyerFeeBasisPoints string `json:"dev_buyer_fee_basis_points"` DevSellerFeeBasisPoints string `json:"dev_seller_fee_basis_points"` DiscordURL string `json:"discord_url"` DisplayData struct { CardDisplayStyle string `json:"card_display_style"` } `json:"display_data"` ExternalURL string `json:"external_url"` Featured bool `json:"featured"` FeaturedImageURL any `json:"featured_image_url"` Hidden bool `json:"hidden"` SafelistRequestStatus string `json:"safelist_request_status"` ImageURL string `json:"image_url"` IsSubjectToWhitelist bool `json:"is_subject_to_whitelist"` LargeImageURL any `json:"large_image_url"` MediumUsername any `json:"medium_username"` Name string `json:"name"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints string `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints string `json:"opensea_seller_fee_basis_points"` PayoutAddress string `json:"payout_address"` RequireEmail bool `json:"require_email"` ShortDescription any `json:"short_description"` Slug string `json:"slug"` TelegramURL any `json:"telegram_url"` TwitterUsername any `json:"twitter_username"` InstagramUsername any `json:"instagram_username"` WikiURL any `json:"wiki_url"` }
type PayloadItemAndColl ¶
type PayloadItemAndColl struct { Item BaseItemType `mapstructure:"item"` Collection CollectionSlug `mapstructure:"collection"` }
type PaymentToken ¶
type PrimaryAssetContract ¶
type PrimaryAssetContract struct { Address string `json:"address"` AssetContractType string `json:"asset_contract_type"` CreatedDate string `json:"created_date"` Name string `json:"name"` NftVersion string `json:"nft_version"` OpenseaVersion any `json:"opensea_version"` Owner any `json:"owner"` SchemaName string `json:"schema_name"` Symbol string `json:"symbol"` TotalSupply string `json:"total_supply"` Description string `json:"description"` ExternalLink string `json:"external_link"` ImageURL string `json:"image_url"` DefaultToFiat bool `json:"default_to_fiat"` DevBuyerFeeBasisPoints int `json:"dev_buyer_fee_basis_points"` DevSellerFeeBasisPoints int `json:"dev_seller_fee_basis_points"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints int `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints int `json:"opensea_seller_fee_basis_points"` BuyerFeeBasisPoints int `json:"buyer_fee_basis_points"` SellerFeeBasisPoints int `json:"seller_fee_basis_points"` PayoutAddress any `json:"payout_address"` }
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.