use crate::state::Entry;
// use cosmwasm_std::{Uint64};
use cosmwasm_std::Addr;
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>,
},
UpdateEntryOwner {
id: u64,
new_owner: String,
},
CreateEntry {
neuron: String,
network: String,
protocol: String,
endpoint: String,
particle: Option<String>,
},
UpdateEntry {
id: u64,
neuron: Option<String>,
network: Option<String>,
protocol: Option<String>,
endpoint: 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>,
owner: Addr,
},
GetEntriesProtocol {
start_after: Option<u64>,
limit: Option<u32>,
protocol: String,
},
GetEntriesNetwork {
start_after: Option<u64>,
limit: Option<u32>,
network: String,
},
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 neuron: String,
pub network: String,
pub protocol: String,
pub endpoint: String,
pub owner: String,
pub particle: String,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct ListResponse {
pub entries: Vec<Entry>,
}
cw-cyber/contracts/hub-skills/src/msg.rs
ฯ 0.0%
use crateEntry;
// use cosmwasm_std::{Uint64};
use Addr;
use JsonSchema;
use ;