@stacks/blockchain-api-client 7.12.0 → 7.13.0

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.
@@ -175,7 +175,7 @@ export interface AccountsApiInterface {
175
175
  */
176
176
  getAccountStxBalance(requestParameters: GetAccountStxBalanceRequest, initOverrides?: RequestInit): Promise<object>;
177
177
  /**
178
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
178
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
179
179
  * @summary Get account transactions
180
180
  * @param {string} principal Stacks address or a Contract identifier
181
181
  * @param {number} [limit] max number of account transactions to fetch
@@ -189,7 +189,7 @@ export interface AccountsApiInterface {
189
189
  */
190
190
  getAccountTransactionsRaw(requestParameters: GetAccountTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionsListResponse>>;
191
191
  /**
192
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
192
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
193
193
  * Get account transactions
194
194
  */
195
195
  getAccountTransactions(requestParameters: GetAccountTransactionsRequest, initOverrides?: RequestInit): Promise<AddressTransactionsListResponse>;
@@ -213,7 +213,7 @@ export interface AccountsApiInterface {
213
213
  */
214
214
  getAccountTransactionsWithTransfers(requestParameters: GetAccountTransactionsWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionsWithTransfersListResponse>;
215
215
  /**
216
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
216
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
217
217
  * @summary Get account transaction information for specific transaction
218
218
  * @param {string} principal Stacks address or a contract identifier
219
219
  * @param {string} txId Transaction id
@@ -223,7 +223,7 @@ export interface AccountsApiInterface {
223
223
  */
224
224
  getSingleTransactionWithTransfersRaw(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionWithTransfers>>;
225
225
  /**
226
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
226
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
227
227
  * Get account transaction information for specific transaction
228
228
  */
229
229
  getSingleTransactionWithTransfers(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionWithTransfers>;
@@ -293,12 +293,12 @@ export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiI
293
293
  */
294
294
  getAccountStxBalance(requestParameters: GetAccountStxBalanceRequest, initOverrides?: RequestInit): Promise<object>;
295
295
  /**
296
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
296
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
297
297
  * Get account transactions
298
298
  */
299
299
  getAccountTransactionsRaw(requestParameters: GetAccountTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionsListResponse>>;
300
300
  /**
301
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
301
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
302
302
  * Get account transactions
303
303
  */
304
304
  getAccountTransactions(requestParameters: GetAccountTransactionsRequest, initOverrides?: RequestInit): Promise<AddressTransactionsListResponse>;
@@ -313,12 +313,12 @@ export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiI
313
313
  */
314
314
  getAccountTransactionsWithTransfers(requestParameters: GetAccountTransactionsWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionsWithTransfersListResponse>;
315
315
  /**
316
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
316
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
317
317
  * Get account transaction information for specific transaction
318
318
  */
319
319
  getSingleTransactionWithTransfersRaw(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionWithTransfers>>;
320
320
  /**
321
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
321
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
322
322
  * Get account transaction information for specific transaction
323
323
  */
324
324
  getSingleTransactionWithTransfers(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionWithTransfers>;
@@ -228,7 +228,7 @@ class AccountsApi extends runtime.BaseAPI {
228
228
  return await response.value();
229
229
  }
230
230
  /**
231
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
231
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
232
232
  * Get account transactions
233
233
  */
234
234
  async getAccountTransactionsRaw(requestParameters, initOverrides) {
@@ -261,7 +261,7 @@ class AccountsApi extends runtime.BaseAPI {
261
261
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AddressTransactionsListResponseFromJSON)(jsonValue));
262
262
  }
263
263
  /**
264
- * Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
264
+ * **NOTE:** This endpoint is deprecated in favor of [Get address transactions](/api/get-address-transactions). Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
265
265
  * Get account transactions
266
266
  */
267
267
  async getAccountTransactions(requestParameters, initOverrides) {
@@ -310,7 +310,7 @@ class AccountsApi extends runtime.BaseAPI {
310
310
  return await response.value();
311
311
  }
312
312
  /**
313
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
313
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
314
314
  * Get account transaction information for specific transaction
315
315
  */
316
316
  async getSingleTransactionWithTransfersRaw(requestParameters, initOverrides) {
@@ -331,7 +331,7 @@ class AccountsApi extends runtime.BaseAPI {
331
331
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AddressTransactionWithTransfersFromJSON)(jsonValue));
332
332
  }
333
333
  /**
334
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
334
+ * **NOTE:** This endpoint is deprecated in favor of [Get events for an address transaction](/api/get-address-transaction-events). Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
335
335
  * Get account transaction information for specific transaction
336
336
  */
337
337
  async getSingleTransactionWithTransfers(requestParameters, initOverrides) {
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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 { FungibleTokenHolderList } from '../models';
14
+ export interface GetFtHoldersRequest {
15
+ token: string;
16
+ }
17
+ /**
18
+ * FungibleTokensApi - interface
19
+ *
20
+ * @export
21
+ * @interface FungibleTokensApiInterface
22
+ */
23
+ export interface FungibleTokensApiInterface {
24
+ /**
25
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
26
+ * @summary Fungible token holders
27
+ * @param {string} token fungible token identifier
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ * @memberof FungibleTokensApiInterface
31
+ */
32
+ getFtHoldersRaw(requestParameters: GetFtHoldersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenHolderList>>;
33
+ /**
34
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
35
+ * Fungible token holders
36
+ */
37
+ getFtHolders(requestParameters: GetFtHoldersRequest, initOverrides?: RequestInit): Promise<FungibleTokenHolderList>;
38
+ }
39
+ /**
40
+ *
41
+ */
42
+ export declare class FungibleTokensApi extends runtime.BaseAPI implements FungibleTokensApiInterface {
43
+ /**
44
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
45
+ * Fungible token holders
46
+ */
47
+ getFtHoldersRaw(requestParameters: GetFtHoldersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenHolderList>>;
48
+ /**
49
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
50
+ * Fungible token holders
51
+ */
52
+ getFtHolders(requestParameters: GetFtHoldersRequest, initOverrides?: RequestInit): Promise<FungibleTokenHolderList>;
53
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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.FungibleTokensApi = void 0;
17
+ const runtime = require("../runtime");
18
+ const models_1 = require("../models");
19
+ /**
20
+ *
21
+ */
22
+ class FungibleTokensApi extends runtime.BaseAPI {
23
+ /**
24
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
25
+ * Fungible token holders
26
+ */
27
+ async getFtHoldersRaw(requestParameters, initOverrides) {
28
+ if (requestParameters.token === null || requestParameters.token === undefined) {
29
+ throw new runtime.RequiredError('token', 'Required parameter requestParameters.token was null or undefined when calling getFtHolders.');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ const response = await this.request({
34
+ path: `/extended/v1/tokens/ft/{token}/holders`.replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))),
35
+ method: 'GET',
36
+ headers: headerParameters,
37
+ query: queryParameters,
38
+ }, initOverrides);
39
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FungibleTokenHolderListFromJSON)(jsonValue));
40
+ }
41
+ /**
42
+ * Retrieves the list of Fungible Token holders for a given token ID. Specify `stx` for the `token` parameter to get the list of STX holders.
43
+ * Fungible token holders
44
+ */
45
+ async getFtHolders(requestParameters, initOverrides) {
46
+ const response = await this.getFtHoldersRaw(requestParameters, initOverrides);
47
+ return await response.value();
48
+ }
49
+ }
50
+ exports.FungibleTokensApi = FungibleTokensApi;
51
+ //# sourceMappingURL=FungibleTokensApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FungibleTokensApi.js","sourceRoot":"","sources":["../../../src/generated/apis/FungibleTokensApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAImB;AA+BnB;;GAEG;AACH,MAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA2B;QACrF,IAAI,iBAAiB,CAAC,KAAK,KAAK,IAAI,IAAI,iBAAiB,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC5E,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,OAAO,EAAC,6FAA6F,CAAC,CAAC;QAC3I,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,wCAAwC,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3H,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,wCAA+B,EAAC,SAAS,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA2B;QAClF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlCD,8CAkCC"}
@@ -3,6 +3,7 @@ export * from './BlocksApi';
3
3
  export * from './BurnBlocksApi';
4
4
  export * from './FaucetsApi';
5
5
  export * from './FeesApi';
6
+ export * from './FungibleTokensApi';
6
7
  export * from './InfoApi';
7
8
  export * from './MempoolApi';
8
9
  export * from './MicroblocksApi';
@@ -21,6 +21,7 @@ __exportStar(require("./BlocksApi"), exports);
21
21
  __exportStar(require("./BurnBlocksApi"), exports);
22
22
  __exportStar(require("./FaucetsApi"), exports);
23
23
  __exportStar(require("./FeesApi"), exports);
24
+ __exportStar(require("./FungibleTokensApi"), exports);
24
25
  __exportStar(require("./InfoApi"), exports);
25
26
  __exportStar(require("./MempoolApi"), exports);
26
27
  __exportStar(require("./MicroblocksApi"), 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,kDAAgC;AAChC,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,uDAAqC;AACrC,+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,kDAAgC;AAChC,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,uDAAqC;AACrC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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 FtHolderEntry
16
+ */
17
+ export interface FtHolderEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FtHolderEntry
22
+ */
23
+ address: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FtHolderEntry
28
+ */
29
+ balance: string;
30
+ }
31
+ export declare function FtHolderEntryFromJSON(json: any): FtHolderEntry;
32
+ export declare function FtHolderEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FtHolderEntry;
33
+ export declare function FtHolderEntryToJSON(value?: FtHolderEntry | null): any;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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.FtHolderEntryToJSON = exports.FtHolderEntryFromJSONTyped = exports.FtHolderEntryFromJSON = void 0;
17
+ function FtHolderEntryFromJSON(json) {
18
+ return FtHolderEntryFromJSONTyped(json, false);
19
+ }
20
+ exports.FtHolderEntryFromJSON = FtHolderEntryFromJSON;
21
+ function FtHolderEntryFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'address': json['address'],
27
+ 'balance': json['balance'],
28
+ };
29
+ }
30
+ exports.FtHolderEntryFromJSONTyped = FtHolderEntryFromJSONTyped;
31
+ function FtHolderEntryToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'address': value.address,
40
+ 'balance': value.balance,
41
+ };
42
+ }
43
+ exports.FtHolderEntryToJSON = FtHolderEntryToJSON;
44
+ //# sourceMappingURL=FtHolderEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FtHolderEntry.js","sourceRoot":"","sources":["../../../src/generated/models/FtHolderEntry.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuBH,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAFD,sDAEC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AATD,gEASC;AAED,SAAgB,mBAAmB,CAAC,KAA4B;IAC5D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC;AAZD,kDAYC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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 { FtHolderEntry } from './';
13
+ /**
14
+ * List of Fungible Token holders
15
+ * @export
16
+ * @interface FungibleTokenHolderList
17
+ */
18
+ export interface FungibleTokenHolderList {
19
+ /**
20
+ * The number of holders to return
21
+ * @type {number}
22
+ * @memberof FungibleTokenHolderList
23
+ */
24
+ limit: number;
25
+ /**
26
+ * The number to holders to skip (starting at `0`)
27
+ * @type {number}
28
+ * @memberof FungibleTokenHolderList
29
+ */
30
+ offset: number;
31
+ /**
32
+ * The number of holders available
33
+ * @type {number}
34
+ * @memberof FungibleTokenHolderList
35
+ */
36
+ total: number;
37
+ /**
38
+ * The total supply of the token (the sum of all balances)
39
+ * @type {string}
40
+ * @memberof FungibleTokenHolderList
41
+ */
42
+ total_supply: string;
43
+ /**
44
+ *
45
+ * @type {Array<FtHolderEntry>}
46
+ * @memberof FungibleTokenHolderList
47
+ */
48
+ results: Array<FtHolderEntry>;
49
+ }
50
+ export declare function FungibleTokenHolderListFromJSON(json: any): FungibleTokenHolderList;
51
+ export declare function FungibleTokenHolderListFromJSONTyped(json: any, ignoreDiscriminator: boolean): FungibleTokenHolderList;
52
+ export declare function FungibleTokenHolderListToJSON(value?: FungibleTokenHolderList | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
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.FungibleTokenHolderListToJSON = exports.FungibleTokenHolderListFromJSONTyped = exports.FungibleTokenHolderListFromJSON = void 0;
17
+ const _1 = require("./");
18
+ function FungibleTokenHolderListFromJSON(json) {
19
+ return FungibleTokenHolderListFromJSONTyped(json, false);
20
+ }
21
+ exports.FungibleTokenHolderListFromJSON = FungibleTokenHolderListFromJSON;
22
+ function FungibleTokenHolderListFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'limit': json['limit'],
28
+ 'offset': json['offset'],
29
+ 'total': json['total'],
30
+ 'total_supply': json['total_supply'],
31
+ 'results': (json['results'].map(_1.FtHolderEntryFromJSON)),
32
+ };
33
+ }
34
+ exports.FungibleTokenHolderListFromJSONTyped = FungibleTokenHolderListFromJSONTyped;
35
+ function FungibleTokenHolderListToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'limit': value.limit,
44
+ 'offset': value.offset,
45
+ 'total': value.total,
46
+ 'total_supply': value.total_supply,
47
+ 'results': (value.results.map(_1.FtHolderEntryToJSON)),
48
+ };
49
+ }
50
+ exports.FungibleTokenHolderListToJSON = FungibleTokenHolderListToJSON;
51
+ //# sourceMappingURL=FungibleTokenHolderList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FungibleTokenHolderList.js","sourceRoot":"","sources":["../../../src/generated/models/FungibleTokenHolderList.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,yBAKY;AAwCZ,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,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,SAAS,EAAE,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,wBAAqB,CAAC,CAAC;KAC1E,CAAC;AACN,CAAC;AAZD,oFAYC;AAED,SAAgB,6BAA6B,CAAC,KAAsC;IAChF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,cAAc,EAAE,KAAK,CAAC,YAAY;QAClC,SAAS,EAAE,CAAE,KAAK,CAAC,OAAsB,CAAC,GAAG,CAAC,sBAAmB,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAfD,sEAeC"}
@@ -41,6 +41,8 @@ export * from './CoreNodeInfoResponse';
41
41
  export * from './CoreNodePoxResponse';
42
42
  export * from './FeeRate';
43
43
  export * from './FeeRateRequest';
44
+ export * from './FtHolderEntry';
45
+ export * from './FungibleTokenHolderList';
44
46
  export * from './GetRawTransactionResult';
45
47
  export * from './GetStxSupplyLegacyFormatResponse';
46
48
  export * from './GetStxSupplyResponse';
@@ -59,6 +59,8 @@ __exportStar(require("./CoreNodeInfoResponse"), exports);
59
59
  __exportStar(require("./CoreNodePoxResponse"), exports);
60
60
  __exportStar(require("./FeeRate"), exports);
61
61
  __exportStar(require("./FeeRateRequest"), exports);
62
+ __exportStar(require("./FtHolderEntry"), exports);
63
+ __exportStar(require("./FungibleTokenHolderList"), exports);
62
64
  __exportStar(require("./GetRawTransactionResult"), exports);
63
65
  __exportStar(require("./GetStxSupplyLegacyFormatResponse"), exports);
64
66
  __exportStar(require("./GetStxSupplyResponse"), 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,kDAAgC;AAChC,kEAAgD;AAChD,+DAA6C;AAC7C,uDAAqC;AACrC,wEAAsD;AACtD,oEAAkD;AAClD,+EAA6D;AAC7D,gFAA8D;AAC9D,gFAA8D;AAC9D,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,4EAA0D;AAC1D,+EAA6D;AAC7D,iFAA+D;AAC/D,0DAAwC;AACxC,8DAA4C;AAC5C,0CAAwB;AACxB,sDAAoC;AACpC,6CAA2B;AAC3B,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,iEAA+C;AAC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AACrD,yEAAuD;AACvD,0EAAwD;AACxD,qEAAmD;AACnD,sEAAoD;AACpD,oDAAkC;AAClC,iDAA+B;AAC/B,wDAAsC;AACtC,0DAAwC;AACxC,kEAAgD;AAChD,wDAAsC;AACtC,0DAAwC;AACxC,2DAAyC;AACzC,qEAAmD;AACnD,sEAAoD;AACpD,+DAA6C;AAC7C,mFAAiE;AACjE,2FAAyE;AACzE,kEAAgD;AAChD,uEAAqD;AACrD,yEAAuD;AACvD,iEAA+C;AAC/C,iEAA+C;AAC/C,qDAAmC;AACnC,+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,kDAAgC;AAChC,kEAAgD;AAChD,+DAA6C;AAC7C,uDAAqC;AACrC,wEAAsD;AACtD,oEAAkD;AAClD,+EAA6D;AAC7D,gFAA8D;AAC9D,gFAA8D;AAC9D,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,4EAA0D;AAC1D,+EAA6D;AAC7D,iFAA+D;AAC/D,0DAAwC;AACxC,8DAA4C;AAC5C,0CAAwB;AACxB,sDAAoC;AACpC,6CAA2B;AAC3B,gEAA8C;AAC9C,2DAAyC;AAC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