Skip to content

Commit ecf652f

Browse files
committed
update tokenHolder creators info & tokenRanking bondingcurve
1 parent f722c39 commit ecf652f

5 files changed

Lines changed: 189 additions & 137 deletions

File tree

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chainstream-io/sdk",
3-
"version": "0.0.7",
3+
"version": "0.0.9",
44
"description": "Dex API client and webhook verification library",
55
"author": "AI",
66
"repository": "https://github.com/chainstream-io/dex",

javascript/src/api/stream.model.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export interface TokenHolder {
117117
top10Holders?: number;
118118
top100Ratio?: string;
119119
top10Ratio?: string;
120+
creatorsHolders?: number;
121+
creatorsAmount?: string;
122+
creatorsRatio?: string;
120123
timestamp: number;
121124
}
122125

@@ -177,14 +180,27 @@ export interface TokenLiquidity {
177180
timestamp: number;
178181
}
179182

183+
export interface DexProtocol {
184+
programAddress?: string;
185+
protocolFamily?: string;
186+
protocolName?: string;
187+
}
188+
189+
export interface TokenBondingCurve {
190+
progressRatio?: string;
191+
}
192+
180193
export interface TokenMetadata {
181194
tokenAddress: string;
182195
name?: string;
196+
decimals?: number;
183197
symbol?: string;
184198
imageUrl?: string;
185199
description?: string;
186200
socialMedia?: socialMedia;
187201
createdAtMs?: number;
202+
launchFrom?: DexProtocol;
203+
migratedTo?: DexProtocol;
188204
}
189205

190206
export interface socialMedia {
@@ -279,5 +295,10 @@ export enum Dex {
279295
MOONIT_FUN = "moonit_fun",
280296
}
281297

282-
export interface RankingTokenList extends TokenMetadata, TokenHolder, TokenSupply, TokenStat {
298+
export interface RankingTokenList {
299+
metadata?: TokenMetadata;
300+
holder?: TokenHolder;
301+
supply?: TokenSupply;
302+
stat?: TokenStat;
303+
bondingCurve?: TokenBondingCurve;
283304
}

0 commit comments

Comments
 (0)