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

[Utility] Local Proof of Stake CLI - Issue #112 #169

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
d72bf2d
fix(config.proto): updated timeout type
deblasis Aug 25, 2022
be4875d
feat(RPC): basic RPC server with naive sync TX broadcast
deblasis Aug 25, 2022
43bd107
fix(RPC): fixed HTTP method for Health and Version routes
deblasis Aug 25, 2022
9699847
Merge remote-tracking branch 'origin/issue/utility_local_proof_of_sta…
deblasis Aug 25, 2022
478f73d
Merge remote-tracking branch 'origin/issue/utility_local_proof_of_sta…
deblasis Aug 25, 2022
96b0127
chore(go.mod): tidy
deblasis Aug 25, 2022
4d3331d
style(RPC): format
deblasis Aug 25, 2022
6ae00ea
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Aug 25, 2022
2bda3f3
chore(go.mod): tidy + vendor
deblasis Aug 29, 2022
bc6ad76
feat(Utility): CLI RPC client function
deblasis Aug 29, 2022
e60ea54
feat(Utility): RPC defaults const
deblasis Aug 29, 2022
ec76e05
feat(Utility): GetSignBytes
deblasis Aug 29, 2022
6ae396e
feat(Utility): CLI utils
deblasis Aug 29, 2022
b87b721
feat(Utility): stake cmd scaffolding
deblasis Aug 29, 2022
762c85c
refactor(Utility): RPC server RoutesMap for CLI/client use
deblasis Aug 29, 2022
b3a813c
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Aug 29, 2022
93497dd
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Aug 29, 2022
5ac34ff
refactor(Utility): RPC server exporting RouteKey and RoutesMap
deblasis Aug 29, 2022
b668756
feat(Utility): CLI
deblasis Aug 29, 2022
af55e4a
refactor(Utility): RPC server exporting RouteKey and RoutesMap
deblasis Aug 29, 2022
4bf2fd2
chore(Utility): Removed TODO
deblasis Aug 29, 2022
b80a57c
fix(Utility): CLI: making use of the pwd flag
deblasis Aug 30, 2022
5e185e4
fix(Utility): CLI: code review feedback
deblasis Sep 5, 2022
ecc360c
fix(Utility): CLI custodial stake command: OutputAddr = fromAddr
deblasis Sep 5, 2022
655f3d0
refactor(Utility): CLI: refactor command bindings
deblasis Sep 5, 2022
aa7ba68
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 5, 2022
6bad3ec
fix(Utility): Fix route after merge
deblasis Sep 5, 2022
d876e0e
refactor(Utility): CLI: named return values fix
deblasis Sep 5, 2022
d2c8f49
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 5, 2022
d5fb9e8
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 5, 2022
ae0faa4
test(Utility): CLI: simplified tests for PK parsing from file
deblasis Sep 5, 2022
f07965e
feat(Utility): RPC OpenApi spec and code generation
deblasis Sep 6, 2022
20f0185
refactor(Utility): RPC server refactoring using code generation
deblasis Sep 6, 2022
a86e273
feat(Utility): RPC OpenApi spec and code generation
deblasis Sep 6, 2022
dc51992
feat(Utility): Updated RPC spec
deblasis Sep 7, 2022
0d7c657
feat(Utility): Regenerated RPC boilerplate and updates
deblasis Sep 7, 2022
07a6349
docs(Utility): RPC and node docs barebones + RPC spec notes
deblasis Sep 7, 2022
a2eb0e9
feat(Utility): Updated RPC spec
deblasis Sep 7, 2022
349ea3a
docs(Utility): CLI docs barebones
deblasis Sep 7, 2022
6081c34
fix(Utility): CLI: added missing message handling for account
deblasis Sep 7, 2022
0bebfa8
fix(Shared): fixed RPC config
deblasis Sep 7, 2022
1e8e2de
feat(Utility): CLI updated to use the generated RPC client
deblasis Sep 7, 2022
7487c3d
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 7, 2022
abef3ab
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 7, 2022
0fdd761
chore(go.mod): tidy
deblasis Sep 7, 2022
d5727b8
refactor(Utility): CLI + RPC models in server.gen.go
deblasis Sep 7, 2022
70a7e5d
style(Utility): removed redundant struct definition
deblasis Sep 7, 2022
7a68f55
docs(README.md): fixed LICENSE reference
deblasis Sep 7, 2022
e6f8b4d
docs(README.md): updated with references to CLI, RPC and Node docs
deblasis Sep 7, 2022
cb97735
refactor(Shared): RPC config defaults -changing soon,I'm centralizin
deblasis Sep 7, 2022
4aa4447
refactor(Shared): RPC config defaults -changing soon,I'm centralizin
deblasis Sep 7, 2022
3ed73dd
fix(Utility): RPC: updated to use test_artifacts defaults
deblasis Sep 7, 2022
0633550
refactor(Shared): RPC config defaults -changing soon,I'm centralizin
deblasis Sep 7, 2022
5726671
feat(Utility): CLI: updated to use test_artifacts default
deblasis Sep 7, 2022
afef144
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 7, 2022
cd8c48c
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 7, 2022
6548150
docs(Utility): RPC and node basic docs
deblasis Sep 7, 2022
535ce94
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 7, 2022
915fcfb
docs(Utility): CLI: Changelog
deblasis Sep 7, 2022
7817538
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 7, 2022
a4e7e79
fix(Utility): CLI: fixed output to user. It shouldn't be logging
deblasis Sep 7, 2022
c0ac1ea
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 7, 2022
d258fd5
fix(Utility): CLI code review feedback
deblasis Sep 8, 2022
d07c14a
style(Utility): code review feedback
deblasis Sep 8, 2022
653f6d7
feat(Tooling): Updated makefile commands to better handle codegen
deblasis Sep 8, 2022
5706162
feat(Tooling): Updated makefile commands to better handle codegen
deblasis Sep 8, 2022
dda85a0
fix(Utility): Fix duplicated models
deblasis Sep 8, 2022
acaa3e9
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 8, 2022
ecb0f07
chore(Utility): fixed versioning schema
deblasis Sep 8, 2022
f5c5a34
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 8, 2022
e5c3ae5
feat(Utility): CLI documentation generator + first stab at docs
deblasis Sep 9, 2022
054f981
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 9, 2022
bd42240
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Sep 15, 2022
35914a8
fix(Utility): CLI specific fixes
deblasis Sep 15, 2022
377cf14
fix(Utility): types fixes
deblasis Sep 15, 2022
21459d3
fix(Utility): RPC configs post-merge
deblasis Sep 15, 2022
7823a87
feat(Consensus): configOptions
deblasis Sep 15, 2022
e7d9c4e
feat(P2P): configOptions
deblasis Sep 15, 2022
60d3c14
feat(Utility): CLI: using configOptions to inject PK
deblasis Sep 15, 2022
6123cbb
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Sep 15, 2022
c725570
fix(Utility): RPC configs post-merge
deblasis Sep 15, 2022
9e4501e
feat(Consensus): configOptions
deblasis Sep 15, 2022
015915d
feat(P2P): configOptions
deblasis Sep 15, 2022
5178e60
fix(Utility): RPC fix post merge
deblasis Sep 15, 2022
761ceea
fix(Utility): RPC disabled by default because of TECHDEBT
deblasis Sep 15, 2022
f4c72fa
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 15, 2022
3c3cdb4
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Sep 15, 2022
e2a5793
chore(go.mod): tidy
deblasis Sep 15, 2022
2625979
Merge branch 'main' into issue/utility_local_proof_of_stake_cli_CLI
deblasis Sep 19, 2022
e9b90e1
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Sep 19, 2022
2283910
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Oct 13, 2022
2cea452
fix(go.mod): tidy
deblasis Oct 13, 2022
2b8a9d1
fix(CLI): test_artifacts
deblasis Oct 13, 2022
663fb8a
fix(go.mod): tidy
deblasis Oct 14, 2022
dca3786
fix(CLI): updated to use new typesUtil.ActorType
deblasis Oct 14, 2022
c04285b
fix(CLI): runtime based init
deblasis Oct 14, 2022
5b61539
fix(test_artifacts): fix
deblasis Oct 14, 2022
daffff9
fix(CLI): runtime using WithRandomPK()
deblasis Oct 14, 2022
0c85a8c
fix(CLI): fixed client-only initialization
deblasis Oct 14, 2022
7458c0a
fix(Makefile): protogen first
deblasis Oct 14, 2022
40b93b6
feat(Utility): GetActorName function (can we autogenerate these?)
deblasis Oct 14, 2022
9d5f130
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Oct 14, 2022
32c5e57
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Oct 14, 2022
5433bbf
fix(RPC): test_artifacts in runtime
deblasis Oct 14, 2022
a9bd32d
fix(go.mod): tidy
deblasis Oct 14, 2022
20f2ebc
fix(CLI): debug commands are now feature flagged
deblasis Oct 17, 2022
52b46a3
chore(go.mod): tidy
deblasis Oct 17, 2022
f40f742
chore(CLI): git rm app/pocket/rpc/client.gen.go
deblasis Oct 17, 2022
42a3831
chore(CLI): s/j/tx and s/prepareTx/prepareTxJson
deblasis Oct 17, 2022
accd5c8
refactor(shared): converters
deblasis Oct 17, 2022
dbdeccf
fix(CLI): debug nits
deblasis Oct 17, 2022
8aef547
refactor(CLI): confirmation and credentials
deblasis Oct 17, 2022
f02a670
chore(CLI): removed HACK todo
deblasis Oct 17, 2022
69ffc84
fix(Makefile): premature protoc
deblasis Oct 17, 2022
1b1a0ed
fix(RPC): added imports used in codegen files
deblasis Oct 17, 2022
0950d1d
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Oct 17, 2022
a47ed37
docs(RPC): added swagger editor link
deblasis Oct 17, 2022
8fd61cd
fix(RPC): added imports used in codegen files
deblasis Oct 17, 2022
9fd0227
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 17, 2022
267099c
feat(RPC): config proto
deblasis Oct 17, 2022
4da3f54
feat(RPC): RPCModule and noopRpcModule
deblasis Oct 17, 2022
a5668c6
refactor(Shared): shared.Create -> shared.CreateNode
deblasis Oct 17, 2022
8763125
refactor(RPC): moved scaffolding into rpc module
deblasis Oct 17, 2022
e42edbd
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Oct 17, 2022
50a365a
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 17, 2022
014b647
fix(RPC): removed redundant file
deblasis Oct 17, 2022
baff109
fix(CLI): debug merge fix
deblasis Oct 17, 2022
ac514b3
docs(RPC): fixed link after refactoring
deblasis Oct 18, 2022
843bc0c
docs(RPC): updated code organization post refactoring
deblasis Oct 18, 2022
f6b2457
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 18, 2022
35f8ef2
Update app/client/cli/utils.go
deblasis Oct 19, 2022
bf38384
fix(RPC): gitignoring generated files
deblasis Oct 19, 2022
db4bbdd
style(Persistence): reverting space change
deblasis Oct 19, 2022
aa1c737
refactor(Defaults): runtime/defaults package
deblasis Oct 19, 2022
65326d5
chore(CLI): issue handle
deblasis Oct 19, 2022
e626d93
chore(CLI): Issue #310 links
deblasis Oct 19, 2022
67bc84c
refactor(CLI): preallocation fix
deblasis Oct 19, 2022
d3c726a
style(CLI): oneMillion
deblasis Oct 19, 2022
8d7a1a4
style(CLI): s/RelayChainIDs/relayChainIDs
deblasis Oct 19, 2022
27e36c2
feat(Utility): ActorType.GetName()
deblasis Oct 19, 2022
1eabec4
chore(Utility): tracking issue #142
deblasis Oct 19, 2022
13485a2
chore(Utility): GetBytes -> GetCanonicalBytes
deblasis Oct 24, 2022
ce28724
chore(CLI): actorCmd -> accountCmd
deblasis Oct 24, 2022
e91a1ab
docs(CLI): fromAddr note (address currently sourced from pk)
deblasis Oct 24, 2022
476b124
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Oct 24, 2022
3c0f0ba
chore(Runtime): new default value from main
deblasis Oct 24, 2022
c740614
refactor(CLI): moving utility functions in utils.go
deblasis Oct 24, 2022
1a95835
chore(CLI): NewDebug -> NewDebugCommand
deblasis Oct 24, 2022
a80a81c
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Oct 24, 2022
4ea5f2c
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Oct 25, 2022
ab28db1
fix(RPC): gitignoring generated files
deblasis Oct 19, 2022
b4e074d
refactor(Consensus): mocks with Return(nil) and not Do(...)
deblasis Oct 25, 2022
e21da21
docs(RPC): updated changelog versions
deblasis Oct 25, 2022
020232a
fix(Makefile): generate_rpc_openapi
deblasis Oct 25, 2022
3fa07a2
fix(Makefile): fix for git clone + make develop_test
deblasis Oct 25, 2022
26bedd7
Update rpc/v1/openapi.yaml
deblasis Oct 25, 2022
2ea4c29
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis Oct 25, 2022
a386526
Update rpc/doc/CHANGELOG.md
deblasis Oct 25, 2022
6060489
Update rpc/noop_module.go
deblasis Oct 25, 2022
b817942
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis Oct 25, 2022
976af85
chore(Shared): added TODOes for ValidateXXX() in modules
deblasis Oct 25, 2022
0fafac5
docs(RPC): broadcast_tx_sync summary updated
deblasis Oct 25, 2022
d620226
Update rpc/doc/README.md
deblasis Oct 25, 2022
3f8d614
Update rpc/doc/README.md
deblasis Oct 25, 2022
5e30739
Update rpc/doc/README.md
deblasis Oct 25, 2022
9b63346
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis Oct 25, 2022
1931fbb
fix(Makefile): gitignoring generated files breaks tests fix
deblasis Oct 25, 2022
f75a872
docs(CLI): added todos for exactArgs
deblasis Oct 25, 2022
ddff925
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Oct 29, 2022
c9c5ff5
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Oct 29, 2022
3e85a20
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 29, 2022
45fcf0f
chore(RPC): added types.go
deblasis Oct 29, 2022
83894a6
refactor(RPC): sourcing defaults from defaults not test_artifacts
deblasis Oct 29, 2022
187615b
feat(CLI): system commands RPC🤝CLI
deblasis Oct 29, 2022
b495a0c
feat(Consensus): CurrentRound() and CurrentStep()
deblasis Oct 31, 2022
2e07000
feat(RPC): /v1/consensus/round_state
deblasis Oct 31, 2022
cb3e615
feat(RPC): /v1/consensus/round_state handler
deblasis Oct 31, 2022
4cfae32
feat(RPC): /v1/consensus/round_state
deblasis Oct 31, 2022
4326fbe
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 31, 2022
8aac6f4
refactor(CLI): system command typoes copypastas
deblasis Oct 31, 2022
df9ecd5
feat(CLI): consensus commands -RoundState and individual ones
deblasis Oct 31, 2022
b7623e4
chore(CLI): typo
deblasis Oct 31, 2022
82defd6
docs(CLI): short commands descriptions
deblasis Oct 31, 2022
f128275
docs(Config): Adding some more color around configuration
deblasis Oct 31, 2022
9bc8c90
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Oct 31, 2022
0d59799
fix(CLI): tx message signing
deblasis Oct 31, 2022
a5b5e6a
feat(CLI): reporting statuscode and body
deblasis Nov 1, 2022
9bd355c
fix(Proto): deterministic
deblasis Nov 1, 2022
3b51c76
refactor(CLI): prepareTxJSON -> prepareTxBytes
deblasis Nov 1, 2022
7c3a741
docs(Docs): Adding some more color config + raw_hex_bytes
deblasis Nov 1, 2022
0b6addd
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 1, 2022
f29bb7e
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Nov 1, 2022
c9efa96
refactor(CLI): Stake command
deblasis Nov 1, 2022
20c3918
fix(CLI): tx message signing
deblasis Oct 31, 2022
b0a5a78
feat(CLI): reporting statuscode and body
deblasis Nov 1, 2022
cbbeb97
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Nov 1, 2022
8c1952e
feat(Tooling): swagger-ui
deblasis Nov 1, 2022
bd9f0dd
feat(RPC): cors feature flag
deblasis Nov 1, 2022
225be2f
Update utility/types/message.go
deblasis Nov 2, 2022
5cecd49
chore(Runtime): comment spacing
deblasis Nov 2, 2022
7238b03
docs(CLI): Changelog
deblasis Nov 2, 2022
a2d86d3
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Nov 2, 2022
b9d9d1e
docs(CLI): changelog
deblasis Nov 2, 2022
9a786d4
docs(RPC): changelog
deblasis Nov 2, 2022
d1b802f
chore(Runtime): comment spacing
deblasis Nov 2, 2022
3550f4d
Update runtime/docs/README.md
deblasis Nov 3, 2022
7dc0093
chore(Consensus): SetBus mock Do(func(modules.Bus) {}) -> Return()
deblasis Nov 3, 2022
ef62a95
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis Nov 3, 2022
d9743f5
refactor(Consensus): mocks with Return(nil) and not Do(...)
deblasis Oct 25, 2022
2ec2448
chore(Consensus): SetBus mock Do(func(modules.Bus) {}) -> Return()
deblasis Nov 3, 2022
c22acd5
Merge branch 'issue/utility_local_proof_of_stake_cli_CLI' into issue/…
deblasis Nov 3, 2022
206c98c
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 3, 2022
16754c9
docs(Pocket): changelog
deblasis Nov 3, 2022
aae749d
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 3, 2022
8e3cf02
Update app/pocket/doc/README.md
deblasis Nov 3, 2022
e023452
Update app/pocket/doc/README.md
deblasis Nov 3, 2022
350f28a
docs(RPC): changelog
deblasis Nov 2, 2022
a6f17a7
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' of github.c…
deblasis Nov 3, 2022
0cb1d2d
docs(RPC): docs TOC
deblasis Nov 3, 2022
022becd
docs(RPC): Transports -> Endpoints
deblasis Nov 3, 2022
5f2ba8b
feat(Tooling): swagger-ui
deblasis Nov 1, 2022
15e326d
docs(RPC): swagger ui link to editor and ref to make cmd
deblasis Nov 3, 2022
e85f046
feat(rpcServer): rpcServer is now IntegratableModule
deblasis Nov 3, 2022
b26eb91
chore(Shared): tracking TODO (implement validations) #334
deblasis Nov 3, 2022
9d11193
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 3, 2022
1f2d6c6
Merge remote-tracking branch 'origin/main' into issue/utility_local_p…
deblasis Nov 3, 2022
ae931be
fix(RPC): merge fix
deblasis Nov 3, 2022
39bc308
chore(go.mod): tidy
deblasis Nov 3, 2022
cb32e05
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 3, 2022
d163f12
chore(go.mod): tidy
deblasis Nov 3, 2022
f817f3c
feat(Tooling): added empty mock_module package for cold start
deblasis Nov 3, 2022
c268a99
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Nov 4, 2022
52bf2c5
docs(RPC): nit
deblasis Nov 4, 2022
7037ddc
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 7, 2022
ee7e263
Update app/client/cli/consensus.go
deblasis Nov 8, 2022
709ca52
docs(CLI): better commands descriptions
deblasis Nov 8, 2022
f2c765f
feat(CLI): boldText helper
deblasis Nov 8, 2022
a8b2666
style(CLI): nit: real estate
deblasis Nov 8, 2022
67d7e38
refactor(CLI): ConsensusState
deblasis Nov 8, 2022
9aea8b6
docs(CLI): updated docs
deblasis Nov 8, 2022
aa53fab
docs(CLI): \n at the end of sentences in Stake command desc.
deblasis Nov 9, 2022
967f85b
docs(CLI): regenerated docs
deblasis Nov 9, 2022
e9a742f
fix(RPC): int64 on RoundState fields
deblasis Nov 10, 2022
9958b01
refactor(Shared): unexporting XXModuleName
deblasis Nov 10, 2022
9ba7989
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Nov 10, 2022
0b2e2f3
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Nov 10, 2022
d314441
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 10, 2022
5ce3563
feat(node): single source of truth for version + overridable
deblasis Nov 10, 2022
649396f
Merge branch 'issue/utility_local_proof_of_stake_cli_RPC' into issue/…
deblasis Nov 10, 2022
d177cbc
Merge remote-tracking branch 'upstream/main' into issue/utility_local…
deblasis Nov 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions app/client/cli/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ func NewConsensusCommand() *cobra.Command {
func consensusCommands() []*cobra.Command {
cmds := []*cobra.Command{
{
Use: "RoundState",
Use: "State",
Short: "Returns \"Height/Round/Step\"",
Long: "RoundState returns the height, round and step in \"Height/Round/Step\" format",
Aliases: []string{"round_state"},
Long: "State returns the height, round and step in \"Height/Round/Step\" format",
Aliases: []string{"state"},
RunE: func(cmd *cobra.Command, args []string) error {
response, err := getConsensusRoundState(cmd)
response, err := getConsensusState(cmd)
if err != nil {
return err
}
Expand All @@ -46,10 +46,10 @@ func consensusCommands() []*cobra.Command {
{
Use: "Height",
Short: "Returns the Height",
Long: "Height returns the height in the consensus state",
Long: "Height returns the height in the node's current consensus state",
Aliases: []string{"height"},
RunE: func(cmd *cobra.Command, args []string) error {
response, err := getConsensusRoundState(cmd)
response, err := getConsensusState(cmd)
if err != nil {
return err
}
Expand All @@ -62,10 +62,10 @@ func consensusCommands() []*cobra.Command {
{
Use: "Round",
Short: "Returns the Round",
Long: "Round returns the round in the consensus state",
Long: "Round returns the round in the node's current consensus state",
Aliases: []string{"round"},
RunE: func(cmd *cobra.Command, args []string) error {
response, err := getConsensusRoundState(cmd)
response, err := getConsensusState(cmd)
if err != nil {
return err
}
Expand All @@ -78,10 +78,10 @@ func consensusCommands() []*cobra.Command {
{
Use: "Step",
Short: "Returns the Step",
Long: "Step returns the step in the consensus state",
Long: "Step returns the step in the node's current consensus state",
Aliases: []string{"step"},
RunE: func(cmd *cobra.Command, args []string) error {
response, err := getConsensusRoundState(cmd)
response, err := getConsensusState(cmd)
if err != nil {
return err
}
Expand All @@ -95,12 +95,12 @@ func consensusCommands() []*cobra.Command {
return cmds
}

func getConsensusRoundState(cmd *cobra.Command) (*rpc.GetV1ConsensusRoundStateResponse, error) {
func getConsensusState(cmd *cobra.Command) (*rpc.GetV1ConsensusStateResponse, error) {
client, err := rpc.NewClientWithResponses(remoteCLIURL)
if err != nil {
return nil, nil
}
response, err := client.GetV1ConsensusRoundStateWithResponse(cmd.Context())
response, err := client.GetV1ConsensusStateWithResponse(cmd.Context())
if err != nil {
return nil, unableToConnectToRpc(err)
}
Expand Down
2 changes: 1 addition & 1 deletion app/client/cli/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed message signing
- Reporting RPC StatusCode and body
- System commands working end-to-end
- Added Consensus RoundState commands
- Added Consensus State commands

## [0.0.1] - 2022-09-09

Expand Down
4 changes: 3 additions & 1 deletion app/client/cli/doc/commands/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ The CLI is meant to be an user but also a machine friendly way for interacting w

* [client Account](client_Account.md) - Account specific commands
* [client Application](client_Application.md) - Application actor specific commands
* [client Consensus](client_Consensus.md) - Consensus specific commands
* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands
* [client Governance](client_Governance.md) - Governance specific commands
* [client Node](client_Node.md) - Node actor specific commands
* [client System](client_System.md) - Commands related to health and troubleshooting of the node instance
* [client Validator](client_Validator.md) - Validator actor specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Account specific commands
* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Account Send](client_Account_Send.md) - Send <fromAddr> <to> <amount>

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Account_Send.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ client Account Send <fromAddr> <to> <amount> [flags]

* [client Account](client_Account.md) - Account specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
4 changes: 2 additions & 2 deletions app/client/cli/doc/commands/client_Application.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Application actor specific commands

* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Application EditStake](client_Application_EditStake.md) - EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI>
* [client Application Stake](client_Application_Stake.md) - Stake an actor (Application) in the network.
* [client Application Stake](client_Application_Stake.md) - Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.
* [client Application Unpause](client_Application_Unpause.md) - Unpause <fromAddr>
* [client Application Unstake](client_Application_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Application EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [f

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
15 changes: 11 additions & 4 deletions app/client/cli/doc/commands/client_Application_Stake.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
## client Application Stake

Stake an actor (Application) in the network.
Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.

### Synopsis

Stake the Application actor into the network, making it available for service.
Stake the node into the network, making it available for service.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional nit: this formats as a single line in markdown github. Was that the intention or did you mean to split it out?

Screen Shot 2022-11-09 at 11 03 19 AM

I'd add new lines to make reading easier but doesn't really matter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, updated 👍

Will prompt the user for the <fromAddr> account passphrase. If the node is already staked, this transaction acts as an *update* transaction.
A node can update relayChainIDs, serviceURI, and raise the stake amount with this transaction.
If the node is currently staked at X and you submit an update with new stake Y. Only Y-X will be subtracted from an account
If no changes are desired for the parameter, just enter the current param value just as before.

```
client Application Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags]
```

### Options

Expand All @@ -23,6 +31,5 @@ Stake the Application actor into the network, making it available for service.
### SEE ALSO

* [client Application](client_Application.md) - Application actor specific commands
* [client Application Stake Custodial](client_Application_Stake_Custodial.md) - Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
35 changes: 0 additions & 35 deletions app/client/cli/doc/commands/client_Application_Stake_Custodial.md

This file was deleted.

2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Application_Unpause.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Application Unpause <fromAddr> [flags]

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Application_Unstake.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Application Unstake <fromAddr> [flags]

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
26 changes: 26 additions & 0 deletions app/client/cli/doc/commands/client_Consensus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## client Consensus

Consensus specific commands

### Options

```
-h, --help help for Consensus
```

### Options inherited from parent commands

```
--path_to_private_key_file string Path to private key to use when signing (default "./pk.json")
--remote_cli_url string takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port) (default "http://localhost:50832")
```

### SEE ALSO

* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Consensus Height](client_Consensus_Height.md) - Returns the Height
* [client Consensus Round](client_Consensus_Round.md) - Returns the Round
* [client Consensus State](client_Consensus_State.md) - Returns "Height/Round/Step"
* [client Consensus Step](client_Consensus_Step.md) - Returns the Step

###### Auto generated by spf13/cobra on 8-Nov-2022
30 changes: 30 additions & 0 deletions app/client/cli/doc/commands/client_Consensus_Height.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## client Consensus Height

Returns the Height

### Synopsis

Height returns the height in the node's current consensus state

```
client Consensus Height [flags]
```

### Options

```
-h, --help help for Height
```

### Options inherited from parent commands

```
--path_to_private_key_file string Path to private key to use when signing (default "./pk.json")
--remote_cli_url string takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port) (default "http://localhost:50832")
```

### SEE ALSO

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 8-Nov-2022
30 changes: 30 additions & 0 deletions app/client/cli/doc/commands/client_Consensus_Round.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## client Consensus Round

Returns the Round

### Synopsis

Round returns the round in the node's current consensus state

```
client Consensus Round [flags]
```

### Options

```
-h, --help help for Round
```

### Options inherited from parent commands

```
--path_to_private_key_file string Path to private key to use when signing (default "./pk.json")
--remote_cli_url string takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port) (default "http://localhost:50832")
```

### SEE ALSO

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 8-Nov-2022
30 changes: 30 additions & 0 deletions app/client/cli/doc/commands/client_Consensus_State.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## client Consensus State

Returns "Height/Round/Step"

### Synopsis

State returns the height, round and step in "Height/Round/Step" format

```
client Consensus State [flags]
```

### Options

```
-h, --help help for State
```

### Options inherited from parent commands

```
--path_to_private_key_file string Path to private key to use when signing (default "./pk.json")
--remote_cli_url string takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port) (default "http://localhost:50832")
```

### SEE ALSO

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 8-Nov-2022
30 changes: 30 additions & 0 deletions app/client/cli/doc/commands/client_Consensus_Step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## client Consensus Step

Returns the Step

### Synopsis

Step returns the step in the node's current consensus state

```
client Consensus Step [flags]
```

### Options

```
-h, --help help for Step
```

### Options inherited from parent commands

```
--path_to_private_key_file string Path to private key to use when signing (default "./pk.json")
--remote_cli_url string takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port) (default "http://localhost:50832")
```

### SEE ALSO

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 8-Nov-2022
4 changes: 2 additions & 2 deletions app/client/cli/doc/commands/client_Fisherman.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Fisherman actor specific commands

* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Fisherman EditStake](client_Fisherman_EditStake.md) - EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI>
* [client Fisherman Stake](client_Fisherman_Stake.md) - Stake an actor (Fisherman) in the network.
* [client Fisherman Stake](client_Fisherman_Stake.md) - Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.
* [client Fisherman Unpause](client_Fisherman_Unpause.md) - Unpause <fromAddr>
* [client Fisherman Unstake](client_Fisherman_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
2 changes: 1 addition & 1 deletion app/client/cli/doc/commands/client_Fisherman_EditStake.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Fisherman EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [fla

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
15 changes: 11 additions & 4 deletions app/client/cli/doc/commands/client_Fisherman_Stake.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
## client Fisherman Stake

Stake an actor (Fisherman) in the network.
Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.

### Synopsis

Stake the Fisherman actor into the network, making it available for service.
Stake the node into the network, making it available for service.
Will prompt the user for the <fromAddr> account passphrase. If the node is already staked, this transaction acts as an *update* transaction.
A node can update relayChainIDs, serviceURI, and raise the stake amount with this transaction.
If the node is currently staked at X and you submit an update with new stake Y. Only Y-X will be subtracted from an account
If no changes are desired for the parameter, just enter the current param value just as before.

```
client Fisherman Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags]
```

### Options

Expand All @@ -23,6 +31,5 @@ Stake the Fisherman actor into the network, making it available for service.
### SEE ALSO

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands
* [client Fisherman Stake Custodial](client_Fisherman_Stake_Custodial.md) - Stake a node in the network. Custodial stake uses the same address as operator/output for rewards/return of staked funds.

###### Auto generated by spf13/cobra on 19-Oct-2022
###### Auto generated by spf13/cobra on 8-Nov-2022
Loading