@stacks/blockchain-api-client 3.0.3 → 4.0.0-beta.1
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/FeesApi.d.ts +36 -9
- package/lib/generated/apis/FeesApi.js +29 -4
- package/lib/generated/apis/FeesApi.js.map +1 -1
- package/lib/generated/apis/NamesApi.d.ts +27 -0
- package/lib/generated/apis/NamesApi.js +26 -0
- package/lib/generated/apis/NamesApi.js.map +1 -1
- package/lib/generated/apis/TransactionsApi.d.ts +47 -1
- package/lib/generated/apis/TransactionsApi.js +51 -1
- package/lib/generated/apis/TransactionsApi.js.map +1 -1
- package/lib/generated/models/TransactionEventsResponse.d.ts +39 -0
- package/lib/generated/models/TransactionEventsResponse.js +46 -0
- package/lib/generated/models/TransactionEventsResponse.js.map +1 -0
- package/lib/generated/models/TransactionFeeEstimateRequest.d.ts +33 -0
- package/lib/generated/models/TransactionFeeEstimateRequest.js +45 -0
- package/lib/generated/models/TransactionFeeEstimateRequest.js.map +1 -0
- package/lib/generated/models/TransactionFeeEstimateResponse.d.ts +46 -0
- package/lib/generated/models/TransactionFeeEstimateResponse.js +50 -0
- package/lib/generated/models/TransactionFeeEstimateResponse.js.map +1 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.d.ts +51 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.js +50 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.js.map +1 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimations.d.ts +33 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimations.js +45 -0
- package/lib/generated/models/TransactionFeeEstimateResponseEstimations.js.map +1 -0
- package/lib/generated/models/index.d.ts +5 -0
- package/lib/generated/models/index.js +5 -0
- package/lib/generated/models/index.js.map +1 -1
- package/lib/index.umd.js +445 -76
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +5 -0
- package/src/generated/apis/FeesApi.ts +65 -8
- package/src/generated/apis/NamesApi.ts +52 -0
- package/src/generated/apis/TransactionsApi.ts +90 -0
- package/src/generated/models/TransactionEventsResponse.ts +72 -0
- package/src/generated/models/TransactionFeeEstimateRequest.ts +64 -0
- package/src/generated/models/TransactionFeeEstimateResponse.ts +91 -0
- package/src/generated/models/TransactionFeeEstimateResponseEstimatedCost.ts +88 -0
- package/src/generated/models/TransactionFeeEstimateResponseEstimations.ts +64 -0
- package/src/generated/models/index.ts +5 -0
|
@@ -0,0 +1,88 @@
|
|
|
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 TransactionFeeEstimateResponseEstimatedCost
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionFeeEstimateResponseEstimatedCost {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionFeeEstimateResponseEstimatedCost
|
|
26
|
+
*/
|
|
27
|
+
read_count: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TransactionFeeEstimateResponseEstimatedCost
|
|
32
|
+
*/
|
|
33
|
+
read_length: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TransactionFeeEstimateResponseEstimatedCost
|
|
38
|
+
*/
|
|
39
|
+
runtime: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TransactionFeeEstimateResponseEstimatedCost
|
|
44
|
+
*/
|
|
45
|
+
write_count: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof TransactionFeeEstimateResponseEstimatedCost
|
|
50
|
+
*/
|
|
51
|
+
write_length: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function TransactionFeeEstimateResponseEstimatedCostFromJSON(json: any): TransactionFeeEstimateResponseEstimatedCost {
|
|
55
|
+
return TransactionFeeEstimateResponseEstimatedCostFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function TransactionFeeEstimateResponseEstimatedCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFeeEstimateResponseEstimatedCost {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'read_count': json['read_count'],
|
|
65
|
+
'read_length': json['read_length'],
|
|
66
|
+
'runtime': json['runtime'],
|
|
67
|
+
'write_count': json['write_count'],
|
|
68
|
+
'write_length': json['write_length'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function TransactionFeeEstimateResponseEstimatedCostToJSON(value?: TransactionFeeEstimateResponseEstimatedCost | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'read_count': value.read_count,
|
|
82
|
+
'read_length': value.read_length,
|
|
83
|
+
'runtime': value.runtime,
|
|
84
|
+
'write_count': value.write_count,
|
|
85
|
+
'write_length': value.write_length,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
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 TransactionFeeEstimateResponseEstimations
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionFeeEstimateResponseEstimations {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransactionFeeEstimateResponseEstimations
|
|
26
|
+
*/
|
|
27
|
+
fee_rate?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TransactionFeeEstimateResponseEstimations
|
|
32
|
+
*/
|
|
33
|
+
fee?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function TransactionFeeEstimateResponseEstimationsFromJSON(json: any): TransactionFeeEstimateResponseEstimations {
|
|
37
|
+
return TransactionFeeEstimateResponseEstimationsFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function TransactionFeeEstimateResponseEstimationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFeeEstimateResponseEstimations {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'fee_rate': !exists(json, 'fee_rate') ? undefined : json['fee_rate'],
|
|
47
|
+
'fee': !exists(json, 'fee') ? undefined : json['fee'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TransactionFeeEstimateResponseEstimationsToJSON(value?: TransactionFeeEstimateResponseEstimations | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'fee_rate': value.fee_rate,
|
|
61
|
+
'fee': value.fee,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -128,6 +128,11 @@ export * from './RunFaucetResponse';
|
|
|
128
128
|
export * from './ServerStatusResponse';
|
|
129
129
|
export * from './SigningPayload';
|
|
130
130
|
export * from './SmartContract';
|
|
131
|
+
export * from './TransactionEventsResponse';
|
|
132
|
+
export * from './TransactionFeeEstimateRequest';
|
|
133
|
+
export * from './TransactionFeeEstimateResponse';
|
|
134
|
+
export * from './TransactionFeeEstimateResponseEstimatedCost';
|
|
135
|
+
export * from './TransactionFeeEstimateResponseEstimations';
|
|
131
136
|
export * from './TransactionIdentifier';
|
|
132
137
|
export * from './TransactionResults';
|
|
133
138
|
export * from './UnanchoredTransactionListResponse';
|