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

Assets API for Statemint #491

Closed
joepetrowski opened this issue Mar 25, 2021 · 1 comment · Fixed by #533
Closed

Assets API for Statemint #491

joepetrowski opened this issue Mar 25, 2021 · 1 comment · Fixed by #533
Assignees
Labels
I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon

Comments

@joepetrowski
Copy link
Collaborator

joepetrowski commented Mar 25, 2021

GET assets/{assetId}/asset-info

{
  at: { ... },
  AssetInfo: https://github.com/paritytech/substrate/blob/069917b/frame/assets/src/lib.rs#L186
  AssetMetadata: https://github.com/paritytech/substrate/blob/069917b/frame/assets/src/lib.rs#L258
}

GET accounts/{accountId}/assets-balances?asset=assetId

WITH param
{
  at: { ... },
  balance: Balance,
  isFrozen: bool
 // https://github.com/paritytech/substrate/blob/069917b/frame/assets/src/lib.rs#L248
}

WITHOUT param
{
  at: { ... },
  assets: [{ assetId: int, balance: Balance, isFrozen: bool}]
}

GET accounts/{accountId}/asset-approvals?asset=assetId&delegate=accountId

{
  at: { ... },
  amount: Balance, // amount approved for transfer
  deposit: Balance // amount owner has on deposit to store the approval
}
@joepetrowski joepetrowski added I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon labels Mar 25, 2021
@TarikGul TarikGul self-assigned this Apr 22, 2021
@TarikGul
Copy link
Member

@joepetrowski Picked this up again, and have now made it priority. Expect to see some heavy progress on this in the next few days.

@TarikGul TarikGul mentioned this issue May 4, 2021
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I8 - Enhancement Additional feature request P5 - Sometime Soon Worth doing soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants