@stacks/blockchain-api-client 7.4.0-nakamoto.2 → 7.4.0-nakamoto.4
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/lib/generated/apis/BlocksApi.d.ts +79 -13
- package/lib/generated/apis/BlocksApi.js +76 -6
- package/lib/generated/apis/BlocksApi.js.map +1 -1
- package/lib/generated/apis/TransactionsApi.d.ts +3 -2
- package/lib/generated/apis/TransactionsApi.js +1 -0
- package/lib/generated/apis/TransactionsApi.js.map +1 -1
- package/lib/generated/models/BurnBlock.d.ts +51 -0
- package/lib/generated/models/BurnBlock.js +50 -0
- package/lib/generated/models/BurnBlock.js.map +1 -0
- package/lib/generated/models/BurnBlockListResponse.d.ts +46 -0
- package/lib/generated/models/BurnBlockListResponse.js +49 -0
- package/lib/generated/models/BurnBlockListResponse.js.map +1 -0
- package/lib/generated/models/NakamotoBlock.d.ts +123 -0
- package/lib/generated/models/NakamotoBlock.js +74 -0
- package/lib/generated/models/NakamotoBlock.js.map +1 -0
- package/lib/generated/models/NakamotoBlockListResponse.d.ts +46 -0
- package/lib/generated/models/NakamotoBlockListResponse.js +49 -0
- package/lib/generated/models/NakamotoBlockListResponse.js.map +1 -0
- package/lib/generated/models/ServerStatusResponse.d.ts +6 -0
- package/lib/generated/models/ServerStatusResponse.js +2 -0
- package/lib/generated/models/ServerStatusResponse.js.map +1 -1
- package/lib/generated/models/index.d.ts +4 -0
- package/lib/generated/models/index.js +4 -0
- package/lib/generated/models/index.js.map +1 -1
- package/lib/index.umd.js +329 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +4 -0
- package/src/generated/apis/BlocksApi.ts +158 -12
- package/src/generated/apis/TransactionsApi.ts +3 -2
- package/src/generated/models/BurnBlock.ts +88 -0
- package/src/generated/models/BurnBlockListResponse.ts +87 -0
- package/src/generated/models/NakamotoBlock.ts +184 -0
- package/src/generated/models/NakamotoBlockListResponse.ts +87 -0
- package/src/generated/models/ServerStatusResponse.ts +8 -0
- package/src/generated/models/index.ts +4 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stacks Blockchain API
|
|
5
|
+
* Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: STACKS_API_VERSION
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
NakamotoBlock,
|
|
18
|
+
NakamotoBlockFromJSON,
|
|
19
|
+
NakamotoBlockFromJSONTyped,
|
|
20
|
+
NakamotoBlockToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* GET request that returns blocks
|
|
25
|
+
* @export
|
|
26
|
+
* @interface NakamotoBlockListResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface NakamotoBlockListResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The number of blocks to return
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof NakamotoBlockListResponse
|
|
33
|
+
*/
|
|
34
|
+
limit: number;
|
|
35
|
+
/**
|
|
36
|
+
* The number to blocks to skip (starting at `0`)
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof NakamotoBlockListResponse
|
|
39
|
+
*/
|
|
40
|
+
offset: number;
|
|
41
|
+
/**
|
|
42
|
+
* The number of blocks available
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof NakamotoBlockListResponse
|
|
45
|
+
*/
|
|
46
|
+
total: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<NakamotoBlock>}
|
|
50
|
+
* @memberof NakamotoBlockListResponse
|
|
51
|
+
*/
|
|
52
|
+
results: Array<NakamotoBlock>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function NakamotoBlockListResponseFromJSON(json: any): NakamotoBlockListResponse {
|
|
56
|
+
return NakamotoBlockListResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NakamotoBlockListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NakamotoBlockListResponse {
|
|
60
|
+
if ((json === undefined) || (json === null)) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'limit': json['limit'],
|
|
66
|
+
'offset': json['offset'],
|
|
67
|
+
'total': json['total'],
|
|
68
|
+
'results': ((json['results'] as Array<any>).map(NakamotoBlockFromJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function NakamotoBlockListResponseToJSON(value?: NakamotoBlockListResponse | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'limit': value.limit,
|
|
82
|
+
'offset': value.offset,
|
|
83
|
+
'total': value.total,
|
|
84
|
+
'results': ((value.results as Array<any>).map(NakamotoBlockToJSON)),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -50,6 +50,12 @@ export interface ServerStatusResponse {
|
|
|
50
50
|
* @memberof ServerStatusResponse
|
|
51
51
|
*/
|
|
52
52
|
pox_v2_unlock_height?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ServerStatusResponse
|
|
57
|
+
*/
|
|
58
|
+
pox_v3_unlock_height?: number | null;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {ChainTip}
|
|
@@ -72,6 +78,7 @@ export function ServerStatusResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
72
78
|
'status': json['status'],
|
|
73
79
|
'pox_v1_unlock_height': !exists(json, 'pox_v1_unlock_height') ? undefined : json['pox_v1_unlock_height'],
|
|
74
80
|
'pox_v2_unlock_height': !exists(json, 'pox_v2_unlock_height') ? undefined : json['pox_v2_unlock_height'],
|
|
81
|
+
'pox_v3_unlock_height': !exists(json, 'pox_v3_unlock_height') ? undefined : json['pox_v3_unlock_height'],
|
|
75
82
|
'chain_tip': !exists(json, 'chain_tip') ? undefined : ChainTipFromJSON(json['chain_tip']),
|
|
76
83
|
};
|
|
77
84
|
}
|
|
@@ -89,6 +96,7 @@ export function ServerStatusResponseToJSON(value?: ServerStatusResponse | null):
|
|
|
89
96
|
'status': value.status,
|
|
90
97
|
'pox_v1_unlock_height': value.pox_v1_unlock_height,
|
|
91
98
|
'pox_v2_unlock_height': value.pox_v2_unlock_height,
|
|
99
|
+
'pox_v3_unlock_height': value.pox_v3_unlock_height,
|
|
92
100
|
'chain_tip': ChainTipToJSON(value.chain_tip),
|
|
93
101
|
};
|
|
94
102
|
}
|
|
@@ -24,6 +24,8 @@ export * from './BnsGetNameInfoResponse';
|
|
|
24
24
|
export * from './BnsGetNamePriceResponse';
|
|
25
25
|
export * from './BnsGetNamespacePriceResponse';
|
|
26
26
|
export * from './BnsNamesOwnByAddressResponse';
|
|
27
|
+
export * from './BurnBlock';
|
|
28
|
+
export * from './BurnBlockListResponse';
|
|
27
29
|
export * from './BurnchainReward';
|
|
28
30
|
export * from './BurnchainRewardListResponse';
|
|
29
31
|
export * from './BurnchainRewardSlotHolder';
|
|
@@ -56,6 +58,8 @@ export * from './MempoolTransactionStatsResponseTxSimpleFeeAveragesTokenTransfer
|
|
|
56
58
|
export * from './MempoolTransactionStatsResponseTxTypeCounts';
|
|
57
59
|
export * from './Microblock';
|
|
58
60
|
export * from './MicroblockListResponse';
|
|
61
|
+
export * from './NakamotoBlock';
|
|
62
|
+
export * from './NakamotoBlockListResponse';
|
|
59
63
|
export * from './NetworkBlockTimeResponse';
|
|
60
64
|
export * from './NetworkBlockTimesResponse';
|
|
61
65
|
export * from './NetworkIdentifier';
|