CosmWasm smart contracts are based on messages. This page describes how Apophis intends to simplify messaging.
Uint256
or a Decimal
, or if a serialized byte array is in
hexadecimal or base64 encoding. We are losing type information, and thus need to re-insert it by
manually serializing and deserializing data according to our smart contract’s needs.
cosmwasm-schema
, expose a generate_api!
macro that generates type declarations using mapped
original types in the smart contract rather than serialized types. The de/serialization middleware
of Apophis abstracts away the actual serialization, so as a smart contract developer you will rarely
need to actually know how to de/serialize your data, e.g. you can pass Coin
or bigint
s directly
into your messages.
Note that Apophis already handles de/serialization for you. This part is just about generating the
type declarations for convenience and better code maintainability.