Crate sewup[−][src]
Expand description
Sewup - Second state eWasm Utility Program A library to help you sew up your Ethereum project with Rust and just like develop in a common backend.
Use the crate with different feature to use the high level api just enable the features you want to use.
- KV feature helps you develop contract as key value database
sewup = { version = "*", features = ['kv'] }
sewup-derive = { version = "*", features = ['kv'] }
- RDB feature helps you develop contract as rdb database
sewup = { version = "*", features = ['rdb'] }
sewup-derive = { version = "*", features = ['rdb'] }
Re-exports
Modules
help you storage thing as key value object pair
kv
feature provides a simple way to key/value store things into ethereum runtime.
It aims to be lightweight and with a nice high level interface.
Store is an abstract storage instance from one account in one block
There can be more than one bucket in a store.
Besides, store can improt data from the specific block.
Different bucket can defined different kind of key value storage pair.
help you storage thing as records in tables
rdb
feature provides a simple way to store things with relations into ethereum runtime.
The run time helps user to setup the contract testing environment
help you build up you contract to handle tokens (experimental)
The basic types for storage in low level, and also easiler to used for bytes and string. Sewup using Raw and Row as basic unit to storage the data
Macros
Enums
Traits
A data structure that can be deserialized without borrowing any data from the deserializer.
A data structure that can be deserialized from any data format supported by Serde.
A data structure that can be serialized into any data format supported by Serde.
Functions
Type Definitions
Result<T, Error>