Skip to content

Commit

Permalink
refactor(nibi-stargate): Use cw_serde macro instead of direct derives
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Oct 16, 2023
1 parent c250d39 commit 47def14
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion artifacts/checksums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
d0d3df98c4af178c66630777092df45462289530b731e2ddc6b1c2300d1d657e controller.wasm
ec6cc298bf32cad7f5f426002fdcee602b133f24f6f7d65905c5aad0e3b777c9 incentives.wasm
459f3d2dd6240ef36cba48d3e102407639caffa7bca9c3b924df483b4fd40b6a lockup.wasm
5d832508a1146c6448f2cdced0f46d0a53528e78c1fbb29ba45670a6b04900f7 nibi_stargate.wasm
d426de473382be2884bd2512d4572bbb251fc2697e0488ce95eae5cce4aa585d nibi_stargate.wasm
bbb9c32c863ff78366ac5bae241967b206a6ad463e0154e7081309ab36904dce pricefeed.wasm
76dc1fc5e9b7fd975bde8f30d364b185733402ffe64fd841866bdf85634dcd3a shifter.wasm
a2f0262bbb39bcc16a353976154de22325e53f68f264ba61549f39d78dde2291 token_vesting.wasm
2 changes: 1 addition & 1 deletion artifacts/checksums_intermediate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
da3bdc0569f318d367eea17f39517e9f39d75b37c164b00bed22a4050b4e088c target/wasm32-unknown-unknown/release/controller.wasm
e03f22cf0c8fe52eda23249aafdc7afc2545b227918d9480835b160187083ad3 target/wasm32-unknown-unknown/release/incentives.wasm
9a088c48bd29274d7a0a95359d3749c236dc323d31e94ed0aba0c6c7826930e5 target/wasm32-unknown-unknown/release/lockup.wasm
a8ba92ea4e7f324f68fda3200fc64d4b792de883bf304c47ede187a2330aceb5 target/wasm32-unknown-unknown/release/nibi_stargate.wasm
8c6960f4852bfde4b9ed427a1708f2d0039d439aeb7c1697ece7059a0b998989 target/wasm32-unknown-unknown/release/pricefeed.wasm
a82731d918951ed592e25fb1bd4afba60e0b2be2346d99dda1c52118730ce678 target/wasm32-unknown-unknown/release/shifter.wasm
9318d75912302fedb0f775bb2fe75a60c494e7535f0e08e8e4eb0442cc5ef49a target/wasm32-unknown-unknown/release/token_vesting.wasm
9ed0b4efc86cd2a44f32e2548851176612b3d840156caf7b65263fb9215f536a target/wasm32-unknown-unknown/release/nibi_stargate.wasm
Binary file modified artifacts/nibi_stargate.wasm
Binary file not shown.
10 changes: 4 additions & 6 deletions contracts/nibi-stargate/src/msgs.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
use cosmwasm_schema::cw_serde;
use cosmwasm_std::Coin;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
#[cw_serde]
pub struct InstantiateMsg {}

#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
#[cw_serde]
pub enum ExecuteMsg {
// For x/tokenfactory
//
CreateDenom { subdenom: String },
Mint { coin: Coin, mint_to: String },
Burn { coin: Coin, burn_from: String },
ChangeAdmin { denom: String, new_admin: String },
}

#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
#[cw_serde]
pub enum QueryMsg {}

0 comments on commit 47def14

Please sign in to comment.