@sentio/api 1.0.2-rc.17 → 1.0.2-rc.19

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.
Files changed (101) hide show
  1. package/dist/src/apis/DebugAndSimulationApi.d.ts +168 -19
  2. package/dist/src/apis/DebugAndSimulationApi.js +424 -43
  3. package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
  4. package/dist/src/apis/DefaultApi.d.ts +31 -0
  5. package/dist/src/apis/DefaultApi.js +54 -0
  6. package/dist/src/apis/DefaultApi.js.map +1 -0
  7. package/dist/src/apis/ForksApi.d.ts +84 -0
  8. package/dist/src/apis/ForksApi.js +211 -0
  9. package/dist/src/apis/ForksApi.js.map +1 -0
  10. package/dist/src/apis/index.d.ts +2 -0
  11. package/dist/src/apis/index.js +2 -0
  12. package/dist/src/apis/index.js.map +1 -1
  13. package/dist/src/models/SolidityServiceBaseChainConfig.d.ts +3 -2
  14. package/dist/src/models/SolidityServiceBaseChainConfig.js +3 -2
  15. package/dist/src/models/SolidityServiceBaseChainConfig.js.map +1 -1
  16. package/dist/src/models/SolidityServiceCreateForkResponse.d.ts +33 -0
  17. package/dist/src/models/SolidityServiceCreateForkResponse.js +43 -0
  18. package/dist/src/models/SolidityServiceCreateForkResponse.js.map +1 -0
  19. package/dist/src/models/SolidityServiceExternalFork.d.ts +39 -0
  20. package/dist/src/models/SolidityServiceExternalFork.js +45 -0
  21. package/dist/src/models/SolidityServiceExternalFork.js.map +1 -0
  22. package/dist/src/models/SolidityServiceFork.d.ts +77 -0
  23. package/dist/src/models/SolidityServiceFork.js +59 -0
  24. package/dist/src/models/SolidityServiceFork.js.map +1 -0
  25. package/dist/src/models/SolidityServiceForkServiceCreateForkBody.d.ts +33 -0
  26. package/dist/src/models/SolidityServiceForkServiceCreateForkBody.js +45 -0
  27. package/dist/src/models/SolidityServiceForkServiceCreateForkBody.js.map +1 -0
  28. package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.d.ts +33 -0
  29. package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.js +45 -0
  30. package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.js.map +1 -0
  31. package/dist/src/models/SolidityServiceForkType.d.ts +25 -0
  32. package/dist/src/models/SolidityServiceForkType.js +44 -0
  33. package/dist/src/models/SolidityServiceForkType.js.map +1 -0
  34. package/dist/src/models/SolidityServiceGetForkInfoResponse.d.ts +70 -0
  35. package/dist/src/models/SolidityServiceGetForkInfoResponse.js +56 -0
  36. package/dist/src/models/SolidityServiceGetForkInfoResponse.js.map +1 -0
  37. package/dist/src/models/SolidityServiceGetForkResponse.d.ts +33 -0
  38. package/dist/src/models/SolidityServiceGetForkResponse.js +43 -0
  39. package/dist/src/models/SolidityServiceGetForkResponse.js.map +1 -0
  40. package/dist/src/models/SolidityServiceListForksResponse.d.ts +33 -0
  41. package/dist/src/models/SolidityServiceListForksResponse.js +43 -0
  42. package/dist/src/models/SolidityServiceListForksResponse.js.map +1 -0
  43. package/dist/src/models/SolidityServiceManagedFork.d.ts +45 -0
  44. package/dist/src/models/SolidityServiceManagedFork.js +47 -0
  45. package/dist/src/models/SolidityServiceManagedFork.js.map +1 -0
  46. package/dist/src/models/SolidityServiceNodeEnvironment.d.ts +50 -0
  47. package/dist/src/models/SolidityServiceNodeEnvironment.js +48 -0
  48. package/dist/src/models/SolidityServiceNodeEnvironment.js.map +1 -0
  49. package/dist/src/models/SolidityServiceNodeForkConfig.d.ts +44 -0
  50. package/dist/src/models/SolidityServiceNodeForkConfig.js +46 -0
  51. package/dist/src/models/SolidityServiceNodeForkConfig.js.map +1 -0
  52. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +40 -0
  53. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +48 -0
  54. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -0
  55. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +32 -0
  56. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +42 -0
  57. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -0
  58. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +40 -0
  59. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +48 -0
  60. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -0
  61. package/dist/src/models/SolidityServiceSourceFetcherType.d.ts +26 -0
  62. package/dist/src/models/SolidityServiceSourceFetcherType.js +45 -0
  63. package/dist/src/models/SolidityServiceSourceFetcherType.js.map +1 -0
  64. package/dist/src/models/SolidityServiceUpdateForkResponse.d.ts +33 -0
  65. package/dist/src/models/SolidityServiceUpdateForkResponse.js +43 -0
  66. package/dist/src/models/SolidityServiceUpdateForkResponse.js.map +1 -0
  67. package/dist/src/models/index.d.ts +17 -2
  68. package/dist/src/models/index.js +17 -2
  69. package/dist/src/models/index.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/apis/DebugAndSimulationApi.ts +824 -110
  72. package/src/apis/DefaultApi.ts +87 -0
  73. package/src/apis/ForksApi.ts +384 -0
  74. package/src/apis/index.ts +2 -0
  75. package/src/models/SolidityServiceBaseChainConfig.ts +14 -4
  76. package/src/models/SolidityServiceCreateForkResponse.ts +73 -0
  77. package/src/models/SolidityServiceExternalFork.ts +81 -0
  78. package/src/models/SolidityServiceFork.ts +145 -0
  79. package/src/models/SolidityServiceForkServiceCreateForkBody.ts +74 -0
  80. package/src/models/SolidityServiceForkServiceUpdateForkBody.ts +74 -0
  81. package/src/models/SolidityServiceForkType.ts +53 -0
  82. package/src/models/SolidityServiceGetForkInfoResponse.ts +128 -0
  83. package/src/models/SolidityServiceGetForkResponse.ts +73 -0
  84. package/src/models/SolidityServiceListForksResponse.ts +73 -0
  85. package/src/models/SolidityServiceManagedFork.ts +89 -0
  86. package/src/models/SolidityServiceNodeEnvironment.ts +89 -0
  87. package/src/models/SolidityServiceNodeForkConfig.ts +81 -0
  88. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +89 -0
  89. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +65 -0
  90. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +89 -0
  91. package/src/models/SolidityServiceSourceFetcherType.ts +54 -0
  92. package/src/models/SolidityServiceUpdateForkResponse.ts +73 -0
  93. package/src/models/index.ts +17 -2
  94. package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.d.ts +0 -45
  95. package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.js +0 -53
  96. package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.js.map +0 -1
  97. package/dist/src/models/SolidityServiceSimulateTransactionRequest.d.ts +0 -45
  98. package/dist/src/models/SolidityServiceSimulateTransactionRequest.js +0 -53
  99. package/dist/src/models/SolidityServiceSimulateTransactionRequest.js.map +0 -1
  100. package/src/models/SolidityServiceSimulateTransactionBundleRequest.ts +0 -92
  101. package/src/models/SolidityServiceSimulateTransactionRequest.ts +0 -92
@@ -0,0 +1,145 @@
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 { SolidityServiceExternalFork } from './SolidityServiceExternalFork.js';
17
+ import {
18
+ SolidityServiceExternalForkFromJSON,
19
+ SolidityServiceExternalForkFromJSONTyped,
20
+ SolidityServiceExternalForkToJSON,
21
+ SolidityServiceExternalForkToJSONTyped,
22
+ } from './SolidityServiceExternalFork.js';
23
+ import type { SolidityServiceForkType } from './SolidityServiceForkType.js';
24
+ import {
25
+ SolidityServiceForkTypeFromJSON,
26
+ SolidityServiceForkTypeFromJSONTyped,
27
+ SolidityServiceForkTypeToJSON,
28
+ SolidityServiceForkTypeToJSONTyped,
29
+ } from './SolidityServiceForkType.js';
30
+ import type { SolidityServiceManagedFork } from './SolidityServiceManagedFork.js';
31
+ import {
32
+ SolidityServiceManagedForkFromJSON,
33
+ SolidityServiceManagedForkFromJSONTyped,
34
+ SolidityServiceManagedForkToJSON,
35
+ SolidityServiceManagedForkToJSONTyped,
36
+ } from './SolidityServiceManagedFork.js';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface SolidityServiceFork
42
+ */
43
+ export interface SolidityServiceFork {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof SolidityServiceFork
48
+ */
49
+ id?: string;
50
+ /**
51
+ *
52
+ * @type {SolidityServiceForkType}
53
+ * @memberof SolidityServiceFork
54
+ */
55
+ type?: SolidityServiceForkType;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof SolidityServiceFork
60
+ */
61
+ name?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof SolidityServiceFork
66
+ */
67
+ extra?: string;
68
+ /**
69
+ *
70
+ * @type {SolidityServiceManagedFork}
71
+ * @memberof SolidityServiceFork
72
+ */
73
+ managedFork?: SolidityServiceManagedFork;
74
+ /**
75
+ *
76
+ * @type {SolidityServiceExternalFork}
77
+ * @memberof SolidityServiceFork
78
+ */
79
+ externalFork?: SolidityServiceExternalFork;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof SolidityServiceFork
84
+ */
85
+ createTime?: Date;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof SolidityServiceFork
90
+ */
91
+ updateTime?: Date;
92
+ }
93
+
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the SolidityServiceFork interface.
98
+ */
99
+ export function instanceOfSolidityServiceFork(value: object): value is SolidityServiceFork {
100
+ return true;
101
+ }
102
+
103
+ export function SolidityServiceForkFromJSON(json: any): SolidityServiceFork {
104
+ return SolidityServiceForkFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function SolidityServiceForkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceFork {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'id': json['id'] == null ? undefined : json['id'],
114
+ 'type': json['type'] == null ? undefined : SolidityServiceForkTypeFromJSON(json['type']),
115
+ 'name': json['name'] == null ? undefined : json['name'],
116
+ 'extra': json['extra'] == null ? undefined : json['extra'],
117
+ 'managedFork': json['managedFork'] == null ? undefined : SolidityServiceManagedForkFromJSON(json['managedFork']),
118
+ 'externalFork': json['externalFork'] == null ? undefined : SolidityServiceExternalForkFromJSON(json['externalFork']),
119
+ 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])),
120
+ 'updateTime': json['updateTime'] == null ? undefined : (new Date(json['updateTime'])),
121
+ };
122
+ }
123
+
124
+ export function SolidityServiceForkToJSON(json: any): SolidityServiceFork {
125
+ return SolidityServiceForkToJSONTyped(json, false);
126
+ }
127
+
128
+ export function SolidityServiceForkToJSONTyped(value?: SolidityServiceFork | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'type': SolidityServiceForkTypeToJSON(value['type']),
137
+ 'name': value['name'],
138
+ 'extra': value['extra'],
139
+ 'managedFork': SolidityServiceManagedForkToJSON(value['managedFork']),
140
+ 'externalFork': SolidityServiceExternalForkToJSON(value['externalFork']),
141
+ 'createTime': value['createTime'] == null ? undefined : ((value['createTime']).toISOString()),
142
+ 'updateTime': value['updateTime'] == null ? undefined : ((value['updateTime']).toISOString()),
143
+ };
144
+ }
145
+
@@ -0,0 +1,74 @@
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 { SolidityServiceFork } from './SolidityServiceFork.js';
17
+ import {
18
+ SolidityServiceForkFromJSON,
19
+ SolidityServiceForkFromJSONTyped,
20
+ SolidityServiceForkToJSON,
21
+ SolidityServiceForkToJSONTyped,
22
+ } from './SolidityServiceFork.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SolidityServiceForkServiceCreateForkBody
28
+ */
29
+ export interface SolidityServiceForkServiceCreateForkBody {
30
+ /**
31
+ *
32
+ * @type {SolidityServiceFork}
33
+ * @memberof SolidityServiceForkServiceCreateForkBody
34
+ */
35
+ fork: SolidityServiceFork;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SolidityServiceForkServiceCreateForkBody interface.
40
+ */
41
+ export function instanceOfSolidityServiceForkServiceCreateForkBody(value: object): value is SolidityServiceForkServiceCreateForkBody {
42
+ if (!('fork' in value) || value['fork'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SolidityServiceForkServiceCreateForkBodyFromJSON(json: any): SolidityServiceForkServiceCreateForkBody {
47
+ return SolidityServiceForkServiceCreateForkBodyFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SolidityServiceForkServiceCreateForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceForkServiceCreateForkBody {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'fork': SolidityServiceForkFromJSON(json['fork']),
57
+ };
58
+ }
59
+
60
+ export function SolidityServiceForkServiceCreateForkBodyToJSON(json: any): SolidityServiceForkServiceCreateForkBody {
61
+ return SolidityServiceForkServiceCreateForkBodyToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SolidityServiceForkServiceCreateForkBodyToJSONTyped(value?: SolidityServiceForkServiceCreateForkBody | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'fork': SolidityServiceForkToJSON(value['fork']),
72
+ };
73
+ }
74
+
@@ -0,0 +1,74 @@
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 { SolidityServiceFork } from './SolidityServiceFork.js';
17
+ import {
18
+ SolidityServiceForkFromJSON,
19
+ SolidityServiceForkFromJSONTyped,
20
+ SolidityServiceForkToJSON,
21
+ SolidityServiceForkToJSONTyped,
22
+ } from './SolidityServiceFork.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SolidityServiceForkServiceUpdateForkBody
28
+ */
29
+ export interface SolidityServiceForkServiceUpdateForkBody {
30
+ /**
31
+ *
32
+ * @type {SolidityServiceFork}
33
+ * @memberof SolidityServiceForkServiceUpdateForkBody
34
+ */
35
+ fork: SolidityServiceFork;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SolidityServiceForkServiceUpdateForkBody interface.
40
+ */
41
+ export function instanceOfSolidityServiceForkServiceUpdateForkBody(value: object): value is SolidityServiceForkServiceUpdateForkBody {
42
+ if (!('fork' in value) || value['fork'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SolidityServiceForkServiceUpdateForkBodyFromJSON(json: any): SolidityServiceForkServiceUpdateForkBody {
47
+ return SolidityServiceForkServiceUpdateForkBodyFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SolidityServiceForkServiceUpdateForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceForkServiceUpdateForkBody {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'fork': SolidityServiceForkFromJSON(json['fork']),
57
+ };
58
+ }
59
+
60
+ export function SolidityServiceForkServiceUpdateForkBodyToJSON(json: any): SolidityServiceForkServiceUpdateForkBody {
61
+ return SolidityServiceForkServiceUpdateForkBodyToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SolidityServiceForkServiceUpdateForkBodyToJSONTyped(value?: SolidityServiceForkServiceUpdateForkBody | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'fork': SolidityServiceForkToJSON(value['fork']),
72
+ };
73
+ }
74
+
@@ -0,0 +1,53 @@
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 SolidityServiceForkType = {
21
+ Managed: 'MANAGED',
22
+ External: 'EXTERNAL'
23
+ } as const;
24
+ export type SolidityServiceForkType = typeof SolidityServiceForkType[keyof typeof SolidityServiceForkType];
25
+
26
+
27
+ export function instanceOfSolidityServiceForkType(value: any): boolean {
28
+ for (const key in SolidityServiceForkType) {
29
+ if (Object.prototype.hasOwnProperty.call(SolidityServiceForkType, key)) {
30
+ if (SolidityServiceForkType[key as keyof typeof SolidityServiceForkType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function SolidityServiceForkTypeFromJSON(json: any): SolidityServiceForkType {
39
+ return SolidityServiceForkTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SolidityServiceForkTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceForkType {
43
+ return json as SolidityServiceForkType;
44
+ }
45
+
46
+ export function SolidityServiceForkTypeToJSON(value?: SolidityServiceForkType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function SolidityServiceForkTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SolidityServiceForkType {
51
+ return value as SolidityServiceForkType;
52
+ }
53
+
@@ -0,0 +1,128 @@
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 { SolidityServiceNodeEnvironment } from './SolidityServiceNodeEnvironment.js';
17
+ import {
18
+ SolidityServiceNodeEnvironmentFromJSON,
19
+ SolidityServiceNodeEnvironmentFromJSONTyped,
20
+ SolidityServiceNodeEnvironmentToJSON,
21
+ SolidityServiceNodeEnvironmentToJSONTyped,
22
+ } from './SolidityServiceNodeEnvironment.js';
23
+ import type { SolidityServiceNodeForkConfig } from './SolidityServiceNodeForkConfig.js';
24
+ import {
25
+ SolidityServiceNodeForkConfigFromJSON,
26
+ SolidityServiceNodeForkConfigFromJSONTyped,
27
+ SolidityServiceNodeForkConfigToJSON,
28
+ SolidityServiceNodeForkConfigToJSONTyped,
29
+ } from './SolidityServiceNodeForkConfig.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SolidityServiceGetForkInfoResponse
35
+ */
36
+ export interface SolidityServiceGetForkInfoResponse {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SolidityServiceGetForkInfoResponse
41
+ */
42
+ currentBlockNumber?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SolidityServiceGetForkInfoResponse
47
+ */
48
+ currentBlockTimestamp?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SolidityServiceGetForkInfoResponse
53
+ */
54
+ currentBlockHash?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SolidityServiceGetForkInfoResponse
59
+ */
60
+ hardFork?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SolidityServiceGetForkInfoResponse
65
+ */
66
+ transactionOrder?: string;
67
+ /**
68
+ *
69
+ * @type {SolidityServiceNodeEnvironment}
70
+ * @memberof SolidityServiceGetForkInfoResponse
71
+ */
72
+ environment?: SolidityServiceNodeEnvironment;
73
+ /**
74
+ *
75
+ * @type {SolidityServiceNodeForkConfig}
76
+ * @memberof SolidityServiceGetForkInfoResponse
77
+ */
78
+ forkConfig?: SolidityServiceNodeForkConfig;
79
+ }
80
+
81
+ /**
82
+ * Check if a given object implements the SolidityServiceGetForkInfoResponse interface.
83
+ */
84
+ export function instanceOfSolidityServiceGetForkInfoResponse(value: object): value is SolidityServiceGetForkInfoResponse {
85
+ return true;
86
+ }
87
+
88
+ export function SolidityServiceGetForkInfoResponseFromJSON(json: any): SolidityServiceGetForkInfoResponse {
89
+ return SolidityServiceGetForkInfoResponseFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function SolidityServiceGetForkInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceGetForkInfoResponse {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'currentBlockNumber': json['currentBlockNumber'] == null ? undefined : json['currentBlockNumber'],
99
+ 'currentBlockTimestamp': json['currentBlockTimestamp'] == null ? undefined : json['currentBlockTimestamp'],
100
+ 'currentBlockHash': json['currentBlockHash'] == null ? undefined : json['currentBlockHash'],
101
+ 'hardFork': json['hardFork'] == null ? undefined : json['hardFork'],
102
+ 'transactionOrder': json['transactionOrder'] == null ? undefined : json['transactionOrder'],
103
+ 'environment': json['environment'] == null ? undefined : SolidityServiceNodeEnvironmentFromJSON(json['environment']),
104
+ 'forkConfig': json['forkConfig'] == null ? undefined : SolidityServiceNodeForkConfigFromJSON(json['forkConfig']),
105
+ };
106
+ }
107
+
108
+ export function SolidityServiceGetForkInfoResponseToJSON(json: any): SolidityServiceGetForkInfoResponse {
109
+ return SolidityServiceGetForkInfoResponseToJSONTyped(json, false);
110
+ }
111
+
112
+ export function SolidityServiceGetForkInfoResponseToJSONTyped(value?: SolidityServiceGetForkInfoResponse | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'currentBlockNumber': value['currentBlockNumber'],
120
+ 'currentBlockTimestamp': value['currentBlockTimestamp'],
121
+ 'currentBlockHash': value['currentBlockHash'],
122
+ 'hardFork': value['hardFork'],
123
+ 'transactionOrder': value['transactionOrder'],
124
+ 'environment': SolidityServiceNodeEnvironmentToJSON(value['environment']),
125
+ 'forkConfig': SolidityServiceNodeForkConfigToJSON(value['forkConfig']),
126
+ };
127
+ }
128
+
@@ -0,0 +1,73 @@
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 { SolidityServiceFork } from './SolidityServiceFork.js';
17
+ import {
18
+ SolidityServiceForkFromJSON,
19
+ SolidityServiceForkFromJSONTyped,
20
+ SolidityServiceForkToJSON,
21
+ SolidityServiceForkToJSONTyped,
22
+ } from './SolidityServiceFork.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SolidityServiceGetForkResponse
28
+ */
29
+ export interface SolidityServiceGetForkResponse {
30
+ /**
31
+ *
32
+ * @type {SolidityServiceFork}
33
+ * @memberof SolidityServiceGetForkResponse
34
+ */
35
+ fork?: SolidityServiceFork;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SolidityServiceGetForkResponse interface.
40
+ */
41
+ export function instanceOfSolidityServiceGetForkResponse(value: object): value is SolidityServiceGetForkResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SolidityServiceGetForkResponseFromJSON(json: any): SolidityServiceGetForkResponse {
46
+ return SolidityServiceGetForkResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SolidityServiceGetForkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceGetForkResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'fork': json['fork'] == null ? undefined : SolidityServiceForkFromJSON(json['fork']),
56
+ };
57
+ }
58
+
59
+ export function SolidityServiceGetForkResponseToJSON(json: any): SolidityServiceGetForkResponse {
60
+ return SolidityServiceGetForkResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SolidityServiceGetForkResponseToJSONTyped(value?: SolidityServiceGetForkResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'fork': SolidityServiceForkToJSON(value['fork']),
71
+ };
72
+ }
73
+
@@ -0,0 +1,73 @@
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 { SolidityServiceFork } from './SolidityServiceFork.js';
17
+ import {
18
+ SolidityServiceForkFromJSON,
19
+ SolidityServiceForkFromJSONTyped,
20
+ SolidityServiceForkToJSON,
21
+ SolidityServiceForkToJSONTyped,
22
+ } from './SolidityServiceFork.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SolidityServiceListForksResponse
28
+ */
29
+ export interface SolidityServiceListForksResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SolidityServiceFork>}
33
+ * @memberof SolidityServiceListForksResponse
34
+ */
35
+ forks?: Array<SolidityServiceFork>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SolidityServiceListForksResponse interface.
40
+ */
41
+ export function instanceOfSolidityServiceListForksResponse(value: object): value is SolidityServiceListForksResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SolidityServiceListForksResponseFromJSON(json: any): SolidityServiceListForksResponse {
46
+ return SolidityServiceListForksResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SolidityServiceListForksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceListForksResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'forks': json['forks'] == null ? undefined : ((json['forks'] as Array<any>).map(SolidityServiceForkFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SolidityServiceListForksResponseToJSON(json: any): SolidityServiceListForksResponse {
60
+ return SolidityServiceListForksResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SolidityServiceListForksResponseToJSONTyped(value?: SolidityServiceListForksResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'forks': value['forks'] == null ? undefined : ((value['forks'] as Array<any>).map(SolidityServiceForkToJSON)),
71
+ };
72
+ }
73
+