Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
26e5b8a
feat: add SubmissionsV1 and related storage for queuing prunes
tlovell-sxt Nov 17, 2025
82fcb2f
feat: add constants for boudning/pruning batches to pallet-indexing
tlovell-sxt Nov 18, 2025
81beb9c
fix: define constants for pallet-indexing tests
tlovell-sxt Nov 18, 2025
8a5e84f
fix: define constants in runtime
tlovell-sxt Nov 18, 2025
f8904c3
feat: add VARIANT_COUNT constant to QuorumScope
tlovell-sxt Nov 19, 2025
a1513eb
fix: use u32s in BatchQueue storage items instead of u64s
tlovell-sxt Nov 19, 2025
a19b1a7
feat: add functions for managing batch queue
tlovell-sxt Nov 19, 2025
b75c58b
feat: add Heavy monad for tracking weights
tlovell-sxt Nov 20, 2025
89ac90c
feat: prune old submissions with Heavy logic
tlovell-sxt Nov 20, 2025
9942e5b
feat: use new submissions map in pallet-indexing logic
tlovell-sxt Nov 21, 2025
776c56f
fix: set new pallet-indexing constants in smartcontracts mock runtime
tlovell-sxt Nov 21, 2025
4715836
fix: don't panic out of an abundance of caution
tlovell-sxt Nov 21, 2025
736769e
feat: remove old submissions getter (force compilation failures where…
tlovell-sxt Nov 21, 2025
689f7a0
feat: make SubmissionsV1 be an OptionQuery
tlovell-sxt Nov 21, 2025
da7773a
fix: adjust existing tests for new submissions storage
tlovell-sxt Nov 21, 2025
2f94966
feat: populate BatchQueue for new batches
tlovell-sxt Nov 22, 2025
f5d035e
test: add tests for BatchQueue functionality
tlovell-sxt Nov 22, 2025
f403d34
docs: document the batch queue pruning functions
tlovell-sxt Nov 25, 2025
7a516ec
fix: max-out at 4 * max_submitters for the removal_limit
tlovell-sxt Nov 25, 2025
d50069d
fix: manually iterate/remove instead of using clear for submissions v0
tlovell-sxt Nov 26, 2025
c0eab0a
fix: just set removal_limit to unwrap_or_Default
tlovell-sxt Nov 26, 2025
ccb4ab7
feat: derive Hash for TableIdentifier
tlovell-sxt Nov 26, 2025
022cf71
test: depend on proptest/proof-of-sql/sqlparser in pallet-indexing tests
tlovell-sxt Nov 26, 2025
2722829
test: write some tests for batch queue pruning
tlovell-sxt Nov 26, 2025
a6bc27f
fix: use a different check for submissions v1 batch existence that do…
tlovell-sxt Dec 1, 2025
0e0a045
test: more thorough prune testing for pallet-indexing
tlovell-sxt Dec 1, 2025
dd3e735
docs: add docs w/ doctests to Heavy module
tlovell-sxt Dec 2, 2025
56f1055
test: check that events are emitted for pruning appropriately
tlovell-sxt Dec 2, 2025
0e4939a
test: decrement MaxBatchesFindingQuorum to 5 for mock runtime
tlovell-sxt Dec 2, 2025
e44e04f
test: add test for summing heavys
tlovell-sxt Dec 2, 2025
9893a8b
docs: add documentation for new pallet-indexing items
tlovell-sxt Dec 2, 2025
5c2138d
test: document new test helpers in pallet-indexing
tlovell-sxt Dec 2, 2025
c7b3566
fix: only derive Hash for TableIdentifier if std
tlovell-sxt Dec 2, 2025
d794716
feat: prune 100 submissions at a time in runtime settings
tlovell-sxt Dec 2, 2025
3165cb9
fix: address clippy issues in heavy module
tlovell-sxt Dec 2, 2025
667372e
fix: update sxt_chain_runtime
tlovell-sxt Dec 2, 2025
47a9380
fix: address clippy issues in pallet-indexing
tlovell-sxt Dec 2, 2025
3f4911b
test: address clippy issues in pallet-indexing tests
tlovell-sxt Dec 2, 2025
4d61ffb
test: address clippy issue in heavy test
tlovell-sxt Dec 2, 2025
ee024b7
fix: update pallet-indexing weights
tlovell-sxt Dec 3, 2025
dbfda7b
fix: update AVERAGE_INSERT_CALL_WEIGHT after recalculating pallet-ind…
tlovell-sxt Dec 3, 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
4 changes: 4 additions & 0 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions pallets/indexing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ postcard.workspace = true
proof-of-sql-static-setups = { workspace = true, features = ["io"], optional = true }
on-chain-table = { workspace = true, default-features = false }
proof-of-sql-commitment-map = { workspace = true, optional = true }
itertools.workspace = true

[dev-dependencies]
sp-staking.workspace = true
Expand All @@ -53,6 +54,11 @@ native.workspace = true
arrow.workspace = true
proof-of-sql-commitment-map.workspace = true
pallet-zkpay.workspace = true
proptest.workspace = true
proof-of-sql.workspace = true
on-chain-table = { workspace = true, features = ["proptest"] }
sqlparser.workspace = true


[features]
default = ["std"]
Expand Down
Loading