Files
pezkuwi-subxt/substrate/Cargo.toml
T
Tomasz Drwięga 57ab3aeb82 Typed chain state queries over rpc. (#4079)
* Create typed client helpers for querying chain state storage items declared by
'decl_storage!'.

* Update substrate-rpc-custom functions to use async await syntax.

* The implementation of substrate-rpc-custom was a bit verbose and repetitive.
This commit makes the implementation simpler by intruducing a struct which
represents query for a typed value in storage. The new struct is called
StorageQuery. A StorageQuery wraps a raw StorageKey but is not directy
constructable. To construct a StorageQuery, the user must supply an
implementation of a srml_support::storage::generator trait such as
StorageValue or StorageMap.

A type implementing one of the generator traits can be aquired by:
A) marking a storage item as pub within a call to decl_storage (recommended)
or B) implementing one of the generator types manually.

While option B may sometimes me necessary, it's not recommended because
separate manual implementaions may lose sync with the original definition.

* drop unused dependency

* fmt

* Remove unnecessary pub from Authorities field in test-runtime storage
declaration.

This field was added to support a test in an earlier commit. The
test no longer relies on test-runtime so the change can be reverted.

* Move it to srml as support extension.

* Fix long lines.

* Fix.
2019-11-11 02:01:15 +01:00

116 lines
2.4 KiB
TOML

[workspace]
members = [
"core/authority-discovery",
"core/application-crypto",
"core/chain-spec",
"core/chain-spec/derive",
"core/cli",
"core/client",
"core/client/db",
"core/client/header-metadata",
"core/consensus/aura",
"core/consensus/babe",
"core/consensus/common",
"core/consensus/rhd",
"core/consensus/slots",
"core/consensus/uncles",
"core/consensus/pow",
"core/executor",
"core/executor/runtime-test",
"core/externalities",
"core/finality-grandpa",
"core/finality-grandpa/primitives",
"core/inherents",
"core/keyring",
"core/keystore",
"core/network",
"core/panic-handler",
"core/primitives",
"core/rpc",
"core/rpc/primitives",
"core/rpc-servers",
"core/runtime-interface",
"core/runtime-interface/proc-macro",
"core/runtime-interface/test-wasm",
"core/serializer",
"core/service",
"core/service/test",
"core/session",
"core/sr-api-macros",
"core/sr-arithmetic",
"core/sr-io",
"core/sr-primitives",
"core/sr-staking-primitives",
"core/sr-sandbox",
"core/sr-std",
"core/sr-version",
"core/state-machine",
"core/telemetry",
"core/test-client",
"core/test-runtime",
"core/test-runtime/client",
"core/transaction-pool",
"core/transaction-pool/graph",
"core/trie",
"core/utils/fork-tree",
"core/utils/wasm-builder",
"core/utils/wasm-builder-runner",
"core/wasm-interface",
"srml/support",
"srml/support/rpc",
"srml/support/procedural",
"srml/support/procedural/tools",
"srml/support/procedural/tools/derive",
"srml/support/test",
"srml/authorship",
"srml/assets",
"srml/aura",
"srml/balances",
"srml/contracts",
"srml/contracts/rpc",
"srml/collective",
"srml/democracy",
"srml/elections",
"srml/elections-phragmen",
"srml/example",
"srml/executive",
"srml/finality-tracker",
"srml/generic-asset",
"srml/grandpa",
"srml/im-online",
"srml/authority-discovery",
"srml/indices",
"srml/membership",
"srml/metadata",
"srml/nicks",
"srml/offences",
"srml/randomness-collective-flip",
"srml/scored-pool",
"srml/session",
"srml/staking",
"srml/staking/reward-curve",
"srml/sudo",
"srml/system",
"srml/system/rpc",
"srml/timestamp",
"srml/treasury",
"srml/transaction-payment",
"srml/transaction-payment/rpc",
"srml/utility",
"srml/evm",
"node/cli",
"node/executor",
"node/primitives",
"node/rpc",
"node/rpc-client",
"node/runtime",
"node/testing",
"node-template",
"subkey",
"test-utils/chain-spec-builder",
]
[profile.release]
# Substrate runtime requires unwinding.
panic = "unwind"