Skip to content

Commit

Permalink
feat(theoros): Shared state for events (#9)
Browse files Browse the repository at this point in the history
* feat(theoros_remove_db): Remove db stuff

* feat(theoros_remove_db): Shared state for events

* feat(theoros_remove_db): Clean services, MadaraTM

* feat(theoros_remove_db):

* feat(theoros_remove_db): lintttt

* feat(theoros_remove_db): meh

* feat(theoros_remove_db): nit

* feat(theoros_remove_db): rustdoc

* feat(theoros_remove_db): Indexer log

* feat(theoros_remove_db): Fixed double clone

* feat(theoros_remove_db): metrics page

* feat(theoros_remove_db): readme

* feat(theoros_remove_db): utils -> pragma_utils

* feat(theoros_remove_db): Updated workspace

* feat(theoros_remove_db): Last nit 💀

* feat(theoros_remove_db): Unwraps killed + unstable features

* feat(theoros_remove_db): Removed parking_lot and used tokio - better for async context
  • Loading branch information
akhercha authored Aug 28, 2024
1 parent 1ff5e3b commit aa070fa
Show file tree
Hide file tree
Showing 37 changed files with 322 additions and 562 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target
openapi.json
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@
[license]: https://www.apache.org/licenses/LICENSE-2.0
[license-badge]: https://img.shields.io/badge/License-Apache-blue.svg

## CLI
## Rust

<a href="./cli/">Pragma CLI</a>
<a href="./rust/pragma-cli/">Pragma CLI</a>

CLI used to interact with the Pragma protocol.

- Register yourself as a data provider
- Schedule new data feeds
- Connect pragma to your protocol

<a href="./rust/theoros/">Theoros</a>

Request the API to construct the calldata necessary for cross-chain updates.

- Listens for live data feeds update
- Retrieves the signatures of the Hyperlane Validators
- Constructs the calldata for data feeds requested through HTTP/WebSocket

## Solidity

<a href="./solidity/">Solidity SDK</a>
Expand Down
4 changes: 2 additions & 2 deletions monorepo.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"name": "pragma-cli",
},
{
"path": "rust/utils",
"name": "utils",
"path": "rust/pragma-utils",
"name": "pragma-utils",
},
{
"path": "solidity",
Expand Down
211 changes: 20 additions & 191 deletions rust/Cargo.lock

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

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["pragma-cli", "theoros"]
members = ["pragma-cli", "theoros", "pragma-utils"]

[workspace.package]
version = "0.1.0"
Expand Down
3 changes: 1 addition & 2 deletions rust/pragma-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bollard = { workspace = true }
clap = { workspace = true }
dirs = { workspace = true }
env_logger = { workspace = true }
# TODO: alloy
alloy = { workspace = true }
eyre = { workspace = true }
futures-util = { workspace = true }
Expand All @@ -35,4 +34,4 @@ toml = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }

utils = { path = "../utils" }
pragma-utils = { path = "../pragma-utils" }
2 changes: 1 addition & 1 deletion rust/pragma-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use clap::{Parser, Subcommand};
use pragma_utils::tracing::init_tracing;
use tracing::Level;
use utils::tracing::init_tracing;

use pragma_cli::{
cli::{
Expand Down
Loading

0 comments on commit aa070fa

Please sign in to comment.