@stacks/blockchain-api-client 7.3.7-beta.1 → 7.4.0-nakamoto.10

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 (86) hide show
  1. package/lib/generated/apis/AccountsApi.d.ts +1 -36
  2. package/lib/generated/apis/AccountsApi.js +0 -38
  3. package/lib/generated/apis/AccountsApi.js.map +1 -1
  4. package/lib/generated/apis/BlocksApi.d.ts +164 -21
  5. package/lib/generated/apis/BlocksApi.js +152 -10
  6. package/lib/generated/apis/BlocksApi.js.map +1 -1
  7. package/lib/generated/apis/FaucetsApi.d.ts +5 -3
  8. package/lib/generated/apis/FaucetsApi.js +3 -1
  9. package/lib/generated/apis/FaucetsApi.js.map +1 -1
  10. package/lib/generated/apis/NonFungibleTokensApi.d.ts +1 -57
  11. package/lib/generated/apis/NonFungibleTokensApi.js +0 -55
  12. package/lib/generated/apis/NonFungibleTokensApi.js.map +1 -1
  13. package/lib/generated/apis/TransactionsApi.d.ts +3 -2
  14. package/lib/generated/apis/TransactionsApi.js +1 -0
  15. package/lib/generated/apis/TransactionsApi.js.map +1 -1
  16. package/lib/generated/apis/index.d.ts +0 -1
  17. package/lib/generated/apis/index.js +0 -1
  18. package/lib/generated/apis/index.js.map +1 -1
  19. package/lib/generated/models/BurnBlock.d.ts +51 -0
  20. package/lib/generated/models/BurnBlock.js +50 -0
  21. package/lib/generated/models/BurnBlock.js.map +1 -0
  22. package/lib/generated/models/BurnBlockListResponse.d.ts +46 -0
  23. package/lib/generated/models/{AddressNftListResponse.js → BurnBlockListResponse.js} +11 -11
  24. package/lib/generated/models/BurnBlockListResponse.js.map +1 -0
  25. package/lib/generated/models/InlineObject.d.ts +7 -1
  26. package/lib/generated/models/InlineObject.js +2 -0
  27. package/lib/generated/models/InlineObject.js.map +1 -1
  28. package/lib/generated/models/InlineObject1.d.ts +27 -0
  29. package/lib/generated/models/{AddressNftListResponseValue.js → InlineObject1.js} +12 -13
  30. package/lib/generated/models/InlineObject1.js.map +1 -0
  31. package/lib/generated/models/NakamotoBlock.d.ts +123 -0
  32. package/lib/generated/models/NakamotoBlock.js +74 -0
  33. package/lib/generated/models/NakamotoBlock.js.map +1 -0
  34. package/lib/generated/models/NakamotoBlockListResponse.d.ts +46 -0
  35. package/lib/generated/models/{FungibleTokensMetadataList.js → NakamotoBlockListResponse.js} +11 -11
  36. package/lib/generated/models/NakamotoBlockListResponse.js.map +1 -0
  37. package/lib/generated/models/ServerStatusResponse.d.ts +6 -0
  38. package/lib/generated/models/ServerStatusResponse.js +2 -0
  39. package/lib/generated/models/ServerStatusResponse.js.map +1 -1
  40. package/lib/generated/models/index.d.ts +5 -7
  41. package/lib/generated/models/index.js +5 -7
  42. package/lib/generated/models/index.js.map +1 -1
  43. package/lib/index.umd.js +564 -668
  44. package/lib/index.umd.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/generated/.openapi-generator/FILES +5 -8
  47. package/src/generated/apis/AccountsApi.ts +0 -79
  48. package/src/generated/apis/BlocksApi.ts +319 -20
  49. package/src/generated/apis/FaucetsApi.ts +11 -3
  50. package/src/generated/apis/NonFungibleTokensApi.ts +0 -116
  51. package/src/generated/apis/TransactionsApi.ts +3 -2
  52. package/src/generated/apis/index.ts +0 -1
  53. package/src/generated/models/BurnBlock.ts +88 -0
  54. package/src/generated/models/{AddressNftListResponse.ts → BurnBlockListResponse.ts} +22 -22
  55. package/src/generated/models/InlineObject.ts +9 -1
  56. package/src/generated/models/{AddressNftListResponseValue.ts → InlineObject1.ts} +12 -20
  57. package/src/generated/models/NakamotoBlock.ts +184 -0
  58. package/src/generated/models/{FungibleTokensMetadataList.ts → NakamotoBlockListResponse.ts} +22 -22
  59. package/src/generated/models/ServerStatusResponse.ts +8 -0
  60. package/src/generated/models/index.ts +5 -7
  61. package/lib/generated/apis/FungibleTokensApi.d.ts +0 -82
  62. package/lib/generated/apis/FungibleTokensApi.js +0 -80
  63. package/lib/generated/apis/FungibleTokensApi.js.map +0 -1
  64. package/lib/generated/models/AddressNftListResponse.d.ts +0 -46
  65. package/lib/generated/models/AddressNftListResponse.js.map +0 -1
  66. package/lib/generated/models/AddressNftListResponseValue.d.ts +0 -33
  67. package/lib/generated/models/AddressNftListResponseValue.js.map +0 -1
  68. package/lib/generated/models/FungibleTokenMetadata.d.ts +0 -75
  69. package/lib/generated/models/FungibleTokenMetadata.js +0 -58
  70. package/lib/generated/models/FungibleTokenMetadata.js.map +0 -1
  71. package/lib/generated/models/FungibleTokensMetadataList.d.ts +0 -46
  72. package/lib/generated/models/FungibleTokensMetadataList.js.map +0 -1
  73. package/lib/generated/models/NftEvent.d.ts +0 -76
  74. package/lib/generated/models/NftEvent.js +0 -60
  75. package/lib/generated/models/NftEvent.js.map +0 -1
  76. package/lib/generated/models/NonFungibleTokenMetadata.d.ts +0 -63
  77. package/lib/generated/models/NonFungibleTokenMetadata.js +0 -54
  78. package/lib/generated/models/NonFungibleTokenMetadata.js.map +0 -1
  79. package/lib/generated/models/NonFungibleTokensMetadataList.d.ts +0 -46
  80. package/lib/generated/models/NonFungibleTokensMetadataList.js +0 -49
  81. package/lib/generated/models/NonFungibleTokensMetadataList.js.map +0 -1
  82. package/src/generated/apis/FungibleTokensApi.ts +0 -150
  83. package/src/generated/models/FungibleTokenMetadata.ts +0 -120
  84. package/src/generated/models/NftEvent.ts +0 -127
  85. package/src/generated/models/NonFungibleTokenMetadata.ts +0 -104
  86. package/src/generated/models/NonFungibleTokensMetadataList.ts +0 -87
@@ -18,6 +18,9 @@ import {
18
18
  InlineObject,
19
19
  InlineObjectFromJSON,
20
20
  InlineObjectToJSON,
21
+ InlineObject1,
22
+ InlineObject1FromJSON,
23
+ InlineObject1ToJSON,
21
24
  InlineResponse403,
22
25
  InlineResponse403FromJSON,
23
26
  InlineResponse403ToJSON,
@@ -28,12 +31,13 @@ import {
28
31
 
29
32
  export interface RunFaucetBtcRequest {
30
33
  address: string;
31
- inlineObject?: InlineObject;
34
+ inlineObject1?: InlineObject1;
32
35
  }
33
36
 
34
37
  export interface RunFaucetStxRequest {
35
38
  address: string;
36
39
  stacking?: boolean;
40
+ inlineObject?: InlineObject;
37
41
  }
38
42
 
39
43
  /**
@@ -47,7 +51,7 @@ export interface FaucetsApiInterface {
47
51
  * Add 1 BTC token to the specified testnet BTC address. The endpoint returns the transaction ID, which you can use to view the transaction in a testnet Bitcoin block explorer. The tokens are delivered once the transaction has been included in a block. **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
48
52
  * @summary Add testnet BTC tokens to address
49
53
  * @param {string} address A valid testnet BTC address
50
- * @param {InlineObject} [inlineObject]
54
+ * @param {InlineObject1} [inlineObject1]
51
55
  * @param {*} [options] Override http request option.
52
56
  * @throws {RequiredError}
53
57
  * @memberof FaucetsApiInterface
@@ -65,6 +69,7 @@ export interface FaucetsApiInterface {
65
69
  * @summary Get STX testnet tokens
66
70
  * @param {string} address A valid testnet STX address
67
71
  * @param {boolean} [stacking] Request the amount of STX tokens needed for individual address stacking
72
+ * @param {InlineObject} [inlineObject]
68
73
  * @param {*} [options] Override http request option.
69
74
  * @throws {RequiredError}
70
75
  * @memberof FaucetsApiInterface
@@ -108,7 +113,7 @@ export class FaucetsApi extends runtime.BaseAPI implements FaucetsApiInterface {
108
113
  method: 'POST',
109
114
  headers: headerParameters,
110
115
  query: queryParameters,
111
- body: InlineObjectToJSON(requestParameters.inlineObject),
116
+ body: InlineObject1ToJSON(requestParameters.inlineObject1),
112
117
  }, initOverrides);
113
118
 
114
119
  return new runtime.JSONApiResponse(response, (jsonValue) => RunFaucetResponseFromJSON(jsonValue));
@@ -144,11 +149,14 @@ export class FaucetsApi extends runtime.BaseAPI implements FaucetsApiInterface {
144
149
 
145
150
  const headerParameters: runtime.HTTPHeaders = {};
146
151
 
152
+ headerParameters['Content-Type'] = 'application/json';
153
+
147
154
  const response = await this.request({
148
155
  path: `/extended/v1/faucets/stx`,
149
156
  method: 'POST',
150
157
  headers: headerParameters,
151
158
  query: queryParameters,
159
+ body: InlineObjectToJSON(requestParameters.inlineObject),
152
160
  }, initOverrides);
153
161
 
154
162
  return new runtime.JSONApiResponse(response, (jsonValue) => RunFaucetResponseFromJSON(jsonValue));
@@ -21,21 +21,11 @@ import {
21
21
  NonFungibleTokenHoldingsList,
22
22
  NonFungibleTokenHoldingsListFromJSON,
23
23
  NonFungibleTokenHoldingsListToJSON,
24
- NonFungibleTokenMetadata,
25
- NonFungibleTokenMetadataFromJSON,
26
- NonFungibleTokenMetadataToJSON,
27
24
  NonFungibleTokenMintList,
28
25
  NonFungibleTokenMintListFromJSON,
29
26
  NonFungibleTokenMintListToJSON,
30
- NonFungibleTokensMetadataList,
31
- NonFungibleTokensMetadataListFromJSON,
32
- NonFungibleTokensMetadataListToJSON,
33
27
  } from '../models';
34
28
 
35
- export interface GetContractNftMetadataRequest {
36
- contractId: string;
37
- }
38
-
39
29
  export interface GetNftHistoryRequest {
40
30
  assetIdentifier: string;
41
31
  value: string;
@@ -54,11 +44,6 @@ export interface GetNftHoldingsRequest {
54
44
  txMetadata?: boolean;
55
45
  }
56
46
 
57
- export interface GetNftMetadataListRequest {
58
- limit?: number;
59
- offset?: number;
60
- }
61
-
62
47
  export interface GetNftMintsRequest {
63
48
  assetIdentifier: string;
64
49
  limit?: number;
@@ -74,22 +59,6 @@ export interface GetNftMintsRequest {
74
59
  * @interface NonFungibleTokensApiInterface
75
60
  */
76
61
  export interface NonFungibleTokensApiInterface {
77
- /**
78
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
79
- * @summary Non fungible tokens metadata for contract ID
80
- * @param {string} contractId token\'s contract id
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- * @memberof NonFungibleTokensApiInterface
84
- */
85
- getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>>;
86
-
87
- /**
88
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
89
- * Non fungible tokens metadata for contract ID
90
- */
91
- getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
92
-
93
62
  /**
94
63
  * Retrieves all events relevant to a Non-Fungible Token. Useful to determine the ownership history of a particular asset. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
95
64
  * @summary Non-Fungible Token history
@@ -132,23 +101,6 @@ export interface NonFungibleTokensApiInterface {
132
101
  */
133
102
  getNftHoldings(requestParameters: GetNftHoldingsRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenHoldingsList>;
134
103
 
135
- /**
136
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
137
- * @summary Non fungible tokens metadata list
138
- * @param {number} [limit] max number of tokens to fetch
139
- * @param {number} [offset] index of first tokens to fetch
140
- * @param {*} [options] Override http request option.
141
- * @throws {RequiredError}
142
- * @memberof NonFungibleTokensApiInterface
143
- */
144
- getNftMetadataListRaw(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokensMetadataList>>;
145
-
146
- /**
147
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
148
- * Non fungible tokens metadata list
149
- */
150
- getNftMetadataList(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<NonFungibleTokensMetadataList>;
151
-
152
104
  /**
153
105
  * Retrieves all mint events for a Non-Fungible Token asset class. Useful to determine which NFTs of a particular collection have been claimed. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
154
106
  * @summary Non-Fungible Token mints
@@ -176,38 +128,6 @@ export interface NonFungibleTokensApiInterface {
176
128
  */
177
129
  export class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungibleTokensApiInterface {
178
130
 
179
- /**
180
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
181
- * Non fungible tokens metadata for contract ID
182
- */
183
- async getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>> {
184
- if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
185
- throw new runtime.RequiredError('contractId','Required parameter requestParameters.contractId was null or undefined when calling getContractNftMetadata.');
186
- }
187
-
188
- const queryParameters: any = {};
189
-
190
- const headerParameters: runtime.HTTPHeaders = {};
191
-
192
- const response = await this.request({
193
- path: `/extended/v1/tokens/{contractId}/nft/metadata`.replace(`{${"contractId"}}`, encodeURIComponent(String(requestParameters.contractId))),
194
- method: 'GET',
195
- headers: headerParameters,
196
- query: queryParameters,
197
- }, initOverrides);
198
-
199
- return new runtime.JSONApiResponse(response, (jsonValue) => NonFungibleTokenMetadataFromJSON(jsonValue));
200
- }
201
-
202
- /**
203
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
204
- * Non fungible tokens metadata for contract ID
205
- */
206
- async getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata> {
207
- const response = await this.getContractNftMetadataRaw(requestParameters, initOverrides);
208
- return await response.value();
209
- }
210
-
211
131
  /**
212
132
  * Retrieves all events relevant to a Non-Fungible Token. Useful to determine the ownership history of a particular asset. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
213
133
  * Non-Fungible Token history
@@ -324,42 +244,6 @@ export class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungible
324
244
  return await response.value();
325
245
  }
326
246
 
327
- /**
328
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
329
- * Non fungible tokens metadata list
330
- */
331
- async getNftMetadataListRaw(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokensMetadataList>> {
332
- const queryParameters: any = {};
333
-
334
- if (requestParameters.limit !== undefined) {
335
- queryParameters['limit'] = requestParameters.limit;
336
- }
337
-
338
- if (requestParameters.offset !== undefined) {
339
- queryParameters['offset'] = requestParameters.offset;
340
- }
341
-
342
- const headerParameters: runtime.HTTPHeaders = {};
343
-
344
- const response = await this.request({
345
- path: `/extended/v1/tokens/nft/metadata`,
346
- method: 'GET',
347
- headers: headerParameters,
348
- query: queryParameters,
349
- }, initOverrides);
350
-
351
- return new runtime.JSONApiResponse(response, (jsonValue) => NonFungibleTokensMetadataListFromJSON(jsonValue));
352
- }
353
-
354
- /**
355
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
356
- * Non fungible tokens metadata list
357
- */
358
- async getNftMetadataList(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<NonFungibleTokensMetadataList> {
359
- const response = await this.getNftMetadataListRaw(requestParameters, initOverrides);
360
- return await response.value();
361
- }
362
-
363
247
  /**
364
248
  * Retrieves all mint events for a Non-Fungible Token asset class. Useful to determine which NFTs of a particular collection have been claimed. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
365
249
  * Non-Fungible Token mints
@@ -245,7 +245,7 @@ export interface TransactionsApiInterface {
245
245
  * @summary Get recent transactions
246
246
  * @param {number} [limit] max number of transactions to fetch
247
247
  * @param {number} [offset] index of first transaction to fetch
248
- * @param {Array<'coinbase' | 'token_transfer' | 'smart_contract' | 'contract_call' | 'poison_microblock'>} [type] Filter by transaction type
248
+ * @param {Array<'coinbase' | 'token_transfer' | 'smart_contract' | 'contract_call' | 'poison_microblock' | 'tenure_change'>} [type] Filter by transaction type
249
249
  * @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
250
250
  * @param {*} [options] Override http request option.
251
251
  * @throws {RequiredError}
@@ -851,5 +851,6 @@ export enum GetTransactionListTypeEnum {
851
851
  token_transfer = 'token_transfer',
852
852
  smart_contract = 'smart_contract',
853
853
  contract_call = 'contract_call',
854
- poison_microblock = 'poison_microblock'
854
+ poison_microblock = 'poison_microblock',
855
+ tenure_change = 'tenure_change'
855
856
  }
@@ -4,7 +4,6 @@ export * from './AccountsApi';
4
4
  export * from './BlocksApi';
5
5
  export * from './FaucetsApi';
6
6
  export * from './FeesApi';
7
- export * from './FungibleTokensApi';
8
7
  export * from './InfoApi';
9
8
  export * from './MicroblocksApi';
10
9
  export * from './NamesApi';
@@ -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
+ * A burn block
18
+ * @export
19
+ * @interface BurnBlock
20
+ */
21
+ export interface BurnBlock {
22
+ /**
23
+ * Unix timestamp (in seconds) indicating when this block was mined.
24
+ * @type {number}
25
+ * @memberof BurnBlock
26
+ */
27
+ burn_block_time: number;
28
+ /**
29
+ * An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined.
30
+ * @type {string}
31
+ * @memberof BurnBlock
32
+ */
33
+ burn_block_time_iso: string;
34
+ /**
35
+ * Hash of the anchor chain block
36
+ * @type {string}
37
+ * @memberof BurnBlock
38
+ */
39
+ burn_block_hash: string;
40
+ /**
41
+ * Height of the anchor chain block
42
+ * @type {number}
43
+ * @memberof BurnBlock
44
+ */
45
+ burn_block_height: number;
46
+ /**
47
+ * Hashes of the Stacks blocks included in the burn block
48
+ * @type {Array<string>}
49
+ * @memberof BurnBlock
50
+ */
51
+ stacks_blocks: Array<string>;
52
+ }
53
+
54
+ export function BurnBlockFromJSON(json: any): BurnBlock {
55
+ return BurnBlockFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function BurnBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): BurnBlock {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'burn_block_time': json['burn_block_time'],
65
+ 'burn_block_time_iso': json['burn_block_time_iso'],
66
+ 'burn_block_hash': json['burn_block_hash'],
67
+ 'burn_block_height': json['burn_block_height'],
68
+ 'stacks_blocks': json['stacks_blocks'],
69
+ };
70
+ }
71
+
72
+ export function BurnBlockToJSON(value?: BurnBlock | null): any {
73
+ if (value === undefined) {
74
+ return undefined;
75
+ }
76
+ if (value === null) {
77
+ return null;
78
+ }
79
+ return {
80
+
81
+ 'burn_block_time': value.burn_block_time,
82
+ 'burn_block_time_iso': value.burn_block_time_iso,
83
+ 'burn_block_hash': value.burn_block_hash,
84
+ 'burn_block_height': value.burn_block_height,
85
+ 'stacks_blocks': value.stacks_blocks,
86
+ };
87
+ }
88
+
@@ -14,49 +14,49 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
- NftEvent,
18
- NftEventFromJSON,
19
- NftEventFromJSONTyped,
20
- NftEventToJSON,
17
+ BurnBlock,
18
+ BurnBlockFromJSON,
19
+ BurnBlockFromJSONTyped,
20
+ BurnBlockToJSON,
21
21
  } from './';
22
22
 
23
23
  /**
24
- *
24
+ * GET request that returns burn blocks
25
25
  * @export
26
- * @interface AddressNftListResponse
26
+ * @interface BurnBlockListResponse
27
27
  */
28
- export interface AddressNftListResponse {
28
+ export interface BurnBlockListResponse {
29
29
  /**
30
- *
30
+ * The number of burn blocks to return
31
31
  * @type {number}
32
- * @memberof AddressNftListResponse
32
+ * @memberof BurnBlockListResponse
33
33
  */
34
34
  limit: number;
35
35
  /**
36
- *
36
+ * The number to burn blocks to skip (starting at `0`)
37
37
  * @type {number}
38
- * @memberof AddressNftListResponse
38
+ * @memberof BurnBlockListResponse
39
39
  */
40
40
  offset: number;
41
41
  /**
42
- *
42
+ * The number of burn blocks available (regardless of filter parameters)
43
43
  * @type {number}
44
- * @memberof AddressNftListResponse
44
+ * @memberof BurnBlockListResponse
45
45
  */
46
46
  total: number;
47
47
  /**
48
48
  *
49
- * @type {Array<NftEvent>}
50
- * @memberof AddressNftListResponse
49
+ * @type {Array<BurnBlock>}
50
+ * @memberof BurnBlockListResponse
51
51
  */
52
- nft_events: Array<NftEvent>;
52
+ results: Array<BurnBlock>;
53
53
  }
54
54
 
55
- export function AddressNftListResponseFromJSON(json: any): AddressNftListResponse {
56
- return AddressNftListResponseFromJSONTyped(json, false);
55
+ export function BurnBlockListResponseFromJSON(json: any): BurnBlockListResponse {
56
+ return BurnBlockListResponseFromJSONTyped(json, false);
57
57
  }
58
58
 
59
- export function AddressNftListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressNftListResponse {
59
+ export function BurnBlockListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BurnBlockListResponse {
60
60
  if ((json === undefined) || (json === null)) {
61
61
  return json;
62
62
  }
@@ -65,11 +65,11 @@ export function AddressNftListResponseFromJSONTyped(json: any, ignoreDiscriminat
65
65
  'limit': json['limit'],
66
66
  'offset': json['offset'],
67
67
  'total': json['total'],
68
- 'nft_events': ((json['nft_events'] as Array<any>).map(NftEventFromJSON)),
68
+ 'results': ((json['results'] as Array<any>).map(BurnBlockFromJSON)),
69
69
  };
70
70
  }
71
71
 
72
- export function AddressNftListResponseToJSON(value?: AddressNftListResponse | null): any {
72
+ export function BurnBlockListResponseToJSON(value?: BurnBlockListResponse | null): any {
73
73
  if (value === undefined) {
74
74
  return undefined;
75
75
  }
@@ -81,7 +81,7 @@ export function AddressNftListResponseToJSON(value?: AddressNftListResponse | nu
81
81
  'limit': value.limit,
82
82
  'offset': value.offset,
83
83
  'total': value.total,
84
- 'nft_events': ((value.nft_events as Array<any>).map(NftEventToJSON)),
84
+ 'results': ((value.results as Array<any>).map(BurnBlockToJSON)),
85
85
  };
86
86
  }
87
87
 
@@ -20,11 +20,17 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface InlineObject {
22
22
  /**
23
- * BTC testnet address
23
+ * STX testnet address
24
24
  * @type {string}
25
25
  * @memberof InlineObject
26
26
  */
27
27
  address?: string;
28
+ /**
29
+ * Use required number of tokens for stacking
30
+ * @type {boolean}
31
+ * @memberof InlineObject
32
+ */
33
+ stacking?: boolean;
28
34
  }
29
35
 
30
36
  export function InlineObjectFromJSON(json: any): InlineObject {
@@ -38,6 +44,7 @@ export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolea
38
44
  return {
39
45
 
40
46
  'address': !exists(json, 'address') ? undefined : json['address'],
47
+ 'stacking': !exists(json, 'stacking') ? undefined : json['stacking'],
41
48
  };
42
49
  }
43
50
 
@@ -51,6 +58,7 @@ export function InlineObjectToJSON(value?: InlineObject | null): any {
51
58
  return {
52
59
 
53
60
  'address': value.address,
61
+ 'stacking': value.stacking,
54
62
  };
55
63
  }
56
64
 
@@ -14,41 +14,34 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- * Identifier of the NFT
17
+ *
18
18
  * @export
19
- * @interface AddressNftListResponseValue
19
+ * @interface InlineObject1
20
20
  */
21
- export interface AddressNftListResponseValue {
22
- /**
23
- * Hex string representing the identifier of the NFT
24
- * @type {string}
25
- * @memberof AddressNftListResponseValue
26
- */
27
- hex: string;
21
+ export interface InlineObject1 {
28
22
  /**
29
- * Readable string of the NFT identifier
23
+ * BTC testnet address
30
24
  * @type {string}
31
- * @memberof AddressNftListResponseValue
25
+ * @memberof InlineObject1
32
26
  */
33
- repr: string;
27
+ address?: string;
34
28
  }
35
29
 
36
- export function AddressNftListResponseValueFromJSON(json: any): AddressNftListResponseValue {
37
- return AddressNftListResponseValueFromJSONTyped(json, false);
30
+ export function InlineObject1FromJSON(json: any): InlineObject1 {
31
+ return InlineObject1FromJSONTyped(json, false);
38
32
  }
39
33
 
40
- export function AddressNftListResponseValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressNftListResponseValue {
34
+ export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 {
41
35
  if ((json === undefined) || (json === null)) {
42
36
  return json;
43
37
  }
44
38
  return {
45
39
 
46
- 'hex': json['hex'],
47
- 'repr': json['repr'],
40
+ 'address': !exists(json, 'address') ? undefined : json['address'],
48
41
  };
49
42
  }
50
43
 
51
- export function AddressNftListResponseValueToJSON(value?: AddressNftListResponseValue | null): any {
44
+ export function InlineObject1ToJSON(value?: InlineObject1 | null): any {
52
45
  if (value === undefined) {
53
46
  return undefined;
54
47
  }
@@ -57,8 +50,7 @@ export function AddressNftListResponseValueToJSON(value?: AddressNftListResponse
57
50
  }
58
51
  return {
59
52
 
60
- 'hex': value.hex,
61
- 'repr': value.repr,
53
+ 'address': value.address,
62
54
  };
63
55
  }
64
56