|
1 | 1 | use cosmwasm_std::{to_binary, Addr, Binary, CanonicalAddr, Deps, Env, StdError, StdResult, Storage, Uint128, Uint64}; |
2 | 2 | use rand_chacha::ChaChaRng; |
3 | 3 | use rand_core::{RngCore, SeedableRng}; |
4 | | -use secret_toolkit::notification::{get_seed, notification_id, BloomParameters, ChannelInfoData, Descriptor, DirectChannel, FlatDescriptor, GroupChannel, StructDescriptor}; |
| 4 | +use secret_toolkit::notification::{ |
| 5 | + get_seed, notification_id, BloomParameters, ChannelInfoData, Descriptor, DirectChannel, FlatDescriptor, GroupChannel, StructDescriptor, |
| 6 | +}; |
5 | 7 | use secret_toolkit::permit::{RevokedPermits, RevokedPermitsStore}; |
6 | 8 |
|
7 | | -use crate::{btbe::{find_start_bundle, stored_balance, stored_entry, stored_tx_count}, dwb::{DWB, TX_NODES}, msg::{AllowanceGivenResult, AllowanceReceivedResult, QueryAnswer}, notifications::{AllowanceNotification, MultiRecvdNotification, MultiSpentNotification, RecvdNotification, SpentNotification}, state::{AllowancesStore, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, TOTAL_SUPPLY}, transaction_history::Tx}; |
| 9 | +use crate::btbe::{find_start_bundle, stored_balance, stored_entry, stored_tx_count}; |
| 10 | +use crate::dwb::{DWB, TX_NODES}; |
| 11 | +use crate::msg::{AllowanceGivenResult, AllowanceReceivedResult, QueryAnswer}; |
| 12 | +use crate::notifications::{AllowanceNotification, MultiRecvdNotification, MultiSpentNotification, RecvdNotification, SpentNotification}; |
| 13 | +use crate::state::{ |
| 14 | + AllowancesStore, MintersStore, CHANNELS, CONFIG, CONTRACT_STATUS, INTERNAL_SECRET_RELAXED, INTERNAL_SECRET_SENSITIVE, TOTAL_SUPPLY |
| 15 | +}; |
| 16 | +use crate::transaction_history::Tx; |
8 | 17 |
|
9 | 18 | pub fn query_exchange_rate(storage: &dyn Storage) -> StdResult<Binary> { |
10 | 19 | let constants = CONFIG.load(storage)?; |
|
0 commit comments