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

feat: Implement submit_windowed_post extrinsic #113

Merged
merged 90 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
3c1572e
feat: Implement submit_windowed_post extrinsic
aidan46 Jul 3, 2024
cc63d91
fix: Add stub PoSt proof validation
aidan46 Jul 5, 2024
0e1b776
Merge remote-tracking branch 'origin/develop' into feat-74-storage-pr…
aidan46 Jul 11, 2024
64e5fbb
Merge remote-tracking branch 'origin/develop' into feat-74-storage-pr…
aidan46 Jul 11, 2024
ee342d2
test: Add test-case for succes PoSt submission
aidan46 Jul 11, 2024
2acf3ce
feat: Add submit_windowed_post extrinsic
aidan46 Jul 15, 2024
1826fb4
Merge remote-tracking branch 'origin/develop' into feat-74-storage-pr…
aidan46 Jul 17, 2024
7f8e785
feat: Add deadline assignment
aidan46 Jul 19, 2024
5f3df95
test: Add state check for PoSt submission
aidan46 Jul 22, 2024
6d1c94d
Merge branch 'develop' into feat-74-storage-provider-pallet-proof-of-…
aidan46 Jul 22, 2024
93d54d1
docs: Update comment formatting
aidan46 Jul 24, 2024
d41c758
docs: Add comments to DeadlineInfo
aidan46 Jul 24, 2024
c7d7100
docs: Add comment to record_proven fn
aidan46 Jul 24, 2024
144eb11
docs: Add pre-cond comment to add sector function
aidan46 Jul 24, 2024
25e2f3e
fix: Use WPoStPeriodDeadlines constant
aidan46 Jul 24, 2024
0d26da8
fix: Add logs to failing deadline construction
aidan46 Jul 24, 2024
bae69de
fix: Add 'at' suffix to open and close variable in deadline info
aidan46 Jul 24, 2024
5d83c2a
fix: Spelling in log
aidan46 Jul 24, 2024
439fa28
fix: Add logs to deadline validation
aidan46 Jul 24, 2024
bdde418
fix: Remove unused function
aidan46 Jul 24, 2024
bdf8917
fix: Add reference to cmp fn
aidan46 Jul 24, 2024
9adf34d
fix: Replace trait bound with where clauses
aidan46 Jul 25, 2024
0c2f0e8
fix: Remove simplified types in partitions
aidan46 Jul 25, 2024
4c6896d
fix: Remove simplified types in deadlines
aidan46 Jul 25, 2024
212359f
fix: Replace for_each function with iterator call
aidan46 Jul 25, 2024
930f490
fix: Add error logging to sector number validation
aidan46 Jul 25, 2024
342e8d7
docs: Add docs to recovered and faulty fields in partition
aidan46 Jul 25, 2024
1521edf
fix: Remove unused function argument
aidan46 Jul 25, 2024
125a8f5
docs: Update deadline comments
aidan46 Jul 25, 2024
b6750a4
fix: Move deadline_is_mutable to deadline.rs
aidan46 Jul 25, 2024
38e12f7
fix: Move proving period start calc outside for_each
aidan46 Jul 25, 2024
5faacf5
fix: Simplify logic in DeadlineInfo constructor function
aidan46 Jul 25, 2024
7087d89
docs: Add docs to deadline validation
aidan46 Jul 25, 2024
c16678e
fix: Simplify sector num duplicate check
aidan46 Jul 25, 2024
5083f82
fix: Increase MAX_PARTITIONS_PER_DEADLINE value
aidan46 Jul 25, 2024
e59a657
docs: Add todo for partition helper methods
aidan46 Jul 25, 2024
c3359f8
Merge remote-tracking branch 'origin/develop' into feat-74-storage-pr…
aidan46 Jul 25, 2024
4000823
fix: Simplify partitions iteration
aidan46 Jul 25, 2024
8360802
fix: Use div_ceil over custom div rounding function
aidan46 Jul 25, 2024
81f7617
docs: Add docs to PoSt validation fn
aidan46 Jul 25, 2024
577f080
fix: Remove update_deadline fn
aidan46 Jul 25, 2024
91e50f9
fix: Remove unused function in partition
aidan46 Jul 25, 2024
3ce7110
fix: Only insert partition when creating a new one
aidan46 Jul 25, 2024
d58567d
fix: Add comment to getting partition while adding sectors
aidan46 Jul 25, 2024
e39e639
fix: Remove SP getter only used in self
aidan46 Jul 25, 2024
d3e9667
fix: Use BlockNumber trait bound to reduce number of trait
aidan46 Jul 26, 2024
c7f9948
fix: Use split_at function over indexing array
aidan46 Jul 26, 2024
0a68e98
docs: Update docs for next_not_elapsed
aidan46 Jul 26, 2024
973883e
test: Add unit test for deadline assignment
aidan46 Jul 26, 2024
ca2779c
docs: Update comment for next_not_elapsed
aidan46 Jul 26, 2024
ea1f8c2
docs: Add additional docs to DeadlineInfo
aidan46 Jul 26, 2024
6f3869b
fix: Modify looping logic in add_sectors
aidan46 Jul 26, 2024
17f044f
Update pallets/storage-provider/src/proofs.rs
aidan46 Jul 26, 2024
3ac4f24
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
60d6a56
Update pallets/storage-provider/src/partition.rs
aidan46 Jul 26, 2024
bf2789a
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
855a8eb
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
e715ebb
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
99de62c
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
643eaac
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
ce2065f
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
83923ec
Update pallets/storage-provider/src/deadline/assignment.rs
aidan46 Jul 26, 2024
18996c2
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 26, 2024
ccd0fd9
Update pallets/storage-provider/src/deadline/assignment.rs
aidan46 Jul 26, 2024
63cf65a
Update pallets/storage-provider/src/lib.rs
aidan46 Jul 26, 2024
cac2aea
Update pallets/storage-provider/src/lib.rs
aidan46 Jul 26, 2024
1d4a5d3
Update pallets/storage-provider/src/partition.rs
aidan46 Jul 26, 2024
0b7728a
fix: Remove irrelevant comment
aidan46 Jul 26, 2024
0b02ce6
format: Run cargo fmt
aidan46 Jul 26, 2024
583b520
docs: Add docs to is_full_now in deadline assignment
aidan46 Jul 26, 2024
f55c046
fix: Remove check_sector_number_duplicate fn
aidan46 Jul 26, 2024
b79b0e2
docs: Update comment for PoSt params type
aidan46 Jul 26, 2024
a2c98a9
fix: Add expect to infallable operation
aidan46 Jul 26, 2024
ab475b3
fix: Replace Vec with BoundedVec for sector deadline assignment
aidan46 Jul 26, 2024
8f3df9a
docs: Add additional docs to deadline expiration_blocks
aidan46 Jul 26, 2024
5b3ecb8
style: cargo fmt
jmg-duarte Jul 26, 2024
a9bd02a
test: Fix deadline assignment unit test
aidan46 Jul 28, 2024
aa5259a
fix: Optimize filling up partitions
aidan46 Jul 28, 2024
63629f5
fix: Remove default from seal proof type
aidan46 Jul 28, 2024
8fd50b6
format: Run cargo fmt
aidan46 Jul 29, 2024
b427f25
fix: Use alloc BinaryHeap
aidan46 Jul 29, 2024
fd2a8b6
format: Run cargo fmt
aidan46 Jul 29, 2024
89659f9
fix: Use alloc collections
aidan46 Jul 29, 2024
826a53f
Update pallets/storage-provider/src/deadline.rs
aidan46 Jul 29, 2024
e2b53f9
docs: Move important not for deadline
aidan46 Jul 29, 2024
25519a1
fix: Add failures to add_sectors functions
aidan46 Jul 29, 2024
c409359
docs: Add docs to DeadlineAssignment functions
aidan46 Jul 29, 2024
15d202d
docs: Add docs about retrieving sector expiry info
aidan46 Jul 29, 2024
4ed68dd
format: Run cargo fmt
aidan46 Jul 29, 2024
d7f2977
fix: Remove duplicate env_logger init
aidan46 Jul 29, 2024
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
2 changes: 1 addition & 1 deletion pallets/storage-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ primitives-proofs = { workspace = true, default-features = false }
scale-info = { workspace = true, default-features = false, features = ["derive"] }
sp-arithmetic = { workspace = true, default-features = false }
sp-core = { workspace = true, default-features = false }
sp-runtime = { workspace = true, default-features = false }

# Frame deps
frame-benchmarking = { workspace = true, default-features = false, optional = true }
Expand All @@ -34,7 +35,6 @@ multihash-codetable = { workspace = true, features = ["blake2b"] }
pallet-balances = { workspace = true, default-features = false }
pallet-market = { workspace = true, default-features = false }
sp-io = { workspace = true }
sp-runtime = { workspace = true, default-features = false }

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