Skip to content

Commit

Permalink
update response on /v2/state/get_top_holders
Browse files Browse the repository at this point in the history
  • Loading branch information
igorls committed Sep 19, 2024
1 parent 45445d3 commit ccdfb3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion api/routes/v2-state/get_top_holders/get_top_holders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function getTopHolders(fastify: FastifyInstance, request: FastifyRequest)
const query: any = request.query;

const response: any = {
contract: query.account,
contract: query.contract,
symbol: undefined,
holders: []
};
Expand All @@ -25,6 +25,7 @@ async function getTopHolders(fastify: FastifyInstance, request: FastifyRequest)

if (query.symbol) {
terms.push({ "term": { "symbol": { "value": query.symbol } } });
response.symbol = query.symbol;
}


Expand Down
10 changes: 5 additions & 5 deletions interfaces/hyperionConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {AlertManagerOptions} from "../modules/alertsManager";
import { AlertManagerOptions } from "../modules/alertsManager";

export interface ScalingConfigs {
polling_interval: number;
Expand Down Expand Up @@ -70,18 +70,18 @@ export interface IndexerConfigs {
}

interface ApiLimits {
get_top_holders?: number;
get_links?: number;
get_actions?: number;
get_blocks?: number;
get_created_accounts?: number;
get_deltas?: number;
get_key_accounts?: number;
get_links?: number;
get_proposals?: number;
get_tokens?: number;
get_transfers?: number;
get_voters?: number;
get_trx_actions?: number;
get_tokens?: number;
get_top_holders?: number;
get_voters?: number;
}

interface CachedRouteConfig {
Expand Down

0 comments on commit ccdfb3e

Please sign in to comment.