Open f8122dac91 opened 2 years ago
The only export from the main library is Socean
class that self-contains all the necessary info for communicating with Socean stake pool. The class has following public methods: getStakePoolAccount
(TBD), depositSol
, depositStake
, withdraw
.
The SDK should also provide cli executable. It should provide a way to print txs and check the status of the stake pool.
TODO: need to decide if we want to support instant and delayed withdrawal, or just instant withdrawal through swap.
The SDK should also provide cli executable. It should provide a way to print txs and check the status of the stake pool.
we've decided that cli will be the last priority. We will probably provide helpful info such as how to use the functions with spl-governance
in an examples
folder
regarding Update
before sending Deposit
and Withdraw
transactions if the stake pool has not been updated this epoch, we've decided to have the check and appending of update transactions to be part of the exported deposit()
and withdrawStake()
methods instead of being separate exported methods