Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Commitments Pallet #1354

Merged
merged 35 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6d1668d
initial tlock commitments impl
JohnReedV Feb 26, 2025
b9d69ca
Update tests.rs
JohnReedV Feb 26, 2025
6938c1a
fmt
JohnReedV Feb 26, 2025
3f3c0e0
refactor timelock commitments
JohnReedV Feb 27, 2025
3c6bf20
add reveal_timelocked_commitments to block_step
JohnReedV Mar 1, 2025
c7bcf7d
add basic commitments tetsts
JohnReedV Mar 3, 2025
f95ca64
restructure commitments pallet
JohnReedV Mar 3, 2025
be5bf5e
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 3, 2025
423fe2c
tlock commitments unit tests
JohnReedV Mar 3, 2025
3c8d3de
zepter
JohnReedV Mar 3, 2025
4a2b298
address lints
JohnReedV Mar 3, 2025
1f3fb77
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 4, 2025
0872889
add import
JohnReedV Mar 4, 2025
7e76fb1
handle multiple fields
JohnReedV Mar 4, 2025
937368a
only iterate over timelocked commitments in reveal
JohnReedV Mar 4, 2025
99b5a28
remove block_number param
JohnReedV Mar 6, 2025
af779f8
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 6, 2025
f115be2
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 11, 2025
5cc2355
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 12, 2025
20bf502
fix merge
JohnReedV Mar 12, 2025
4b237ea
use space based rate limit per subnet tempo
JohnReedV Mar 13, 2025
5e70dc1
clippy
JohnReedV Mar 13, 2025
b441d87
fix `required_space`
JohnReedV Mar 13, 2025
c94ea1f
add tests
JohnReedV Mar 13, 2025
501baa2
clippy
JohnReedV Mar 13, 2025
2376741
revert unneeded
JohnReedV Mar 13, 2025
a0b33c7
revert unneeded change
JohnReedV Mar 13, 2025
c1236c6
rename set_max_space
JohnReedV Mar 14, 2025
2b9a90f
add test for reveal in blockstep
JohnReedV Mar 14, 2025
a245655
fmt
JohnReedV Mar 14, 2025
b0eb8bb
commitments data limit follows tempo exactly
JohnReedV Mar 14, 2025
c1015da
fix mock
JohnReedV Mar 14, 2025
38a2fc1
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 20, 2025
f3a108f
Merge branch 'devnet-ready' into tlock-commitments
JohnReedV Mar 21, 2025
187ed94
mark deprecated items
JohnReedV Mar 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Cargo.lock

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

31 changes: 28 additions & 3 deletions pallets/commitments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ sp-runtime = { workspace = true }
sp-std = { workspace = true }
enumflags2 = { workspace = true }

pallet-drand = { path = "../drand", default-features = false }
tle = { workspace = true, default-features = false }
ark-serialize = { workspace = true, default-features = false }
w3f-bls = { workspace = true, default-features = false }
rand_chacha = { workspace = true }
hex = { workspace = true }
sha2 = { workspace = true }

log = { workspace = true }

pallet-subtensor = { path = "../subtensor", default-features = false }

[dev-dependencies]
sp-core = { workspace = true }
sp-io = { workspace = true }
Expand All @@ -47,18 +59,31 @@ std = [
"enumflags2/std",
"pallet-balances/std",
"sp-core/std",
"sp-io/std"
"sp-io/std",
"ark-serialize/std",
"log/std",
"pallet-drand/std",
"tle/std",
"w3f-bls/std",
"hex/std",
"rand_chacha/std",
"sha2/std",
"pallet-subtensor/std"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pallet-balances/runtime-benchmarks"
"pallet-balances/runtime-benchmarks",
"pallet-drand/runtime-benchmarks",
"pallet-subtensor/runtime-benchmarks"
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
"pallet-drand/try-runtime",
"pallet-subtensor/try-runtime"
]
Loading
Loading