-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new index for tracking Asset metadata #2445
base: master
Are you sure you want to change the base?
Conversation
.. | ||
} => { | ||
let asset_id = AssetId::from(**contract_id); | ||
let current_count = db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to increase/decrease based on the minted/burned amount=)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 😄 ab09b8d
} | ||
|
||
#[tokio::test] | ||
#[ignore] // TODO: Need to be able to mint assets for this test to work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure how to enable permissions to be able to mint assets for the purposes of this test
Linked Issues/PRs
Closes Add indexation
AssetId -> (ContractId, SubId)
#2425Related to Consider
assets
in check-account utility fuels-ts#3373Description
This introduces a new GraphQL endpoint that returns info about an asset.
The off-chain worker indexes
Mint
andBurn
events to store this metadata about anAssetId
Checklist
Before requesting review
After merging, notify other teams
[Add or remove entries as needed]