Crate sewup_derive[][src]

Macros

help you write the field which storage string no longer than the specific size

helps you assert output from the handle of a contract with Vec<u8>.

helps you assert your handler without error and returns

helps you assert return instance from your handler with auto unwrap ewasm_main, namely #[ewasm_main(auto)]

helps you return handler when caller is not in access control list

helps you to get the binary result of the thiserror,

helps you get you function signature

helps you generate the input raw data for specific contract handler

helps you to get the input data from contract caller

help you generate the exactly contract output form rust instance

helps you assert return Ok(()) your handler with rusty ewasm_main, namely #[ewasm_main(rusty)]

helps you assert return Err your handler with rusty ewasm_main, namely #[ewasm_main(rusty)]

Attribute Macros

helps you to build your constructor for the contract

helps you to build your handlers in the contract

helps you to build your handler in other module

helps you setup the main function of a contract

helps you setup the test mododule, and test cases in contract.

Derive Macros

Key derive help you implement Key trait for the kv feature

provides the handers for CRUD and the Protocol struct to communicate with these handlers.

Value derive help you implement Value trait for kv feature