-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Optimistic * Attester incentives module * Reverting typo * Tests attester-incentives * Adding test helper and lint * Lint * Adding tests * Finishing positive test * Refactor tests * Refactor tests * Adding negative test * Valid challenge * Invalid challenge * Adding unbonding tests * Lint fix * Lint * Make lint * Make lint * PR comments + fix tests * Lint * Fixing comments * Refactoring + finishing adding tests * Fix lint * Fix lint * Fixing PR comments * Fixing important comment * Fix nits * Fixing multi-attestation * Fixing nits * Fixing nits * Fixing lints * Fixing all comments PR
- Loading branch information
Showing
37 changed files
with
2,597 additions
and
131 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
37 changes: 37 additions & 0 deletions
37
module-system/module-implementations/sov-attester-incentives/Cargo.toml
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,37 @@ | ||
[package] | ||
name = "sov-attester-incentives" | ||
description = "A Sovereign SDK module for incentivizing provers" | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
repository = { workspace = true } | ||
rust-version = { workspace = true } | ||
version = { workspace = true } | ||
readme = "README.md" | ||
resolver = "2" | ||
|
||
[dev-dependencies] | ||
sov-rollup-interface = { path = "../../../rollup-interface", version = "0.1", features = ["mocks"] } | ||
sov-modules-api = { path = "../../sov-modules-api", version = "0.1" } | ||
tempfile = { workspace = true } | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
sov-bank = { path = "../sov-bank", version = "0.1", default-features = false } | ||
sov-chain-state = { path = "../sov-chain-state", version = "0.1", default-features = false } | ||
sov-modules-api = { path = "../../sov-modules-api", version = "0.1", default-features = false } | ||
sov-modules-macros = { path = "../../sov-modules-macros", version = "0.1" } | ||
sov-state = { path = "../../sov-state", version = "0.1", default-features = false } | ||
sov-rollup-interface = { path = "../../../rollup-interface", version = "0.1" } | ||
serde = { workspace = true } | ||
serde_json = { workspace = true, optional = true } | ||
thiserror = { workspace = true } | ||
jmt = { workspace = true } | ||
borsh = { workspace = true, features = ["rc"] } | ||
|
||
|
||
[features] | ||
default = ["native"] | ||
serde = ["dep:serde_json"] | ||
native = ["serde", "sov-modules-api/native"] |
8 changes: 8 additions & 0 deletions
8
module-system/module-implementations/sov-attester-incentives/README.md
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,8 @@ | ||
# Attester Incentive module | ||
|
||
**_This module is a placeholder for the logic incentivizing attesters and challengers. This is the full node implementation of the optimistic rollup workflow_** | ||
|
||
This module implements the logic for processing optimistic rollup attestations and challenges. Such | ||
logic is necessary if you want to reward attesters/challengers or do anything else that's "aware" of attestation and challenge generation inside you state transition function. | ||
|
||
This module now implements the complete attestion/challenge verification workflow, as well as the bonding and unbonding processes for attesters and challengers. |
Oops, something went wrong.