-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Readme rewrite #19
Conversation
* refactor: remove redundant application client * refactor: move the BlockClient to top level * remove the redundant clients/block.go * fix spacing in the comment * Refactor: move session client to top level * refactor: use poktroll exported types in GetSessionSupplierEndpoints * Use PoktNodeSessionFetcher as the interface consumed by SessionClinet * feat: introduce a wrapper for Sessions to support endpoint selection * fix: refactor FilteredSession to make it stateless * fix linter errors * fix linter warnings
* refactor: remove redundant application client * refactor: move the BlockClient to top level * remove the redundant clients/block.go * fix spacing in the comment * Refactor: move session client to top level * refactor: use poktroll exported types in GetSessionSupplierEndpoints * Use PoktNodeSessionFetcher as the interface consumed by SessionClinet * feat: introduce a wrapper for Sessions to support endpoint selection * Draft: overall SDK structure * Fix the send relay example * fix typo * address review comments * fix linter warnings * address review comment: make SupplierAddress an input for Validating response * address review comment: use query height to get app ring * address review: TODO for stateless ring constructor
* refactor: remove redundant application client * refactor: move the BlockClient to top level * remove the redundant clients/block.go * fix spacing in the comment * Refactor: move session client to top level * refactor: use poktroll exported types in GetSessionSupplierEndpoints * Use PoktNodeSessionFetcher as the interface consumed by SessionClinet * feat: introduce a wrapper for Sessions to support endpoint selection * Draft: overall SDK structure * Fix the send relay example * fix typo * address review comments * fix linter warnings * address review comment: make SupplierAddress an input for Validating response * address review comment: use query height to get app ring * address review: TODO for stateless ring constructor * refactor: Use poktroll ring construction functions * fix: ring naming and linting * fix: Remove unused argument * fix: Application address logging * fix: Relay test example and go.mod poktroll dep * chore: Update dependencies --------- Co-authored-by: Arash Deshmeh <[email protected]>
* fix: Restore CopyToHTTPHeader * chore: Add TODO_REFACTOR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preemptively approving. Left a few comments/suggestions. I trust your judgement. 🫡
relayClient := NewRelayClient() | ||
signer := NewSigner(privateKeyHex) | ||
|
||
sdk, err := NewShannonSDK( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, was depinject considered for use here (i.e. receiving a depinject.Config
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly to reduce third party dependencies and cognitive load.
Summary
Rewrite the
README.md
and remove unused code.Issue
Documentation got out of date after code refactoring.
Type of change
Select one or more:
Sanity Checklist