Part 3: Implement Navigator
TODO
Here, we actually skip the gateway-program update part.
Client side typescript library
Read functions
First, we'll need to know what functions should be implemented. In types.ts
we define some common interface for similar action. Take Genopets as an example, they allow user STAKE $GENE or GENE-USDC in their staking pool to EARN $GENE or $SGENE, this is a kind of farming process, so they'll need to implement Farm
interface.
During implementation, there're two things need to be aware of
*Info
must cantain all essenstial data for write function (Combine multiple accounts if needed)Try your best to reduce RPC request
By following these two rules, user can easily get all the infos they need within one function and also save RPC endpoint's resource.
Last updated