Skip to content
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

Merged
merged 11 commits into from
Jun 28, 2024
Merged

[Docs] Readme rewrite #19

merged 11 commits into from
Jun 28, 2024

Conversation

red-0ne
Copy link
Collaborator

@red-0ne red-0ne commented Jun 28, 2024

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:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Sanity Checklist

  • I have performed a self-review of my own code; both comments & source code
  • I have left TODOs throughout the codebase, if applicable

adshmh and others added 5 commits June 25, 2024 18:00
* 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
@red-0ne red-0ne added the documentation Improvements or additions to documentation label Jun 28, 2024
@red-0ne red-0ne self-assigned this Jun 28, 2024
Copy link

@bryanchriswhite bryanchriswhite left a 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. 🫡

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
relayClient := NewRelayClient()
signer := NewSigner(privateKeyHex)

sdk, err := NewShannonSDK(

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)?

Copy link
Collaborator Author

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.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@red-0ne red-0ne marked this pull request as ready for review June 28, 2024 14:56
@red-0ne red-0ne changed the base branch from dev to main June 28, 2024 22:24
@red-0ne red-0ne merged commit 7d29287 into main Jun 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants