Jelajahi Sumber

fix broken imports

aggstam 3 tahun lalu
induk
melakukan
971ea62ab8

+ 1 - 1
bin/drk/src/rpc_blockchain.rs

@@ -37,7 +37,7 @@ use darkfi_money_contract::{
         MONEY_COINS_COL_VALUE_BLIND, MONEY_COINS_TABLE, MONEY_INFO_COL_LAST_SCANNED_SLOT,
         MONEY_COINS_COL_VALUE_BLIND, MONEY_COINS_TABLE, MONEY_INFO_COL_LAST_SCANNED_SLOT,
         MONEY_INFO_TABLE,
         MONEY_INFO_TABLE,
     },
     },
-    state::{MoneyTransferParams, Output},
+    model::{MoneyTransferParams, Output},
     MoneyFunction,
     MoneyFunction,
 };
 };
 use darkfi_sdk::{
 use darkfi_sdk::{

+ 1 - 1
bin/drk/src/rpc_swap.rs

@@ -25,7 +25,7 @@ use darkfi::{
 };
 };
 use darkfi_money_contract::{
 use darkfi_money_contract::{
     client::{build_half_swap_tx, EncryptedNote, Note},
     client::{build_half_swap_tx, EncryptedNote, Note},
-    state::MoneyTransferParams,
+    model::MoneyTransferParams,
     MoneyFunction, MONEY_CONTRACT_ZKAS_BURN_NS_V1, MONEY_CONTRACT_ZKAS_MINT_NS_V1,
     MoneyFunction, MONEY_CONTRACT_ZKAS_BURN_NS_V1, MONEY_CONTRACT_ZKAS_MINT_NS_V1,
 };
 };
 use darkfi_sdk::{
 use darkfi_sdk::{

+ 1 - 1
src/contract/dao/src/entrypoint.rs

@@ -32,7 +32,7 @@ use darkfi_sdk::{
 use darkfi_serial::{deserialize, serialize, Decodable, Encodable, WriteExt};
 use darkfi_serial::{deserialize, serialize, Decodable, Encodable, WriteExt};
 
 
 use darkfi_money_contract::{
 use darkfi_money_contract::{
-    state::MoneyTransferParams, MoneyFunction, MONEY_CONTRACT_COIN_ROOTS_TREE,
+    model::MoneyTransferParams, MoneyFunction, MONEY_CONTRACT_COIN_ROOTS_TREE,
     MONEY_CONTRACT_NULLIFIERS_TREE,
     MONEY_CONTRACT_NULLIFIERS_TREE,
 };
 };
 
 

+ 1 - 1
src/contract/dao/src/money_client.rs

@@ -29,7 +29,7 @@ use rand::rngs::OsRng;
 
 
 use darkfi_money_contract::{
 use darkfi_money_contract::{
     client::{create_transfer_burn_proof, create_transfer_mint_proof, Note},
     client::{create_transfer_burn_proof, create_transfer_mint_proof, Note},
-    state::{ClearInput, Input, MoneyTransferParams, Output},
+    model::{ClearInput, Input, MoneyTransferParams, Output},
 };
 };
 
 
 pub struct TransferCall {
 pub struct TransferCall {

+ 1 - 1
src/contract/dao/tests/integration.rs

@@ -32,7 +32,7 @@ use darkfi_dao_contract::{
     dao_client, dao_model, money_client, note, wallet_cache::WalletCache, DaoFunction,
     dao_client, dao_model, money_client, note, wallet_cache::WalletCache, DaoFunction,
 };
 };
 
 
-use darkfi_money_contract::{client::EncryptedNote, state::MoneyTransferParams, MoneyFunction};
+use darkfi_money_contract::{client::EncryptedNote, model::MoneyTransferParams, MoneyFunction};
 
 
 mod harness;
 mod harness;
 use harness::{init_logger, DaoTestHarness};
 use harness::{init_logger, DaoTestHarness};