@stacks/blockchain-api-client 7.4.0-beta.1 → 7.4.0-beta.2
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/MempoolApi.d.ts +5 -5
- package/lib/generated/apis/MempoolApi.js +1 -1
- package/lib/generated/apis/MempoolApi.js.map +1 -1
- package/lib/generated/models/MempoolFeePriorities.d.ts +46 -0
- package/lib/generated/models/MempoolFeePriorities.js +50 -0
- package/lib/generated/models/MempoolFeePriorities.js.map +1 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.d.ts +45 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.js +48 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.js.map +1 -0
- package/lib/generated/models/index.d.ts +2 -0
- package/lib/generated/models/index.js +2 -0
- package/lib/generated/models/index.js.map +1 -1
- package/lib/index.umd.js +87 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +2 -0
- package/src/generated/apis/MempoolApi.ts +8 -8
- package/src/generated/models/MempoolFeePriorities.ts +87 -0
- package/src/generated/models/MempoolFeePrioritiesAll.ts +80 -0
- package/src/generated/models/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "7.4.0-beta.
|
|
3
|
+
"version": "7.4.0-beta.2",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Client for the Stacks Blockchain API",
|
|
6
6
|
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
|
|
@@ -63,6 +63,8 @@ models/InboundStxTransfer.ts
|
|
|
63
63
|
models/InlineObject.ts
|
|
64
64
|
models/InlineResponse403.ts
|
|
65
65
|
models/MapEntryResponse.ts
|
|
66
|
+
models/MempoolFeePriorities.ts
|
|
67
|
+
models/MempoolFeePrioritiesAll.ts
|
|
66
68
|
models/MempoolTransactionListResponse.ts
|
|
67
69
|
models/MempoolTransactionStatsResponse.ts
|
|
68
70
|
models/MempoolTransactionStatsResponseTxAges.ts
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
MempoolFeePriorities,
|
|
19
|
+
MempoolFeePrioritiesFromJSON,
|
|
20
|
+
MempoolFeePrioritiesToJSON,
|
|
21
21
|
} from '../models';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -34,13 +34,13 @@ export interface MempoolApiInterface {
|
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
* @memberof MempoolApiInterface
|
|
36
36
|
*/
|
|
37
|
-
getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
37
|
+
getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolFeePriorities>>;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
41
41
|
* Get mempool transaction fee priorities
|
|
42
42
|
*/
|
|
43
|
-
getMempoolFeePriorities(initOverrides?: RequestInit): Promise<
|
|
43
|
+
getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolFeePriorities>;
|
|
44
44
|
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -53,7 +53,7 @@ export class MempoolApi extends runtime.BaseAPI implements MempoolApiInterface {
|
|
|
53
53
|
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
54
54
|
* Get mempool transaction fee priorities
|
|
55
55
|
*/
|
|
56
|
-
async getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
56
|
+
async getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolFeePriorities>> {
|
|
57
57
|
const queryParameters: any = {};
|
|
58
58
|
|
|
59
59
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -65,14 +65,14 @@ export class MempoolApi extends runtime.BaseAPI implements MempoolApiInterface {
|
|
|
65
65
|
query: queryParameters,
|
|
66
66
|
}, initOverrides);
|
|
67
67
|
|
|
68
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MempoolFeePrioritiesFromJSON(jsonValue));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
73
73
|
* Get mempool transaction fee priorities
|
|
74
74
|
*/
|
|
75
|
-
async getMempoolFeePriorities(initOverrides?: RequestInit): Promise<
|
|
75
|
+
async getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolFeePriorities> {
|
|
76
76
|
const response = await this.getMempoolFeePrioritiesRaw(initOverrides);
|
|
77
77
|
return await response.value();
|
|
78
78
|
}
|
|
@@ -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
|
+
MempoolFeePrioritiesAll,
|
|
18
|
+
MempoolFeePrioritiesAllFromJSON,
|
|
19
|
+
MempoolFeePrioritiesAllFromJSONTyped,
|
|
20
|
+
MempoolFeePrioritiesAllToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* GET request that returns fee priorities from mempool transactions
|
|
25
|
+
* @export
|
|
26
|
+
* @interface MempoolFeePriorities
|
|
27
|
+
*/
|
|
28
|
+
export interface MempoolFeePriorities {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MempoolFeePrioritiesAll}
|
|
32
|
+
* @memberof MempoolFeePriorities
|
|
33
|
+
*/
|
|
34
|
+
all: MempoolFeePrioritiesAll;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {MempoolFeePrioritiesAll}
|
|
38
|
+
* @memberof MempoolFeePriorities
|
|
39
|
+
*/
|
|
40
|
+
token_transfer?: MempoolFeePrioritiesAll;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {MempoolFeePrioritiesAll}
|
|
44
|
+
* @memberof MempoolFeePriorities
|
|
45
|
+
*/
|
|
46
|
+
smart_contract?: MempoolFeePrioritiesAll;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {MempoolFeePrioritiesAll}
|
|
50
|
+
* @memberof MempoolFeePriorities
|
|
51
|
+
*/
|
|
52
|
+
contract_call?: MempoolFeePrioritiesAll;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function MempoolFeePrioritiesFromJSON(json: any): MempoolFeePriorities {
|
|
56
|
+
return MempoolFeePrioritiesFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function MempoolFeePrioritiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MempoolFeePriorities {
|
|
60
|
+
if ((json === undefined) || (json === null)) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'all': MempoolFeePrioritiesAllFromJSON(json['all']),
|
|
66
|
+
'token_transfer': !exists(json, 'token_transfer') ? undefined : MempoolFeePrioritiesAllFromJSON(json['token_transfer']),
|
|
67
|
+
'smart_contract': !exists(json, 'smart_contract') ? undefined : MempoolFeePrioritiesAllFromJSON(json['smart_contract']),
|
|
68
|
+
'contract_call': !exists(json, 'contract_call') ? undefined : MempoolFeePrioritiesAllFromJSON(json['contract_call']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function MempoolFeePrioritiesToJSON(value?: MempoolFeePriorities | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'all': MempoolFeePrioritiesAllToJSON(value.all),
|
|
82
|
+
'token_transfer': MempoolFeePrioritiesAllToJSON(value.token_transfer),
|
|
83
|
+
'smart_contract': MempoolFeePrioritiesAllToJSON(value.smart_contract),
|
|
84
|
+
'contract_call': MempoolFeePrioritiesAllToJSON(value.contract_call),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MempoolFeePrioritiesAll
|
|
20
|
+
*/
|
|
21
|
+
export interface MempoolFeePrioritiesAll {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MempoolFeePrioritiesAll
|
|
26
|
+
*/
|
|
27
|
+
no_priority: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof MempoolFeePrioritiesAll
|
|
32
|
+
*/
|
|
33
|
+
low_priority: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof MempoolFeePrioritiesAll
|
|
38
|
+
*/
|
|
39
|
+
medium_priority: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof MempoolFeePrioritiesAll
|
|
44
|
+
*/
|
|
45
|
+
high_priority: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function MempoolFeePrioritiesAllFromJSON(json: any): MempoolFeePrioritiesAll {
|
|
49
|
+
return MempoolFeePrioritiesAllFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function MempoolFeePrioritiesAllFromJSONTyped(json: any, ignoreDiscriminator: boolean): MempoolFeePrioritiesAll {
|
|
53
|
+
if ((json === undefined) || (json === null)) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'no_priority': json['no_priority'],
|
|
59
|
+
'low_priority': json['low_priority'],
|
|
60
|
+
'medium_priority': json['medium_priority'],
|
|
61
|
+
'high_priority': json['high_priority'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function MempoolFeePrioritiesAllToJSON(value?: MempoolFeePrioritiesAll | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'no_priority': value.no_priority,
|
|
75
|
+
'low_priority': value.low_priority,
|
|
76
|
+
'medium_priority': value.medium_priority,
|
|
77
|
+
'high_priority': value.high_priority,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -46,6 +46,8 @@ export * from './InboundStxTransfer';
|
|
|
46
46
|
export * from './InlineObject';
|
|
47
47
|
export * from './InlineResponse403';
|
|
48
48
|
export * from './MapEntryResponse';
|
|
49
|
+
export * from './MempoolFeePriorities';
|
|
50
|
+
export * from './MempoolFeePrioritiesAll';
|
|
49
51
|
export * from './MempoolTransactionListResponse';
|
|
50
52
|
export * from './MempoolTransactionStatsResponse';
|
|
51
53
|
export * from './MempoolTransactionStatsResponseTxAges';
|