-
Notifications
You must be signed in to change notification settings - Fork 109
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
Upgrade to AIP-62 standard #464
base: main
Are you sure you want to change the base?
Conversation
b81b5f7
to
a79eab7
Compare
} | ||
|
||
// Remove optional duplications in the _all_wallets array | ||
this._standard_wallets = this._standard_wallets.filter( |
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.
for some reason, only Petra keeps showing twice on the wallet selector in some cases, so it is needed mostly for it
* | ||
* @returns AccountAuthenticator | ||
*/ | ||
async signTransaction( |
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.
maybe we need to split it into 2 functions, something like signRawTransaction
and signTransactionJson
} | ||
}; | ||
|
||
const signTransaction = async ( |
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.
we should move to json input arguments format
This PR migrates the wallet adapter to support only the AIP-62 format and compatible wallets.
The AIP-62 standard is a chain-agnostic set of interfaces and conventions designed to enhance how applications interact with injected wallets. See more https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-62.md
By migrating to AIP-62, we can deprecate unmaintained or unused Aptos wallets, ensuring support is provided only for actively developed and functional wallets.
Additionally, dApps will be able to fetch and utilize wallet type information—a feature that has been highly requested by both the community and internal developers, see https://aptos-org.slack.com/archives/C06TWPH09Q9/p1721771598556349)
Live demo https://aptos-labs.github.io/aptos-wallet-adapter/nextjs-example-aip-62/