At the heart of the Apophis SDK lies the middleware subsystem.
Apophis.use(...middlewares)
to
register the middlewares you are interested in:
DefaultCosmWasmMiddlewares
, for example, depend on the DefaultCosmosMiddlewares
, so you
really only need to register ...DefaultCosmosMiddlewares
, but it won’t hurt to also register
...DefaultCosmWasmMiddlewares
.
KP
is the key path to the middleware and serves to extract the correct function signature.
Following is an example of how to use the mw
function which produces such a MiddlewarePipeline
: