Skip to content

Commit

Permalink
Add optional transfer_fee to Collectible (#52)
Browse files Browse the repository at this point in the history
* add optional transfer_fee for eip1155
* add CollectibleTransferFee struct
  • Loading branch information
hewigovens authored Mar 8, 2021
1 parent c340cb9 commit 7428ba1
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions types/collectibles.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,26 @@ type (

CollectionPage []Collection

CollectibleTransferFee struct {
Asset string `json:"asset"`
Amount string `json:"amount"`
}

Collectible struct {
ID string `json:"id"`
CollectionID string `json:"collection_id"`
TokenID string `json:"token_id"`
ContractAddress string `json:"contract_address"`
Category string `json:"category"`
ImageUrl string `json:"image_url"`
ExternalLink string `json:"external_link"`
ProviderLink string `json:"provider_link"`
Type string `json:"type"`
Description string `json:"description"`
Coin uint `json:"coin"`
Name string `json:"name"`
Version string `json:"nft_version"`
ID string `json:"id"`
CollectionID string `json:"collection_id"`
TokenID string `json:"token_id"`
ContractAddress string `json:"contract_address"`
Category string `json:"category"`
ImageUrl string `json:"image_url"`
ExternalLink string `json:"external_link"`
ProviderLink string `json:"provider_link"`
Type string `json:"type"`
Description string `json:"description"`
Coin uint `json:"coin"`
Name string `json:"name"`
Version string `json:"nft_version"`
TransferFee CollectibleTransferFee `json:"transfer_fee,omitempty"`
}

CollectiblePage []Collectible
Expand Down

0 comments on commit 7428ba1

Please sign in to comment.