import { getStateKey as e } from "../../functions/utils/string.utils.mjs";
import { get as t, update as n } from "idb-keyval";
new class {
	balancesRecordLabel = "privateWalletsBalances";
	async getBalances() {
		return await t(this.balancesRecordLabel);
	}
	async getBalancesByWallet(t, n) {
		let r = await this.getBalances();
		if (r) return r[e(t, n, !0)];
	}
	async setBalances(t, r, i) {
		await n(this.balancesRecordLabel, (n = {}) => {
			let a = e(t, r, !0);
			return {
				...n,
				[a]: i
			};
		});
	}
}();
//#endregion
