-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pallet layout * open stream + update logic * close stream + events * refill + change rate * adapter for fungible impl * rework pallet to not use fungibles traits * mock + some tests * more tests * refactor stream to prepare improved change requests * refactor + allow to request bigger changes * crate doc * clippy + skip 0 payment + prevent funds stuck on overflow * payment == deposit => drained * cleanup tests * rework deposit change + finish config change * update tests * wip bench * fmt * switch to holds * merge change_deposit into request_change/accept_requested_change + cancel_change_request * cleanup tests * more tests * update last_time_updated when changing time unit * refactor possible immediate change * immediate deposit change * more tests * fix CI * support deadline in past * for benches (wip) * fix rustfmt issue * mock ready for running benchmarks as tests * all benches and weights * fmt * update docs * add pallet to flashbox * typescript api * add integration tests * fix test * fmt * clippy --------- Co-authored-by: girazoki <[email protected]>
- Loading branch information
Showing
35 changed files
with
6,603 additions
and
837 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[package] | ||
name = "pallet-stream-payment" | ||
authors = { workspace = true } | ||
description = "Stream payment pallet" | ||
edition = "2021" | ||
license = "GPL-3.0-only" | ||
version = "0.1.0" | ||
|
||
[package.metadata.docs.rs] | ||
targets = [ "x86_64-unknown-linux-gnu" ] | ||
|
||
[dependencies] | ||
log = { workspace = true } | ||
serde = { workspace = true, optional = true } | ||
|
||
dp-core = { workspace = true } | ||
tp-maths = { workspace = true } | ||
tp-traits = { workspace = true } | ||
|
||
# Substrate | ||
frame-benchmarking = { workspace = true, optional = true } | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
parity-scale-codec = { workspace = true } | ||
scale-info = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-std = { workspace = true } | ||
|
||
[dev-dependencies] | ||
num-traits = { workspace = true } | ||
pallet-balances = { workspace = true, features = [ "std" ] } | ||
similar-asserts = { workspace = true } | ||
sp-io = { workspace = true, features = [ "std" ] } | ||
tap = { workspace = true } | ||
|
||
[features] | ||
default = [ "std" ] | ||
std = [ | ||
"dp-core/std", | ||
"frame-benchmarking/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"log/std", | ||
"pallet-balances/std", | ||
"parity-scale-codec/std", | ||
"scale-info/std", | ||
"serde", | ||
"serde?/std", | ||
"sp-core/std", | ||
"sp-io/std", | ||
"sp-runtime/std", | ||
"sp-std/std", | ||
"tp-maths/std", | ||
"tp-traits/std", | ||
] | ||
runtime-benchmarks = [ | ||
"frame-benchmarking", | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"pallet-balances/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"tp-maths/runtime-benchmarks", | ||
"tp-traits/runtime-benchmarks", | ||
] |
Oops, something went wrong.