-
Notifications
You must be signed in to change notification settings - Fork 33
[Utility] Local Proof of Stake CLI - RPC server [part 2/2] - Issue #112 #176
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
Merged
deblasis
merged 80 commits into
pokt-network:main
from
deblasis:issue/utility_local_proof_of_stake_cli_RPC
Nov 11, 2022
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
6f105dd
feat(RPC): scaffolding
deblasis 50f2241
feat(RPC): scaffolding
deblasis 23d3bbd
feat(RPC): scaffolding
deblasis 5330530
fix(RPC): updated config handling
deblasis d72bf2d
fix(config.proto): updated timeout type
deblasis be4875d
feat(RPC): basic RPC server with naive sync TX broadcast
deblasis 43bd107
fix(RPC): fixed HTTP method for Health and Version routes
deblasis 4d3331d
style(RPC): format
deblasis 762c85c
refactor(Utility): RPC server RoutesMap for CLI/client use
deblasis af55e4a
refactor(Utility): RPC server exporting RouteKey and RoutesMap
deblasis f07965e
feat(Utility): RPC OpenApi spec and code generation
deblasis 20f0185
refactor(Utility): RPC server refactoring using code generation
deblasis dc51992
feat(Utility): Updated RPC spec
deblasis 0d7c657
feat(Utility): Regenerated RPC boilerplate and updates
deblasis 07a6349
docs(Utility): RPC and node docs barebones + RPC spec notes
deblasis 4aa4447
refactor(Shared): RPC config defaults -changing soon,I'm centralizin
deblasis 3ed73dd
fix(Utility): RPC: updated to use test_artifacts defaults
deblasis 6548150
docs(Utility): RPC and node basic docs
deblasis ecb0f07
chore(Utility): fixed versioning schema
deblasis 6123cbb
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis c725570
fix(Utility): RPC configs post-merge
deblasis 9e4501e
feat(Consensus): configOptions
deblasis 015915d
feat(P2P): configOptions
deblasis 5178e60
fix(Utility): RPC fix post merge
deblasis 761ceea
fix(Utility): RPC disabled by default because of TECHDEBT
deblasis 9d5f130
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis 5433bbf
fix(RPC): test_artifacts in runtime
deblasis a9bd32d
fix(go.mod): tidy
deblasis 8fd61cd
fix(RPC): added imports used in codegen files
deblasis 267099c
feat(RPC): config proto
deblasis 4da3f54
feat(RPC): RPCModule and noopRpcModule
deblasis a5668c6
refactor(Shared): shared.Create -> shared.CreateNode
deblasis 843bc0c
docs(RPC): updated code organization post refactoring
deblasis 4ea5f2c
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis ab28db1
fix(RPC): gitignoring generated files
deblasis b4e074d
refactor(Consensus): mocks with Return(nil) and not Do(...)
deblasis e21da21
docs(RPC): updated changelog versions
deblasis 020232a
fix(Makefile): generate_rpc_openapi
deblasis 3fa07a2
fix(Makefile): fix for git clone + make develop_test
deblasis 26bedd7
Update rpc/v1/openapi.yaml
deblasis 2ea4c29
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis a386526
Update rpc/doc/CHANGELOG.md
deblasis 6060489
Update rpc/noop_module.go
deblasis b817942
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis 976af85
chore(Shared): added TODOes for ValidateXXX() in modules
deblasis 0fafac5
docs(RPC): broadcast_tx_sync summary updated
deblasis d620226
Update rpc/doc/README.md
deblasis 3f8d614
Update rpc/doc/README.md
deblasis 5e30739
Update rpc/doc/README.md
deblasis 9b63346
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis 1931fbb
fix(Makefile): gitignoring generated files breaks tests fix
deblasis b495a0c
feat(Consensus): CurrentRound() and CurrentStep()
deblasis 2e07000
feat(RPC): /v1/consensus/round_state
deblasis cb3e615
feat(RPC): /v1/consensus/round_state handler
deblasis 7c3a741
docs(Docs): Adding some more color config + raw_hex_bytes
deblasis d1b802f
chore(Runtime): comment spacing
deblasis 3550f4d
Update runtime/docs/README.md
deblasis 7dc0093
chore(Consensus): SetBus mock Do(func(modules.Bus) {}) -> Return()
deblasis ef62a95
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis 16754c9
docs(Pocket): changelog
deblasis 8e3cf02
Update app/pocket/doc/README.md
deblasis e023452
Update app/pocket/doc/README.md
deblasis 350f28a
docs(RPC): changelog
deblasis a6f17a7
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis 0cb1d2d
docs(RPC): docs TOC
deblasis 022becd
docs(RPC): Transports -> Endpoints
deblasis 5f2ba8b
feat(Tooling): swagger-ui
deblasis 15e326d
docs(RPC): swagger ui link to editor and ref to make cmd
deblasis e85f046
feat(rpcServer): rpcServer is now IntegratableModule
deblasis b26eb91
chore(Shared): tracking TODO (implement validations) #334
deblasis 1f2d6c6
Merge remote-tracking branch 'origin/main' into issue/utility_local_p…
deblasis ae931be
fix(RPC): merge fix
deblasis 39bc308
chore(go.mod): tidy
deblasis c268a99
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis 52bf2c5
docs(RPC): nit
deblasis e9a742f
fix(RPC): int64 on RoundState fields
deblasis 9958b01
refactor(Shared): unexporting XXModuleName
deblasis 9ba7989
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis 0b2e2f3
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis 5ce3563
feat(node): single source of truth for version + overridable
deblasis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package app | ||
|
|
||
| var ( | ||
| AppVersion = "v0.0.1-pre-alpha.1" // this can be injected at build time with something like: go build -ldflags "-X github.com/pokt-network/pocket/app.AppVersion=v1.0.1" ./app/pocket | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this module will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ## [0.0.0.0] - 2022-11-02 | ||
|
|
||
| ### Added | ||
|
|
||
| - Added the simplest form of feature flagging for the RPC server functionality | ||
| - Calling the RPC server entrypoint in a goroutine if enabled | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Node binary | ||
|
|
||
| The node binary is essentially the program that executes the node logic along with its supporting functions like for example the RPC server. | ||
|
|
||
| The spirit of the documentation is to continuously update and inform the reader of the general scope of the node binary as breaking, rapid development occurs. | ||
|
|
||
| ## Flags | ||
|
|
||
| Currently, in order to run the node, it's necessary to provide at least two flags: | ||
|
|
||
| - `config`: Relative or absolute path to the config file | ||
| - `genesis`: Relative or absolute path to the genesis file. | ||
|
|
||
| ### Example | ||
|
|
||
| ```bash | ||
| pocket -config ./config.json -genesis ./genesis.json | ||
| ``` | ||
|
|
||
| ## Configuration | ||
|
|
||
| The configuration file provides a structured way for configuring various aspects of the node and how it should behave functionally. | ||
|
|
||
| Things like "should the RPC server be enabled?", "what port should it be listening to?" are all defined in the config file. | ||
|
|
||
| For a detailed overview of all the possible settings, please review `RuntimeMgr` at [README.md](../../../runtime/docs/README.md). | ||
|
|
||
| ## Genesis | ||
|
|
||
| The genesis file contains the initial state (aka genesis) of the blockchain associated with each module. Feel free to dive into the specific modules and their genesis-specific types for more information. | ||
|
|
||
| For a detailed overview of all the possible settings, please look in the `RuntimeMgr` [README.md](../../../runtime/docs/README.md). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.