feat: add account tabs (#378)

* feat: add account tabs

* chore: bump

* refactor: change network tab for old accounting

* feat: new fonts and text transformation, chequebook tab

* feat: polishing
This commit is contained in:
Cafe137
2022-06-17 11:39:56 +02:00
committed by GitHub
parent 199516d60c
commit 41432bc346
46 changed files with 507 additions and 201 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
import { Bee, Reference } from '@ethersphere/bee-js'
import { BatchId, Bee, BeeDebug, Reference } from '@ethersphere/bee-js'
import Wallet from 'ethereumjs-wallet'
import { uuidV4 } from '.'
import { uuidV4, waitUntilStampUsable } from '.'
import { Identity, IdentityType } from '../providers/Feeds'
export function generateWallet(): Wallet {
@@ -88,6 +88,7 @@ export function getWalletFromPrivateKeyString(privateKey: string): Wallet {
export async function updateFeed(
beeApi: Bee,
beeDebugApi: BeeDebug | null,
identity: Identity,
hash: string,
stamp: string,
@@ -100,6 +101,10 @@ export async function updateFeed(
}
const writer = beeApi.makeFeedWriter('sequence', '00'.repeat(32), wallet.getPrivateKeyString())
if (beeDebugApi) {
await waitUntilStampUsable(stamp as BatchId, beeDebugApi)
}
await writer.upload(stamp, hash as Reference)
}