-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cvm): using shared code in wasm std target of order contract and…
… sample solutio to cvm traverse (#4269) need CosmWasm/cosmwasm#1931 . because we depend on git commit of no_std which cannot be ^ compiled with version upper of std exporting functions (until patching std not to export, hacks) Required for merge: - [ ] `pr-workflow-check / draft-release-check` is ✅ success - Other rules GitHub shows you, or can be read in [configuration](../terraform/github.com/branches.tf) Makes review faster: - [ ] PR title is my best effort to provide summary of changes and has clear text to be part of release notes - [ ] I marked PR by `misc` label if it should not be in release notes - [ ] Linked Zenhub/Github/Slack/etc reference if one exists - [ ] I was clear on what type of deployment required to release my changes (node, runtime, contract, indexer, on chain operation, frontend, infrastructure) if any in PR title or description - [ ] Added reviewer into `Reviewers` - [ ] I tagged(`@`) or used other form of notification of one person who I think can handle best review of this PR - [ ] I have proved that PR has no general regressions of relevant features and processes required to release into production - [ ] Any dependency updates made, was done according guides from relevant dependency - Clicking all checkboxes - Adding detailed description of changes when it feels appropriate (for example when PR is big)
- Loading branch information
1 parent
05c79dc
commit 1277234
Showing
18 changed files
with
1,309 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
edition = "2021" | ||
name = "cvm" | ||
version = "0.1.0" | ||
|
||
[build-dependencies] | ||
prost-build = { workspace = true } | ||
|
||
[dependencies] | ||
serde = { workspace = true, default-features = false } | ||
derive_more = { workspace = true, default-features = false } | ||
cosmwasm-std = { version = "^1.2.5", default-features = false, optional = true } | ||
schemars = { workspace = true, default-features = false, optional = true } | ||
cosmwasm-schema = { workspace = true, default-features = false, optional = true } | ||
hex = { workspace = true, default-features = false } | ||
num = { workspace = true, default-features = false } | ||
|
||
[dev-dependencies] | ||
serde-json-wasm = { version = "1.0.0", default-features = false, features = [ | ||
"std", | ||
] } | ||
|
||
[features] | ||
default = ["std", "serde", "cosmwasm"] | ||
xcm = [] | ||
cosmos = [] | ||
cosmwasm = ["serde", "cosmwasm-std"] | ||
substrate = [] | ||
scale = [] | ||
protobuf = [] | ||
json-schema = ["dep:schemars", "cosmwasm-schema"] | ||
ibc = [] | ||
evm = [] | ||
serde = [] | ||
std = ["derive_more/std"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
disallowed-types = [ | ||
# { path = "usize", reason = "variable size" }, # cannot on now, because serde, even if there is no usize in type | ||
{ path = "f64", resdason = "harware dependant" }, | ||
{ path = "f32", reason = "harware dependant" }, | ||
{ path = "num_traits::float::*", reason = "harware dependant" }, | ||
{ path = "serde_json::*", reason = "use serde_json_wasm::*" }, | ||
] | ||
|
||
disallowed-methods = ["std::time::Duration::as_secs_f64"] |
Oops, something went wrong.