Skip to content

Commit

Permalink
chore: add migrate msg
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Oct 19, 2024
1 parent 0d73bcc commit 161c282
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
9 changes: 7 additions & 2 deletions contracts/plus/auction_nft/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use cosmwasm_std::entry_point;

use crate::error::ContractError;
use crate::msg::{
AskNftMsg, AuctionsResponse, ExecuteMsg, InstantiateMsg, PagingOptions, QueryAuctionsResult,
QueryMsg, UpdateContractMsg,
AskNftMsg, AuctionsResponse, ExecuteMsg, InstantiateMsg, MigrateMsg, PagingOptions,
QueryAuctionsResult, QueryMsg, UpdateContractMsg,
};
use crate::state::{
auctions, get_contract_token_id, increment_auctions, Auction, ContractInfo, CONTRACT_INFO,
Expand Down Expand Up @@ -744,3 +744,8 @@ fn parse_auction(
})
})
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(_deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
Ok(Response::default())
}
6 changes: 5 additions & 1 deletion contracts/plus/auction_nft/src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cosmwasm_std::{Coin, Addr, Uint128};
use cosmwasm_std::{Addr, Coin, Uint128};
use cw721::Cw721ReceiveMsg;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -122,3 +122,7 @@ pub struct QueryAuctionsResult {
pub struct AuctionsResponse {
pub items: Vec<QueryAuctionsResult>,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]

pub struct MigrateMsg {}
7 changes: 6 additions & 1 deletion contracts/plus/market_auction_storage/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use cosmwasm_std::entry_point;

use crate::error::ContractError;
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, UpdateContractMsg};
use crate::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg, UpdateContractMsg};
use crate::state::{
auctions, get_contract_token_id, increment_auctions, ContractInfo, CONTRACT_INFO,
};
Expand Down Expand Up @@ -327,3 +327,8 @@ fn parse_auction(
})
})
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(_deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
Ok(Response::default())
}
4 changes: 4 additions & 0 deletions contracts/plus/market_auction_storage/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ pub enum QueryMsg {
Auction(AuctionQueryMsg),
GetContractInfo {},
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]

pub struct MigrateMsg {}

0 comments on commit 161c282

Please sign in to comment.