Crate ac_compose_macros

Source
Expand description

Offers macros that build extrinsics for custom runtime modules based on the metadata.

Re-exports§

pub use ac_primitives as primitives;
pub use log;

Macros§

compose_call
Generates the extrinsic’s call field for a given module and call passed as &str, if found in the metadata. Otherwise None is returned.
compose_call_for_pallet_metadata
Generates the extrinsic’s call field for the given PalletMetadata
compose_extrinsic
Generates an UncheckedExtrinsic for the given pallet and call from the metadata.
compose_extrinsic_offline
Generates an UncheckedExtrinsic for a given call.
compose_extrinsic_with_nonce
Generates an UncheckedExtrinsic for the given pallet and call, if they are found within the metadata. Otherwise None is returned.
rpc_params
Convert the given values to a [RpcParams] as expected by a Rpc Client (http or websocket).