Skip to content

Commit

Permalink
Merge pull request #22 from WHELP-project/21-pool-add-schema-generation
Browse files Browse the repository at this point in the history
Pool: Add schema generation
  • Loading branch information
ueco-jb committed Oct 30, 2023
2 parents f249202 + cbe19da commit 01b5ac9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/pool/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
wasm-debug = "build --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --bin pool_schema"
10 changes: 10 additions & 0 deletions contracts/pool/src/bin/pool_schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use cosmwasm_schema::write_api;
use dex::pool::{ExecuteMsg, InstantiateMsg, QueryMsg};

fn main() {
write_api! {
instantiate: InstantiateMsg,
query: QueryMsg,
execute: ExecuteMsg,
}
}

0 comments on commit 01b5ac9

Please sign in to comment.