Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
dApps staking v3 - part 1 (#155)
Browse files Browse the repository at this point in the history
* dApps staking v3 - inception

* First ext call wip

* Register & reward_dest implemented

* Reward beneficiary & owner changes

* Remove register deposit

* UNregister & various minor improvements

* Progress towards lock

* Lock progress

* Lock progress

* Lock implemented & some code improvements

* PR comments

* Tests & some changes

* Additional UTs

* Lock tests

* PR comments

* Introduce types

* Update frame/dapp-staking-v3/src/lib.rs

Co-authored-by: Shaun Wang <[email protected]>

* Address PR review comments

---------

Co-authored-by: Shaun Wang <[email protected]>
  • Loading branch information
Dinonard and shaunxw authored Jun 14, 2023
1 parent 05f125b commit a3d4ac9
Show file tree
Hide file tree
Showing 9 changed files with 1,682 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ members = [
"frame/collator-selection",
"frame/custom-signatures",
"frame/dapps-staking",
"frame/dapp-staking-v3",
"frame/pallet-xcm",
"frame/pallet-xvm",
"frame/xc-asset-config",
Expand Down
42 changes: 42 additions & 0 deletions frame/dapp-staking-v3/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "pallet-dapp-staking-v3"
version = "0.0.1-alpha"
description = "Pallet for dApp staking v3 protocol"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true

[dependencies]
frame-support = { workspace = true }
frame-system = { workspace = true }
num-traits = { workspace = true }
parity-scale-codec = { workspace = true }

scale-info = { workspace = true }
serde = { workspace = true, optional = true }
sp-arithmetic = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

[dev-dependencies]
pallet-balances = { workspace = true }

[features]
default = ["std"]
std = [
"serde",
"parity-scale-codec/std",
"scale-info/std",
"num-traits/std",
"sp-core/std",
"sp-runtime/std",
"sp-arithmetic/std",
"sp-io/std",
"sp-std/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
]
Loading

0 comments on commit a3d4ac9

Please sign in to comment.