Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove protocol modules #30

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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