Skip to content

Commit

Permalink
Merge remote-tracking branches 'namada/tomas/rpc-queries-router' (#553)…
Browse files Browse the repository at this point in the history
…, 'namada/tomas/rpc-sub-shell' (#569) into main

* namada/tomas/rpc-queries-router:
  changelog: add #569
  queries: fix unused import in wasm build
  RPC: fix storage_value to return data as read w/o re-encoding in Option
  [ci] wasm checksums update
  router: add `with_options` for handlers that use request/response
  move the current RPC patterns under "shell" sub-router
  make fmt

* namada/tomas/rpc-sub-shell:
  ledger/queries: comment out `println`s for router path matching dbg
  ledger/queries: fix require_no_proof doc-string
  some doc comment edits
  wasm: update checksums
  changelog: add #553
  apps: replace RPC module and its handlers with new queries mod
  shared: add new queries router macro to replicate handwritten RPC paths
  add deps for router macro and update `Cargo.lock`s
  protocol: update imports and add missing rustdoc
  move ledger's protocol module into shared crate
  • Loading branch information
juped committed Oct 31, 2022
3 parents 4fba7c7 + a16180f + 27f324c commit 3a8700b
Show file tree
Hide file tree
Showing 22 changed files with 2,051 additions and 582 deletions.
4 changes: 4 additions & 0 deletions .changelog/unreleased/improvements/553-rpc-queries-router.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Replace the handcrafted RPC paths with a new `router!` macro RPC queries
definition that handles dynamic path matching, type-safe handler function
dispatch and also generates type-safe client methods for the queries.
([#553](https://github.com/anoma/namada/pull/553))
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvements/569-rpc-sub-shell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Move all shell RPC endpoints under the /shell path. This is a breaking change
to RPC consumers. ([#569](https://github.com/anoma/namada/pull/569))
10 changes: 8 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ abciplus = [
]

[dependencies]
namada = {path = "../shared", features = ["wasm-runtime", "ferveo-tpke", "rand", "secp256k1-sign-verify"]}
namada = {path = "../shared", features = ["wasm-runtime", "ferveo-tpke", "rand", "tendermint-rpc", "secp256k1-sign-verify"]}
ark-serialize = "0.3.0"
ark-std = "0.3.0"
# branch = "bat/arse-merkle-tree"
Expand Down Expand Up @@ -104,7 +104,7 @@ prost = "0.9.0"
prost-types = "0.9.0"
rand = {version = "0.8", default-features = false}
rand_core = {version = "0.6", default-features = false}
rayon = "=1.5.1"
rayon = "=1.5.3"
regex = "1.4.5"
reqwest = "0.11.4"
rlimit = "0.5.4"
Expand Down
Loading

0 comments on commit 3a8700b

Please sign in to comment.