-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Open
Feature
Copy link
Labels
enhancementNew feature or requestNew feature or requestsqlcsupply commitWork on the supply commitment feature, enabling issuers to attest to total asset supply on-chain.Work on the supply commitment feature, enabling issuers to attest to total asset supply on-chain.
Description
Currently, we can fetch asset metadata by genesis asset ID:
Lines 228 to 230 in e3690c5
// FetchAssetMetaForAsset fetches the asset meta for a given asset. | |
FetchAssetMetaForAsset(ctx context.Context, | |
assetID []byte) (AssetMeta, error) |
For the supply commitment feature, we need two separate queries for better flexibility:
-
List asset IDs in a group
- Return all asset IDs (minted tranches) for a given asset group.
- Order by mint block height.
- Output format could be a map of block height → asset ID.
-
Fetch metadata for any asset ID
- Support retrieving asset metadata for any tranche within an asset group, not just the genesis asset.
This would also allow fetching the latest supply commitment delegation key if needed later.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestsqlcsupply commitWork on the supply commitment feature, enabling issuers to attest to total asset supply on-chain.Work on the supply commitment feature, enabling issuers to attest to total asset supply on-chain.