Expand description
A library to decode ink! contract JSON into Rust types using Serde.
This crate provides a simple way to parse ink! contract JSON strings and deserialize them into Rust types for easy manipulation and interaction.
Example:
use ink_contract_decoder::decode_ink_contract;
fn main() {
let json_str = r#"
{
// Your JSON contract string here
}
"#;
let ink_contract = decode_ink_contract(json_str).unwrap();
println!("{:#?}", ink_contract);
}
Structs§
- Arg
- Build
Info - Constructor
- Contract
- InkContract
- Lang
Error - Layout
- Message
- Return
Type - Root
- Source
- Spec
- Storage
- Struct
- Wasm
OptSettings
Functions§
- decode_
ink_ contract - Decode the JSON string into an
InkContract
struct.