Skip to content

Commit

Permalink
Populate EcdpUssdTreasury
Browse files Browse the repository at this point in the history
  • Loading branch information
balqaasem committed Mar 3, 2024
1 parent b69b08f commit d9c0004
Show file tree
Hide file tree
Showing 13 changed files with 1,676 additions and 265 deletions.
25 changes: 0 additions & 25 deletions blockchain/modules/asset-registry/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ use sp_std::marker::PhantomData;
pub trait WeightInfo {
fn register_foreign_asset() -> Weight;
fn update_foreign_asset() -> Weight;
fn register_stable_asset() -> Weight;
fn update_stable_asset() -> Weight;
fn register_erc20_asset() -> Weight;
fn update_erc20_asset() -> Weight;
fn register_native_asset() -> Weight;
Expand All @@ -77,19 +75,6 @@ impl<T: frame_system::Config> WeightInfo for SetheumWeight<T> {
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: AssetRegistry NextStableAssetId (r:1 w:1)
// Storage: AssetRegistry AssetMetadatas (r:1 w:1)
fn register_stable_asset() -> Weight {
Weight::from_parts(15_830_000, 0)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: AssetRegistry AssetMetadatas (r:1 w:1)
fn update_stable_asset() -> Weight {
Weight::from_parts(14_342_000, 0)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: EVM Accounts (r:2 w:0)
// Storage: EVM Codes (r:1 w:0)
// Storage: EVM AccountStorages (r:5 w:0)
Expand Down Expand Up @@ -132,16 +117,6 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
fn register_stable_asset() -> Weight {
Weight::from_parts(15_830_000, 0)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
fn update_stable_asset() -> Weight {
Weight::from_parts(14_342_000, 0)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
fn register_erc20_asset() -> Weight {
Weight::from_parts(187_828_000, 0)
.saturating_add(RocksDbWeight::get().reads(10 as u64))
Expand Down
40 changes: 17 additions & 23 deletions blockchain/modules/ecdp-ussd-treasury/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,40 @@ authors = ["Setheum Labs"]
edition = "2021"

[dependencies]
log = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
serde = { workspace = true, optional = true }
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["max-encoded-len"] }
sp-runtime = { workspace = true }
sp-io = { workspace = true }
sp-std = { workspace = true }
frame-support = { workspace = true }
frame-system = { workspace = true }

primitives = { package = "setheum-primitives", path = "../primitives", default-features = false }
support = { package = "module-support", path = "../support", default-features = false }
orml-traits = { path = "../submodules/orml/traits", default-features = false }
sp-std = { workspace = true }
orml-traits = { workspace = true }
module-support ={ workspace = true }
primitives = { workspace = true }

[dev-dependencies]
sp-core = { workspace = true, features = ["std"] }
pallet-balances = { workspace = true }
orml-tokens = { workspace = true }
sp-io = { workspace = true, features = ["std"] }
pallet-balances = { workspace = true, features = ["std"] }
orml-currencies = { workspace = true, features = ["std"] }
orml-auction = { workspace = true, features = ["std"] }
module-dex = { workspace = true, features = ["std"] }
orml-tokens = { workspace = true, features = ["std"] }

[features]
default = ["std"]
std = [
"scale-info/std",
"serde",
"parity-scale-codec/std",
"sp-runtime/std",
"sp-std/std",
"sp-io/std",
"frame-support/std",
"frame-system/std",
"primitives/std",
"support/std",
"orml-traits/std",
]
runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"primitives/std",
"scale-info/std",
"sp-runtime/std",
"sp-std/std",
"module-support/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime",
]
Loading

0 comments on commit d9c0004

Please sign in to comment.