@stacks/blockchain-api-client 7.3.7-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.
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * 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>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { MempoolFeePriorities } from '../models';
14
+ /**
15
+ * MempoolApi - interface
16
+ *
17
+ * @export
18
+ * @interface MempoolApiInterface
19
+ */
20
+ export interface MempoolApiInterface {
21
+ /**
22
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
23
+ * @summary Get mempool transaction fee priorities
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ * @memberof MempoolApiInterface
27
+ */
28
+ getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolFeePriorities>>;
29
+ /**
30
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
31
+ * Get mempool transaction fee priorities
32
+ */
33
+ getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolFeePriorities>;
34
+ }
35
+ /**
36
+ *
37
+ */
38
+ export declare class MempoolApi extends runtime.BaseAPI implements MempoolApiInterface {
39
+ /**
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
+ * Get mempool transaction fee priorities
42
+ */
43
+ getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolFeePriorities>>;
44
+ /**
45
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
46
+ * Get mempool transaction fee priorities
47
+ */
48
+ getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolFeePriorities>;
49
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * 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>
7
+ *
8
+ * The version of the OpenAPI document: STACKS_API_VERSION
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MempoolApi = void 0;
17
+ const runtime = require("../runtime");
18
+ const models_1 = require("../models");
19
+ /**
20
+ *
21
+ */
22
+ class MempoolApi extends runtime.BaseAPI {
23
+ /**
24
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
25
+ * Get mempool transaction fee priorities
26
+ */
27
+ async getMempoolFeePrioritiesRaw(initOverrides) {
28
+ const queryParameters = {};
29
+ const headerParameters = {};
30
+ const response = await this.request({
31
+ path: `/extended/v2/mempool/fees`,
32
+ method: 'GET',
33
+ headers: headerParameters,
34
+ query: queryParameters,
35
+ }, initOverrides);
36
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.MempoolFeePrioritiesFromJSON)(jsonValue));
37
+ }
38
+ /**
39
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
40
+ * Get mempool transaction fee priorities
41
+ */
42
+ async getMempoolFeePriorities(initOverrides) {
43
+ const response = await this.getMempoolFeePrioritiesRaw(initOverrides);
44
+ return await response.value();
45
+ }
46
+ }
47
+ exports.MempoolApi = MempoolApi;
48
+ //# sourceMappingURL=MempoolApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MempoolApi.js","sourceRoot":"","sources":["../../../src/generated/apis/MempoolApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAImB;AA0BnB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA2B;QACxD,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,2BAA2B;YACjC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,qCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,aAA2B;QACrD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;QACtE,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,gCA8BC"}
@@ -4,6 +4,7 @@ export * from './FaucetsApi';
4
4
  export * from './FeesApi';
5
5
  export * from './FungibleTokensApi';
6
6
  export * from './InfoApi';
7
+ export * from './MempoolApi';
7
8
  export * from './MicroblocksApi';
8
9
  export * from './NamesApi';
9
10
  export * from './NonFungibleTokensApi';
@@ -22,6 +22,7 @@ __exportStar(require("./FaucetsApi"), exports);
22
22
  __exportStar(require("./FeesApi"), exports);
23
23
  __exportStar(require("./FungibleTokensApi"), exports);
24
24
  __exportStar(require("./InfoApi"), exports);
25
+ __exportStar(require("./MempoolApi"), exports);
25
26
  __exportStar(require("./MicroblocksApi"), exports);
26
27
  __exportStar(require("./NamesApi"), exports);
27
28
  __exportStar(require("./NonFungibleTokensApi"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * 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>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { MempoolFeePrioritiesAll } from './';
13
+ /**
14
+ * GET request that returns fee priorities from mempool transactions
15
+ * @export
16
+ * @interface MempoolFeePriorities
17
+ */
18
+ export interface MempoolFeePriorities {
19
+ /**
20
+ *
21
+ * @type {MempoolFeePrioritiesAll}
22
+ * @memberof MempoolFeePriorities
23
+ */
24
+ all: MempoolFeePrioritiesAll;
25
+ /**
26
+ *
27
+ * @type {MempoolFeePrioritiesAll}
28
+ * @memberof MempoolFeePriorities
29
+ */
30
+ token_transfer?: MempoolFeePrioritiesAll;
31
+ /**
32
+ *
33
+ * @type {MempoolFeePrioritiesAll}
34
+ * @memberof MempoolFeePriorities
35
+ */
36
+ smart_contract?: MempoolFeePrioritiesAll;
37
+ /**
38
+ *
39
+ * @type {MempoolFeePrioritiesAll}
40
+ * @memberof MempoolFeePriorities
41
+ */
42
+ contract_call?: MempoolFeePrioritiesAll;
43
+ }
44
+ export declare function MempoolFeePrioritiesFromJSON(json: any): MempoolFeePriorities;
45
+ export declare function MempoolFeePrioritiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MempoolFeePriorities;
46
+ export declare function MempoolFeePrioritiesToJSON(value?: MempoolFeePriorities | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * 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>
7
+ *
8
+ * The version of the OpenAPI document: STACKS_API_VERSION
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MempoolFeePrioritiesToJSON = exports.MempoolFeePrioritiesFromJSONTyped = exports.MempoolFeePrioritiesFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const _1 = require("./");
19
+ function MempoolFeePrioritiesFromJSON(json) {
20
+ return MempoolFeePrioritiesFromJSONTyped(json, false);
21
+ }
22
+ exports.MempoolFeePrioritiesFromJSON = MempoolFeePrioritiesFromJSON;
23
+ function MempoolFeePrioritiesFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'all': (0, _1.MempoolFeePrioritiesAllFromJSON)(json['all']),
29
+ 'token_transfer': !(0, runtime_1.exists)(json, 'token_transfer') ? undefined : (0, _1.MempoolFeePrioritiesAllFromJSON)(json['token_transfer']),
30
+ 'smart_contract': !(0, runtime_1.exists)(json, 'smart_contract') ? undefined : (0, _1.MempoolFeePrioritiesAllFromJSON)(json['smart_contract']),
31
+ 'contract_call': !(0, runtime_1.exists)(json, 'contract_call') ? undefined : (0, _1.MempoolFeePrioritiesAllFromJSON)(json['contract_call']),
32
+ };
33
+ }
34
+ exports.MempoolFeePrioritiesFromJSONTyped = MempoolFeePrioritiesFromJSONTyped;
35
+ function MempoolFeePrioritiesToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'all': (0, _1.MempoolFeePrioritiesAllToJSON)(value.all),
44
+ 'token_transfer': (0, _1.MempoolFeePrioritiesAllToJSON)(value.token_transfer),
45
+ 'smart_contract': (0, _1.MempoolFeePrioritiesAllToJSON)(value.smart_contract),
46
+ 'contract_call': (0, _1.MempoolFeePrioritiesAllToJSON)(value.contract_call),
47
+ };
48
+ }
49
+ exports.MempoolFeePrioritiesToJSON = MempoolFeePrioritiesToJSON;
50
+ //# sourceMappingURL=MempoolFeePriorities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MempoolFeePriorities.js","sourceRoot":"","sources":["../../../src/generated/models/MempoolFeePriorities.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAC/C,yBAKY;AAkCZ,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAFD,oEAEC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,KAAK,EAAE,IAAA,kCAA+B,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,kCAA+B,EAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACvH,gBAAgB,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,kCAA+B,EAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACvH,eAAe,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,kCAA+B,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KACvH,CAAC;AACN,CAAC;AAXD,8EAWC;AAED,SAAgB,0BAA0B,CAAC,KAAmC;IAC1E,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,KAAK,EAAE,IAAA,gCAA6B,EAAC,KAAK,CAAC,GAAG,CAAC;QAC/C,gBAAgB,EAAE,IAAA,gCAA6B,EAAC,KAAK,CAAC,cAAc,CAAC;QACrE,gBAAgB,EAAE,IAAA,gCAA6B,EAAC,KAAK,CAAC,cAAc,CAAC;QACrE,eAAe,EAAE,IAAA,gCAA6B,EAAC,KAAK,CAAC,aAAa,CAAC;KACtE,CAAC;AACN,CAAC;AAdD,gEAcC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * 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>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MempoolFeePrioritiesAll
16
+ */
17
+ export interface MempoolFeePrioritiesAll {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MempoolFeePrioritiesAll
22
+ */
23
+ no_priority: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof MempoolFeePrioritiesAll
28
+ */
29
+ low_priority: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MempoolFeePrioritiesAll
34
+ */
35
+ medium_priority: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof MempoolFeePrioritiesAll
40
+ */
41
+ high_priority: number;
42
+ }
43
+ export declare function MempoolFeePrioritiesAllFromJSON(json: any): MempoolFeePrioritiesAll;
44
+ export declare function MempoolFeePrioritiesAllFromJSONTyped(json: any, ignoreDiscriminator: boolean): MempoolFeePrioritiesAll;
45
+ export declare function MempoolFeePrioritiesAllToJSON(value?: MempoolFeePrioritiesAll | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * 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>
7
+ *
8
+ * The version of the OpenAPI document: STACKS_API_VERSION
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MempoolFeePrioritiesAllToJSON = exports.MempoolFeePrioritiesAllFromJSONTyped = exports.MempoolFeePrioritiesAllFromJSON = void 0;
17
+ function MempoolFeePrioritiesAllFromJSON(json) {
18
+ return MempoolFeePrioritiesAllFromJSONTyped(json, false);
19
+ }
20
+ exports.MempoolFeePrioritiesAllFromJSON = MempoolFeePrioritiesAllFromJSON;
21
+ function MempoolFeePrioritiesAllFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'no_priority': json['no_priority'],
27
+ 'low_priority': json['low_priority'],
28
+ 'medium_priority': json['medium_priority'],
29
+ 'high_priority': json['high_priority'],
30
+ };
31
+ }
32
+ exports.MempoolFeePrioritiesAllFromJSONTyped = MempoolFeePrioritiesAllFromJSONTyped;
33
+ function MempoolFeePrioritiesAllToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'no_priority': value.no_priority,
42
+ 'low_priority': value.low_priority,
43
+ 'medium_priority': value.medium_priority,
44
+ 'high_priority': value.high_priority,
45
+ };
46
+ }
47
+ exports.MempoolFeePrioritiesAllToJSON = MempoolFeePrioritiesAllToJSON;
48
+ //# sourceMappingURL=MempoolFeePrioritiesAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MempoolFeePrioritiesAll.js","sourceRoot":"","sources":["../../../src/generated/models/MempoolFeePrioritiesAll.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmCH,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAFD,0EAEC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;KACzC,CAAC;AACN,CAAC;AAXD,oFAWC;AAED,SAAgB,6BAA6B,CAAC,KAAsC;IAChF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,cAAc,EAAE,KAAK,CAAC,YAAY;QAClC,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,eAAe,EAAE,KAAK,CAAC,aAAa;KACvC,CAAC;AACN,CAAC;AAdD,sEAcC"}
@@ -44,6 +44,8 @@ export * from './InboundStxTransfer';
44
44
  export * from './InlineObject';
45
45
  export * from './InlineResponse403';
46
46
  export * from './MapEntryResponse';
47
+ export * from './MempoolFeePriorities';
48
+ export * from './MempoolFeePrioritiesAll';
47
49
  export * from './MempoolTransactionListResponse';
48
50
  export * from './MempoolTransactionStatsResponse';
49
51
  export * from './MempoolTransactionStatsResponseTxAges';
@@ -62,6 +62,8 @@ __exportStar(require("./InboundStxTransfer"), exports);
62
62
  __exportStar(require("./InlineObject"), exports);
63
63
  __exportStar(require("./InlineResponse403"), exports);
64
64
  __exportStar(require("./MapEntryResponse"), exports);
65
+ __exportStar(require("./MempoolFeePriorities"), exports);
66
+ __exportStar(require("./MempoolFeePrioritiesAll"), exports);
65
67
  __exportStar(require("./MempoolTransactionListResponse"), exports);
66
68
  __exportStar(require("./MempoolTransactionStatsResponse"), exports);
67
69
  __exportStar(require("./MempoolTransactionStatsResponseTxAges"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,wDAAsC;AACtC,8DAA4C;AAC5C,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,kDAAgC;AAChC,kEAAgD;AAChD,+DAA6C;AAC7C,oEAAkD;AAClD,+EAA6D;AAC7D,gFAA8D;AAC9D,gFAA8D;AAC9D,yEAAuD;AACvD,oEAAkD;AAClD,iFAA+D;AAC/D,0DAAwC;AACxC,0CAAwB;AACxB,sDAAoC;AACpC,6CAA2B;AAC3B,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,iEAA+C;AAC/C,iEAA+C;AAC/C,oDAAkC;AAClC,gEAA8C;AAC9C,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,6CAA2B;AAC3B,8DAA4C;AAC5C,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,wDAAsC;AACtC,4CAA0B;AAC1B,mDAAiC;AACjC,0DAAwC;AACxC,+DAA6C;A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+DAA6C;AAC7C,2DAAyC;AACzC,mDAAiC;AACjC,0DAAwC;AACxC,iEAA+C;AAC/C,iDAA+B;AAC/B,qDAAmC;AACnC,4DAA0C;AAC1C,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,mEAAiD;AACjD,gFAA8D;AAC9D,8EAA4D;AAC5D,0DAAwC;AACxC,uDAAqC;AACrC,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,wDAAsC;AACtC,8DAA4C;AAC5C,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,kDAAgC;AAChC,kEAAgD;AAChD,+DAA6C;AAC7C,oEAAkD;AAClD,+EAA6D;AAC7D,gFAA8D;AAC9D,gFAA8D;AAC9D,yEAAuD;AACvD,oEAAkD;AAClD,iFAA+D;AAC/D,0DAAwC;AACxC,0CAAwB;AACxB,sDAAoC;AACpC,6CAA2B;AAC3B,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,iEAA+C;AAC/C,iEAA+C;AAC/C,oDAAkC;AAClC,gEAA8C;AAC9C,8DAA4C;AAC5C,0EAAwD;AACxD,0DAAwC;AACxC,6CAA2B;AAC3B,8DAA4C;AAC5C,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,wDAAsC;AACtC,4CAA0B;AAC1B,mDAAiC;AACjC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,qEAAmD;AACnD,yDAAuC;AACvC,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,4DAA0C;AA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4DAA0C;AAC1C,qDAAmC;AACnC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,kDAAgC;AAChC,+CAA6B;AAC7B,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,mEAAiD;AACjD,gFAA8D;AAC9D,8EAA4D;AAC5D,0DAAwC;AACxC,uDAAqC;AACrC,sEAAoD"}
package/lib/index.umd.js CHANGED
@@ -2691,6 +2691,86 @@
2691
2691
  };
2692
2692
  }
2693
2693
 
2694
+ /* tslint:disable */
2695
+ function MempoolFeePrioritiesFromJSON(json) {
2696
+ return MempoolFeePrioritiesFromJSONTyped(json);
2697
+ }
2698
+ function MempoolFeePrioritiesFromJSONTyped(json, ignoreDiscriminator) {
2699
+ if (json === undefined || json === null) {
2700
+ return json;
2701
+ }
2702
+
2703
+ return {
2704
+ 'all': MempoolFeePrioritiesAllFromJSON(json['all']),
2705
+ 'token_transfer': !exists(json, 'token_transfer') ? undefined : MempoolFeePrioritiesAllFromJSON(json['token_transfer']),
2706
+ 'smart_contract': !exists(json, 'smart_contract') ? undefined : MempoolFeePrioritiesAllFromJSON(json['smart_contract']),
2707
+ 'contract_call': !exists(json, 'contract_call') ? undefined : MempoolFeePrioritiesAllFromJSON(json['contract_call'])
2708
+ };
2709
+ }
2710
+ function MempoolFeePrioritiesToJSON(value) {
2711
+ if (value === undefined) {
2712
+ return undefined;
2713
+ }
2714
+
2715
+ if (value === null) {
2716
+ return null;
2717
+ }
2718
+
2719
+ return {
2720
+ 'all': MempoolFeePrioritiesAllToJSON(value.all),
2721
+ 'token_transfer': MempoolFeePrioritiesAllToJSON(value.token_transfer),
2722
+ 'smart_contract': MempoolFeePrioritiesAllToJSON(value.smart_contract),
2723
+ 'contract_call': MempoolFeePrioritiesAllToJSON(value.contract_call)
2724
+ };
2725
+ }
2726
+
2727
+ /* tslint:disable */
2728
+
2729
+ /* eslint-disable */
2730
+
2731
+ /**
2732
+ * Stacks Blockchain API
2733
+ * 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>
2734
+ *
2735
+ * The version of the OpenAPI document: STACKS_API_VERSION
2736
+ *
2737
+ *
2738
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2739
+ * https://openapi-generator.tech
2740
+ * Do not edit the class manually.
2741
+ */
2742
+ function MempoolFeePrioritiesAllFromJSON(json) {
2743
+ return MempoolFeePrioritiesAllFromJSONTyped(json);
2744
+ }
2745
+ function MempoolFeePrioritiesAllFromJSONTyped(json, ignoreDiscriminator) {
2746
+ if (json === undefined || json === null) {
2747
+ return json;
2748
+ }
2749
+
2750
+ return {
2751
+ 'no_priority': json['no_priority'],
2752
+ 'low_priority': json['low_priority'],
2753
+ 'medium_priority': json['medium_priority'],
2754
+ 'high_priority': json['high_priority']
2755
+ };
2756
+ }
2757
+ function MempoolFeePrioritiesAllToJSON(value) {
2758
+ if (value === undefined) {
2759
+ return undefined;
2760
+ }
2761
+
2762
+ if (value === null) {
2763
+ return null;
2764
+ }
2765
+
2766
+ return {
2767
+ 'no_priority': value.no_priority,
2768
+ 'low_priority': value.low_priority,
2769
+ 'medium_priority': value.medium_priority,
2770
+ 'high_priority': value.high_priority
2771
+ };
2772
+ }
2773
+
2694
2774
  /* tslint:disable */
2695
2775
 
2696
2776
  /* eslint-disable */
@@ -8131,6 +8211,64 @@
8131
8211
  GetNetworkBlockTimeByNetworkNetworkEnum["mainnet"] = "mainnet";
8132
8212
  })(exports.GetNetworkBlockTimeByNetworkNetworkEnum || (exports.GetNetworkBlockTimeByNetworkNetworkEnum = {}));
8133
8213
 
8214
+ /**
8215
+ *
8216
+ */
8217
+
8218
+ var MempoolApi = /*#__PURE__*/function (_runtime$BaseAPI) {
8219
+ _inheritsLoose(MempoolApi, _runtime$BaseAPI);
8220
+
8221
+ function MempoolApi() {
8222
+ return _runtime$BaseAPI.apply(this, arguments) || this;
8223
+ }
8224
+
8225
+ var _proto = MempoolApi.prototype;
8226
+
8227
+ /**
8228
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
8229
+ * Get mempool transaction fee priorities
8230
+ */
8231
+ _proto.getMempoolFeePrioritiesRaw = function getMempoolFeePrioritiesRaw(initOverrides) {
8232
+ try {
8233
+ var _this2 = this;
8234
+
8235
+ var queryParameters = {};
8236
+ var headerParameters = {};
8237
+ return Promise.resolve(_this2.request({
8238
+ path: "/extended/v2/mempool/fees",
8239
+ method: 'GET',
8240
+ headers: headerParameters,
8241
+ query: queryParameters
8242
+ }, initOverrides)).then(function (response) {
8243
+ return new JSONApiResponse(response, function (jsonValue) {
8244
+ return MempoolFeePrioritiesFromJSON(jsonValue);
8245
+ });
8246
+ });
8247
+ } catch (e) {
8248
+ return Promise.reject(e);
8249
+ }
8250
+ }
8251
+ /**
8252
+ * Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
8253
+ * Get mempool transaction fee priorities
8254
+ */
8255
+ ;
8256
+
8257
+ _proto.getMempoolFeePriorities = function getMempoolFeePriorities(initOverrides) {
8258
+ try {
8259
+ var _this4 = this;
8260
+
8261
+ return Promise.resolve(_this4.getMempoolFeePrioritiesRaw(initOverrides)).then(function (response) {
8262
+ return Promise.resolve(response.value());
8263
+ });
8264
+ } catch (e) {
8265
+ return Promise.reject(e);
8266
+ }
8267
+ };
8268
+
8269
+ return MempoolApi;
8270
+ }(BaseAPI);
8271
+
8134
8272
  /**
8135
8273
  *
8136
8274
  */
@@ -16470,6 +16608,13 @@
16470
16608
  exports.MapEntryResponseFromJSON = MapEntryResponseFromJSON;
16471
16609
  exports.MapEntryResponseFromJSONTyped = MapEntryResponseFromJSONTyped;
16472
16610
  exports.MapEntryResponseToJSON = MapEntryResponseToJSON;
16611
+ exports.MempoolApi = MempoolApi;
16612
+ exports.MempoolFeePrioritiesAllFromJSON = MempoolFeePrioritiesAllFromJSON;
16613
+ exports.MempoolFeePrioritiesAllFromJSONTyped = MempoolFeePrioritiesAllFromJSONTyped;
16614
+ exports.MempoolFeePrioritiesAllToJSON = MempoolFeePrioritiesAllToJSON;
16615
+ exports.MempoolFeePrioritiesFromJSON = MempoolFeePrioritiesFromJSON;
16616
+ exports.MempoolFeePrioritiesFromJSONTyped = MempoolFeePrioritiesFromJSONTyped;
16617
+ exports.MempoolFeePrioritiesToJSON = MempoolFeePrioritiesToJSON;
16473
16618
  exports.MempoolTransactionListResponseFromJSON = MempoolTransactionListResponseFromJSON;
16474
16619
  exports.MempoolTransactionListResponseFromJSONTyped = MempoolTransactionListResponseFromJSONTyped;
16475
16620
  exports.MempoolTransactionListResponseToJSON = MempoolTransactionListResponseToJSON;