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

✨ Add Fungibles Runtime API - PLMC-606 #415

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

lrazovic
Copy link
Member

@lrazovic lrazovic commented Oct 11, 2024

What?

Add the query_account_balances Runtime API to query the balance of PLMC, USDT, USDC, DOT, and CT for an account on Polimec.

Example

api.call.fungibles.query_account_balances(5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY)

{
  Ok: {
    V4: [
      {
        id: {
          parents: 0
          interior: Here
        }
        fun: {
          Fungible: 46,450,329,897,870
        }
      }
      {
        id: {
          parents: 0
          interior: {
            X2: [
              {
                PalletInstance: 13
              }
              {
                GeneralIndex: 2
              }
            ]
          }
        }
        fun: {
          Fungible: 49,983,450,000,000,000,000,000
        }
      }
      {
        id: {
          parents: 0
          interior: {
            X2: [
              {
                PalletInstance: 14
              }
              {
                GeneralIndex: 10
              }
            ]
          }
        }
        fun: {
          Fungible: 18,993,540,000
        }
      }
      {
        id: {
          parents: 0
          interior: {
            X2: [
              {
                PalletInstance: 14
              }
              {
                GeneralIndex: 1,984
              }
            ]
          }
        }
        fun: {
          Fungible: 865,001
        }
      }
    ]
  }
}

Anything Else?

Removed the code for migrations that have already been run.

@lrazovic lrazovic marked this pull request as ready for review October 11, 2024 07:49
Copy link

graphite-app bot commented Oct 11, 2024

Graphite Automations

"Auto-assign PRs to author" took an action on this PR • (10/11/24)

1 assignee was added to this PR based on Juan Ignacio Rios's automation.

@lrazovic lrazovic changed the title feat: Add Fungibles Runtime API - PLMC-606 ✨ Add Fungibles Runtime API - PLMC-606 Oct 11, 2024
Copy link
Contributor

@JuaniRios JuaniRios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor nit

@lrazovic lrazovic force-pushed the 10-11-feat_add_fungibles_runtime_api_-_plmc-606 branch from 1faa20c to 8b39a88 Compare October 11, 2024 12:52
@lrazovic lrazovic merged commit 403ceea into main Oct 11, 2024
1 check passed
Copy link
Member Author

Merge activity

  • Oct 11, 9:04 AM EDT: A user merged this pull request with Graphite.

@lrazovic lrazovic deleted the 10-11-feat_add_fungibles_runtime_api_-_plmc-606 branch October 11, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants