@chainstream-io/sdk 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +76 -60
- package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
- package/dist/esm/openapi/apis/DexApi.js +205 -176
- package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
- package/dist/esm/openapi/apis/EndpointApi.js +212 -175
- package/dist/esm/openapi/apis/IpfsApi.js +38 -25
- package/dist/esm/openapi/apis/JobsApi.js +65 -48
- package/dist/esm/openapi/apis/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
- package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
- package/dist/esm/openapi/apis/TradeApi.js +233 -208
- package/dist/esm/openapi/apis/TransactionApi.js +42 -29
- package/dist/esm/openapi/apis/WalletApi.js +148 -123
- package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
- package/dist/esm/openapi/runtime.js +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -59
- package/dist/openapi/apis/BlockchainApi.js +62 -78
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
- package/dist/openapi/apis/DexApi.js +206 -210
- package/dist/openapi/apis/DexPoolApi.js +42 -62
- package/dist/openapi/apis/EndpointApi.js +213 -209
- package/dist/openapi/apis/IpfsApi.js +39 -59
- package/dist/openapi/apis/JobsApi.js +66 -82
- package/dist/openapi/apis/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +295 -287
- package/dist/openapi/apis/TokenApi.js +1146 -1090
- package/dist/openapi/apis/TradeApi.js +234 -242
- package/dist/openapi/apis/TransactionApi.js +43 -63
- package/dist/openapi/apis/WalletApi.js +149 -157
- package/dist/openapi/apis/WatchlistApi.js +42 -62
- package/dist/openapi/runtime.js +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{api → stream}/stream.js +36 -29
- package/package.json +29 -29
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/apis/BlockchainApi.ts +0 -140
- package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/apis/DexApi.ts +0 -490
- package/src/openapi/apis/DexPoolApi.ts +0 -107
- package/src/openapi/apis/EndpointApi.ts +0 -421
- package/src/openapi/apis/IpfsApi.ts +0 -66
- package/src/openapi/apis/JobsApi.ts +0 -135
- package/src/openapi/apis/RankingApi.ts +0 -939
- package/src/openapi/apis/RedPacketApi.ts +0 -621
- package/src/openapi/apis/TokenApi.ts +0 -2569
- package/src/openapi/apis/TradeApi.ts +0 -596
- package/src/openapi/apis/TransactionApi.ts +0 -95
- package/src/openapi/apis/WalletApi.ts +0 -365
- package/src/openapi/apis/WatchlistApi.ts +0 -107
- package/src/openapi/apis/index.ts +0 -17
- package/src/openapi/index.ts +0 -5
- package/src/openapi/models/BlockchainDTO.ts +0 -93
- package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/models/Candle.ts +0 -130
- package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/models/CreateTokenInput.ts +0 -139
- package/src/openapi/models/CreateTokenReply.ts +0 -75
- package/src/openapi/models/DexDTO.ts +0 -90
- package/src/openapi/models/DexPage.ts +0 -114
- package/src/openapi/models/DexPoolDTO.ts +0 -141
- package/src/openapi/models/EndpointListResponse.ts +0 -97
- package/src/openapi/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/models/EndpointResponse.ts +0 -145
- package/src/openapi/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/models/FilterCondition.ts +0 -135
- package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/models/JobDTO.ts +0 -75
- package/src/openapi/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/models/Link.ts +0 -88
- package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/models/QuoteResponse.ts +0 -105
- package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/models/RedPacketDTO.ts +0 -229
- package/src/openapi/models/RedPacketReply.ts +0 -66
- package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/models/RedPacketsPage.ts +0 -110
- package/src/openapi/models/Resolution.ts +0 -61
- package/src/openapi/models/SendTxInput.ts +0 -93
- package/src/openapi/models/SendTxResponse.ts +0 -84
- package/src/openapi/models/SwapInput.ts +0 -157
- package/src/openapi/models/SwapReply.ts +0 -75
- package/src/openapi/models/SwapRouteInput.ts +0 -186
- package/src/openapi/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/models/Token.ts +0 -251
- package/src/openapi/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/models/TokenCreationPage.ts +0 -114
- package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/models/TokenHolder.ts +0 -93
- package/src/openapi/models/TokenHolderPage.ts +0 -114
- package/src/openapi/models/TokenListPage.ts +0 -114
- package/src/openapi/models/TokenMarketData.ts +0 -190
- package/src/openapi/models/TokenMetadata.ts +0 -188
- package/src/openapi/models/TokenPage.ts +0 -122
- package/src/openapi/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/models/TokenPricePage.ts +0 -114
- package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/models/TokenStat.ts +0 -1152
- package/src/openapi/models/TopTradersDTO.ts +0 -164
- package/src/openapi/models/TopTradersPage.ts +0 -114
- package/src/openapi/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/models/TradeEvent.ts +0 -184
- package/src/openapi/models/TradePage.ts +0 -114
- package/src/openapi/models/TradeType.ts +0 -53
- package/src/openapi/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/models/index.ts +0 -72
- package/src/openapi/runtime.ts +0 -432
- /package/dist/{api → esm/stream}/stream.d.ts +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/{esm/api → stream}/stream.d.ts +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface CreateTokenInput
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateTokenInput {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.DEX.IDENTIFIER
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CreateTokenInput
|
|
26
|
-
*/
|
|
27
|
-
dex: CreateTokenInputDexEnum;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.DEX.WALLET
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CreateTokenInput
|
|
32
|
-
*/
|
|
33
|
-
userAddress: string;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.DEX.BASE.PRIORITY_FEE
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateTokenInput
|
|
38
|
-
*/
|
|
39
|
-
priorityFee?: string;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.DEX.MINT.NAME
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof CreateTokenInput
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
/**
|
|
47
|
-
* DTO.DEX.MINT.SYMBOL
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof CreateTokenInput
|
|
50
|
-
*/
|
|
51
|
-
symbol: string;
|
|
52
|
-
/**
|
|
53
|
-
* DTO.DEX.MINT.URI
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof CreateTokenInput
|
|
56
|
-
*/
|
|
57
|
-
uri?: string;
|
|
58
|
-
/**
|
|
59
|
-
* DTO.DEX.MINT.IMAGE
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof CreateTokenInput
|
|
62
|
-
*/
|
|
63
|
-
image?: string;
|
|
64
|
-
/**
|
|
65
|
-
* DTO.DEX.MINT.EXTRA
|
|
66
|
-
* @type {object}
|
|
67
|
-
* @memberof CreateTokenInput
|
|
68
|
-
*/
|
|
69
|
-
extra?: object;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @export
|
|
75
|
-
*/
|
|
76
|
-
export const CreateTokenInputDexEnum = {
|
|
77
|
-
Raydium: 'raydium',
|
|
78
|
-
Pumpfun: 'pumpfun',
|
|
79
|
-
Moonshot: 'moonshot',
|
|
80
|
-
Candy: 'candy',
|
|
81
|
-
Launchpad: 'launchpad'
|
|
82
|
-
} as const;
|
|
83
|
-
export type CreateTokenInputDexEnum = typeof CreateTokenInputDexEnum[keyof typeof CreateTokenInputDexEnum];
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the CreateTokenInput interface.
|
|
88
|
-
*/
|
|
89
|
-
export function instanceOfCreateTokenInput(value: object): value is CreateTokenInput {
|
|
90
|
-
if (!('dex' in value) || value['dex'] === undefined) return false;
|
|
91
|
-
if (!('userAddress' in value) || value['userAddress'] === undefined) return false;
|
|
92
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
93
|
-
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function CreateTokenInputFromJSON(json: any): CreateTokenInput {
|
|
98
|
-
return CreateTokenInputFromJSONTyped(json, false);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function CreateTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTokenInput {
|
|
102
|
-
if (json == null) {
|
|
103
|
-
return json;
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
|
|
107
|
-
'dex': json['dex'],
|
|
108
|
-
'userAddress': json['userAddress'],
|
|
109
|
-
'priorityFee': json['priorityFee'] == null ? undefined : json['priorityFee'],
|
|
110
|
-
'name': json['name'],
|
|
111
|
-
'symbol': json['symbol'],
|
|
112
|
-
'uri': json['uri'] == null ? undefined : json['uri'],
|
|
113
|
-
'image': json['image'] == null ? undefined : json['image'],
|
|
114
|
-
'extra': json['extra'] == null ? undefined : json['extra'],
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function CreateTokenInputToJSON(json: any): CreateTokenInput {
|
|
119
|
-
return CreateTokenInputToJSONTyped(json, false);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export function CreateTokenInputToJSONTyped(value?: CreateTokenInput | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
-
if (value == null) {
|
|
124
|
-
return value;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
|
|
129
|
-
'dex': value['dex'],
|
|
130
|
-
'userAddress': value['userAddress'],
|
|
131
|
-
'priorityFee': value['priorityFee'],
|
|
132
|
-
'name': value['name'],
|
|
133
|
-
'symbol': value['symbol'],
|
|
134
|
-
'uri': value['uri'],
|
|
135
|
-
'image': value['image'],
|
|
136
|
-
'extra': value['extra'],
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface CreateTokenReply
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateTokenReply {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.DEX.CREATE_TOKEN.SERIALIZED_TX
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CreateTokenReply
|
|
26
|
-
*/
|
|
27
|
-
serializedTx: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.DEX.CREATE_TOKEN.MINT_ADDRESS
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CreateTokenReply
|
|
32
|
-
*/
|
|
33
|
-
mintAddress: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the CreateTokenReply interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfCreateTokenReply(value: object): value is CreateTokenReply {
|
|
40
|
-
if (!('serializedTx' in value) || value['serializedTx'] === undefined) return false;
|
|
41
|
-
if (!('mintAddress' in value) || value['mintAddress'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function CreateTokenReplyFromJSON(json: any): CreateTokenReply {
|
|
46
|
-
return CreateTokenReplyFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CreateTokenReplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTokenReply {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'serializedTx': json['serializedTx'],
|
|
56
|
-
'mintAddress': json['mintAddress'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function CreateTokenReplyToJSON(json: any): CreateTokenReply {
|
|
61
|
-
return CreateTokenReplyToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function CreateTokenReplyToJSONTyped(value?: CreateTokenReply | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'serializedTx': value['serializedTx'],
|
|
72
|
-
'mintAddress': value['mintAddress'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DexDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface DexDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.DEX.PROGRAM_ADDRESS
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DexDTO
|
|
26
|
-
*/
|
|
27
|
-
programAddress?: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.DEX.PROTOCOL_FAMILY
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof DexDTO
|
|
32
|
-
*/
|
|
33
|
-
protocolFamily?: string;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.DEX.IMAGE
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof DexDTO
|
|
38
|
-
*/
|
|
39
|
-
image?: string;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.DEX.CHAIN
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof DexDTO
|
|
44
|
-
*/
|
|
45
|
-
chain: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the DexDTO interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfDexDTO(value: object): value is DexDTO {
|
|
52
|
-
if (!('chain' in value) || value['chain'] === undefined) return false;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DexDTOFromJSON(json: any): DexDTO {
|
|
57
|
-
return DexDTOFromJSONTyped(json, false);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function DexDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): DexDTO {
|
|
61
|
-
if (json == null) {
|
|
62
|
-
return json;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
|
|
66
|
-
'programAddress': json['programAddress'] == null ? undefined : json['programAddress'],
|
|
67
|
-
'protocolFamily': json['protocolFamily'] == null ? undefined : json['protocolFamily'],
|
|
68
|
-
'image': json['image'] == null ? undefined : json['image'],
|
|
69
|
-
'chain': json['chain'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function DexDTOToJSON(json: any): DexDTO {
|
|
74
|
-
return DexDTOToJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function DexDTOToJSONTyped(value?: DexDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
-
if (value == null) {
|
|
79
|
-
return value;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'programAddress': value['programAddress'],
|
|
85
|
-
'protocolFamily': value['protocolFamily'],
|
|
86
|
-
'image': value['image'],
|
|
87
|
-
'chain': value['chain'],
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DexDTO } from './DexDTO';
|
|
17
|
-
import {
|
|
18
|
-
DexDTOFromJSON,
|
|
19
|
-
DexDTOFromJSONTyped,
|
|
20
|
-
DexDTOToJSON,
|
|
21
|
-
DexDTOToJSONTyped,
|
|
22
|
-
} from './DexDTO';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface DexPage
|
|
28
|
-
*/
|
|
29
|
-
export interface DexPage {
|
|
30
|
-
/**
|
|
31
|
-
* DTO.PAGE.HAS_NEXT
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof DexPage
|
|
34
|
-
*/
|
|
35
|
-
hasNext?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* DTO.PAGE.HAS_PREV
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof DexPage
|
|
40
|
-
*/
|
|
41
|
-
hasPrev?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* DTO.PAGE.START_CURSOR
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof DexPage
|
|
46
|
-
*/
|
|
47
|
-
startCursor?: string;
|
|
48
|
-
/**
|
|
49
|
-
* DTO.PAGE.END_CURSOR
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof DexPage
|
|
52
|
-
*/
|
|
53
|
-
endCursor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* DTO.PAGE.TOTAL
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof DexPage
|
|
58
|
-
*/
|
|
59
|
-
total?: number;
|
|
60
|
-
/**
|
|
61
|
-
* DTO.DEX.PAGE.DATA
|
|
62
|
-
* @type {Array<DexDTO>}
|
|
63
|
-
* @memberof DexPage
|
|
64
|
-
*/
|
|
65
|
-
data: Array<DexDTO>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the DexPage interface.
|
|
70
|
-
*/
|
|
71
|
-
export function instanceOfDexPage(value: object): value is DexPage {
|
|
72
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function DexPageFromJSON(json: any): DexPage {
|
|
77
|
-
return DexPageFromJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function DexPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): DexPage {
|
|
81
|
-
if (json == null) {
|
|
82
|
-
return json;
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
|
|
87
|
-
'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
|
|
88
|
-
'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
|
|
89
|
-
'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
|
|
90
|
-
'total': json['total'] == null ? undefined : json['total'],
|
|
91
|
-
'data': ((json['data'] as Array<any>).map(DexDTOFromJSON)),
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function DexPageToJSON(json: any): DexPage {
|
|
96
|
-
return DexPageToJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function DexPageToJSONTyped(value?: DexPage | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
-
if (value == null) {
|
|
101
|
-
return value;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return {
|
|
105
|
-
|
|
106
|
-
'hasNext': value['hasNext'],
|
|
107
|
-
'hasPrev': value['hasPrev'],
|
|
108
|
-
'startCursor': value['startCursor'],
|
|
109
|
-
'endCursor': value['endCursor'],
|
|
110
|
-
'total': value['total'],
|
|
111
|
-
'data': ((value['data'] as Array<any>).map(DexDTOToJSON)),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DexPoolDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface DexPoolDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.DEX.PROGRAM_ADDRESS
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DexPoolDTO
|
|
26
|
-
*/
|
|
27
|
-
programAddress?: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.DEX.PROTOCOL_FAMILY
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof DexPoolDTO
|
|
32
|
-
*/
|
|
33
|
-
protocolFamily?: string;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.DEX.IMAGE
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof DexPoolDTO
|
|
38
|
-
*/
|
|
39
|
-
image?: string;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.DEX.CHAIN
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof DexPoolDTO
|
|
44
|
-
*/
|
|
45
|
-
chain: string;
|
|
46
|
-
/**
|
|
47
|
-
* DTO.DEXPOOL.POOL_ADDRESS
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof DexPoolDTO
|
|
50
|
-
*/
|
|
51
|
-
poolAddress: string;
|
|
52
|
-
/**
|
|
53
|
-
* DTO.DEXPOOL.PROTOCOL_NAME
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof DexPoolDTO
|
|
56
|
-
*/
|
|
57
|
-
protocolName?: string;
|
|
58
|
-
/**
|
|
59
|
-
* DTO.DEXPOOL.TOKEN_A
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof DexPoolDTO
|
|
62
|
-
*/
|
|
63
|
-
tokenAAddress: string;
|
|
64
|
-
/**
|
|
65
|
-
* DTO.DEXPOOL.TOKEN_B
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof DexPoolDTO
|
|
68
|
-
*/
|
|
69
|
-
tokenBAddress: string;
|
|
70
|
-
/**
|
|
71
|
-
* DTO.DEXPOOL.TVL_USD
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof DexPoolDTO
|
|
74
|
-
*/
|
|
75
|
-
tvlInUsd?: string;
|
|
76
|
-
/**
|
|
77
|
-
* DTO.DEXPOOL.TVL_SOL
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof DexPoolDTO
|
|
80
|
-
*/
|
|
81
|
-
tvlInSol?: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the DexPoolDTO interface.
|
|
86
|
-
*/
|
|
87
|
-
export function instanceOfDexPoolDTO(value: object): value is DexPoolDTO {
|
|
88
|
-
if (!('chain' in value) || value['chain'] === undefined) return false;
|
|
89
|
-
if (!('poolAddress' in value) || value['poolAddress'] === undefined) return false;
|
|
90
|
-
if (!('tokenAAddress' in value) || value['tokenAAddress'] === undefined) return false;
|
|
91
|
-
if (!('tokenBAddress' in value) || value['tokenBAddress'] === undefined) return false;
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function DexPoolDTOFromJSON(json: any): DexPoolDTO {
|
|
96
|
-
return DexPoolDTOFromJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function DexPoolDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): DexPoolDTO {
|
|
100
|
-
if (json == null) {
|
|
101
|
-
return json;
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
|
|
105
|
-
'programAddress': json['programAddress'] == null ? undefined : json['programAddress'],
|
|
106
|
-
'protocolFamily': json['protocolFamily'] == null ? undefined : json['protocolFamily'],
|
|
107
|
-
'image': json['image'] == null ? undefined : json['image'],
|
|
108
|
-
'chain': json['chain'],
|
|
109
|
-
'poolAddress': json['poolAddress'],
|
|
110
|
-
'protocolName': json['protocolName'] == null ? undefined : json['protocolName'],
|
|
111
|
-
'tokenAAddress': json['tokenAAddress'],
|
|
112
|
-
'tokenBAddress': json['tokenBAddress'],
|
|
113
|
-
'tvlInUsd': json['tvlInUsd'] == null ? undefined : json['tvlInUsd'],
|
|
114
|
-
'tvlInSol': json['tvlInSol'] == null ? undefined : json['tvlInSol'],
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function DexPoolDTOToJSON(json: any): DexPoolDTO {
|
|
119
|
-
return DexPoolDTOToJSONTyped(json, false);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export function DexPoolDTOToJSONTyped(value?: DexPoolDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
-
if (value == null) {
|
|
124
|
-
return value;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
|
|
129
|
-
'programAddress': value['programAddress'],
|
|
130
|
-
'protocolFamily': value['protocolFamily'],
|
|
131
|
-
'image': value['image'],
|
|
132
|
-
'chain': value['chain'],
|
|
133
|
-
'poolAddress': value['poolAddress'],
|
|
134
|
-
'protocolName': value['protocolName'],
|
|
135
|
-
'tokenAAddress': value['tokenAAddress'],
|
|
136
|
-
'tokenBAddress': value['tokenBAddress'],
|
|
137
|
-
'tvlInUsd': value['tvlInUsd'],
|
|
138
|
-
'tvlInSol': value['tvlInSol'],
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { EndpointResponse } from './EndpointResponse';
|
|
17
|
-
import {
|
|
18
|
-
EndpointResponseFromJSON,
|
|
19
|
-
EndpointResponseFromJSONTyped,
|
|
20
|
-
EndpointResponseToJSON,
|
|
21
|
-
EndpointResponseToJSONTyped,
|
|
22
|
-
} from './EndpointResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface EndpointListResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface EndpointListResponse {
|
|
30
|
-
/**
|
|
31
|
-
* DTO.ENDPOINT.PAGE.DATA
|
|
32
|
-
* @type {Array<EndpointResponse>}
|
|
33
|
-
* @memberof EndpointListResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<EndpointResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* DTO.ENDPOINT.PAGE.DONE
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof EndpointListResponse
|
|
40
|
-
*/
|
|
41
|
-
done?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* DTO.ENDPOINT.PAGE.ITERATOR
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof EndpointListResponse
|
|
46
|
-
*/
|
|
47
|
-
iterator?: string;
|
|
48
|
-
/**
|
|
49
|
-
* DTO.ENDPOINT.PAGE.PREV_ITERATOR
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof EndpointListResponse
|
|
52
|
-
*/
|
|
53
|
-
prevIterator?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the EndpointListResponse interface.
|
|
58
|
-
*/
|
|
59
|
-
export function instanceOfEndpointListResponse(value: object): value is EndpointListResponse {
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function EndpointListResponseFromJSON(json: any): EndpointListResponse {
|
|
64
|
-
return EndpointListResponseFromJSONTyped(json, false);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function EndpointListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointListResponse {
|
|
68
|
-
if (json == null) {
|
|
69
|
-
return json;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(EndpointResponseFromJSON)),
|
|
74
|
-
'done': json['done'] == null ? undefined : json['done'],
|
|
75
|
-
'iterator': json['iterator'] == null ? undefined : json['iterator'],
|
|
76
|
-
'prevIterator': json['prevIterator'] == null ? undefined : json['prevIterator'],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function EndpointListResponseToJSON(json: any): EndpointListResponse {
|
|
81
|
-
return EndpointListResponseToJSONTyped(json, false);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function EndpointListResponseToJSONTyped(value?: EndpointListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
-
if (value == null) {
|
|
86
|
-
return value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(EndpointResponseToJSON)),
|
|
92
|
-
'done': value['done'],
|
|
93
|
-
'iterator': value['iterator'],
|
|
94
|
-
'prevIterator': value['prevIterator'],
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|