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 staking/BankSend grant capability to Abstraxion components #107

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

justinbarry
Copy link
Contributor

@justinbarry justinbarry commented Feb 24, 2024

Added a "stake" boolean configuration option to the Abstraxion, AbstraxionContext and AbstraxionSignin components. When set to true, stake-related authorization grants are generated in addition to contract grants in the AbstraxionGrant component. This allows users to stake assets using the Abstraxion interface.

Added a "bank" object to be passed to the dashboard which describes which bank send allowances the dapp will need.

See this tx to see the grants bestowed.

Copy link

changeset-bot bot commented Feb 24, 2024

🦋 Changeset detected

Latest commit: 98848b8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
abstraxion-dashboard Minor
@burnt-labs/abstraxion Minor
demo-app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xion-js-abstraxion-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 8:46pm
xion-js-demo-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 8:46pm

@justinbarry justinbarry changed the title Add staking capability to Abstraxion components Add staking/BankSend grant capability to Abstraxion components Feb 26, 2024
* Add support for bank grants

This update enhances the Abstraxion dashboard by adding support for bank grants. It now handles "bank" as a query parameter, thus allowing for the specification of bandwidth spending limits. The commit also entails modifying the AbstraxionProvider and AbstraxionSignin components to accommodate this feature. Additional helper functions for generating stake, bank and contract grants were introduced.

* Add staking capability to Abstraxion components

Added a "stake" boolean configuration option to the Abstraxion, AbstraxionContext and AbstraxionSignin components. When set to true, stake-related authorization grants are generated in addition to contract grants in the AbstraxionGrant component. This allows users to stake assets using the Abstraxion interface.
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.

Add new grants support to dashboard
3 participants