@chainstream-io/sdk 0.1.8 → 0.1.9
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 +2 -2
- package/dist/esm/index.js +73 -74
- 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 +119 -118
- package/dist/esm/stream/stream.js +36 -34
- package/dist/index.js +99 -96
- package/dist/openapi/apis/BlockchainApi.js +69 -48
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +74 -53
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +45 -28
- package/dist/openapi/apis/DexApi.js +217 -184
- package/dist/openapi/apis/DexPoolApi.js +49 -32
- package/dist/openapi/apis/EndpointApi.js +220 -179
- package/dist/openapi/apis/IpfsApi.js +44 -27
- package/dist/openapi/apis/JobsApi.js +72 -51
- package/dist/openapi/apis/RankingApi.js +306 -273
- package/dist/openapi/apis/RedPacketApi.js +305 -260
- package/dist/openapi/apis/TokenApi.js +1182 -1089
- package/dist/openapi/apis/TradeApi.js +256 -227
- package/dist/openapi/apis/TransactionApi.js +49 -32
- package/dist/openapi/apis/WalletApi.js +159 -130
- package/dist/openapi/apis/WatchlistApi.js +49 -32
- package/dist/openapi/apis/index.js +31 -15
- package/dist/openapi/index.js +19 -3
- package/dist/openapi/models/BlockchainDTO.js +12 -5
- package/dist/openapi/models/BlockchainLatestBlockDTO.js +12 -5
- package/dist/openapi/models/BooleanResultDTO.js +12 -5
- package/dist/openapi/models/CalculatePnlInput.js +12 -5
- package/dist/openapi/models/Candle.js +15 -8
- package/dist/openapi/models/ClaimRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateEndpointInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketReply.js +12 -5
- package/dist/openapi/models/CreateTokenInput.js +14 -6
- package/dist/openapi/models/CreateTokenReply.js +12 -5
- package/dist/openapi/models/DexDTO.js +12 -5
- package/dist/openapi/models/DexPage.js +15 -8
- package/dist/openapi/models/DexPoolDTO.js +12 -5
- package/dist/openapi/models/EndpointListResponse.js +15 -8
- package/dist/openapi/models/EndpointOperationResponse.js +12 -5
- package/dist/openapi/models/EndpointResponse.js +12 -5
- package/dist/openapi/models/EndpointSecretResponse.js +12 -5
- package/dist/openapi/models/FilterCondition.js +14 -6
- package/dist/openapi/models/GainersAndLosersDTO.js +12 -5
- package/dist/openapi/models/GainersAndLosersPage.js +15 -8
- package/dist/openapi/models/JobDTO.js +12 -5
- package/dist/openapi/models/JobStreamingDTO.js +12 -5
- package/dist/openapi/models/Link.js +14 -6
- package/dist/openapi/models/MoonshotCreateTokenInput.js +18 -10
- package/dist/openapi/models/MoonshotCreateTokenReply.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +12 -5
- package/dist/openapi/models/PumpCreateTokenInput.js +15 -7
- package/dist/openapi/models/PumpCreateTokenReply.js +12 -5
- package/dist/openapi/models/QuoteResponse.js +12 -5
- package/dist/openapi/models/RedPacketClaimDTO.js +14 -6
- package/dist/openapi/models/RedPacketClaimsPage.js +15 -8
- package/dist/openapi/models/RedPacketDTO.js +14 -6
- package/dist/openapi/models/RedPacketReply.js +12 -5
- package/dist/openapi/models/RedPacketSendTxInput.js +12 -5
- package/dist/openapi/models/RedPacketSendTxResponse.js +12 -5
- package/dist/openapi/models/RedPacketsPage.js +15 -8
- package/dist/openapi/models/Resolution.js +17 -9
- package/dist/openapi/models/SendTxInput.js +14 -6
- package/dist/openapi/models/SendTxResponse.js +12 -5
- package/dist/openapi/models/SwapInput.js +15 -7
- package/dist/openapi/models/SwapReply.js +12 -5
- package/dist/openapi/models/SwapRouteInput.js +15 -7
- package/dist/openapi/models/SwapRouteResponse.js +15 -8
- package/dist/openapi/models/Token.js +30 -23
- package/dist/openapi/models/TokenCreationDTO.js +14 -6
- package/dist/openapi/models/TokenCreationPage.js +15 -8
- package/dist/openapi/models/TokenCreatorsDTO.js +12 -5
- package/dist/openapi/models/TokenExtraDTO.js +12 -5
- package/dist/openapi/models/TokenHolder.js +12 -5
- package/dist/openapi/models/TokenHolderPage.js +15 -8
- package/dist/openapi/models/TokenListPage.js +15 -8
- package/dist/openapi/models/TokenMarketData.js +12 -5
- package/dist/openapi/models/TokenMetadata.js +21 -14
- package/dist/openapi/models/TokenPage.js +15 -8
- package/dist/openapi/models/TokenPriceDTO.js +12 -5
- package/dist/openapi/models/TokenPricePage.js +15 -8
- package/dist/openapi/models/TokenSocialMediasDTO.js +12 -5
- package/dist/openapi/models/TokenStat.js +12 -5
- package/dist/openapi/models/TopTradersDTO.js +12 -5
- package/dist/openapi/models/TopTradersPage.js +15 -8
- package/dist/openapi/models/TradeDetailDTO.js +12 -5
- package/dist/openapi/models/TradeEvent.js +15 -8
- package/dist/openapi/models/TradePage.js +15 -8
- package/dist/openapi/models/TradeType.js +17 -9
- package/dist/openapi/models/UpdateEndpointInput.js +12 -5
- package/dist/openapi/models/WalletBalanceDetailDTO.js +12 -5
- package/dist/openapi/models/WalletBalancesDTO.js +15 -8
- package/dist/openapi/models/WalletPnlDTO.js +12 -5
- package/dist/openapi/models/index.js +86 -70
- package/dist/openapi/runtime.js +153 -136
- package/dist/stream/index.js +19 -3
- package/dist/stream/stream.fields.js +11 -5
- package/dist/stream/stream.js +45 -39
- package/dist/stream/stream.model.js +13 -10
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,17 +12,24 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoonshotCreateTokenInputMigrationDexEnum = exports.MoonshotCreateTokenInputDexEnum = void 0;
|
|
17
|
+
exports.instanceOfMoonshotCreateTokenInput = instanceOfMoonshotCreateTokenInput;
|
|
18
|
+
exports.MoonshotCreateTokenInputFromJSON = MoonshotCreateTokenInputFromJSON;
|
|
19
|
+
exports.MoonshotCreateTokenInputFromJSONTyped = MoonshotCreateTokenInputFromJSONTyped;
|
|
20
|
+
exports.MoonshotCreateTokenInputToJSON = MoonshotCreateTokenInputToJSON;
|
|
21
|
+
exports.MoonshotCreateTokenInputToJSONTyped = MoonshotCreateTokenInputToJSONTyped;
|
|
22
|
+
const Link_1 = require("./Link");
|
|
15
23
|
/**
|
|
16
24
|
* @export
|
|
17
25
|
*/
|
|
18
|
-
|
|
26
|
+
exports.MoonshotCreateTokenInputDexEnum = {
|
|
19
27
|
Moonshot: 'moonshot'
|
|
20
28
|
};
|
|
21
29
|
/**
|
|
22
30
|
* @export
|
|
23
31
|
*/
|
|
24
|
-
|
|
32
|
+
exports.MoonshotCreateTokenInputMigrationDexEnum = {
|
|
25
33
|
Raydium: 'RAYDIUM',
|
|
26
34
|
Meteora: 'METEORA',
|
|
27
35
|
Uniswap: 'UNISWAP'
|
|
@@ -29,7 +37,7 @@ export const MoonshotCreateTokenInputMigrationDexEnum = {
|
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the MoonshotCreateTokenInput interface.
|
|
31
39
|
*/
|
|
32
|
-
|
|
40
|
+
function instanceOfMoonshotCreateTokenInput(value) {
|
|
33
41
|
if (!('dex' in value) || value['dex'] === undefined)
|
|
34
42
|
return false;
|
|
35
43
|
if (!('userAddress' in value) || value['userAddress'] === undefined)
|
|
@@ -50,10 +58,10 @@ export function instanceOfMoonshotCreateTokenInput(value) {
|
|
|
50
58
|
return false;
|
|
51
59
|
return true;
|
|
52
60
|
}
|
|
53
|
-
|
|
61
|
+
function MoonshotCreateTokenInputFromJSON(json) {
|
|
54
62
|
return MoonshotCreateTokenInputFromJSONTyped(json, false);
|
|
55
63
|
}
|
|
56
|
-
|
|
64
|
+
function MoonshotCreateTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
65
|
if (json == null) {
|
|
58
66
|
return json;
|
|
59
67
|
}
|
|
@@ -66,15 +74,15 @@ export function MoonshotCreateTokenInputFromJSONTyped(json, ignoreDiscriminator)
|
|
|
66
74
|
'migrationDex': json['migrationDex'],
|
|
67
75
|
'icon': json['icon'],
|
|
68
76
|
'description': json['description'],
|
|
69
|
-
'links': (json['links'].map(LinkFromJSON)),
|
|
77
|
+
'links': (json['links'].map(Link_1.LinkFromJSON)),
|
|
70
78
|
'banner': json['banner'] == null ? undefined : json['banner'],
|
|
71
79
|
'tokenAmount': json['tokenAmount'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
|
-
|
|
82
|
+
function MoonshotCreateTokenInputToJSON(json) {
|
|
75
83
|
return MoonshotCreateTokenInputToJSONTyped(json, false);
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
function MoonshotCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
86
|
if (value == null) {
|
|
79
87
|
return value;
|
|
80
88
|
}
|
|
@@ -87,7 +95,7 @@ export function MoonshotCreateTokenInputToJSONTyped(value, ignoreDiscriminator =
|
|
|
87
95
|
'migrationDex': value['migrationDex'],
|
|
88
96
|
'icon': value['icon'],
|
|
89
97
|
'description': value['description'],
|
|
90
|
-
'links': (value['links'].map(LinkToJSON)),
|
|
98
|
+
'links': (value['links'].map(Link_1.LinkToJSON)),
|
|
91
99
|
'banner': value['banner'],
|
|
92
100
|
'tokenAmount': value['tokenAmount'],
|
|
93
101
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,20 +12,26 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMoonshotCreateTokenReply = instanceOfMoonshotCreateTokenReply;
|
|
17
|
+
exports.MoonshotCreateTokenReplyFromJSON = MoonshotCreateTokenReplyFromJSON;
|
|
18
|
+
exports.MoonshotCreateTokenReplyFromJSONTyped = MoonshotCreateTokenReplyFromJSONTyped;
|
|
19
|
+
exports.MoonshotCreateTokenReplyToJSON = MoonshotCreateTokenReplyToJSON;
|
|
20
|
+
exports.MoonshotCreateTokenReplyToJSONTyped = MoonshotCreateTokenReplyToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the MoonshotCreateTokenReply interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfMoonshotCreateTokenReply(value) {
|
|
18
25
|
if (!('serializedTx' in value) || value['serializedTx'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
if (!('extra' in value) || value['extra'] === undefined)
|
|
21
28
|
return false;
|
|
22
29
|
return true;
|
|
23
30
|
}
|
|
24
|
-
|
|
31
|
+
function MoonshotCreateTokenReplyFromJSON(json) {
|
|
25
32
|
return MoonshotCreateTokenReplyFromJSONTyped(json, false);
|
|
26
33
|
}
|
|
27
|
-
|
|
34
|
+
function MoonshotCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
35
|
if (json == null) {
|
|
29
36
|
return json;
|
|
30
37
|
}
|
|
@@ -33,10 +40,10 @@ export function MoonshotCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator)
|
|
|
33
40
|
'extra': json['extra'],
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function MoonshotCreateTokenReplyToJSON(json) {
|
|
37
44
|
return MoonshotCreateTokenReplyToJSONTyped(json, false);
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function MoonshotCreateTokenReplyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
47
|
if (value == null) {
|
|
41
48
|
return value;
|
|
42
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,16 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMoonshotSubmitCreateToken200Response = instanceOfMoonshotSubmitCreateToken200Response;
|
|
17
|
+
exports.MoonshotSubmitCreateToken200ResponseFromJSON = MoonshotSubmitCreateToken200ResponseFromJSON;
|
|
18
|
+
exports.MoonshotSubmitCreateToken200ResponseFromJSONTyped = MoonshotSubmitCreateToken200ResponseFromJSONTyped;
|
|
19
|
+
exports.MoonshotSubmitCreateToken200ResponseToJSON = MoonshotSubmitCreateToken200ResponseToJSON;
|
|
20
|
+
exports.MoonshotSubmitCreateToken200ResponseToJSONTyped = MoonshotSubmitCreateToken200ResponseToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the MoonshotSubmitCreateToken200Response interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfMoonshotSubmitCreateToken200Response(value) {
|
|
18
25
|
return true;
|
|
19
26
|
}
|
|
20
|
-
|
|
27
|
+
function MoonshotSubmitCreateToken200ResponseFromJSON(json) {
|
|
21
28
|
return MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, false);
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
31
|
if (json == null) {
|
|
25
32
|
return json;
|
|
26
33
|
}
|
|
@@ -29,10 +36,10 @@ export function MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, ignoreDi
|
|
|
29
36
|
'slot': json['slot'] == null ? undefined : json['slot'],
|
|
30
37
|
};
|
|
31
38
|
}
|
|
32
|
-
|
|
39
|
+
function MoonshotSubmitCreateToken200ResponseToJSON(json) {
|
|
33
40
|
return MoonshotSubmitCreateToken200ResponseToJSONTyped(json, false);
|
|
34
41
|
}
|
|
35
|
-
|
|
42
|
+
function MoonshotSubmitCreateToken200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
43
|
if (value == null) {
|
|
37
44
|
return value;
|
|
38
45
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,18 +12,24 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMoonshotSubmitCreateTokenInput = instanceOfMoonshotSubmitCreateTokenInput;
|
|
17
|
+
exports.MoonshotSubmitCreateTokenInputFromJSON = MoonshotSubmitCreateTokenInputFromJSON;
|
|
18
|
+
exports.MoonshotSubmitCreateTokenInputFromJSONTyped = MoonshotSubmitCreateTokenInputFromJSONTyped;
|
|
19
|
+
exports.MoonshotSubmitCreateTokenInputToJSON = MoonshotSubmitCreateTokenInputToJSON;
|
|
20
|
+
exports.MoonshotSubmitCreateTokenInputToJSONTyped = MoonshotSubmitCreateTokenInputToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the MoonshotSubmitCreateTokenInput interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfMoonshotSubmitCreateTokenInput(value) {
|
|
18
25
|
if (!('signedTx' in value) || value['signedTx'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
return true;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
function MoonshotSubmitCreateTokenInputFromJSON(json) {
|
|
23
30
|
return MoonshotSubmitCreateTokenInputFromJSONTyped(json, false);
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
function MoonshotSubmitCreateTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
33
|
if (json == null) {
|
|
27
34
|
return json;
|
|
28
35
|
}
|
|
@@ -31,10 +38,10 @@ export function MoonshotSubmitCreateTokenInputFromJSONTyped(json, ignoreDiscrimi
|
|
|
31
38
|
'extra': json['extra'] == null ? undefined : json['extra'],
|
|
32
39
|
};
|
|
33
40
|
}
|
|
34
|
-
|
|
41
|
+
function MoonshotSubmitCreateTokenInputToJSON(json) {
|
|
35
42
|
return MoonshotSubmitCreateTokenInputToJSONTyped(json, false);
|
|
36
43
|
}
|
|
37
|
-
|
|
44
|
+
function MoonshotSubmitCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
45
|
if (value == null) {
|
|
39
46
|
return value;
|
|
40
47
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,23 +12,30 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PumpCreateTokenInputMigrationDexEnum = exports.PumpCreateTokenInputDexEnum = void 0;
|
|
17
|
+
exports.instanceOfPumpCreateTokenInput = instanceOfPumpCreateTokenInput;
|
|
18
|
+
exports.PumpCreateTokenInputFromJSON = PumpCreateTokenInputFromJSON;
|
|
19
|
+
exports.PumpCreateTokenInputFromJSONTyped = PumpCreateTokenInputFromJSONTyped;
|
|
20
|
+
exports.PumpCreateTokenInputToJSON = PumpCreateTokenInputToJSON;
|
|
21
|
+
exports.PumpCreateTokenInputToJSONTyped = PumpCreateTokenInputToJSONTyped;
|
|
14
22
|
/**
|
|
15
23
|
* @export
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
exports.PumpCreateTokenInputDexEnum = {
|
|
18
26
|
Pumpfun: 'pumpfun'
|
|
19
27
|
};
|
|
20
28
|
/**
|
|
21
29
|
* @export
|
|
22
30
|
*/
|
|
23
|
-
|
|
31
|
+
exports.PumpCreateTokenInputMigrationDexEnum = {
|
|
24
32
|
Raydium: 'RAYDIUM',
|
|
25
33
|
Meteora: 'METEORA'
|
|
26
34
|
};
|
|
27
35
|
/**
|
|
28
36
|
* Check if a given object implements the PumpCreateTokenInput interface.
|
|
29
37
|
*/
|
|
30
|
-
|
|
38
|
+
function instanceOfPumpCreateTokenInput(value) {
|
|
31
39
|
if (!('dex' in value) || value['dex'] === undefined)
|
|
32
40
|
return false;
|
|
33
41
|
if (!('userAddress' in value) || value['userAddress'] === undefined)
|
|
@@ -46,10 +54,10 @@ export function instanceOfPumpCreateTokenInput(value) {
|
|
|
46
54
|
return false;
|
|
47
55
|
return true;
|
|
48
56
|
}
|
|
49
|
-
|
|
57
|
+
function PumpCreateTokenInputFromJSON(json) {
|
|
50
58
|
return PumpCreateTokenInputFromJSONTyped(json, false);
|
|
51
59
|
}
|
|
52
|
-
|
|
60
|
+
function PumpCreateTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
61
|
if (json == null) {
|
|
54
62
|
return json;
|
|
55
63
|
}
|
|
@@ -68,10 +76,10 @@ export function PumpCreateTokenInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
76
|
'description': json['description'],
|
|
69
77
|
};
|
|
70
78
|
}
|
|
71
|
-
|
|
79
|
+
function PumpCreateTokenInputToJSON(json) {
|
|
72
80
|
return PumpCreateTokenInputToJSONTyped(json, false);
|
|
73
81
|
}
|
|
74
|
-
|
|
82
|
+
function PumpCreateTokenInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
83
|
if (value == null) {
|
|
76
84
|
return value;
|
|
77
85
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,18 +12,24 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPumpCreateTokenReply = instanceOfPumpCreateTokenReply;
|
|
17
|
+
exports.PumpCreateTokenReplyFromJSON = PumpCreateTokenReplyFromJSON;
|
|
18
|
+
exports.PumpCreateTokenReplyFromJSONTyped = PumpCreateTokenReplyFromJSONTyped;
|
|
19
|
+
exports.PumpCreateTokenReplyToJSON = PumpCreateTokenReplyToJSON;
|
|
20
|
+
exports.PumpCreateTokenReplyToJSONTyped = PumpCreateTokenReplyToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the PumpCreateTokenReply interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfPumpCreateTokenReply(value) {
|
|
18
25
|
if (!('serializedTx' in value) || value['serializedTx'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
return true;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
function PumpCreateTokenReplyFromJSON(json) {
|
|
23
30
|
return PumpCreateTokenReplyFromJSONTyped(json, false);
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
function PumpCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
33
|
if (json == null) {
|
|
27
34
|
return json;
|
|
28
35
|
}
|
|
@@ -31,10 +38,10 @@ export function PumpCreateTokenReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
38
|
'extra': json['extra'] == null ? undefined : json['extra'],
|
|
32
39
|
};
|
|
33
40
|
}
|
|
34
|
-
|
|
41
|
+
function PumpCreateTokenReplyToJSON(json) {
|
|
35
42
|
return PumpCreateTokenReplyToJSONTyped(json, false);
|
|
36
43
|
}
|
|
37
|
-
|
|
44
|
+
function PumpCreateTokenReplyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
45
|
if (value == null) {
|
|
39
46
|
return value;
|
|
40
47
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,16 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfQuoteResponse = instanceOfQuoteResponse;
|
|
17
|
+
exports.QuoteResponseFromJSON = QuoteResponseFromJSON;
|
|
18
|
+
exports.QuoteResponseFromJSONTyped = QuoteResponseFromJSONTyped;
|
|
19
|
+
exports.QuoteResponseToJSON = QuoteResponseToJSON;
|
|
20
|
+
exports.QuoteResponseToJSONTyped = QuoteResponseToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the QuoteResponse interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfQuoteResponse(value) {
|
|
18
25
|
return true;
|
|
19
26
|
}
|
|
20
|
-
|
|
27
|
+
function QuoteResponseFromJSON(json) {
|
|
21
28
|
return QuoteResponseFromJSONTyped(json, false);
|
|
22
29
|
}
|
|
23
|
-
|
|
30
|
+
function QuoteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
31
|
if (json == null) {
|
|
25
32
|
return json;
|
|
26
33
|
}
|
|
@@ -33,10 +40,10 @@ export function QuoteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
40
|
'fee': json['fee'] == null ? undefined : json['fee'],
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function QuoteResponseToJSON(json) {
|
|
37
44
|
return QuoteResponseToJSONTyped(json, false);
|
|
38
45
|
}
|
|
39
|
-
|
|
46
|
+
function QuoteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
47
|
if (value == null) {
|
|
41
48
|
return value;
|
|
42
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,17 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RedPacketClaimDTOChainEnum = void 0;
|
|
17
|
+
exports.instanceOfRedPacketClaimDTO = instanceOfRedPacketClaimDTO;
|
|
18
|
+
exports.RedPacketClaimDTOFromJSON = RedPacketClaimDTOFromJSON;
|
|
19
|
+
exports.RedPacketClaimDTOFromJSONTyped = RedPacketClaimDTOFromJSONTyped;
|
|
20
|
+
exports.RedPacketClaimDTOToJSON = RedPacketClaimDTOToJSON;
|
|
21
|
+
exports.RedPacketClaimDTOToJSONTyped = RedPacketClaimDTOToJSONTyped;
|
|
14
22
|
/**
|
|
15
23
|
* @export
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
exports.RedPacketClaimDTOChainEnum = {
|
|
18
26
|
Sol: 'sol',
|
|
19
27
|
Base: 'base',
|
|
20
28
|
Bsc: 'bsc',
|
|
@@ -29,7 +37,7 @@ export const RedPacketClaimDTOChainEnum = {
|
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the RedPacketClaimDTO interface.
|
|
31
39
|
*/
|
|
32
|
-
|
|
40
|
+
function instanceOfRedPacketClaimDTO(value) {
|
|
33
41
|
if (!('packetId' in value) || value['packetId'] === undefined)
|
|
34
42
|
return false;
|
|
35
43
|
if (!('chain' in value) || value['chain'] === undefined)
|
|
@@ -48,10 +56,10 @@ export function instanceOfRedPacketClaimDTO(value) {
|
|
|
48
56
|
return false;
|
|
49
57
|
return true;
|
|
50
58
|
}
|
|
51
|
-
|
|
59
|
+
function RedPacketClaimDTOFromJSON(json) {
|
|
52
60
|
return RedPacketClaimDTOFromJSONTyped(json, false);
|
|
53
61
|
}
|
|
54
|
-
|
|
62
|
+
function RedPacketClaimDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
63
|
if (json == null) {
|
|
56
64
|
return json;
|
|
57
65
|
}
|
|
@@ -66,10 +74,10 @@ export function RedPacketClaimDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
74
|
'txHash': json['txHash'],
|
|
67
75
|
};
|
|
68
76
|
}
|
|
69
|
-
|
|
77
|
+
function RedPacketClaimDTOToJSON(json) {
|
|
70
78
|
return RedPacketClaimDTOToJSONTyped(json, false);
|
|
71
79
|
}
|
|
72
|
-
|
|
80
|
+
function RedPacketClaimDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
81
|
if (value == null) {
|
|
74
82
|
return value;
|
|
75
83
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,11 +12,17 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRedPacketClaimsPage = instanceOfRedPacketClaimsPage;
|
|
17
|
+
exports.RedPacketClaimsPageFromJSON = RedPacketClaimsPageFromJSON;
|
|
18
|
+
exports.RedPacketClaimsPageFromJSONTyped = RedPacketClaimsPageFromJSONTyped;
|
|
19
|
+
exports.RedPacketClaimsPageToJSON = RedPacketClaimsPageToJSON;
|
|
20
|
+
exports.RedPacketClaimsPageToJSONTyped = RedPacketClaimsPageToJSONTyped;
|
|
21
|
+
const RedPacketClaimDTO_1 = require("./RedPacketClaimDTO");
|
|
15
22
|
/**
|
|
16
23
|
* Check if a given object implements the RedPacketClaimsPage interface.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
function instanceOfRedPacketClaimsPage(value) {
|
|
19
26
|
if (!('total' in value) || value['total'] === undefined)
|
|
20
27
|
return false;
|
|
21
28
|
if (!('hasNextPage' in value) || value['hasNextPage'] === undefined)
|
|
@@ -28,10 +35,10 @@ export function instanceOfRedPacketClaimsPage(value) {
|
|
|
28
35
|
return false;
|
|
29
36
|
return true;
|
|
30
37
|
}
|
|
31
|
-
|
|
38
|
+
function RedPacketClaimsPageFromJSON(json) {
|
|
32
39
|
return RedPacketClaimsPageFromJSONTyped(json, false);
|
|
33
40
|
}
|
|
34
|
-
|
|
41
|
+
function RedPacketClaimsPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
42
|
if (json == null) {
|
|
36
43
|
return json;
|
|
37
44
|
}
|
|
@@ -40,13 +47,13 @@ export function RedPacketClaimsPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
47
|
'hasNextPage': json['hasNextPage'],
|
|
41
48
|
'startCursor': json['startCursor'],
|
|
42
49
|
'endCursor': json['endCursor'],
|
|
43
|
-
'records': (json['records'].map(RedPacketClaimDTOFromJSON)),
|
|
50
|
+
'records': (json['records'].map(RedPacketClaimDTO_1.RedPacketClaimDTOFromJSON)),
|
|
44
51
|
};
|
|
45
52
|
}
|
|
46
|
-
|
|
53
|
+
function RedPacketClaimsPageToJSON(json) {
|
|
47
54
|
return RedPacketClaimsPageToJSONTyped(json, false);
|
|
48
55
|
}
|
|
49
|
-
|
|
56
|
+
function RedPacketClaimsPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
57
|
if (value == null) {
|
|
51
58
|
return value;
|
|
52
59
|
}
|
|
@@ -55,6 +62,6 @@ export function RedPacketClaimsPageToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
55
62
|
'hasNextPage': value['hasNextPage'],
|
|
56
63
|
'startCursor': value['startCursor'],
|
|
57
64
|
'endCursor': value['endCursor'],
|
|
58
|
-
'records': (value['records'].map(RedPacketClaimDTOToJSON)),
|
|
65
|
+
'records': (value['records'].map(RedPacketClaimDTO_1.RedPacketClaimDTOToJSON)),
|
|
59
66
|
};
|
|
60
67
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,10 +12,17 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RedPacketDTOChainEnum = void 0;
|
|
17
|
+
exports.instanceOfRedPacketDTO = instanceOfRedPacketDTO;
|
|
18
|
+
exports.RedPacketDTOFromJSON = RedPacketDTOFromJSON;
|
|
19
|
+
exports.RedPacketDTOFromJSONTyped = RedPacketDTOFromJSONTyped;
|
|
20
|
+
exports.RedPacketDTOToJSON = RedPacketDTOToJSON;
|
|
21
|
+
exports.RedPacketDTOToJSONTyped = RedPacketDTOToJSONTyped;
|
|
14
22
|
/**
|
|
15
23
|
* @export
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
exports.RedPacketDTOChainEnum = {
|
|
18
26
|
Sol: 'sol',
|
|
19
27
|
Base: 'base',
|
|
20
28
|
Bsc: 'bsc',
|
|
@@ -29,7 +37,7 @@ export const RedPacketDTOChainEnum = {
|
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the RedPacketDTO interface.
|
|
31
39
|
*/
|
|
32
|
-
|
|
40
|
+
function instanceOfRedPacketDTO(value) {
|
|
33
41
|
if (!('chain' in value) || value['chain'] === undefined)
|
|
34
42
|
return false;
|
|
35
43
|
if (!('id' in value) || value['id'] === undefined)
|
|
@@ -66,10 +74,10 @@ export function instanceOfRedPacketDTO(value) {
|
|
|
66
74
|
return false;
|
|
67
75
|
return true;
|
|
68
76
|
}
|
|
69
|
-
|
|
77
|
+
function RedPacketDTOFromJSON(json) {
|
|
70
78
|
return RedPacketDTOFromJSONTyped(json, false);
|
|
71
79
|
}
|
|
72
|
-
|
|
80
|
+
function RedPacketDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
73
81
|
if (json == null) {
|
|
74
82
|
return json;
|
|
75
83
|
}
|
|
@@ -93,10 +101,10 @@ export function RedPacketDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
101
|
'refundedAmount': json['refundedAmount'],
|
|
94
102
|
};
|
|
95
103
|
}
|
|
96
|
-
|
|
104
|
+
function RedPacketDTOToJSON(json) {
|
|
97
105
|
return RedPacketDTOToJSONTyped(json, false);
|
|
98
106
|
}
|
|
99
|
-
|
|
107
|
+
function RedPacketDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
100
108
|
if (value == null) {
|
|
101
109
|
return value;
|
|
102
110
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,18 +12,24 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRedPacketReply = instanceOfRedPacketReply;
|
|
17
|
+
exports.RedPacketReplyFromJSON = RedPacketReplyFromJSON;
|
|
18
|
+
exports.RedPacketReplyFromJSONTyped = RedPacketReplyFromJSONTyped;
|
|
19
|
+
exports.RedPacketReplyToJSON = RedPacketReplyToJSON;
|
|
20
|
+
exports.RedPacketReplyToJSONTyped = RedPacketReplyToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the RedPacketReply interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfRedPacketReply(value) {
|
|
18
25
|
if (!('txSerialize' in value) || value['txSerialize'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
return true;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
function RedPacketReplyFromJSON(json) {
|
|
23
30
|
return RedPacketReplyFromJSONTyped(json, false);
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
function RedPacketReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
33
|
if (json == null) {
|
|
27
34
|
return json;
|
|
28
35
|
}
|
|
@@ -30,10 +37,10 @@ export function RedPacketReplyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
37
|
'txSerialize': json['txSerialize'],
|
|
31
38
|
};
|
|
32
39
|
}
|
|
33
|
-
|
|
40
|
+
function RedPacketReplyToJSON(json) {
|
|
34
41
|
return RedPacketReplyToJSONTyped(json, false);
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function RedPacketReplyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
44
|
if (value == null) {
|
|
38
45
|
return value;
|
|
39
46
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,18 +12,24 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRedPacketSendTxInput = instanceOfRedPacketSendTxInput;
|
|
17
|
+
exports.RedPacketSendTxInputFromJSON = RedPacketSendTxInputFromJSON;
|
|
18
|
+
exports.RedPacketSendTxInputFromJSONTyped = RedPacketSendTxInputFromJSONTyped;
|
|
19
|
+
exports.RedPacketSendTxInputToJSON = RedPacketSendTxInputToJSON;
|
|
20
|
+
exports.RedPacketSendTxInputToJSONTyped = RedPacketSendTxInputToJSONTyped;
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the RedPacketSendTxInput interface.
|
|
16
23
|
*/
|
|
17
|
-
|
|
24
|
+
function instanceOfRedPacketSendTxInput(value) {
|
|
18
25
|
if (!('signedTx' in value) || value['signedTx'] === undefined)
|
|
19
26
|
return false;
|
|
20
27
|
return true;
|
|
21
28
|
}
|
|
22
|
-
|
|
29
|
+
function RedPacketSendTxInputFromJSON(json) {
|
|
23
30
|
return RedPacketSendTxInputFromJSONTyped(json, false);
|
|
24
31
|
}
|
|
25
|
-
|
|
32
|
+
function RedPacketSendTxInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
33
|
if (json == null) {
|
|
27
34
|
return json;
|
|
28
35
|
}
|
|
@@ -30,10 +37,10 @@ export function RedPacketSendTxInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
37
|
'signedTx': json['signedTx'],
|
|
31
38
|
};
|
|
32
39
|
}
|
|
33
|
-
|
|
40
|
+
function RedPacketSendTxInputToJSON(json) {
|
|
34
41
|
return RedPacketSendTxInputToJSONTyped(json, false);
|
|
35
42
|
}
|
|
36
|
-
|
|
43
|
+
function RedPacketSendTxInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
44
|
if (value == null) {
|
|
38
45
|
return value;
|
|
39
46
|
}
|