Skip to content

Commit

Permalink
Refactor salp (#179)
Browse files Browse the repository at this point in the history
* 🚧 ($PALLET) Refactor salp - contribute & contribution

* 🚧 ($PALLET) Refactor withdraw

* 🚧 ($PALLET) Add refund-pool

* 🚧 ($PALLET) Refactor salp - delete redeem-pool

* 🚧 ($PALLET) Refactor salp - delete useless code

* 🚧 ($PALLET) Refactor salp - fix compile error

* ✅ ($PALLET) Add/Update/Remove unit-tests

* ✅ ($PALLET) Add the unit-tests of refund

* 🐛 ($PALLET) Fix bug on refund

* ✨ ($PALLET) Refund can be called again after last refund is over

* ♻️ ($PALLET) Refactor contribution for auto unlock

* 🚧 ($PALLET) Refactor salp - refact redeem

* ♻️ ($PALLET) Complete the refactor of redeem

* 🎨 ($PALLET) Format salp

* 🐛 ($PALLET) Fix the potential bug in refund-pool&redeem-pool

* ✨ ($PALLET) Add unlock function

* 🎨 ($PALLET) Format code

* 🐛 ($PALLET) Add check for the balance of redeem-pool

* ✅ ($PALLET) Add the unit-tests of unlock&redeem

* 🐛 ($PALLET) Fix the bug of release from redeem to bancor

* ✅ ($PALLET) Add unit-tests for Hooks

* 🎨 ($PALLET) Format code

* 🔧 ($PALLET) Move dependencies

* 🔥 ($PALLET) Remove unused config

* 🚑 ($PALLET) Quick fix mock error

* minor fix

Co-authored-by: Edwin Wang <lark930@gmail.com>
  • Loading branch information
AllenPocketGamer and ark930 authored Jul 15, 2021
1 parent c0b30cc commit 63393b2
Show file tree
Hide file tree
Showing 6 changed files with 1,433 additions and 1,045 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ sp-session = { version = "3.0.0" }
sp-storage = { version = "3.0.0" }
sp-timestamp = { version = "3.0.0" }
sp-transaction-pool = { version = "3.0.0" }
substrate-prometheus-endpoint = { git = "https://github.com/paritytech/substrate", branch = "master" }

# Substrate Pallets
pallet-transaction-payment-rpc-runtime-api = { version = "3.0.0" }

# Substrate Other
frame-system-rpc-runtime-api = { version = "3.0.0" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.9.0" }
substrate-prometheus-endpoint = { version = "0.9.0" }

# Cumulus dependencies
cumulus-client-consensus-aura = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.8" }
Expand Down
5 changes: 2 additions & 3 deletions pallets/salp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ sp-runtime = { version = "3.0.0", default-features = false }
sp-arithmetic = { version = "3.0.0", default-features = false }
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.8", default-features = false }
xcm-support = { path = "../../xcm-support", default-features = false }
xcm-builder = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.8",default-features = false }
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.8",default-features = false }
orml-traits = { version = "0.4.1-dev", default-features = false }
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.8" }

[dev-dependencies]
xcm-builder = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.8" }
pallet-xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.8" }
sp-io = "3.0.0"
sp-core = "3.0.0"
orml-tokens = "0.4.1-dev"
Expand All @@ -40,7 +40,6 @@ std = [
"sp-arithmetic/std",
"orml-traits/std",
"xcm/std",
"xcm-builder/std",
"xcm-support/std",
"polkadot-parachain/std",
]
Expand Down
Loading

0 comments on commit 63393b2

Please sign in to comment.