Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement topHolders api #8

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 16 additions & 24 deletions trpc.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
quote: {
totalSupply: string | null;
holderCount: {
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
count: number;
}[];
price: string | null;
marketCap: string | null;
volume24h: string | null;
priceChange24h: number | null;
circulatingSupply: string | null;
fdv: string | null;
priceChange24h: number | null;
txCount24h: number;
};
}[];
Expand All @@ -60,7 +60,7 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
status: {
timestamp: number;
};
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
count: number;
}[];
}>;
Expand All @@ -80,7 +80,7 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
status: {
timestamp: number;
};
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
count: number;
}[];
}>;
Expand Down Expand Up @@ -109,15 +109,15 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
quote: {
totalSupply: string | null;
holderCount: {
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
count: number;
}[];
price: string | null;
marketCap: string | null;
volume24h: string | null;
priceChange24h: number | null;
circulatingSupply: string | null;
fdv: string | null;
priceChange24h: number | null;
txCount24h: number;
};
} | null;
Expand All @@ -129,37 +129,29 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
output: {
totalSupply: string | null;
holderCount: {
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
count: number;
}[];
price: string | null;
marketCap: string | null;
volume24h: string | null;
priceChange24h: number | null;
circulatingSupply: string | null;
fdv: string | null;
priceChange24h: number | null;
txCount24h: number;
} | null;
}>;
holderList: _trpc_server.TRPCQueryProcedure<{
topHolders: _trpc_server.TRPCQueryProcedure<{
input: {
assetId: string;
pageSize?: number | undefined;
pageIndex?: number | undefined;
};
output: {
data: {
value: string;
address: string;
network: "ckb" | "btc" | "doge" | "unknown";
usd: string;
percentage: number;
}[];
pagination: {
hasNext: boolean;
total?: number | undefined;
};
};
value: string;
address: string;
amount: string;
network: "ckb" | "btc" | "unknown" | "doge";
percentage: number;
}[] | null;
}>;
addressHoldAssets: _trpc_server.TRPCQueryProcedure<{
input: {
Expand Down Expand Up @@ -190,7 +182,7 @@ declare const appRouter: _trpc_server_unstable_core_do_not_import.BuiltRouter<{
};
output: {
data: {
network: "ckb" | "btc" | "doge" | "unknown";
network: "ckb" | "btc" | "unknown" | "doge";
txHash: string;
}[];
pagination: {
Expand Down