Skip to content

Commit

Permalink
Multiple faucets with whitelist and KSM deposit (#319)
Browse files Browse the repository at this point in the history
* implement multiple faucets

* implement reserve amount

* implement faucet reserve

* add check for valid cids in whitelist

* add logs on events

* add logs in reputation-commitments pallet

* fix logger import

* taplo fmt

* add check drip_amount > ED

* remove redundant check for faucet exists

* allow close faucet with balance < 2*drip_amount

* remove duplicate import
  • Loading branch information
pifragile committed Jun 6, 2023
1 parent 6266ad6 commit fa9f7b3
Show file tree
Hide file tree
Showing 9 changed files with 1,013 additions and 214 deletions.
163 changes: 91 additions & 72 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ log = { version = "0.4.14", default-features = false }
scale-info = { version = "2.0.1", default-features = false }

# local deps
encointer-communities = { package = "pallet-encointer-communities", path = "../communities", default-features = false }
encointer-primitives = { path = "../primitives", default-features = false }
encointer-reputation-commitments = { package = "pallet-encointer-reputation-commitments", path = "../reputation-commitments", default-features = false }

# substrate deps
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
pallet-treasury = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
sp-core = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
sp-runtime = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
sp-std = { version = "5.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" }
Expand All @@ -34,13 +36,15 @@ std = [
"log/std",
"scale-info/std",
# local deps
"encointer-communities/std",
"encointer-primitives/std",
"encointer-reputation-commitments/std",
# substrate deps
"frame-support/std",
"frame-system/std",
"sp-std/std",
"sp-runtime/std",
"pallet-treasury/std",
]

runtime-benchmarks = ["frame-benchmarking", "approx"]
Expand Down

0 comments on commit fa9f7b3

Please sign in to comment.