Skip to content

Commit

Permalink
feat(emissions): impl linear rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
saiintbrisson committed Dec 21, 2024
1 parent 1d642c1 commit 4c11989
Show file tree
Hide file tree
Showing 22 changed files with 1,808 additions and 86 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ concurrency:

jobs:
check:
runs-on: ubuntu-22.04-32core-karl
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

Expand Down
19 changes: 17 additions & 2 deletions Cargo.lock

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

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [
"node",
"runtime",
"pallets/*",
"pallets/**/api",
"pallets/*/api",
"test-utils",
"xtask",
]
Expand All @@ -20,14 +20,17 @@ torus-runtime = { path = "./runtime", default-features = false }
pallet-governance = { path = "./pallets/governance", default-features = false }
pallet-governance-api = { path = "./pallets/governance/api", default-features = false }
pallet-torus0 = { path = "./pallets/torus0", default-features = false }
pallet-emission0 = { path = "./pallets/emission0", default-features = false }

pallet-torus0-api = { path = "./pallets/torus0/api", default-features = false }

test-utils.path = "./test-utils"

# Substrate
codec = { package = "parity-scale-codec", version = "3.6.12", default-features = false }
scale-info = { version = "2.11.1", default-features = false }

polkadot-sdk = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2409", default-features = false }
substrate-fixed = { git = "https://github.com/encointer/substrate-fixed.git", branch = "master", default-features = false }

# Frontier
fc-api = { git = "https://github.com/paritytech/frontier.git", rev = "b9b1c620c8b418bdeeadc79725f9cfa4703c0333" }
Expand All @@ -52,8 +55,6 @@ pallet-evm-precompile-modexp = { git = "https://github.com/paritytech/frontier.g
pallet-evm-precompile-sha3fips = { git = "https://github.com/paritytech/frontier.git", rev = "b9b1c620c8b418bdeeadc79725f9cfa4703c0333", default-features = false }
pallet-evm-precompile-simple = { git = "https://github.com/paritytech/frontier.git", rev = "b9b1c620c8b418bdeeadc79725f9cfa4703c0333", default-features = false }

substrate-fixed = { git = "https://github.com/encointer/substrate-fixed", default-features = false }

# CLI-specific dependencies
clap = { version = "4.5.22", features = ["derive"] }
serde_json = { version = "1.0", default-features = false }
Expand Down
19 changes: 17 additions & 2 deletions pallets/emission0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@ edition.workspace = true

[features]
default = ["std"]
std = ["codec/std", "polkadot-sdk/std", "scale-info/std"]
std = [
"codec/std",
"polkadot-sdk/std",
"scale-info/std",
"substrate-fixed/std",
"pallet-torus0-api/std",
]
runtime-benchmarks = ["polkadot-sdk/runtime-benchmarks"]
try-runtime = ["polkadot-sdk/try-runtime"]

[dependencies]
codec = { workspace = true, features = ["derive"] }
scale-info = { workspace = true, features = ["derive"] }
polkadot-sdk = { workspace = true, features = ["experimental", "runtime"] }
polkadot-sdk = { workspace = true, features = [
"experimental",
"runtime",
"sc-telemetry",
] }
substrate-fixed.workspace = true

pallet-torus0-api.workspace = true
Loading

0 comments on commit 4c11989

Please sign in to comment.