You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have Solana deposit/depositAndCall both inLocalnet and in theToolkit.
We need to move this functionality into the Toolkit, so that there is no duplication of logic.
Solana Toolkit functions should:
Be compatible with Localnet, testnet (devnet) and mainnet. For example, it should intelligently get the correct Gateway address. On Localnet it's easier to pass Gateway address as a CLI argument, for testnet/mainnet Gateway address should be read from the protocol contracts JSON.
Accept both SPL and SOL.
Callable both from CLI (for example, Hardhat task) as well as from the frontend. Here's a quick and dirty example of how existing Toolkit Solana functions can be called from the browser.
As we're probably going to be moving away from using Hardhat as a task runner, it would be great to move as much functionality as possible from tasks into client/src/solanaDeposit*.ts.
Uh oh!
There was an error while loading. Please reload this page.
Right now we have Solana
deposit
/depositAndCall
both in Localnet and in the Toolkit.We need to move this functionality into the Toolkit, so that there is no duplication of logic.
Solana Toolkit functions should:
Examples should be updated to use Toolkit Solana functions (right now they're using Solana functions from Localnet).
The text was updated successfully, but these errors were encountered: