Skip to content

Commit

Permalink
adapter - use protocol-eth ABI & bytecode paths
Browse files Browse the repository at this point in the history
- adapter - ABI & bytecode files clean up
  • Loading branch information
elpiel committed May 10, 2021
1 parent 8c5bb9b commit 6c3f3ae
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion adapter/Depositorbytecode.json

This file was deleted.

1 change: 0 additions & 1 deletion adapter/ERC20.json

This file was deleted.

1 change: 0 additions & 1 deletion adapter/OUTPACEbytecode.json

This file was deleted.

1 change: 0 additions & 1 deletion adapter/Sweeper.json

This file was deleted.

1 change: 0 additions & 1 deletion adapter/Sweeperbytecode.json

This file was deleted.

9 changes: 3 additions & 6 deletions adapter/src/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@ use test_utils::*;
mod error;

lazy_static! {
// TODO: Deprecated! This is v4!
static ref ADEXCORE_ABI: &'static [u8] =
include_bytes!("../../lib/protocol-eth/abi/AdExCore.json");
static ref OUTPACE_ABI: &'static [u8] =
include_bytes!("../../lib/protocol-eth/abi/OUTPACE.json");
// TODO: Fix it once ERC20 and OUTPACE are merged
static ref ERC20_ABI: &'static [u8] = include_str!("../ERC20.json").trim_end_matches('\n').as_bytes();
static ref ERC20_ABI: &'static [u8] = include_str!("../../lib/protocol-eth/abi/ERC20.json").trim_end_matches('\n').as_bytes();
// TODO: Open PR with those in protocol-eth and sync module once it's ready
static ref SWEEPER_ABI: &'static [u8] = include_bytes!("../Sweeper.json");
static ref DEPOSITOR_BYTECODE: &'static [u8] = include_bytes!("../Depositorbytecode.json");
static ref SWEEPER_ABI: &'static [u8] = include_bytes!("../../lib/protocol-eth/abi/Sweeper.json");
static ref DEPOSITOR_BYTECODE: &'static [u8] = include_bytes!("../../lib/protocol-eth/resources/bytecode/Depositor.json");
}

#[cfg(test)]
Expand Down

0 comments on commit 6c3f3ae

Please sign in to comment.