Skip to content

Commit

Permalink
new proto types for wasmd 0.44 and add features (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyleu authored Nov 28, 2023
1 parent f273871 commit 9e1b6bb
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 637 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "coreum-wasm-sdk"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
description = "SDK for WASM coreum messages and queries."
homepage = "https://coreum.com/"
license = "Apache-2.0"

[dependencies]
cosmwasm-std = { version = "1.4.1", features = ["stargate"] }
serde = { version = "1.0.190", default-features = false, features = ["derive"] }
schemars = "0.8.15"
cosmwasm-schema = "1.4.1"
cosmwasm-std = { version = "1.5.0", features = ["stargate"] }
serde = { version = "1.0.193", default-features = false, features = ["derive"] }
schemars = "0.8.16"
cosmwasm-schema = "1.5.0"
osmosis-std-derive = "0.20.1"
chrono = { version = "0.4.30", default-features = false }
prost = { version = "0.11.0", default-features = false, features = [
Expand Down
1 change: 1 addition & 0 deletions src/assetft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub const BURNING: u32 = 1;
pub const FREEZING: u32 = 2;
pub const WHITELISTING: u32 = 3;
pub const IBC: u32 = 4;
pub const BLOCK_SMART_CONTRACTS: u32 = 5;

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
Expand Down
3 changes: 3 additions & 0 deletions src/types/coreum/asset/ft/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ pub enum Feature {
Freezing = 2,
Whitelisting = 3,
Ibc = 4,
BlockSmartContracts = 5,
}
impl Feature {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -207,6 +208,7 @@ impl Feature {
Feature::Freezing => "freezing",
Feature::Whitelisting => "whitelisting",
Feature::Ibc => "ibc",
Feature::BlockSmartContracts => "block_smart_contracts",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -217,6 +219,7 @@ impl Feature {
"freezing" => Some(Self::Freezing),
"whitelisting" => Some(Self::Whitelisting),
"ibc" => Some(Self::Ibc),
"block_smart_contracts" => Some(Self::BlockSmartContracts),
_ => None,
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/types/coreum/asset/nft/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub enum ClassFeature {
Freezing = 1,
Whitelisting = 2,
DisableSending = 3,
Soulbound = 4,
}
impl ClassFeature {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -125,6 +126,7 @@ impl ClassFeature {
ClassFeature::Freezing => "freezing",
ClassFeature::Whitelisting => "whitelisting",
ClassFeature::DisableSending => "disable_sending",
ClassFeature::Soulbound => "soulbound",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -134,6 +136,7 @@ impl ClassFeature {
"freezing" => Some(Self::Freezing),
"whitelisting" => Some(Self::Whitelisting),
"disable_sending" => Some(Self::DisableSending),
"soulbound" => Some(Self::Soulbound),
_ => None,
}
}
Expand Down
Loading

0 comments on commit 9e1b6bb

Please sign in to comment.