Skip to content

Commit dabc8d2

Browse files
CLICK-958 Align type with latest version from CSPR.live
1 parent d00ebd5 commit dabc8d2

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

dist/lib/types/types.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ export type FMPriceData = {
8787
export type CoingeckoPriceData = FMPriceData & {
8888
change_24h: number;
8989
};
90+
export type TokenMarketData = {
91+
currency_id: number;
92+
dex_id: number;
93+
latest_rate: number;
94+
timestamp: string;
95+
token_contract_package_hash: string;
96+
token_volume_24h: string;
97+
volume_24h: string;
98+
};
9099
export type DeployContractPackageResult = {
91100
description: string | null;
92101
icon_url: string | null;
@@ -95,8 +104,10 @@ export type DeployContractPackageResult = {
95104
latest_version_contract_type_id: number | null;
96105
owner_public_key: string | null;
97106
owner_hash: string | null;
107+
owner_type?: TransactorHashType;
98108
timestamp: string;
99109
has_ces_events: boolean;
110+
is_featured: boolean;
100111
deploys_number?: number;
101112
activity_number?: number;
102113
metadata?: DeployContractPackageMetadata;
@@ -106,8 +117,13 @@ export type DeployContractPackageResult = {
106117
cspr_name?: string | null;
107118
coingecko_id: string | null;
108119
latest_version_contract_hash: string | null;
120+
token_market_data?: Array<TokenMarketData>;
121+
/** @deprecated */
109122
coingecko_data: CoingeckoPriceData;
123+
/** @deprecated */
110124
friendlymarket_data: FMPriceData;
125+
/** @deprecated */
126+
csprtrade_data: FMPriceData;
111127
contract_type_id?: number | null;
112128
contract_name: string | null;
113129
website_url?: string | null;

dist/lib/types/types.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/types/types.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ export type CoingeckoPriceData = FMPriceData & {
9696
change_24h: number;
9797
};
9898

99+
export type TokenMarketData = {
100+
currency_id: number;
101+
dex_id: number;
102+
latest_rate: number;
103+
timestamp: string;
104+
token_contract_package_hash: string;
105+
token_volume_24h: string;
106+
volume_24h: string;
107+
};
108+
99109
export type DeployContractPackageResult = {
100110
description: string | null;
101111
icon_url: string | null;
@@ -104,8 +114,10 @@ export type DeployContractPackageResult = {
104114
latest_version_contract_type_id: number | null;
105115
owner_public_key: string | null;
106116
owner_hash: string | null;
117+
owner_type?: TransactorHashType;
107118
timestamp: string;
108119
has_ces_events: boolean;
120+
is_featured: boolean;
109121
deploys_number?: number;
110122
activity_number?: number;
111123
metadata?: DeployContractPackageMetadata;
@@ -115,8 +127,13 @@ export type DeployContractPackageResult = {
115127
cspr_name?: string | null;
116128
coingecko_id: string | null;
117129
latest_version_contract_hash: string | null;
130+
token_market_data?: Array<TokenMarketData>;
131+
/** @deprecated */
118132
coingecko_data: CoingeckoPriceData;
133+
/** @deprecated */
119134
friendlymarket_data: FMPriceData;
135+
/** @deprecated */
136+
csprtrade_data: FMPriceData;
120137
// TODO: remove these types
121138
contract_type_id?: number | null;
122139
contract_name: string | null;

0 commit comments

Comments
 (0)