Skip to content

Commit

Permalink
mock-proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinemolnar committed Nov 4, 2024
1 parent 92c7abd commit 4177749
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions bridge-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ path = "../common/tx-batch-module"
[dependencies.sc-proxies]
path = "../common/sc-proxies"

[dependencies.mock-proxies]
path = "../common/mock-proxies"

[dependencies.esdt-safe]
path = "../esdt-safe"

Expand Down
5 changes: 2 additions & 3 deletions bridge-proxy/tests/bridge_proxy_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ use multiversx_sc_scenario::{
use multiversx_sc_scenario::{ExpectValue, ScenarioTxRun};

use eth_address::*;
use sc_proxies::{
bridge_proxy_contract_proxy, bridged_tokens_wrapper_proxy, esdt_safe_proxy, mock_multisig_proxy,
};
use mock_proxies::mock_multisig_proxy;
use sc_proxies::{bridge_proxy_contract_proxy, bridged_tokens_wrapper_proxy, esdt_safe_proxy};
use transaction::{CallData, EthTransaction};

const BRIDGE_TOKEN_ID: TestTokenIdentifier = TestTokenIdentifier::new("BRIDGE-123456");
Expand Down
8 changes: 8 additions & 0 deletions common/mock-proxies/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "mock-proxies"
version = "0.0.0"
authors = ["MultiversX <[email protected]>"]
edition = "2018"

[dependencies.multiversx-sc]
version = "=0.53.2"
3 changes: 3 additions & 0 deletions common/mock-proxies/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#![no_std]

pub mod mock_multisig_proxy;
1 change: 0 additions & 1 deletion common/sc-proxies/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ pub mod bridge_proxy_contract_proxy;
pub mod bridged_tokens_wrapper_proxy;
pub mod crowdfunding_esdt_proxy;
pub mod esdt_safe_proxy;
pub mod mock_multisig_proxy;
pub mod multi_transfer_esdt_proxy;
pub mod multisig_proxy;
3 changes: 3 additions & 0 deletions esdt-safe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ path = "../common/storage-module"
[dependencies.sc-proxies]
path = "../common/sc-proxies"

[dependencies.mock-proxies]
path = "../common/mock-proxies"

[dependencies.mock-bridged-tokens-wrapper]
path = "../common/mock-contracts/mock-bridged-tokens-wrapper"

Expand Down
2 changes: 1 addition & 1 deletion esdt-safe/tests/esdt_safe_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
use esdt_safe::*;

use eth_address::EthAddress;
use mock_proxies::mock_multisig_proxy;
use multiversx_sc_scenario::imports::*;
use sc_proxies::esdt_safe_proxy::{self, EsdtSafeProxyMethods};
use sc_proxies::mock_multisig_proxy;
use transaction::transaction_status::TransactionStatus;
use transaction::Transaction;
use tx_batch_module::BatchStatus;
Expand Down
3 changes: 3 additions & 0 deletions multi-transfer-esdt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ path = "../common/mock-contracts/mock-price-aggregator"
[dependencies.sc-proxies]
path = "../common/sc-proxies"

[dependencies.mock-proxies]
path = "../common/mock-proxies"

[dependencies.multiversx-sc]
version = "=0.53.2"

Expand Down
3 changes: 2 additions & 1 deletion multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ use multiversx_sc_scenario::{
};

use eth_address::*;
use mock_proxies::mock_multisig_proxy;
use sc_proxies::{
bridge_proxy_contract_proxy, bridged_tokens_wrapper_proxy, esdt_safe_proxy,
mock_multisig_proxy, multi_transfer_esdt_proxy,
multi_transfer_esdt_proxy,
};
use token_module::ProxyTrait as _;
use transaction::{transaction_status::TransactionStatus, CallData, EthTransaction, Transaction};
Expand Down

0 comments on commit 4177749

Please sign in to comment.