Skip to content

Commit

Permalink
feat: add changelogs and readmes (#192)
Browse files Browse the repository at this point in the history
* feat(all): add changelogs to all crates missing

* feat: update TOML files and changelogs for first agents release

* feat(docs): add readmes to agents + RUNNING-AGENTS.md

* feat(docs): add AGENT-OPERATIONS.md

* feat(docs): adds RUNNING-WATCHER.md

* docs(watcher): explain watcher funding amounts:

* fix(docs): add linebreak

* feat(docs): port agent gas values to configuration/gas

* fix(docs): remove all doc file ports

* fix(docs): remove refs to running agents docs in agent readmes

* fix(docs): only link repos to root
  • Loading branch information
luketchang authored Jun 6, 2022
1 parent bad5648 commit 952f150
Show file tree
Hide file tree
Showing 22 changed files with 138 additions and 8 deletions.
5 changes: 5 additions & 0 deletions accumulator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
3 changes: 1 addition & 2 deletions accumulator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ version = "0.1.0"
edition = "2021"
authors = ["James Prestwich <[email protected]>", "The Nomad Developers <[email protected]>"]
description = "Nomad sparse merle tree"
repository = "https://github.com/nomad-xyz/rust/accumulator"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"

exclude = [
"*.sh",
".git*"
Expand Down
5 changes: 5 additions & 0 deletions agents/kathy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
9 changes: 8 additions & 1 deletion agents/kathy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
name = "kathy"
version = "0.1.0"
authors = ["James Prestwich <james@prestwi.ch>"]
authors = ["James Prestwich <james@nomad.xyz>", "Luke Tchang <[email protected]>"]
edition = "2021"
description = "Nomad kathy agent"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
".git*"
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions agents/kathy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Kathy Agent

Kathy is strictly used in development and staging environments for testing purposes. The role of kathy is to enqueue randomly generated cross-chain messages to the home contract.
5 changes: 5 additions & 0 deletions agents/processor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
9 changes: 8 additions & 1 deletion agents/processor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
name = "processor"
version = "0.1.0"
authors = ["anna-caroll <[email protected]>"]
authors = ["Luke Tchang <[email protected]>", "James Prestwich <[email protected]>"]
edition = "2021"
description = "Nomad processor agent"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
".git*"
]

[dependencies]
tokio = { version = "1.0.1", features = ["rt", "macros"] }
Expand Down
12 changes: 12 additions & 0 deletions agents/processor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Processor Agent

The processor proves the validity of pending messages and sends them to end recipients.

It is an off-chain actor that does the following:

- Observe the home
- Maintain local merkle tree with all leaves
- Observe 1 or more replicas
- Maintain list of messages corresponding to each leaf
- Generate and submit merkle proofs for pending (unproven) messages
- Dispatch proven messages to end recipients
5 changes: 5 additions & 0 deletions agents/relayer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
9 changes: 8 additions & 1 deletion agents/relayer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
name = "relayer"
version = "0.1.0"
authors = ["ltchang <[email protected]>"]
authors = ["Luke Tchang <[email protected]>", "James Prestwich <[email protected]>"]
edition = "2021"
description = "Nomad relayer agent"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
".git*"
]

[dependencies]
tokio = { version = "1.0.1", features = ["rt", "macros"] }
Expand Down
10 changes: 10 additions & 0 deletions agents/relayer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Relayer Agent

The relayer forwards updates from the home to one or more replicas.

It is an off-chain actor that does the following:

- Observe the home
- Observe 1 or more replicas
- Polls home for new signed updates (since replica's current root) and submits them to replica
- Polls replica for confirmable updates (that have passed their optimistic time window) and confirms if available (updating replica's current root)
5 changes: 5 additions & 0 deletions agents/updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
9 changes: 8 additions & 1 deletion agents/updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
name = "updater"
version = "0.1.0"
authors = ["James Prestwich <[email protected]>"]
authors = ["James Prestwich <[email protected]>", "Luke Tchang <[email protected]>"]
edition = "2021"
description = "Nomad updater agent"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
".git*"
]

[dependencies]
tokio = { version = "1.0.1", features = ["rt", "macros"] }
Expand Down
9 changes: 9 additions & 0 deletions agents/updater/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Updater Agent

The updater is responsible for signing attestations of new roots.

It is an off-chain actor that does the following:

- Observe the home chain contract
- Sign attestations to new roots
- Publish the signed attestation to the home chain
5 changes: 5 additions & 0 deletions agents/watcher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
9 changes: 8 additions & 1 deletion agents/watcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[package]
name = "watcher"
version = "0.1.0"
authors = ["Luke Tchang <[email protected]>"]
authors = ["Luke Tchang <[email protected]>", "James Prestwich <[email protected]>"]
edition = "2021"
description = "Nomad watcher agent"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
".git*"
]

[dependencies]
tokio = { version = "1.0.1", features = ["rt", "macros"] }
Expand Down
12 changes: 12 additions & 0 deletions agents/watcher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Watcher Agent

The watcher observes the Updater's interactions with the Home contract (by watching the Home contract) and reacts to malicious or faulty attestations. It also observes any number of replicas to ensure the Updater does not bypass the Home and go straight to a replica.

It is an off-chain actor that does the following:

- Observe the home
- Observe 1 or more replicas
- Maintain a DB of seen updates
- Submit double-update proofs
- Submit invalid update proofs
- If configured, issue an emergency halt transaction
5 changes: 5 additions & 0 deletions chains/nomad-ethereum/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
2 changes: 1 addition & 1 deletion configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0-rc.24"
edition = "2021"
authors = ["James Prestwich <[email protected]>", "The Nomad Developers <[email protected]>"]
description = "Nomad project configuration file utilities"
repository = "https://github.com/nomad-xyz/rust/configuration"
repository = "https://github.com/nomad-xyz/rust"
license = "MIT OR Apache-2.0"
exclude = [
"*.sh",
Expand Down
5 changes: 5 additions & 0 deletions nomad-base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
5 changes: 5 additions & 0 deletions nomad-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog
5 changes: 5 additions & 0 deletions nomad-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

### Unreleased

- adds a changelog

0 comments on commit 952f150

Please sign in to comment.