@@ -87,22 +87,27 @@ type InscriptionOccupy struct {
8787 Sequence uint64 `json:"sequence"`
8888}
8989
90+ type Treasury struct {
91+ Ratio string `json:"ratio"`
92+ Recipient string `json:"recipient"`
93+ }
94+
9095// Collection represents the API response structure for collection data
9196type Collection struct {
92- AssetKey string `json:"asset_key"`
93- CollectionHash string `json:"collection_hash"`
94- KernelAssetID string `json:"kernel_asset_id"`
95- Name string `json:"name"`
96- Symbol string `json:"symbol"`
97- Description string `json:"description"`
98- IconURL string `json:"icon_url"`
99- Supply string `json:"supply"`
100- Unit string `json:"unit"`
101- MinimumPrice string `json:"minimum_price"`
102- Treasury map [ string ] interface {} `json:"treasury"`
103- Type string `json:"type"`
104- CreatedAt time.Time `json:"created_at"`
105- UpdatedAt time.Time `json:"updated_at"`
97+ AssetKey string `json:"asset_key"`
98+ CollectionHash string `json:"collection_hash"`
99+ KernelAssetID string `json:"kernel_asset_id"`
100+ Name string `json:"name"`
101+ Symbol string `json:"symbol"`
102+ Description string `json:"description"`
103+ IconURL string `json:"icon_url"`
104+ Supply string `json:"supply"`
105+ Unit string `json:"unit"`
106+ MinimumPrice string `json:"minimum_price"`
107+ Treasury * Treasury `json:"treasury,omitempty "`
108+ Type string `json:"type"`
109+ CreatedAt time.Time `json:"created_at"`
110+ UpdatedAt time.Time `json:"updated_at"`
106111}
107112
108113// Inscription represents the API response structure for inscription data
0 commit comments