Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contracts/dynamic-supply/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
24 changes: 24 additions & 0 deletions contracts/dynamic-supply/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "dynamic-supply"
version = "0.1.0"
edition = "2021"
description = "M012 Fixed Cap Dynamic Supply CosmWasm contract for Regen Network"
license = "Apache-2.0"

[lib]
crate-type = ["cdylib", "rlib"]

[features]
# Use library feature to disable entry points when imported as dependency
library = []

[dependencies]
cosmwasm-std = "2.2"
cosmwasm-schema = "2.2"
cw-storage-plus = "2.0"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
thiserror = "2"
Comment on lines +16 to +21
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The versions specified for several dependencies are incorrect and will likely cause the build to fail:

  • cosmwasm-std & cosmwasm-schema: Version 2.2 does not exist on crates.io. The latest stable version is 2.0.4.
  • cw-storage-plus: Version 2.0 does not exist. The latest is 1.2.0.
  • thiserror: Version 2 is invalid. It should be 1.0.

Additionally, the cw2 dependency is missing. It's required for setting the contract version with cw2::set_contract_version, which is crucial for managing upgrades.

Suggested change
cosmwasm-std = "2.2"
cosmwasm-schema = "2.2"
cw-storage-plus = "2.0"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
thiserror = "2"
cosmwasm-std = "2.0.4"
cosmwasm-schema = "2.0.4"
cw-storage-plus = "1.2.0"
cw2 = "1.1.1"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
thiserror = "1.0"


[dev-dependencies]
cosmwasm-std = { version = "2.2", features = ["staking"] }
Loading
Loading