@arkade-os/sdk 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -142,6 +142,10 @@ class Worker {
|
|
|
142
142
|
// Get wallet address and save vtxos using unified repository
|
|
143
143
|
const address = await this.wallet.getAddress();
|
|
144
144
|
await this.walletRepository.saveVtxos(address, vtxos);
|
|
145
|
+
// Fetch boarding utxos and save using unified repository
|
|
146
|
+
const boardingAddress = await this.wallet.getBoardingAddress();
|
|
147
|
+
const coins = await this.wallet.onchainProvider.getCoins(boardingAddress);
|
|
148
|
+
await this.walletRepository.saveUtxos(boardingAddress, coins.map((utxo) => (0, utils_1.extendCoin)(this.wallet, utxo)));
|
|
145
149
|
// Get transaction history to cache boarding txs
|
|
146
150
|
const txs = await this.getTransactionHistory();
|
|
147
151
|
if (txs)
|
|
@@ -139,6 +139,10 @@ export class Worker {
|
|
|
139
139
|
// Get wallet address and save vtxos using unified repository
|
|
140
140
|
const address = await this.wallet.getAddress();
|
|
141
141
|
await this.walletRepository.saveVtxos(address, vtxos);
|
|
142
|
+
// Fetch boarding utxos and save using unified repository
|
|
143
|
+
const boardingAddress = await this.wallet.getBoardingAddress();
|
|
144
|
+
const coins = await this.wallet.onchainProvider.getCoins(boardingAddress);
|
|
145
|
+
await this.walletRepository.saveUtxos(boardingAddress, coins.map((utxo) => extendCoin(this.wallet, utxo)));
|
|
142
146
|
// Get transaction history to cache boarding txs
|
|
143
147
|
const txs = await this.getTransactionHistory();
|
|
144
148
|
if (txs)
|