solanaj icon indicating copy to clipboard operation
solanaj copied to clipboard

Version 2.0 Discussion

Open skynetcap opened this issue 1 year ago • 5 comments

Requirements:

Architecture:

  • Replace Exception-based code with Optionals, remove try-catch from normal code flow.
  • Evaluate different Websocket libraries
  • Support for importing/signing/sending raw transactions (Base64/bytes)
  • Support for durable nonces
  • Mechanism for auto-reconnect on Websockets + re-subscribe to dropped subscriptions
  • SOCKS proxy support

APIs:

  • Coverage of the newer APIs
  • Support ALTs (Address Lookup Tables)

GetProgramAccounts:

  • Support pagination using dataSize = 0

skynetcap avatar Dec 22 '23 22:12 skynetcap

  • Support for importing/signing/sending raw transactions (Base64/bytes)

skynetcap avatar Jan 17 '24 18:01 skynetcap

  • Support for durable nonces

skynetcap avatar Jan 19 '24 21:01 skynetcap

  • Mechanism for auto-reconnect on Websockets + re-subscribe to dropped subscriptions

skynetcap avatar Feb 06 '24 20:02 skynetcap

  • Websocket automatic reconnect on close
  • SOCKS proxy support

skynetcap avatar Apr 01 '24 22:04 skynetcap

Support for VersionedTransactions - attempting to modify existing code as we speak. Hopefully a PR isn't too far down the road.

itsmelodewyk avatar Apr 10 '24 20:04 itsmelodewyk

In 1.18.0-staging branch, I've implemented:

  • SOCKS proxy support
  • WebSocket auto-reconnect and auto-resubscribe.
  • WebSocket unsubscribe APIs

2.0 will have breaking changes, if we switch away from Exception-driven code.

skynetcap avatar Sep 10 '24 01:09 skynetcap

Closing this issue in favor of separate issues/tickets for each feature.

Remaining work to be spun out:

GetProgramAccounts:

  • Support pagination using dataSize = 0

APIs:

  • Support ALTs (Address Lookup Tables)
  • Replace Exception-based code with Optionals, remove try-catch from normal code flow. (This will be V2/major version upgrade.)
  • Support for importing/signing/sending raw transactions (Base64/bytes)

skynetcap avatar Sep 11 '24 01:09 skynetcap