4 releases
0.1.3 | Jan 13, 2023 |
---|---|
0.1.2 | Nov 23, 2022 |
0.1.1 | Nov 21, 2022 |
0.1.0 | Nov 11, 2022 |
#18 in #actions
21 downloads per month
20KB
388 lines
Substrate Macro
Description
This is a Derive Macro for Workflow-Aurras. This macro implement functionalities for interaction between substrate based chain
Usage
Creates necessary methods for Interaction between Substrate based chain.
#[derive(Polkadot)]
#[Chain = "Westend"]
#[Operation = "transfer"]
pub struct Data {
input: TransactionInput,
output: Value,
}
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
struct TransactionInput {
url: String,
#[serde(default)]
owner_key: String,
address: String,
#[serde(default)]
amount: u32,
#[serde(default)]
era: u32,
}
References
- Learn more about Procedural Macros .
- Macros
License
Licensed under Apache-2.0
Dependencies
~1.7–2.3MB
~53K SLoC