Skip to content

Commit

Permalink
Merge pull request #44 from sidan-lab/main
Browse files Browse the repository at this point in the history
fix: fixing asset policy return type
  • Loading branch information
Vardominator authored Feb 29, 2024
2 parents 26cca2c + 845d139 commit 2148ef5
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions models/asset_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,26 @@ type Standards struct {
}

type AssetInformation struct {
AssetName string `json:"asset_name"`
AssetNameAscii string `json:"asset_name_ascii"`
AssetStandards Standards `json:"asset_standards"`
BurnTxCount int64 `json:"burn_tx_count"`
FingerPrint string `json:"fingerprint"`
FirstMintTime int64 `json:"first_mint_time"`
FirstMintTx string `json:"first_mint_tx"`
LatestMintTxMetadata any `json:"latest_mint_tx_metadata"`
MintTxCount int64 `json:"mint_tx_count"`
TokenRegistryMetadata any `json:"token_registry_metadata"`
TotalSuppply int64 `json:"total_supply"`
AssetName string `json:"asset_name"`
AssetNameAscii string `json:"asset_name_ascii"`
AssetStandards Standards `json:"asset_standards"`
BurnTxCount int64 `json:"burn_tx_count"`
FingerPrint string `json:"fingerprint"`
FirstMintTime int64 `json:"first_mint_time"`
FirstMintTx FirstMintTx `json:"first_mint_tx"`
LatestMintTxMetadata any `json:"latest_mint_tx_metadata"`
MintTxCount int64 `json:"mint_tx_count"`
TokenRegistryMetadata any `json:"token_registry_metadata"`
TotalSupply string `json:"total_supply"`
}

type FirstMintTx struct {
Amount string `json:"amount"`
Slot int64 `json:"slot"`
Timestamp string `json:"timestamp"`
TxHash string `json:"tx_hash"`
}

type PolicyInformation struct {
Data []AssetInformation `json:"data"`
LastUpdated utils.LastUpdated `json:"last_updated"`
Expand Down

0 comments on commit 2148ef5

Please sign in to comment.