Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
njeans authored and sbellem committed Aug 22, 2023
1 parent fda11ff commit 7f943d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use sha2::{Sha256, Digest};
use crate::msg::{ExecuteMsg, CreateViewingKeyAnswer, GetStateAnswer, InstantiateMsg, IterateHashAnswer, QueryMsg, GetRequestAnswer, ProcessResponseAnswer};
use crate::state::{State, DEPOSIT, WITHDRAW, TRANSFER, CheckPoint, Request, ResponseState, AddressBalance};
use crate::state::{CHECKPOINT_KEY, PREFIX_REQUESTS_KEY, CONFIG_KEY, REQUEST_SEQNO_KEY, AEAD_KEY, REQUEST_LEN_KEY};
use crate::utils::{get_key, bool_to_uint128, get_prng, CipherText};
use crate::utils::{get_key, bool_to_uint128, get_prng};
use secret_toolkit::viewing_key::{ViewingKey, ViewingKeyStore};

#[entry_point]
Expand Down Expand Up @@ -663,7 +663,6 @@ mod tests {
use cosmwasm_std::{from_binary, StdResult, Uint128, Coin, StdError, Binary};
use crate::contract::{gen_hash, gen_mac, instantiate, query, execute};
use crate::msg::{ExecuteMsg, CreateViewingKeyAnswer, GetStateAnswer, InstantiateMsg, IterateHashAnswer, QueryMsg, ProcessResponseAnswer};
// use crate::utils::CipherText;

// use std::any::Any;
// use cosmwasm_std::testing::*;
Expand Down
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use cosmwasm_schema::cw_serde;

use cosmwasm_std::{Addr, Binary, Uint128, Env, StdResult, Storage, StdError, to_binary, from_binary};
use cosmwasm_std::{Addr, Binary, Uint128, StdResult, Storage, StdError, to_binary, from_binary};
use secret_toolkit::storage::Item;
use secret_toolkit_crypto::ContractPrng;
use crate::utils::{encrypt_with_nonce, decrypt_with_nonce, get_nonce, get_prng, CipherText, IV_SIZE};
use crate::utils::{encrypt_with_nonce, decrypt_with_nonce, get_nonce, CipherText};

/// Basic configuration struct
pub static CONFIG_KEY: Item<State> = Item::new(b"config");
Expand Down
3 changes: 1 addition & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use aes_gcm::{
use generic_array::GenericArray;
use secret_toolkit_crypto::ContractPrng;
use crate::state::{SymmetricKey};
use cosmwasm_std::{StdError, Env, Uint128, Storage, Binary, to_binary, from_binary};
use sha2::{Sha256, Digest};
use cosmwasm_std::{StdError, Env, Uint128, Binary, to_binary};
use cosmwasm_schema::cw_serde;


Expand Down

0 comments on commit 7f943d7

Please sign in to comment.