zeta-chain / toolkit

A library of ZetaChain helper utilities, contracts, and Hardhat tasks for smart-contract development
MIT License
43 stars 21 forks source link

Add Solana balance querying to `getBalances` #180

Closed fadeev closed 1 month ago

fadeev commented 1 month ago
lukema95 commented 1 month ago

I would like to try it.

fadeev commented 1 month ago

If you think any changes to how ZetaChainClient is initialized need to be made, do comment! We can create a separate issue for that.

lukema95 commented 1 month ago

If you think any changes to how ZetaChainClient is initialized need to be made, do comment! We can create a separate issue for that.

Do we need to add a component to universalkit that connects to the Solana wallet?

fadeev commented 1 month ago

@lukema95 as part of a separate contribution, yes!

https://github.com/zeta-chain/universalkit/issues/22

fadeev commented 1 month ago

Seems like Solana can be added to RainbowKit:

https://docs.phantom.app/library-integrations/rainbowkit

lukema95 commented 1 month ago

Seems like Solana can be added to RainbowKit:

https://docs.phantom.app/library-integrations/rainbowkit

The Phantom wallet also supports EVM, so here RainbowKit only supports Phantom's EVM network, not Solana's. solana currently uses a lot of wallets like Backpack, and should have a tool to connect more Solana wallets.

lukema95 commented 1 month ago

As the number of supported heterogeneous chains increases, perhaps we should build a tool to manage all wallets.

fadeev commented 1 month ago

Ok, for now getBalances should just probably just take a Solana address optionally like EVM and Bitcoin.