anza-xyz / wallet-standard

Solana extensions to the Wallet Standard.
Apache License 2.0
79 stars 42 forks source link

Add cluster API #65

Open NorbertBodziony opened 2 months ago

NorbertBodziony commented 2 months ago

This PR adds ability to synchronize wallet cluster via get/set API.

Why ? New networks like Sonic and Eclipse leverage SVM, but current wallet standard API does not have a way for requesting cluster context change on the end of wallet. Synchronizing dapp cluster with wallet cluster improves both developer and user experience and makes usage of methods like signAndSendTransaction more robust.

This PR also includes sonic chains names file.

Once I get the initial ACK, I will adjust rest of packages to support the new cluster API.