difftreelog
feat add pallet-balances-adapter
in: master
5 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6252,6 +6252,10 @@
]
[[package]]
+name = "pallet-balances-adapter"
+version = "0.1.0"
+
+[[package]]
name = "pallet-base-fee"
version = "1.0.0"
source = "git+https://github.com/uniquenetwork/unique-frontier?branch=unique-polkadot-v0.9.42#75ad5b9a49e1942553c4068228f1546ffb1f7246"
@@ -7411,6 +7415,7 @@
"frame-benchmarking",
"frame-support",
"frame-system",
+ "pallet-balances-adapter",
"pallet-common",
"pallet-evm",
"pallet-evm-coder-substrate",
Cargo.tomldiffbeforeafterboth19panic = "unwind"19panic = "unwind"202021[profile.production]21[profile.production]22codegen-units = 122inherits = "release"23inherits = "release"23lto = true24lto = true24codegen-units = 125opt-level = 325opt-level = 3262627[workspace.dependencies]27[workspace.dependencies]28# Unique28# Unique29app-promotion-rpc = { path = "primitives/app_promotion_rpc", default-features = false }29app-promotion-rpc = { path = "primitives/app_promotion_rpc", default-features = false }30evm-coder = { git = "https://github.com/uniquenetwork/evm-coder", tag = "v0.3.1", default-features = false }30evm-coder = { git = "https://github.com/uniquenetwork/evm-coder", tag = "v0.3.1", default-features = false }31pallet-app-promotion = { path = "pallets/app-promotion", default-features = false }31pallet-app-promotion = { path = "pallets/app-promotion", default-features = false }32pallet-balances-adapter = { default-features = false, path = "pallets/balances-adapter" }32pallet-charge-transaction = { package = "pallet-template-transaction-payment", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.42" }33pallet-charge-transaction = { package = "pallet-template-transaction-payment", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.42" }33pallet-collator-selection = { default-features = false, path = "pallets/collator-selection" }34pallet-collator-selection = { default-features = false, path = "pallets/collator-selection" }34pallet-common = { default-features = false, path = "pallets/common" }35pallet-common = { default-features = false, path = "pallets/common" }123sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }124sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }124sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }125sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }125sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }126sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }127sc-consensus-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }126sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }128sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }127sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }129sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }128sc-consensus-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }129sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }130sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }130sc-network-sync = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }131sc-network-sync = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }131sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }132sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }180orml-tokens = { default-features = false , git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }181orml-tokens = { default-features = false, git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }181orml-traits = { default-features = false , git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }182orml-traits = { default-features = false, git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }182orml-vesting = { default-features = false , git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }183orml-vesting = { default-features = false, git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }184orml-xcm-support = { default-features = false, git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }183orml-xtokens = { default-features = false , git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }185orml-xtokens = { default-features = false, git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }184orml-xcm-support = { default-features = false , git = "https://github.com/uniquenetwork/open-runtime-module-library", branch = "polkadot-v0.9.42" }185186186# Other187# Other187derivative = { version = "2.2.0", features = ["use_core"] }188derivative = { version = "2.2.0", features = ["use_core"] }pallets/balances-adapter/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/pallets/balances-adapter/Cargo.toml
@@ -0,0 +1,13 @@
+[package]
+edition = "2021"
+license = "GPLv3"
+name = "pallet-balances-adapter"
+version = "0.1.0"
+
+[dependencies]
+
+[features]
+default = ["std"]
+std = []
+# stubgen = ["evm-coder/stubgen", "pallet-common/stubgen"]
+# try-runtime = ["frame-support/try-runtime"]
pallets/balances-adapter/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/balances-adapter/src/lib.rs
@@ -0,0 +1,14 @@
+pub fn add(left: usize, right: usize) -> usize {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }
+}
pallets/unique/Cargo.tomldiffbeforeafterboth--- a/pallets/unique/Cargo.toml
+++ b/pallets/unique/Cargo.toml
@@ -24,6 +24,7 @@
'frame-benchmarking/std',
'frame-support/std',
'frame-system/std',
+ 'pallet-balances-adapter/std',
'pallet-common/std',
'pallet-evm-coder-substrate/std',
'pallet-evm/std',
@@ -46,6 +47,7 @@
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
+pallet-balances-adapter = { workspace = true }
pallet-common = { workspace = true }
pallet-evm = { workspace = true }
pallet-evm-coder-substrate = { workspace = true }