Skip to content

Commit

Permalink
Added count fields to AccountData
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Aug 9, 2024
1 parent 4b81626 commit d56662d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/services/account.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Service, ServiceProperties } from './service';
import { ChainService } from './chain';
import { Account } from '../types';
import { AccountAPI, PaginationRequest } from '../api';
import { AccountAPI, IAccountInfoResponse, PaginationRequest } from '../api';
import invariant from 'tiny-invariant';
import { Wallet } from '@ethersproject/wallet';
import { Signer } from '@ethersproject/abstract-signer';
Expand All @@ -27,14 +27,11 @@ type AccountServiceParameters = ServiceProperties & AccountServiceProperties;
* @property {Account} account
*/
export type AccountData = {
address: string;
balance: number;
nonce: number;
electionIndex: number;
infoURL?: string;
sik?: string;
account: Account;
};
} & Pick<
IAccountInfoResponse,
'address' | 'balance' | 'nonce' | 'electionIndex' | 'infoURI' | 'sik' | 'transfersCount' | 'feesCount'
>;

export type ArchivedAccountData = Pick<AccountData, 'address' | 'account'>;

Expand Down

0 comments on commit d56662d

Please sign in to comment.