-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split command line into separte module
- Loading branch information
1 parent
e0d7d11
commit ab6d3a1
Showing
69 changed files
with
551 additions
and
422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ members = [ | |
"rate-counter", | ||
"redis-rate-limiter", | ||
"web3_proxy", | ||
"web3_proxy_cli", | ||
] | ||
resolver = "2" | ||
|
||
|
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
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,34 @@ | ||
pub use anyhow; | ||
pub use argh; | ||
pub use chrono; | ||
pub use entities; | ||
pub use ethers; | ||
pub use ethers::prelude::rand; | ||
pub use fdlimit; | ||
pub use futures; | ||
pub use glob; | ||
pub use hashbrown; | ||
pub use http; | ||
pub use influxdb2; | ||
pub use migration; | ||
pub use migration::sea_orm; | ||
pub use moka; | ||
pub use num; | ||
pub use ordered_float; | ||
pub use pagerduty_rs; | ||
pub use parking_lot; | ||
pub use rdkafka; | ||
pub use reqwest; | ||
pub use rmp_serde; | ||
pub use rust_decimal; | ||
pub use sentry; | ||
pub use sentry_tracing; | ||
pub use serde; | ||
pub use serde_inline_default; | ||
pub use serde_json; | ||
pub use tokio; | ||
pub use toml; | ||
pub use tracing; | ||
pub use ulid; | ||
pub use url; | ||
pub use uuid; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::rpcs::provider::EthersHttpProvider; | ||
use ulid::Ulid; | ||
use url::Url; | ||
|
||
pub async fn create_provider_for_user(url: &Url, user_secret_key: &Ulid) -> EthersHttpProvider { | ||
// Then generate a provider | ||
let proxy_endpoint = format!("{}rpc/{}", url, user_secret_key); | ||
|
||
EthersHttpProvider::try_from(proxy_endpoint).unwrap() | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("Hello, world!"); | ||
} |
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 @@ | ||
pub mod anvil; | ||
pub mod create_provider_with_rpc_key; | ||
pub mod influx; | ||
pub mod mysql; | ||
|
||
pub use self::anvil::TestAnvil; | ||
pub use self::influx::TestInflux; | ||
pub use self::mysql::TestMysql; |
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
Oops, something went wrong.