beaker 0.1.8

CosmWasm swiss-army knife configured for Osmosis by default, but trivial to make it work for other CosmWasm enabled chain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::Context;
use anyhow::Result;
use clap::Subcommand;
use serde::{Deserialize, Serialize};

pub trait Module<'a, Config, Cmd: Subcommand, Err>
where
    Config: Serialize + Deserialize<'a> + Default,
{
    fn execute<Ctx: Context<'a, Config>>(ctx: Ctx, cmd: &Cmd) -> Result<(), Err>;
}