Skip to content

Commit

Permalink
feat: Added updateQiBalanceCallback & draft subscribeOnQiBalances
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemBurakov committed Oct 24, 2024
1 parent 3f05a1d commit 1db97b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion background/services/chain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import {
QiWalletOnNetwork,
} from "../../accounts"
import {
AnyAsset,
AnyAssetAmount,
AssetTransfer,
SmartContractFungibleAsset,
} from "../../assets"
import { HOUR, MAILBOX_CONTRACT_ADDRESS, MINUTE, QI } from "../../constants"
import { HOUR, MAILBOX_CONTRACT_ADDRESS, MINUTE, QI, QUAI } from "../../constants"
import PreferenceService from "../preferences"
import { ServiceCreatorFunction, ServiceLifecycleEvents } from "../types"
import { ChainDatabase, initializeChainDatabase } from "./db"
Expand All @@ -38,6 +39,10 @@ import KeyringService from "../keyring"
import type { ValidatedAddEthereumChainParameter } from "../provider-bridge/utils"
import { Outpoint } from "quais/lib/commonjs/transaction/utxo"
import { MAILBOX_INTERFACE } from "../../contracts/payment-channel-mailbox"
import {
updateAccountBalance,
updateUtxoAccountsBalances,
} from "../../redux-slices/accounts"

// The number of blocks to query at a time for historic asset transfers.
// Unfortunately there's no "right" answer here that works well across different
Expand Down

0 comments on commit 1db97b5

Please sign in to comment.