Skip to content
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c13284b
wip of indirect executor refactoring
clangenb Mar 21, 2023
f686982
[indirect-executor] provide a filter implementation
clangenb Mar 21, 2023
e9b9814
[indirect-executor] fix mock feature flag
clangenb Mar 21, 2023
05f54c9
[indirect-executor] tests runs, but if fails to find the call
clangenb Mar 21, 2023
227ea61
[indirect-executor] shield funds indirect call works now.
clangenb Mar 21, 2023
03f973f
[indirect-executor] call worker works too
clangenb Mar 21, 2023
25194c2
[indirect-executor] add `ParentchainExtrinsic` associated type, which…
clangenb Mar 22, 2023
596a872
[global-components] add indirect filter to initialization
clangenb Mar 22, 2023
b18191c
[indirect-calls-executor] make filter trait definition less constraining
clangenb Mar 22, 2023
318ce87
[enclave-runtime] fix top_pool_tests.rs
clangenb Mar 22, 2023
2f6c772
minor cleanup
clangenb Mar 22, 2023
b993de5
minor cleanup
clangenb Mar 22, 2023
b845732
minor cleanup
clangenb Mar 22, 2023
e34b629
[indirect-executor] move `create_processed_parentchain_block_call` to…
clangenb Mar 22, 2023
7981a96
[indirect-executor] move trait definitions to separate module.
clangenb Mar 22, 2023
cc5a408
[indirect-executor] re-organise crate
clangenb Mar 22, 2023
ed7d94d
[indirect-executor] remove obsolete todo
clangenb Mar 22, 2023
7f6f9b6
[indirect-executor] add comment about app-libs
clangenb Mar 22, 2023
b59f3c0
Merge branch 'master' into cl/configurable-indirect-calls
clangenb Mar 22, 2023
3fcbe66
[indirect-executor] minor cleanup
clangenb Mar 22, 2023
eb1edc4
[api-client-types] also return the signature of the extrinsic.
clangenb Mar 22, 2023
b30ee5c
typo
clangenb Mar 22, 2023
450e1d0
minor cleanup
clangenb Mar 22, 2023
2f2f728
[api-client-types] fix import of MultiSignature in no-std.
clangenb Mar 22, 2023
ee6df97
[indirect-execution] trait does not take mutable reference anymore.
clangenb Mar 22, 2023
83d2c37
fix clippy warnings.
clangenb Mar 22, 2023
5050803
fix clippy warnings.
clangenb Mar 22, 2023
4137775
[api-clients] added `Signature` associated type.
clangenb Mar 22, 2023
917b81c
[indirect-executor] `IndirectDispatch` rename method to `dispatch`
clangenb Mar 22, 2023
e83b591
[indirect-executor] add minimal crate level doc.
clangenb Mar 22, 2023
47bc33a
[indirect-executor] introduce extrinsic parser and make the filters g…
clangenb Mar 22, 2023
80a464b
minor cleanup
clangenb Mar 22, 2023
cec8c31
remove obsolete comment
clangenb Mar 22, 2023
baab620
fix clippy
clangenb Mar 23, 2023
95ba7e4
fix comment!
clangenb Mar 23, 2023
4237da3
add todo
clangenb Mar 23, 2023
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
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3154,6 +3154,7 @@ name = "itp-api-client-types"
version = "0.9.0"
dependencies = [
"sp-core",
"sp-runtime",
"substrate-api-client",
]

Expand Down
7 changes: 4 additions & 3 deletions core-primitives/node-api/api-client-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ edition = "2021"
substrate-api-client = { default-features = false, git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.37-tag-v0.7.0" }

# substrate
sp-core = { optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }

sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }

[features]
default = ["std"]
std = [
"substrate-api-client/std",
"substrate-api-client/ws-client",
"sp-core",
"sp-core/std",
"sp-runtime/std",
]
13 changes: 9 additions & 4 deletions core-primitives/node-api/api-client-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

#![cfg_attr(not(feature = "std"), no_std)]

pub use sp_runtime::MultiSignature;
pub use substrate_api_client::{
PlainTip, PlainTipExtrinsicParams, PlainTipExtrinsicParamsBuilder, SubstrateDefaultSignedExtra,
UncheckedExtrinsicV4,
CallIndex, GenericAddress, PlainTip, PlainTipExtrinsicParams, PlainTipExtrinsicParamsBuilder,
SubstrateDefaultSignedExtra, UncheckedExtrinsicV4,
};

/// Configuration for the ExtrinsicParams.
Expand All @@ -39,8 +40,12 @@ pub type ParentchainExtrinsicParamsBuilder = PlainTipExtrinsicParamsBuilder;
//pub type ParentchainExtrinsicParams = AssetTipExtrinsicParams;
//pub type ParentchainExtrinsicParamsBuilder = AssetTipExtrinsicParamsBuilder;

pub type ParentchainUncheckedExtrinsic<Call> =
UncheckedExtrinsicV4<Call, SubstrateDefaultSignedExtra<PlainTip>>;
pub type ParentchainUncheckedExtrinsic<Call> = UncheckedExtrinsicV4<Call, ParentchainSignedExtra>;
pub type ParentchainSignedExtra = SubstrateDefaultSignedExtra<PlainTip>;
pub type ParentchainSignature = Signature<ParentchainSignedExtra>;

/// Signature type of the [UncheckedExtrinsicV4].
pub type Signature<SignedExtra> = Option<(GenericAddress, MultiSignature, SignedExtra)>;

#[cfg(feature = "std")]
pub use api::*;
Expand Down
1 change: 1 addition & 0 deletions core/parentchain/indirect-calls-executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ substrate-api-client = { git = "https://github.com/scs/substrate-api-client.git"

[dev-dependencies]
env_logger = "0.9.0"
itp-node-api = { path = "../../../core-primitives/node-api", features = ["mocks"] }
itp-sgx-crypto = { path = "../../../core-primitives/sgx/crypto", features = ["mocks"] }
itp-stf-executor = { path = "../../../core-primitives/stf-executor", features = ["mocks"] }
itp-test = { path = "../../../core-primitives/test" }
Expand Down
Loading