@stacks/blockchain-api-client 4.0.0-beta.1 → 4.0.0-beta.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/NamesApi.d.ts +0 -29
- package/lib/generated/apis/NamesApi.js +0 -32
- package/lib/generated/apis/NamesApi.js.map +1 -1
- package/lib/generated/apis/RosettaApi.d.ts +5 -13
- package/lib/generated/apis/RosettaApi.js +1 -1
- package/lib/generated/apis/RosettaApi.js.map +1 -1
- package/lib/generated/models/AddressBalanceResponse.d.ts +11 -7
- package/lib/generated/models/AddressBalanceResponse.js +2 -2
- package/lib/generated/models/AddressBalanceResponse.js.map +1 -1
- package/lib/generated/models/BnsNamesOwnByAddressResponse.d.ts +1 -1
- package/lib/generated/models/BnsNamesOwnByAddressResponse.js +1 -2
- package/lib/generated/models/BnsNamesOwnByAddressResponse.js.map +1 -1
- package/lib/generated/models/NetworkBlockTimesResponse.d.ts +5 -5
- package/lib/generated/models/NetworkBlockTimesResponse.js +4 -4
- package/lib/generated/models/NetworkBlockTimesResponse.js.map +1 -1
- package/lib/generated/models/RosettaGenesisBlockIdentifier.d.ts +33 -0
- package/lib/generated/models/RosettaGenesisBlockIdentifier.js +44 -0
- package/lib/generated/models/RosettaGenesisBlockIdentifier.js.map +1 -0
- package/lib/generated/models/RosettaNetworkStatusResponse.d.ts +58 -0
- package/lib/generated/models/RosettaNetworkStatusResponse.js +54 -0
- package/lib/generated/models/RosettaNetworkStatusResponse.js.map +1 -0
- package/lib/generated/models/RosettaOldestBlockIdentifier.d.ts +33 -0
- package/lib/generated/models/RosettaOldestBlockIdentifier.js +44 -0
- package/lib/generated/models/RosettaOldestBlockIdentifier.js.map +1 -0
- package/lib/generated/models/RosettaOptions.d.ts +2 -2
- package/lib/generated/models/RosettaPeers.d.ts +33 -0
- package/lib/generated/models/RosettaPeers.js +45 -0
- package/lib/generated/models/RosettaPeers.js.map +1 -0
- package/lib/generated/models/RosettaSyncStatus.d.ts +45 -0
- package/lib/generated/models/RosettaSyncStatus.js +49 -0
- package/lib/generated/models/RosettaSyncStatus.js.map +1 -0
- package/lib/generated/models/{AddressBalanceResponseStx.d.ts → StxBalance.d.ts} +16 -16
- package/lib/generated/models/{AddressBalanceResponseStx.js → StxBalance.js} +9 -9
- package/lib/generated/models/StxBalance.js.map +1 -0
- package/lib/generated/models/{NetworkBlockTimesResponseMainnet.d.ts → TargetBlockTime.d.ts} +7 -7
- package/lib/generated/models/{NetworkBlockTimesResponseMainnet.js → TargetBlockTime.js} +9 -9
- package/lib/generated/models/TargetBlockTime.js.map +1 -0
- package/lib/generated/models/index.d.ts +7 -2
- package/lib/generated/models/index.js +7 -2
- package/lib/generated/models/index.js.map +1 -1
- package/lib/index.umd.js +350 -188
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +7 -2
- package/src/generated/apis/NamesApi.ts +0 -62
- package/src/generated/apis/RosettaApi.ts +8 -5
- package/src/generated/models/AddressBalanceResponse.ts +12 -12
- package/src/generated/models/BnsNamesOwnByAddressResponse.ts +2 -2
- package/src/generated/models/NetworkBlockTimesResponse.ts +12 -12
- package/src/generated/models/RosettaGenesisBlockIdentifier.ts +64 -0
- package/src/generated/models/RosettaNetworkStatusResponse.ts +115 -0
- package/src/generated/models/RosettaOldestBlockIdentifier.ts +64 -0
- package/src/generated/models/RosettaOptions.ts +2 -2
- package/src/generated/models/RosettaPeers.ts +64 -0
- package/src/generated/models/RosettaSyncStatus.ts +80 -0
- package/src/generated/models/{AddressBalanceResponseStx.ts → StxBalance.ts} +17 -17
- package/src/generated/models/{NetworkBlockTimesResponseMainnet.ts → TargetBlockTime.ts} +8 -8
- package/src/generated/models/index.ts +7 -2
- package/lib/generated/models/AddressBalanceResponseStx.js.map +0 -1
- package/lib/generated/models/NetworkBlockTimesResponseMainnet.js.map +0 -1
|
@@ -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
|
+
* SyncStatus is used to provide additional context about an implementation's sync status. It is often used to indicate that an implementation is healthy when it cannot be queried until some sync phase occurs. If an implementation is immediately queryable, this model is often not populated.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RosettaSyncStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface RosettaSyncStatus {
|
|
22
|
+
/**
|
|
23
|
+
* CurrentIndex is the index of the last synced block in the current stage.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RosettaSyncStatus
|
|
26
|
+
*/
|
|
27
|
+
current_index: number;
|
|
28
|
+
/**
|
|
29
|
+
* TargetIndex is the index of the block that the implementation is attempting to sync to in the current stage.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof RosettaSyncStatus
|
|
32
|
+
*/
|
|
33
|
+
target_index?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Stage is the phase of the sync process.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RosettaSyncStatus
|
|
38
|
+
*/
|
|
39
|
+
stage?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Synced indicates if an implementation has synced up to the most recent block.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof RosettaSyncStatus
|
|
44
|
+
*/
|
|
45
|
+
synced?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function RosettaSyncStatusFromJSON(json: any): RosettaSyncStatus {
|
|
49
|
+
return RosettaSyncStatusFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RosettaSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RosettaSyncStatus {
|
|
53
|
+
if ((json === undefined) || (json === null)) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'current_index': json['current_index'],
|
|
59
|
+
'target_index': !exists(json, 'target_index') ? undefined : json['target_index'],
|
|
60
|
+
'stage': !exists(json, 'stage') ? undefined : json['stage'],
|
|
61
|
+
'synced': !exists(json, 'synced') ? undefined : json['synced'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RosettaSyncStatusToJSON(value?: RosettaSyncStatus | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'current_index': value.current_index,
|
|
75
|
+
'target_index': value.target_index,
|
|
76
|
+
'stage': value.stage,
|
|
77
|
+
'synced': value.synced,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -14,78 +14,78 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface StxBalance
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface StxBalance {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof StxBalance
|
|
26
26
|
*/
|
|
27
27
|
balance: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof StxBalance
|
|
32
32
|
*/
|
|
33
33
|
total_sent: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof StxBalance
|
|
38
38
|
*/
|
|
39
39
|
total_received: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof StxBalance
|
|
44
44
|
*/
|
|
45
45
|
total_fees_sent: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof StxBalance
|
|
50
50
|
*/
|
|
51
51
|
total_miner_rewards_received: string;
|
|
52
52
|
/**
|
|
53
53
|
* The transaction where the lock event occurred. Empty if no tokens are locked.
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof StxBalance
|
|
56
56
|
*/
|
|
57
57
|
lock_tx_id: string;
|
|
58
58
|
/**
|
|
59
59
|
* The amount of locked STX, as string quoted micro-STX. Zero if no tokens are locked.
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof StxBalance
|
|
62
62
|
*/
|
|
63
63
|
locked: string;
|
|
64
64
|
/**
|
|
65
65
|
* The STX chain block height of when the lock event occurred. Zero if no tokens are locked.
|
|
66
66
|
* @type {number}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof StxBalance
|
|
68
68
|
*/
|
|
69
69
|
lock_height: number;
|
|
70
70
|
/**
|
|
71
71
|
* The burnchain block height of when the lock event occurred. Zero if no tokens are locked.
|
|
72
72
|
* @type {number}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof StxBalance
|
|
74
74
|
*/
|
|
75
75
|
burnchain_lock_height: number;
|
|
76
76
|
/**
|
|
77
77
|
* The burnchain block height of when the tokens unlock. Zero if no tokens are locked.
|
|
78
78
|
* @type {number}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof StxBalance
|
|
80
80
|
*/
|
|
81
81
|
burnchain_unlock_height: number;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
85
|
-
return
|
|
84
|
+
export function StxBalanceFromJSON(json: any): StxBalance {
|
|
85
|
+
return StxBalanceFromJSONTyped(json, false);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function
|
|
88
|
+
export function StxBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StxBalance {
|
|
89
89
|
if ((json === undefined) || (json === null)) {
|
|
90
90
|
return json;
|
|
91
91
|
}
|
|
@@ -104,7 +104,7 @@ export function AddressBalanceResponseStxFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export function
|
|
107
|
+
export function StxBalanceToJSON(value?: StxBalance | null): any {
|
|
108
108
|
if (value === undefined) {
|
|
109
109
|
return undefined;
|
|
110
110
|
}
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface TargetBlockTime
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface TargetBlockTime {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof TargetBlockTime
|
|
26
26
|
*/
|
|
27
27
|
target_block_time: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
31
|
-
return
|
|
30
|
+
export function TargetBlockTimeFromJSON(json: any): TargetBlockTime {
|
|
31
|
+
return TargetBlockTimeFromJSONTyped(json, false);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export function
|
|
34
|
+
export function TargetBlockTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TargetBlockTime {
|
|
35
35
|
if ((json === undefined) || (json === null)) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
@@ -41,7 +41,7 @@ export function NetworkBlockTimesResponseMainnetFromJSONTyped(json: any, ignoreD
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export function
|
|
44
|
+
export function TargetBlockTimeToJSON(value?: TargetBlockTime | null): any {
|
|
45
45
|
if (value === undefined) {
|
|
46
46
|
return undefined;
|
|
47
47
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
export * from './AccountDataResponse';
|
|
4
4
|
export * from './AddressAssetsListResponse';
|
|
5
5
|
export * from './AddressBalanceResponse';
|
|
6
|
-
export * from './AddressBalanceResponseStx';
|
|
7
6
|
export * from './AddressNftListResponse';
|
|
8
7
|
export * from './AddressNftListResponseValue';
|
|
9
8
|
export * from './AddressNonces';
|
|
@@ -52,7 +51,6 @@ export * from './Microblock';
|
|
|
52
51
|
export * from './MicroblockListResponse';
|
|
53
52
|
export * from './NetworkBlockTimeResponse';
|
|
54
53
|
export * from './NetworkBlockTimesResponse';
|
|
55
|
-
export * from './NetworkBlockTimesResponseMainnet';
|
|
56
54
|
export * from './NetworkIdentifier';
|
|
57
55
|
export * from './NftEvent';
|
|
58
56
|
export * from './NonFungibleTokenHistoryEventList';
|
|
@@ -101,6 +99,7 @@ export * from './RosettaCurrency';
|
|
|
101
99
|
export * from './RosettaError';
|
|
102
100
|
export * from './RosettaErrorDetails';
|
|
103
101
|
export * from './RosettaErrorNoDetails';
|
|
102
|
+
export * from './RosettaGenesisBlockIdentifier';
|
|
104
103
|
export * from './RosettaMaxFeeAmount';
|
|
105
104
|
export * from './RosettaMempoolRequest';
|
|
106
105
|
export * from './RosettaMempoolResponse';
|
|
@@ -112,22 +111,28 @@ export * from './RosettaNetworkListResponseSubNetworkIdentifierMetadata';
|
|
|
112
111
|
export * from './RosettaNetworkOptionsResponse';
|
|
113
112
|
export * from './RosettaNetworkOptionsResponseAllow';
|
|
114
113
|
export * from './RosettaNetworkOptionsResponseVersion';
|
|
114
|
+
export * from './RosettaNetworkStatusResponse';
|
|
115
|
+
export * from './RosettaOldestBlockIdentifier';
|
|
115
116
|
export * from './RosettaOperation';
|
|
116
117
|
export * from './RosettaOperationIdentifier';
|
|
117
118
|
export * from './RosettaOperationStatus';
|
|
118
119
|
export * from './RosettaOptions';
|
|
119
120
|
export * from './RosettaOptionsRequest';
|
|
120
121
|
export * from './RosettaParentBlockIdentifier';
|
|
122
|
+
export * from './RosettaPeers';
|
|
121
123
|
export * from './RosettaPublicKey';
|
|
122
124
|
export * from './RosettaRelatedOperation';
|
|
123
125
|
export * from './RosettaSignature';
|
|
124
126
|
export * from './RosettaStatusRequest';
|
|
125
127
|
export * from './RosettaSubAccount';
|
|
128
|
+
export * from './RosettaSyncStatus';
|
|
126
129
|
export * from './RosettaTransaction';
|
|
127
130
|
export * from './RunFaucetResponse';
|
|
128
131
|
export * from './ServerStatusResponse';
|
|
129
132
|
export * from './SigningPayload';
|
|
130
133
|
export * from './SmartContract';
|
|
134
|
+
export * from './StxBalance';
|
|
135
|
+
export * from './TargetBlockTime';
|
|
131
136
|
export * from './TransactionEventsResponse';
|
|
132
137
|
export * from './TransactionFeeEstimateRequest';
|
|
133
138
|
export * from './TransactionFeeEstimateResponse';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBalanceResponseStx.js","sourceRoot":"","sources":["../../../src/generated/models/AddressBalanceResponseStx.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuEH,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;A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KAC3D,CAAC;AACN,CAAC;AApBD,0EAoBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkBlockTimesResponseMainnet.js","sourceRoot":"","sources":["../../../src/generated/models/NetworkBlockTimesResponseMainnet.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiBH,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAFD,4FAEC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC;KACjD,CAAC;AACN,CAAC;AARD,sGAQC;AAED,SAAgB,sCAAsC,CAAC,KAA+C;IAClG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,mBAAmB,EAAE,KAAK,CAAC,iBAAiB;KAC/C,CAAC;AACN,CAAC;AAXD,wFAWC"}
|