Skip to content

Commit 38f417c

Browse files
committed
fix: made fungibleAccount queries use chainweb-node directly
1 parent 0fa85a7 commit 38f417c

File tree

4 files changed

+41
-305
lines changed

4 files changed

+41
-305
lines changed

indexer/src/kadena-server/repository/application/balance-repository.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -101,52 +101,6 @@ export interface GetTokensParams extends PaginationsParams {}
101101
* balance data from specific storage mechanisms (e.g., database or blockchain node).
102102
*/
103103
export default interface BalanceRepository {
104-
/**
105-
* Retrieves fungible token information for a specific account.
106-
*
107-
* @param accountName - Name of the account to retrieve balance for
108-
* @param fungibleName - Optional name of the fungible token (defaults to all tokens)
109-
* @returns Promise resolving to the account's fungible token information
110-
*/
111-
getAccountInfo(accountName: string, fungibleName?: string | null): Promise<FungibleAccountOutput>;
112-
113-
/**
114-
* Retrieves fungible token information for an account across specified chains.
115-
*
116-
* @param accountName - Name of the account
117-
* @param fungibleName - Name of the fungible token
118-
* @param chainIds - Optional array of chain IDs to filter by
119-
* @returns Promise resolving to array of chain-specific account information
120-
*/
121-
getChainsAccountInfo(
122-
accountName: string,
123-
fungibleName: string,
124-
chainIds?: string[],
125-
): Promise<FungibleChainAccountOutput[]>;
126-
127-
/**
128-
* Retrieves fungible accounts associated with a specific public key.
129-
*
130-
* @param publicKey - The public key to look up accounts for
131-
* @param fungibleName - Name of the fungible token
132-
* @returns Promise resolving to array of account information
133-
*/
134-
getAccountsByPublicKey(publicKey: string, fungibleName: string): Promise<FungibleAccountOutput[]>;
135-
136-
/**
137-
* Retrieves chain-specific fungible accounts for a public key.
138-
*
139-
* @param publicKey - The public key to look up accounts for
140-
* @param fungibleName - Name of the fungible token
141-
* @param chainId - ID of the specific chain
142-
* @returns Promise resolving to array of chain-specific account information
143-
*/
144-
getChainAccountsByPublicKey(
145-
publicKey: string,
146-
fungibleName: string,
147-
chainId: string,
148-
): Promise<FungibleChainAccountOutput[]>;
149-
150104
/**
151105
* Retrieves non-fungible token information for a specific account.
152106
*

0 commit comments

Comments
 (0)