-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Session] Add support for GetSession
via the CLI + deps
#123
[Session] Add support for GetSession
via the CLI + deps
#123
Conversation
GetSession
via the CLI + deps
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.
Completed self review
Co-authored-by: Bryan White <[email protected]>
Co-authored-by: Bryan White <[email protected]>
* chore: add `TxClient` interface * chore: add option support to `ReplayObservable` * feat: add `txClient` implementation * test: `txClient` * test: tx client integration * chore: s/tx/transaction/g * chore: update pkg README.md template * wip: client pkg README * docs: fix client pkg godoc comment * fix: flakey test * chore: dial back godoc comments 😅 * chore: revise (and move to godoc.go) `testblock` & `testeventsquery` pkg godoc comment * chore: update go.mod * chore: refactor & condense godoc comments * chore: fix import paths post-update * chore: review feedback improvements * docs: update client README.md * docs: add `tx query` usage association between `txContext` & `Blockchain` * docs: add TOC * chore: review feedback improvements Co-authored-by: Daniel Olshansky <[email protected]> * docs: improve godoc comments & client README.md --------- Co-authored-by: Daniel Olshansky <[email protected]>
* chore: add `TxClient` interface * chore: add option support to `ReplayObservable` * feat: add `txClient` implementation * test: `txClient` * test: tx client integration * chore: s/tx/transaction/g * chore: update pkg README.md template * wip: client pkg README * docs: fix client pkg godoc comment * refactor: consolidate keyring errors & helpers * refactor: keyring test helpers * fix: flakey test * chore: dial back godoc comments 😅 * chore: revise (and move to godoc.go) `testblock` & `testeventsquery` pkg godoc comment * chore: update go.mod * chore: refactor & condense godoc comments * chore: fix import paths post-update
* chore: add `TxClient` interface * chore: add option support to `ReplayObservable` * feat: add `txClient` implementation * test: `txClient` * test: tx client integration * chore: s/tx/transaction/g * chore: update pkg README.md template * wip: client pkg README * docs: fix client pkg godoc comment * refactor: consolidate keyring errors & helpers * refactor: keyring test helpers * fix: flakey test * chore: dial back godoc comments 😅 * chore: add `SupplierClient` interface * feat: add supplier client implementation * test: supplier test helpers * test: supplier client tests * test: supplier client integration test * chore: update go.mod * trigger CI * chore: revise (and move to godoc.go) `testblock` & `testeventsquery` pkg godoc comment * chore: update go.mod * chore: refactor & condense godoc comments * chore: fix import paths post-update * chore: add godoc comment
}, | ||
{ | ||
desc: "blockHeight > contextHeight", | ||
blockHeight: 9001, // block height over 9000 is too height given that the context height is 100 |
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.
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.
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.
Renamed the `ServiceId` proto to `Service` so `ServiceId.Id` is more semantic and less confusing. --- Co-authored-by: Bryan White <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: Dima Kniazev <[email protected]>
3f32a15
to
dd17f66
Compare
- Update the CLI code flow to be able to call `GetSession` - Add make targets to trigger `GetSession` - Replace `[]` with `<>` in all CLI functions to differentiate required vs optional params - Made a couple changes to `SessionHydrator` (and added tests) to account additional error cases https://github.com/pokt-network/poktroll/assets/1892194/56425906-d06f-4c41-b8a5-d210d8a450cd --- Co-authored-by: Bryan White <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: Dima Kniazev <[email protected]>
Summary
Human Summary
GetSession
GetSession
[]
with<>
in all CLI functions to differentiate required vs optional paramsSessionHydrator
(and added tests) to account additional error casesScreen.Recording.2023-11-01.at.4.49.33.PM.mov
AI Summary
Summary generated by Reviewpad on 08 Nov 23 19:40 UTC
This pull request modifies various files in the codebase. Here is a summary of the changes:
TestGenesis
function in thex/supplier/genesis_test.go
file has been modified to replace theServiceId
field with theService
field in theSupplierServiceConfig
struct.MsgServerStakeApplication
function in thex/application/keeper/msg_server_stake_application_test.go
file has undergone changes related to theServiceConfigs
array, replacing theServiceId
field with theService
field in multiple instances.x/supplier/genesis_test.go
file, specifically replacing theServiceId
field with theService
field in theSupplierServiceConfig
struct and updating theId
andEndpoints
fields.application.proto
file has been updated with changes to the comment of theservice_configs
field.service.go
file includes changes such as importing a new package, adding new functions, and updating existing functions related to service validation.errors.go
file in thex/supplier/types
package has new error constants related to invalid session start height and ID.query_gateway.go
file has changes to theCmdShowGateway
function, including updates to theUse
,Short
,Args
, andRunE
fields.query_gateway.go
file includes changes to theCmdShowGateway
function, modifying theUse
,Short
,Args
, andRunE
fields.server_builder.go
file has changes related to theBuildProvidedServices
function, such as renaming theserviceId
variable toservice
and creating a new slice calledserviceEndpoints
.msg_server_undelegate_from_gateway_test.go
file contains changes to multiple test cases, replacing theServiceId
field with theService
field.services.go
file includes changes such as importing a new package, adding a new function for service validation, and updating existing functions related to service validation.go.mod
file has changes related to dependencies, including additions and removals of dependencies.tx_submit_proof.go
file includes changes such as reordering import statements, renaming variables, and modifying theCmdSubmitProof
function.tx_stake_application.go
file involve modifying the usage string and providing instructions for the stake application command.service_configs.go
file has had its validation code replaced by validation code for the service instead of the serviceId.NewMsgStakeApplication
function in themessage_stake_application.go
file has been modified to change theServiceId
field name toService
in thesharedtypes.ApplicationServiceConfig
struct.Please let me know if you would like more information on any specific part of the diff.
Issue
Type of change
Select one or more:
Testing
make go_develop_and_test
Sanity Checklist