Skip to content

Commit

Permalink
SHARD-1204: Add Secure Account Storage Support (#44)
Browse files Browse the repository at this point in the history
* add SecureAccount type and update ethAddress assignment in account processing

* Remove commented out SecureAccount type from AccountSearchType enum in account.ts
  • Loading branch information
S0naliThakur authored Dec 30, 2024
1 parent f554d51 commit 474562a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/storage/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ export async function processAccountData(accounts: AccountsCopy[]): Promise<Acco
accountType === AccountType.NetworkAccount ||
accountType === AccountType.DevAccount ||
accountType === AccountType.NodeAccount ||
accountType === AccountType.NodeAccount2
accountType === AccountType.NodeAccount2 ||
accountType === AccountType.SecureAccount
) {
accObj.ethAddress = account.accountId // Adding accountId as ethAddess for these account types for now; since we need ethAddress for mysql index
}
Expand Down
3 changes: 2 additions & 1 deletion src/storage/receipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export async function processReceiptData(receipts: Receipt[], saveOnlyNewData =
accountType === AccountType.NetworkAccount ||
accountType === AccountType.DevAccount ||
accountType === AccountType.NodeAccount ||
accountType === AccountType.NodeAccount2
accountType === AccountType.NodeAccount2 ||
accountType === AccountType.SecureAccount
) {
accObj.ethAddress = account.accountId // Adding accountId as ethAddess for these account types for now; since we need ethAddress for mysql index
}
Expand Down
1 change: 1 addition & 0 deletions src/types/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export enum AccountType {
StakeReceipt,
UnstakeReceipt,
InternalTxReceipt,
SecureAccount,
}

export enum AccountSearchType {
Expand Down

0 comments on commit 474562a

Please sign in to comment.