Crates.io | substrate_macro |
lib.rs | substrate_macro |
version | 0.1.3 |
source | src |
created_at | 2022-11-11 07:37:43.335794 |
updated_at | 2023-01-13 13:40:04.848762 |
description | Derive Macro for Substrate Actions |
homepage | |
repository | https://github.com/HugoByte/aurras/workflow/polkadot_macro |
max_upload_size | |
id | 712727 |
size | 19,128 |
This is a Derive Macro for Workflow-Aurras. This macro implement functionalities 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,
}
Licensed under Apache-2.0