Skip to content

Commit

Permalink
Merge remote-tracking branch 'namada/tomas/rpc-queries-router' into d…
Browse files Browse the repository at this point in the history
…raft

* namada/tomas/rpc-queries-router:
  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 18, 2022
2 parents f25f335 + 08c7675 commit 97c7cd6
Show file tree
Hide file tree
Showing 20 changed files with 1,774 additions and 572 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))
9 changes: 7 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 @@ -46,7 +46,7 @@ std = ["ed25519-consensus/std", "rand/std", "rand_core/std"]
testing = ["dev"]

[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 @@ -86,7 +86,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 97c7cd6

Please sign in to comment.