Skip to content

Commit

Permalink
refactor(sns): migrate sns governance to use ic_cdk (#1941)
Browse files Browse the repository at this point in the history
This migrates sns governance to use ic_cdk instead of dfn_core

---------

Co-authored-by: Arshavir Ter-Gabrielyan <arshavir.ter.gabrielyan@dfinity.org>
  • Loading branch information
max-dfinity and aterga authored Oct 10, 2024
1 parent 634ed31 commit 5890eaa
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 264 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions rs/sns/governance/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ DEPENDENCIES = [
"//rs/protobuf",
"//rs/rust_canisters/canister_log",
"//rs/rust_canisters/canister_profiler",
"//rs/rust_canisters/dfn_candid",
"//rs/rust_canisters/dfn_core",
"//rs/rust_canisters/http_types",
"//rs/sns/governance/proposal_criticality",
"//rs/sns/governance/proposals_amount_total_limit",
Expand All @@ -46,7 +44,9 @@ DEPENDENCIES = [
"@crate_index//:candid",
"@crate_index//:clap_3_2_25",
"@crate_index//:comparable",
"@crate_index//:futures",
"@crate_index//:hex",
"@crate_index//:ic-cdk",
"@crate_index//:ic-metrics-encoder",
"@crate_index//:lazy_static",
"@crate_index//:maplit",
Expand All @@ -64,6 +64,7 @@ MACRO_DEPENDENCIES = [
# Keep sorted.
"//rs/nervous_system/common/build_metadata",
"@crate_index//:async-trait",
"@crate_index//:ic-cdk-macros",
"@crate_index//:rust_decimal_macros",
"@crate_index//:strum_macros",
]
Expand All @@ -86,7 +87,6 @@ DEV_DEPENDENCIES = [
"//rs/test_utilities/types",
"@crate_index//:assert_matches",
"@crate_index//:candid_parser",
"@crate_index//:futures",
"@crate_index//:pretty_assertions",
"@crate_index//:proptest",
"@crate_index//:tempfile",
Expand Down
5 changes: 3 additions & 2 deletions rs/sns/governance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ base64 = { workspace = true }
candid = { workspace = true }
clap = { version = "3.2.25", features = ["derive"] }
comparable = { version = "0.5", features = ["derive"] }
dfn_candid = { path = "../../rust_canisters/dfn_candid" }
dfn_core = { path = "../../rust_canisters/dfn_core" }
hex = { workspace = true }
futures = { workspace = true }
ic-base-types = { path = "../../types/base_types" }
ic-cdk = { workspace = true }
ic-cdk-macros = { workspace = true }
ic-canisters-http-types = { path = "../../rust_canisters/http_types" }
ic-canister-log = { path = "../../rust_canisters/canister_log" }
ic-canister-profiler = { path = "../../rust_canisters/canister_profiler" }
Expand Down
Loading

0 comments on commit 5890eaa

Please sign in to comment.