Skip to content

Commit

Permalink
feat: remove protocol modules (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuttymoon authored Apr 25, 2023
2 parents e8025af + 9ac957e commit 395b0e1
Show file tree
Hide file tree
Showing 17 changed files with 835 additions and 1,461 deletions.
1,294 changes: 828 additions & 466 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions crates/ash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ reqwest = { version = "0.11.14", features = ["rustls-tls-native-roots"] }

[dev-dependencies]
tempfile = "3.3.0"

[build-dependencies]
ethers = "1.0.2"
26 changes: 0 additions & 26 deletions crates/ash/build.rs

This file was deleted.

5 changes: 0 additions & 5 deletions crates/ash/conf/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# Copyright (c) 2023, E36 Knots

---
ashContracts:
- name: AshRouter
addresses:
- network: fuji
address: "0x11A0647baC846e4dC8aC8c125297fe7Cb272001f"
avalancheNetworks:
- name: mainnet
subnets:
Expand Down
316 changes: 0 additions & 316 deletions crates/ash/contracts/AshRouter.json

This file was deleted.

5 changes: 1 addition & 4 deletions crates/ash/src/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Module that contains code to interact with the lib configuration

use crate::{avalanche::AvalancheNetwork, errors::*, protocol::contracts::AshContractMetadata};
use crate::{avalanche::AvalancheNetwork, errors::*};
use config::{Config, Environment, File, FileFormat};
use serde::{Deserialize, Serialize};
use std::{fs, path::Path};
Expand All @@ -14,9 +14,6 @@ const DEFAULT_CONF: &str = include_str!("../conf/default.yml");
#[derive(Default, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AshConfig {
/// List of Ash contracts metadata
#[serde(default)]
pub ash_contracts: Vec<AshContractMetadata>,
/// List of known Avalanche networks
pub avalanche_networks: Vec<AvalancheNetwork>,
}
Expand Down
1 change: 0 additions & 1 deletion crates/ash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
pub mod avalanche;
pub mod conf;
pub mod errors;
pub mod protocol;
Loading

0 comments on commit 395b0e1

Please sign in to comment.