@stacks/blockchain-api-client 7.4.0-nakamoto.2 → 7.4.0-nakamoto.3

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/index.umd.js CHANGED
@@ -1740,6 +1740,88 @@
1740
1740
 
1741
1741
  /* eslint-disable */
1742
1742
 
1743
+ /**
1744
+ * Stacks Blockchain API
1745
+ * 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>
1746
+ *
1747
+ * The version of the OpenAPI document: STACKS_API_VERSION
1748
+ *
1749
+ *
1750
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1751
+ * https://openapi-generator.tech
1752
+ * Do not edit the class manually.
1753
+ */
1754
+ function BurnBlockFromJSON(json) {
1755
+ return BurnBlockFromJSONTyped(json);
1756
+ }
1757
+ function BurnBlockFromJSONTyped(json, ignoreDiscriminator) {
1758
+ if (json === undefined || json === null) {
1759
+ return json;
1760
+ }
1761
+
1762
+ return {
1763
+ 'burn_block_time': json['burn_block_time'],
1764
+ 'burn_block_time_iso': json['burn_block_time_iso'],
1765
+ 'burn_block_hash': json['burn_block_hash'],
1766
+ 'burn_block_height': json['burn_block_height'],
1767
+ 'stacks_blocks': json['stacks_blocks']
1768
+ };
1769
+ }
1770
+ function BurnBlockToJSON(value) {
1771
+ if (value === undefined) {
1772
+ return undefined;
1773
+ }
1774
+
1775
+ if (value === null) {
1776
+ return null;
1777
+ }
1778
+
1779
+ return {
1780
+ 'burn_block_time': value.burn_block_time,
1781
+ 'burn_block_time_iso': value.burn_block_time_iso,
1782
+ 'burn_block_hash': value.burn_block_hash,
1783
+ 'burn_block_height': value.burn_block_height,
1784
+ 'stacks_blocks': value.stacks_blocks
1785
+ };
1786
+ }
1787
+
1788
+ /* tslint:disable */
1789
+ function BurnBlockListResponseFromJSON(json) {
1790
+ return BurnBlockListResponseFromJSONTyped(json);
1791
+ }
1792
+ function BurnBlockListResponseFromJSONTyped(json, ignoreDiscriminator) {
1793
+ if (json === undefined || json === null) {
1794
+ return json;
1795
+ }
1796
+
1797
+ return {
1798
+ 'limit': json['limit'],
1799
+ 'offset': json['offset'],
1800
+ 'total': json['total'],
1801
+ 'results': json['results'].map(BurnBlockFromJSON)
1802
+ };
1803
+ }
1804
+ function BurnBlockListResponseToJSON(value) {
1805
+ if (value === undefined) {
1806
+ return undefined;
1807
+ }
1808
+
1809
+ if (value === null) {
1810
+ return null;
1811
+ }
1812
+
1813
+ return {
1814
+ 'limit': value.limit,
1815
+ 'offset': value.offset,
1816
+ 'total': value.total,
1817
+ 'results': value.results.map(BurnBlockToJSON)
1818
+ };
1819
+ }
1820
+
1821
+ /* tslint:disable */
1822
+
1823
+ /* eslint-disable */
1824
+
1743
1825
  /**
1744
1826
  * Stacks Blockchain API
1745
1827
  * 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>
@@ -5937,6 +6019,7 @@
5937
6019
  'status': json['status'],
5938
6020
  'pox_v1_unlock_height': !exists(json, 'pox_v1_unlock_height') ? undefined : json['pox_v1_unlock_height'],
5939
6021
  'pox_v2_unlock_height': !exists(json, 'pox_v2_unlock_height') ? undefined : json['pox_v2_unlock_height'],
6022
+ 'pox_v3_unlock_height': !exists(json, 'pox_v3_unlock_height') ? undefined : json['pox_v3_unlock_height'],
5940
6023
  'chain_tip': !exists(json, 'chain_tip') ? undefined : ChainTipFromJSON(json['chain_tip'])
5941
6024
  };
5942
6025
  }
@@ -5954,6 +6037,7 @@
5954
6037
  'status': value.status,
5955
6038
  'pox_v1_unlock_height': value.pox_v1_unlock_height,
5956
6039
  'pox_v2_unlock_height': value.pox_v2_unlock_height,
6040
+ 'pox_v3_unlock_height': value.pox_v3_unlock_height,
5957
6041
  'chain_tip': ChainTipToJSON(value.chain_tip)
5958
6042
  };
5959
6043
  }
@@ -7343,6 +7427,66 @@
7343
7427
  } catch (e) {
7344
7428
  return Promise.reject(e);
7345
7429
  }
7430
+ }
7431
+ /**
7432
+ * Retrieves a list of recent burn blocks
7433
+ * Get recent burn blocks
7434
+ */
7435
+ ;
7436
+
7437
+ _proto.getBurnBlockListRaw = function getBurnBlockListRaw(requestParameters, initOverrides) {
7438
+ try {
7439
+ var _this22 = this;
7440
+
7441
+ var queryParameters = {};
7442
+
7443
+ if (requestParameters.limit !== undefined) {
7444
+ queryParameters['limit'] = requestParameters.limit;
7445
+ }
7446
+
7447
+ if (requestParameters.offset !== undefined) {
7448
+ queryParameters['offset'] = requestParameters.offset;
7449
+ }
7450
+
7451
+ if (requestParameters.height !== undefined) {
7452
+ queryParameters['height'] = requestParameters.height;
7453
+ }
7454
+
7455
+ if (requestParameters.hash !== undefined) {
7456
+ queryParameters['hash'] = requestParameters.hash;
7457
+ }
7458
+
7459
+ var headerParameters = {};
7460
+ return Promise.resolve(_this22.request({
7461
+ path: "/extended/v1/burn_block",
7462
+ method: 'GET',
7463
+ headers: headerParameters,
7464
+ query: queryParameters
7465
+ }, initOverrides)).then(function (response) {
7466
+ return new JSONApiResponse(response, function (jsonValue) {
7467
+ return BurnBlockListResponseFromJSON(jsonValue);
7468
+ });
7469
+ });
7470
+ } catch (e) {
7471
+ return Promise.reject(e);
7472
+ }
7473
+ }
7474
+ /**
7475
+ * Retrieves a list of recent burn blocks
7476
+ * Get recent burn blocks
7477
+ */
7478
+ ;
7479
+
7480
+ _proto.getBurnBlockList = function getBurnBlockList(requestParameters, initOverrides) {
7481
+ try {
7482
+ var _this24 = this;
7483
+
7484
+ return Promise.resolve(_this24.getBurnBlockListRaw(requestParameters, initOverrides)).then(function (response) {
7485
+ return Promise.resolve(response.value());
7486
+ });
7487
+ } catch (e) {
7488
+ return Promise.reject(e);
7489
+ }
7346
7490
  };
7347
7491
 
7348
7492
  return BlocksApi;
@@ -11501,6 +11645,7 @@
11501
11645
  GetTransactionListTypeEnum["smart_contract"] = "smart_contract";
11502
11646
  GetTransactionListTypeEnum["contract_call"] = "contract_call";
11503
11647
  GetTransactionListTypeEnum["poison_microblock"] = "poison_microblock";
11648
+ GetTransactionListTypeEnum["tenure_change"] = "tenure_change";
11504
11649
  })(exports.GetTransactionListTypeEnum || (exports.GetTransactionListTypeEnum = {}));
11505
11650
 
11506
11651
  // **Github:** https://github.com/teambition/jsonrpc-lite
@@ -16428,6 +16573,12 @@
16428
16573
  exports.BnsNamesOwnByAddressResponseFromJSON = BnsNamesOwnByAddressResponseFromJSON;
16429
16574
  exports.BnsNamesOwnByAddressResponseFromJSONTyped = BnsNamesOwnByAddressResponseFromJSONTyped;
16430
16575
  exports.BnsNamesOwnByAddressResponseToJSON = BnsNamesOwnByAddressResponseToJSON;
16576
+ exports.BurnBlockFromJSON = BurnBlockFromJSON;
16577
+ exports.BurnBlockFromJSONTyped = BurnBlockFromJSONTyped;
16578
+ exports.BurnBlockListResponseFromJSON = BurnBlockListResponseFromJSON;
16579
+ exports.BurnBlockListResponseFromJSONTyped = BurnBlockListResponseFromJSONTyped;
16580
+ exports.BurnBlockListResponseToJSON = BurnBlockListResponseToJSON;
16581
+ exports.BurnBlockToJSON = BurnBlockToJSON;
16431
16582
  exports.BurnchainRewardFromJSON = BurnchainRewardFromJSON;
16432
16583
  exports.BurnchainRewardFromJSONTyped = BurnchainRewardFromJSONTyped;
16433
16584
  exports.BurnchainRewardListResponseFromJSON = BurnchainRewardListResponseFromJSON;