forest icon indicating copy to clipboard operation
forest copied to clipboard

RPC method v1 tracking issue

Open lemmih opened this issue 2 years ago • 4 comments

Issue summary

Version 1 methods:

Other information and links

lemmih avatar Oct 30 '23 07:10 lemmih

Hi @lemmih, would like to contribute, I saw some are implemented, any hint on which ones left we could try first?

qiweiii avatar Nov 30 '23 02:11 qiweiii

Hi @lemmih, would like to contribute, I saw some are implemented, any hint on which ones left we could try first?

Hi @qiweiii. You could start with WalletValidateAddress. It is a fairly simple RPC method, and you'll learn how to work with the Forest code base. Steps:

  1. Install Forest and Lotus (with calibnet support, make calibnet).
  2. Download a Calibnet snapshot: forest-tool snapshot fetch --chain calibnet
  3. Run a Forest node: forest --no-gc --encrypt-keystore false --import-snapshot {snapshot.car.zst}
  4. Run a Lotus node: lotus --import-snapshot {snapshot.car.zst}
  5. Run the API compatibility checker: forest-tool api compare
  6. Write a test for WalletValidateAddress in src/tool/subcommands/api_cmd.rs.
  7. Implement the RPC method in Forest. Use WalletVerify as an example.

lemmih avatar Nov 30 '23 10:11 lemmih

@lemmih Any other recommended ones I could implement?

qiweiii avatar Dec 06 '23 05:12 qiweiii

@lemmih Any other recommended ones I could implement?

It would be great if you could tackle StateListMessages.

lemmih avatar Dec 06 '23 08:12 lemmih