verity_ic/remittance/
state.rs

1use candid::Principal;
2use std::{cell::RefCell, collections::HashMap};
3
4use super::types;
5use crate::crypto::config::Config;
6
7thread_local! {
8    pub static REMITTANCE: RefCell<types::AvailableBalanceStore> = RefCell::default();
9    pub static WITHHELD_REMITTANCE: RefCell<types::WithheldBalanceStore> = RefCell::default();
10    pub static WITHHELD_AMOUNTS: RefCell<types::WithheldAmountsStore> = RefCell::default();
11    pub static IS_PDC_CANISTER: RefCell<HashMap<Principal, bool>> = RefCell::default();
12    pub static DC_CANISTERS: RefCell<Vec<Principal>> = RefCell::default();
13    pub static REMITTANCE_RECIEPTS: RefCell<types::RemittanceRecieptsStore> = RefCell::default();
14    pub static CANISTER_BALANCE: RefCell<types::CanisterBalanceStore> = RefCell::default();
15    pub static CONFIG: RefCell<Config> = RefCell::default();
16}