Skip to content
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

Consider assets in check-account utility #3373

Open
arboleya opened this issue Nov 4, 2024 · 1 comment · May be fixed by #3417
Open

Consider assets in check-account utility #3373

arboleya opened this issue Nov 4, 2024 · 1 comment · May be fixed by #3417
Assignees
Labels
feat Issue is a feature

Comments

@arboleya
Copy link
Member

arboleya commented Nov 4, 2024

This is a follow-up after:

The idea is to expand the check to include assets:

query isUserAccount(...) {
  ...

  asset(id: $assetId) {
    id
  }
}
@arboleya arboleya added the feat Issue is a feature label Nov 4, 2024
@arboleya arboleya changed the title Improve check-account utility to consider Asset ID Consider assets in check-account utility Nov 4, 2024
@xgreenx
Copy link

xgreenx commented Nov 10, 2024

Related fuel-core issue: FuelLabs/fuel-core#2425

@maschad maschad self-assigned this Nov 11, 2024
AurelienFT added a commit to FuelLabs/fuel-core that referenced this issue Jan 13, 2025
**Note:**
Please merge #2463 first

---

## Linked Issues/PRs
- Closes #2425

- Related to FuelLabs/fuels-ts#3373

- It's based on top of #2463
in order to have access to several mechanisms (like `IndexationError`)
implemented previously for other indexes.

## Description
<!-- List of detailed changes -->

This introduces a new GraphQL endpoint that returns info about an asset.
Similarly to other indexes, the asset metadata index is only available
when the client was started with no database and was able to sync from
scratch. If the index is not available, this endpoint will return an
error:
```
{
  "data": null,
  "errors": [
    {
      "message": "Asset metadata index is not available",
      "locations": [...],
    }
  ]
}
```

The off-chain worker indexes `Mint` and `Burn` events to store this
metadata about an `AssetId`.

## Checklist
- [x] New behavior is reflected in tests


### Before requesting review
- [x] I have reviewed the code myself

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [TS SDK](https://github.com/FuelLabs/fuels-ts/)

---------

Co-authored-by: Rafał Chabowski <[email protected]>
Co-authored-by: Green Baneling <[email protected]>
Co-authored-by: AurelienFT <[email protected]>
Co-authored-by: AurelienFT <[email protected]>
@Torres-ssf Torres-ssf self-assigned this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants