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

Upgrade to AIP-62 standard #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Upgrade to AIP-62 standard #464

wants to merge 1 commit into from

Conversation

0xmaayan
Copy link
Collaborator

@0xmaayan 0xmaayan commented Jan 15, 2025

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/

@0xmaayan 0xmaayan force-pushed the aip_62_only branch 4 times, most recently from b81b5f7 to a79eab7 Compare January 21, 2025 23:20
@0xmaayan 0xmaayan changed the title upgrade to support only aip-62 interface Upgrade to AIP-62 standard Jan 21, 2025
@0xmaayan 0xmaayan marked this pull request as ready for review January 21, 2025 23:20
}

// Remove optional duplications in the _all_wallets array
this._standard_wallets = this._standard_wallets.filter(
Copy link
Collaborator Author

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(
Copy link
Collaborator Author

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

see https://aptos-org.slack.com/archives/C07NV7G72NL/p1737654274929199?thread_ts=1737609790.072349&cid=C07NV7G72NL

}
};

const signTransaction = async (
Copy link
Collaborator Author

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

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.

1 participant