use crate::state::Entry;
use cosmwasm_std::Uint64;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct InstantiateMsg {
pub owner: Option<String>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub enum ExecuteMsg {
UpdateOwner {
new_owner: Option<String>,
},
CreateEntry {
ticker: String,
chain_id: String,
contract: String,
decimals: Uint64,
channel_id: String,
logo: String,
particle: Option<String>,
},
UpdateEntry {
id: u64,
ticker: Option<String>,
chain_id: Option<String>,
contract: Option<String>,
decimals: Option<Uint64>,
channel_id: Option<String>,
logo: Option<String>,
particle: Option<String>,
},
DeleteEntry {
id: u64,
},
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum QueryMsg {
GetEntries {
start_after: Option<u64>,
limit: Option<u32>,
},
GetEntry {
id: u64,
},
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct MigrateMsg {}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct EntryResponse {
pub id: u64,
pub ticker: String,
pub chain_id: String,
pub contract: String,
pub decimals: Uint64,
pub channel_id: String,
pub logo: String,
pub particle: String,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct ListResponse {
pub entries: Vec<Entry>,
}
cw-cyber/contracts/hub-tokens/src/msg.rs
ฯ 0.0%
use crateEntry;
use Uint64;
use JsonSchema;
use ;