@sentio/api 1.0.1 → 1.0.2-rc.10
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 +48 -1
- package/dist/src/apis/DataApi.d.ts +5 -29
- package/dist/src/apis/DataApi.js +16 -76
- package/dist/src/apis/DataApi.js.map +1 -1
- package/dist/src/apis/DebugAndSimulationApi.d.ts +12 -5
- package/dist/src/apis/DebugAndSimulationApi.js +20 -14
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/PriceApi.d.ts +60 -0
- package/dist/src/apis/PriceApi.js +141 -0
- package/dist/src/apis/PriceApi.js.map +1 -0
- package/dist/src/apis/WebApi.js +9 -9
- package/dist/src/apis/index.d.ts +1 -0
- package/dist/src/apis/index.js +1 -0
- package/dist/src/apis/index.js.map +1 -1
- package/dist/src/models/CommonTimeRangeLite.d.ts +1 -1
- package/dist/src/models/GoogleProtobufAny.d.ts +2 -1
- package/dist/src/models/GoogleProtobufAny.js.map +1 -1
- package/dist/src/models/PriceServiceBatchGetPricesResponse.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.d.ts +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.d.ts +38 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js +42 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.d.ts +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceCoinID.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinID.js +42 -0
- package/dist/src/models/PriceServiceCoinID.js.map +1 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js +41 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js.map +1 -0
- package/dist/src/models/PriceServiceGetPriceResponse.d.ts +37 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js +41 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceListCoinsResponse.d.ts +40 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js +43 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceSimulation.d.ts +16 -10
- package/dist/src/models/SolidityServiceSimulation.js +29 -9
- package/dist/src/models/SolidityServiceSimulation.js.map +1 -1
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +2 -2
- package/dist/src/models/SolidityServiceTxIdentifier.js +1 -3
- package/dist/src/models/SolidityServiceTxIdentifier.js.map +1 -1
- package/dist/src/models/WebServiceChartConfig.d.ts +7 -0
- package/dist/src/models/WebServiceChartConfig.js +3 -0
- package/dist/src/models/WebServiceChartConfig.js.map +1 -1
- package/dist/src/models/WebServiceChartConfigLineConfig.d.ts +32 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js +40 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js.map +1 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.d.ts +24 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js +34 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js.map +1 -0
- package/dist/src/models/index.d.ts +11 -2
- package/dist/src/models/index.js +11 -2
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/runtime.js +1 -1
- package/dist/src/runtime.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DataApi.ts +15 -111
- package/src/apis/DebugAndSimulationApi.ts +23 -19
- package/src/apis/PriceApi.ts +212 -0
- package/src/apis/WebApi.ts +9 -9
- package/src/apis/index.ts +1 -0
- package/src/models/CommonTimeRangeLite.ts +1 -1
- package/src/models/GoogleProtobufAny.ts +2 -1
- package/src/models/PriceServiceBatchGetPricesResponse.ts +67 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPrice.ts +89 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.ts +67 -0
- package/src/models/PriceServiceCheckLatestPriceResponse.ts +75 -0
- package/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.ts +83 -0
- package/src/models/PriceServiceCoinID.ts +75 -0
- package/src/models/PriceServiceCoinIDAddressIdentifier.ts +69 -0
- package/src/models/PriceServiceGetPriceResponse.ts +68 -0
- package/src/models/PriceServiceListCoinsResponse.ts +75 -0
- package/src/models/SolidityServiceSimulation.ts +36 -19
- package/src/models/SolidityServiceTxIdentifier.ts +3 -4
- package/src/models/WebServiceChartConfig.ts +14 -0
- package/src/models/WebServiceChartConfigLineConfig.ts +67 -0
- package/src/models/WebServiceChartConfigLineConfigStyle.ts +42 -0
- package/src/models/index.ts +11 -2
- package/src/runtime.ts +1 -1
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.d.ts +0 -75
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js +0 -55
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js.map +0 -1
- package/dist/src/models/InsightsServiceQueryRequest.d.ts +0 -95
- package/dist/src/models/InsightsServiceQueryRequest.js +0 -63
- package/dist/src/models/InsightsServiceQueryRequest.js.map +0 -1
- package/src/models/AnalyticServiceSyncExecuteSQLRequest.ts +0 -129
- package/src/models/InsightsServiceQueryRequest.ts +0 -165
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
import type { PriceServiceCoinID } from './PriceServiceCoinID.js';
|
|
17
|
+
import {
|
|
18
|
+
PriceServiceCoinIDFromJSON,
|
|
19
|
+
PriceServiceCoinIDFromJSONTyped,
|
|
20
|
+
PriceServiceCoinIDToJSON,
|
|
21
|
+
} from './PriceServiceCoinID.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PriceServiceCheckLatestPriceResponseCoinPrice
|
|
27
|
+
*/
|
|
28
|
+
export interface PriceServiceCheckLatestPriceResponseCoinPrice {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {PriceServiceCoinID}
|
|
32
|
+
* @memberof PriceServiceCheckLatestPriceResponseCoinPrice
|
|
33
|
+
*/
|
|
34
|
+
coinId?: PriceServiceCoinID;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof PriceServiceCheckLatestPriceResponseCoinPrice
|
|
39
|
+
*/
|
|
40
|
+
price?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Date}
|
|
44
|
+
* @memberof PriceServiceCheckLatestPriceResponseCoinPrice
|
|
45
|
+
*/
|
|
46
|
+
timestamp?: Date;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PriceServiceCheckLatestPriceResponseCoinPrice interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPriceServiceCheckLatestPriceResponseCoinPrice(value: object): boolean {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PriceServiceCheckLatestPriceResponseCoinPriceFromJSON(json: any): PriceServiceCheckLatestPriceResponseCoinPrice {
|
|
57
|
+
return PriceServiceCheckLatestPriceResponseCoinPriceFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PriceServiceCheckLatestPriceResponseCoinPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceCheckLatestPriceResponseCoinPrice {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'coinId': json['coinId'] == null ? undefined : PriceServiceCoinIDFromJSON(json['coinId']),
|
|
67
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
68
|
+
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PriceServiceCheckLatestPriceResponseCoinPriceToJSON(value?: PriceServiceCheckLatestPriceResponseCoinPrice | null): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'coinId': PriceServiceCoinIDToJSON(value['coinId']),
|
|
79
|
+
'price': value['price'],
|
|
80
|
+
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
import type { PriceServiceCoinIDAddressIdentifier } from './PriceServiceCoinIDAddressIdentifier.js';
|
|
17
|
+
import {
|
|
18
|
+
PriceServiceCoinIDAddressIdentifierFromJSON,
|
|
19
|
+
PriceServiceCoinIDAddressIdentifierFromJSONTyped,
|
|
20
|
+
PriceServiceCoinIDAddressIdentifierToJSON,
|
|
21
|
+
} from './PriceServiceCoinIDAddressIdentifier.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The identifier of a coin.
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PriceServiceCoinID
|
|
27
|
+
*/
|
|
28
|
+
export interface PriceServiceCoinID {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PriceServiceCoinID
|
|
33
|
+
*/
|
|
34
|
+
symbol?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {PriceServiceCoinIDAddressIdentifier}
|
|
38
|
+
* @memberof PriceServiceCoinID
|
|
39
|
+
*/
|
|
40
|
+
address?: PriceServiceCoinIDAddressIdentifier;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PriceServiceCoinID interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfPriceServiceCoinID(value: object): boolean {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PriceServiceCoinIDFromJSON(json: any): PriceServiceCoinID {
|
|
51
|
+
return PriceServiceCoinIDFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PriceServiceCoinIDFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceCoinID {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'symbol': json['symbol'] == null ? undefined : json['symbol'],
|
|
61
|
+
'address': json['address'] == null ? undefined : PriceServiceCoinIDAddressIdentifierFromJSON(json['address']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PriceServiceCoinIDToJSON(value?: PriceServiceCoinID | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'symbol': value['symbol'],
|
|
72
|
+
'address': PriceServiceCoinIDAddressIdentifierToJSON(value['address']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
/**
|
|
17
|
+
* The coin can be defined as a symbol, e.g. BTC, ETH, etc, or an address + chain.
|
|
18
|
+
* The format of the chain is consistent with the Sentio internal representation.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PriceServiceCoinIDAddressIdentifier
|
|
21
|
+
*/
|
|
22
|
+
export interface PriceServiceCoinIDAddressIdentifier {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PriceServiceCoinIDAddressIdentifier
|
|
27
|
+
*/
|
|
28
|
+
address?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PriceServiceCoinIDAddressIdentifier
|
|
33
|
+
*/
|
|
34
|
+
chain?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PriceServiceCoinIDAddressIdentifier interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfPriceServiceCoinIDAddressIdentifier(value: object): boolean {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PriceServiceCoinIDAddressIdentifierFromJSON(json: any): PriceServiceCoinIDAddressIdentifier {
|
|
45
|
+
return PriceServiceCoinIDAddressIdentifierFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PriceServiceCoinIDAddressIdentifierFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceCoinIDAddressIdentifier {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
55
|
+
'chain': json['chain'] == null ? undefined : json['chain'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PriceServiceCoinIDAddressIdentifierToJSON(value?: PriceServiceCoinIDAddressIdentifier | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'address': value['address'],
|
|
66
|
+
'chain': value['chain'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
/**
|
|
17
|
+
* GetPriceResponse is the response for GetPrice.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PriceServiceGetPriceResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PriceServiceGetPriceResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Price in USD.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PriceServiceGetPriceResponse
|
|
26
|
+
*/
|
|
27
|
+
price?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The actual timestamp of the price returned.
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof PriceServiceGetPriceResponse
|
|
32
|
+
*/
|
|
33
|
+
timestamp?: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PriceServiceGetPriceResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPriceServiceGetPriceResponse(value: object): boolean {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PriceServiceGetPriceResponseFromJSON(json: any): PriceServiceGetPriceResponse {
|
|
44
|
+
return PriceServiceGetPriceResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PriceServiceGetPriceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceGetPriceResponse {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
54
|
+
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PriceServiceGetPriceResponseToJSON(value?: PriceServiceGetPriceResponse | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'price': value['price'],
|
|
65
|
+
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
import type { PriceServiceCoinID } from './PriceServiceCoinID.js';
|
|
17
|
+
import {
|
|
18
|
+
PriceServiceCoinIDFromJSON,
|
|
19
|
+
PriceServiceCoinIDFromJSONTyped,
|
|
20
|
+
PriceServiceCoinIDToJSON,
|
|
21
|
+
} from './PriceServiceCoinID.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PriceServiceListCoinsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface PriceServiceListCoinsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<PriceServiceCoinID>}
|
|
32
|
+
* @memberof PriceServiceListCoinsResponse
|
|
33
|
+
*/
|
|
34
|
+
coins?: Array<PriceServiceCoinID>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: PriceServiceCoinID; }}
|
|
38
|
+
* @memberof PriceServiceListCoinsResponse
|
|
39
|
+
*/
|
|
40
|
+
coinAddressesInChain?: { [key: string]: PriceServiceCoinID; };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PriceServiceListCoinsResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfPriceServiceListCoinsResponse(value: object): boolean {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PriceServiceListCoinsResponseFromJSON(json: any): PriceServiceListCoinsResponse {
|
|
51
|
+
return PriceServiceListCoinsResponseFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PriceServiceListCoinsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceListCoinsResponse {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'coins': json['coins'] == null ? undefined : ((json['coins'] as Array<any>).map(PriceServiceCoinIDFromJSON)),
|
|
61
|
+
'coinAddressesInChain': json['coinAddressesInChain'] == null ? undefined : (mapValues(json['coinAddressesInChain'], PriceServiceCoinIDFromJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PriceServiceListCoinsResponseToJSON(value?: PriceServiceListCoinsResponse | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'coins': value['coins'] == null ? undefined : ((value['coins'] as Array<any>).map(PriceServiceCoinIDToJSON)),
|
|
72
|
+
'coinAddressesInChain': value['coinAddressesInChain'] == null ? undefined : (mapValues(value['coinAddressesInChain'], PriceServiceCoinIDToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -67,7 +67,7 @@ export interface SolidityServiceSimulation {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof SolidityServiceSimulation
|
|
69
69
|
*/
|
|
70
|
-
networkId
|
|
70
|
+
networkId: string;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -79,43 +79,43 @@ export interface SolidityServiceSimulation {
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof SolidityServiceSimulation
|
|
81
81
|
*/
|
|
82
|
-
to
|
|
82
|
+
to: string;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof SolidityServiceSimulation
|
|
87
87
|
*/
|
|
88
|
-
input
|
|
88
|
+
input: string;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Can be "latest".
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof SolidityServiceSimulation
|
|
93
93
|
*/
|
|
94
|
-
blockNumber
|
|
94
|
+
blockNumber: string;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {string}
|
|
98
98
|
* @memberof SolidityServiceSimulation
|
|
99
99
|
*/
|
|
100
|
-
transactionIndex
|
|
100
|
+
transactionIndex: string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof SolidityServiceSimulation
|
|
105
105
|
*/
|
|
106
|
-
from
|
|
106
|
+
from: string;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
* @type {string}
|
|
110
110
|
* @memberof SolidityServiceSimulation
|
|
111
111
|
*/
|
|
112
|
-
gas
|
|
112
|
+
gas: string;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof SolidityServiceSimulation
|
|
117
117
|
*/
|
|
118
|
-
gasPrice
|
|
118
|
+
gasPrice: string;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
* @type {string}
|
|
@@ -133,7 +133,7 @@ export interface SolidityServiceSimulation {
|
|
|
133
133
|
* @type {string}
|
|
134
134
|
* @memberof SolidityServiceSimulation
|
|
135
135
|
*/
|
|
136
|
-
value
|
|
136
|
+
value: string;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @type {Array<EvmAccessListItem>}
|
|
@@ -146,6 +146,12 @@ export interface SolidityServiceSimulation {
|
|
|
146
146
|
* @memberof SolidityServiceSimulation
|
|
147
147
|
*/
|
|
148
148
|
originTxHash?: string;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof SolidityServiceSimulation
|
|
153
|
+
*/
|
|
154
|
+
label?: string;
|
|
149
155
|
/**
|
|
150
156
|
*
|
|
151
157
|
* @type {{ [key: string]: SolidityServiceStateOverride; }}
|
|
@@ -182,6 +188,15 @@ export interface SolidityServiceSimulation {
|
|
|
182
188
|
* Check if a given object implements the SolidityServiceSimulation interface.
|
|
183
189
|
*/
|
|
184
190
|
export function instanceOfSolidityServiceSimulation(value: object): boolean {
|
|
191
|
+
if (!('networkId' in value)) return false;
|
|
192
|
+
if (!('to' in value)) return false;
|
|
193
|
+
if (!('input' in value)) return false;
|
|
194
|
+
if (!('blockNumber' in value)) return false;
|
|
195
|
+
if (!('transactionIndex' in value)) return false;
|
|
196
|
+
if (!('from' in value)) return false;
|
|
197
|
+
if (!('gas' in value)) return false;
|
|
198
|
+
if (!('gasPrice' in value)) return false;
|
|
199
|
+
if (!('value' in value)) return false;
|
|
185
200
|
return true;
|
|
186
201
|
}
|
|
187
202
|
|
|
@@ -198,20 +213,21 @@ export function SolidityServiceSimulationFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
198
213
|
'id': json['id'] == null ? undefined : json['id'],
|
|
199
214
|
'createAt': json['createAt'] == null ? undefined : json['createAt'],
|
|
200
215
|
'bundleId': json['bundleId'] == null ? undefined : json['bundleId'],
|
|
201
|
-
'networkId': json['networkId']
|
|
216
|
+
'networkId': json['networkId'],
|
|
202
217
|
'chainId': json['chainId'] == null ? undefined : json['chainId'],
|
|
203
|
-
'to': json['to']
|
|
204
|
-
'input': json['input']
|
|
205
|
-
'blockNumber': json['blockNumber']
|
|
206
|
-
'transactionIndex': json['transactionIndex']
|
|
207
|
-
'from': json['from']
|
|
208
|
-
'gas': json['gas']
|
|
209
|
-
'gasPrice': json['gasPrice']
|
|
218
|
+
'to': json['to'],
|
|
219
|
+
'input': json['input'],
|
|
220
|
+
'blockNumber': json['blockNumber'],
|
|
221
|
+
'transactionIndex': json['transactionIndex'],
|
|
222
|
+
'from': json['from'],
|
|
223
|
+
'gas': json['gas'],
|
|
224
|
+
'gasPrice': json['gasPrice'],
|
|
210
225
|
'maxFeePerGas': json['maxFeePerGas'] == null ? undefined : json['maxFeePerGas'],
|
|
211
226
|
'maxPriorityFeePerGas': json['maxPriorityFeePerGas'] == null ? undefined : json['maxPriorityFeePerGas'],
|
|
212
|
-
'value': json['value']
|
|
227
|
+
'value': json['value'],
|
|
213
228
|
'accessList': json['accessList'] == null ? undefined : ((json['accessList'] as Array<any>).map(EvmAccessListItemFromJSON)),
|
|
214
229
|
'originTxHash': json['originTxHash'] == null ? undefined : json['originTxHash'],
|
|
230
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
215
231
|
'stateOverrides': json['stateOverrides'] == null ? undefined : (mapValues(json['stateOverrides'], SolidityServiceStateOverrideFromJSON)),
|
|
216
232
|
'sourceOverrides': json['sourceOverrides'] == null ? undefined : json['sourceOverrides'],
|
|
217
233
|
'blockOverride': json['blockOverride'] == null ? undefined : SolidityServiceBlockOverridesFromJSON(json['blockOverride']),
|
|
@@ -243,6 +259,7 @@ export function SolidityServiceSimulationToJSON(value?: SolidityServiceSimulatio
|
|
|
243
259
|
'value': value['value'],
|
|
244
260
|
'accessList': value['accessList'] == null ? undefined : ((value['accessList'] as Array<any>).map(EvmAccessListItemToJSON)),
|
|
245
261
|
'originTxHash': value['originTxHash'],
|
|
262
|
+
'label': value['label'],
|
|
246
263
|
'stateOverrides': value['stateOverrides'] == null ? undefined : (mapValues(value['stateOverrides'], SolidityServiceStateOverrideToJSON)),
|
|
247
264
|
'sourceOverrides': value['sourceOverrides'],
|
|
248
265
|
'blockOverride': SolidityServiceBlockOverridesToJSON(value['blockOverride']),
|
|
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime.js';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface SolidityServiceTxIdentifier {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* One of txHash, simulationId, bundleId is required.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof SolidityServiceTxIdentifier
|
|
26
26
|
*/
|
|
27
|
-
txHash
|
|
27
|
+
txHash?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -43,7 +43,6 @@ export interface SolidityServiceTxIdentifier {
|
|
|
43
43
|
* Check if a given object implements the SolidityServiceTxIdentifier interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfSolidityServiceTxIdentifier(value: object): boolean {
|
|
46
|
-
if (!('txHash' in value)) return false;
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -57,7 +56,7 @@ export function SolidityServiceTxIdentifierFromJSONTyped(json: any, ignoreDiscri
|
|
|
57
56
|
}
|
|
58
57
|
return {
|
|
59
58
|
|
|
60
|
-
'txHash': json['txHash'],
|
|
59
|
+
'txHash': json['txHash'] == null ? undefined : json['txHash'],
|
|
61
60
|
'simulationId': json['simulationId'] == null ? undefined : json['simulationId'],
|
|
62
61
|
'bundleId': json['bundleId'] == null ? undefined : json['bundleId'],
|
|
63
62
|
};
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
WebServiceChartConfigBarGaugeConfigFromJSONTyped,
|
|
20
20
|
WebServiceChartConfigBarGaugeConfigToJSON,
|
|
21
21
|
} from './WebServiceChartConfigBarGaugeConfig.js';
|
|
22
|
+
import type { WebServiceChartConfigLineConfig } from './WebServiceChartConfigLineConfig.js';
|
|
23
|
+
import {
|
|
24
|
+
WebServiceChartConfigLineConfigFromJSON,
|
|
25
|
+
WebServiceChartConfigLineConfigFromJSONTyped,
|
|
26
|
+
WebServiceChartConfigLineConfigToJSON,
|
|
27
|
+
} from './WebServiceChartConfigLineConfig.js';
|
|
22
28
|
import type { WebServiceChartConfigMarker } from './WebServiceChartConfigMarker.js';
|
|
23
29
|
import {
|
|
24
30
|
WebServiceChartConfigMarkerFromJSON,
|
|
@@ -116,6 +122,12 @@ export interface WebServiceChartConfig {
|
|
|
116
122
|
* @memberof WebServiceChartConfig
|
|
117
123
|
*/
|
|
118
124
|
markers?: Array<WebServiceChartConfigMarker>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {WebServiceChartConfigLineConfig}
|
|
128
|
+
* @memberof WebServiceChartConfig
|
|
129
|
+
*/
|
|
130
|
+
lineConfig?: WebServiceChartConfigLineConfig;
|
|
119
131
|
}
|
|
120
132
|
|
|
121
133
|
/**
|
|
@@ -143,6 +155,7 @@ export function WebServiceChartConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
143
155
|
'queryValueConfig': json['queryValueConfig'] == null ? undefined : WebServiceChartConfigQueryValueConfigFromJSON(json['queryValueConfig']),
|
|
144
156
|
'pieConfig': json['pieConfig'] == null ? undefined : WebServiceChartConfigPieConfigFromJSON(json['pieConfig']),
|
|
145
157
|
'markers': json['markers'] == null ? undefined : ((json['markers'] as Array<any>).map(WebServiceChartConfigMarkerFromJSON)),
|
|
158
|
+
'lineConfig': json['lineConfig'] == null ? undefined : WebServiceChartConfigLineConfigFromJSON(json['lineConfig']),
|
|
146
159
|
};
|
|
147
160
|
}
|
|
148
161
|
|
|
@@ -160,6 +173,7 @@ export function WebServiceChartConfigToJSON(value?: WebServiceChartConfig | null
|
|
|
160
173
|
'queryValueConfig': WebServiceChartConfigQueryValueConfigToJSON(value['queryValueConfig']),
|
|
161
174
|
'pieConfig': WebServiceChartConfigPieConfigToJSON(value['pieConfig']),
|
|
162
175
|
'markers': value['markers'] == null ? undefined : ((value['markers'] as Array<any>).map(WebServiceChartConfigMarkerToJSON)),
|
|
176
|
+
'lineConfig': WebServiceChartConfigLineConfigToJSON(value['lineConfig']),
|
|
163
177
|
};
|
|
164
178
|
}
|
|
165
179
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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.js';
|
|
16
|
+
import type { WebServiceChartConfigLineConfigStyle } from './WebServiceChartConfigLineConfigStyle.js';
|
|
17
|
+
import {
|
|
18
|
+
WebServiceChartConfigLineConfigStyleFromJSON,
|
|
19
|
+
WebServiceChartConfigLineConfigStyleFromJSONTyped,
|
|
20
|
+
WebServiceChartConfigLineConfigStyleToJSON,
|
|
21
|
+
} from './WebServiceChartConfigLineConfigStyle.js';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface WebServiceChartConfigLineConfig
|
|
27
|
+
*/
|
|
28
|
+
export interface WebServiceChartConfigLineConfig {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {WebServiceChartConfigLineConfigStyle}
|
|
32
|
+
* @memberof WebServiceChartConfigLineConfig
|
|
33
|
+
*/
|
|
34
|
+
style?: WebServiceChartConfigLineConfigStyle;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WebServiceChartConfigLineConfig interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfWebServiceChartConfigLineConfig(value: object): boolean {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function WebServiceChartConfigLineConfigFromJSON(json: any): WebServiceChartConfigLineConfig {
|
|
45
|
+
return WebServiceChartConfigLineConfigFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function WebServiceChartConfigLineConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebServiceChartConfigLineConfig {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'style': json['style'] == null ? undefined : WebServiceChartConfigLineConfigStyleFromJSON(json['style']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function WebServiceChartConfigLineConfigToJSON(value?: WebServiceChartConfigLineConfig | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'style': WebServiceChartConfigLineConfigStyleToJSON(value['style']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WebServiceChartConfigLineConfigStyle = {
|
|
21
|
+
Solid: 'Solid',
|
|
22
|
+
Dotted: 'Dotted'
|
|
23
|
+
} as const;
|
|
24
|
+
export type WebServiceChartConfigLineConfigStyle = typeof WebServiceChartConfigLineConfigStyle[keyof typeof WebServiceChartConfigLineConfigStyle];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfWebServiceChartConfigLineConfigStyle(value: any): boolean {
|
|
28
|
+
return Object.values(WebServiceChartConfigLineConfigStyle).includes(value);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function WebServiceChartConfigLineConfigStyleFromJSON(json: any): WebServiceChartConfigLineConfigStyle {
|
|
32
|
+
return WebServiceChartConfigLineConfigStyleFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function WebServiceChartConfigLineConfigStyleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebServiceChartConfigLineConfigStyle {
|
|
36
|
+
return json as WebServiceChartConfigLineConfigStyle;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function WebServiceChartConfigLineConfigStyleToJSON(value?: WebServiceChartConfigLineConfigStyle | null): any {
|
|
40
|
+
return value as any;
|
|
41
|
+
}
|
|
42
|
+
|