@stacks/blockchain-api-client 7.4.0-nakamoto.6 → 7.4.0-nakamoto.8

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 (60) 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 +28 -1
  5. package/lib/generated/apis/BlocksApi.js +26 -0
  6. package/lib/generated/apis/BlocksApi.js.map +1 -1
  7. package/lib/generated/apis/NonFungibleTokensApi.d.ts +1 -57
  8. package/lib/generated/apis/NonFungibleTokensApi.js +0 -55
  9. package/lib/generated/apis/NonFungibleTokensApi.js.map +1 -1
  10. package/lib/generated/apis/index.d.ts +0 -1
  11. package/lib/generated/apis/index.js +0 -1
  12. package/lib/generated/apis/index.js.map +1 -1
  13. package/lib/generated/models/NakamotoBlock.d.ts +3 -3
  14. package/lib/generated/models/NakamotoBlock.js +2 -2
  15. package/lib/generated/models/NakamotoBlock.js.map +1 -1
  16. package/lib/generated/models/index.d.ts +0 -7
  17. package/lib/generated/models/index.js +0 -7
  18. package/lib/generated/models/index.js.map +1 -1
  19. package/lib/index.umd.js +103 -650
  20. package/lib/index.umd.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/generated/.openapi-generator/FILES +0 -8
  23. package/src/generated/apis/AccountsApi.ts +0 -79
  24. package/src/generated/apis/BlocksApi.ts +55 -0
  25. package/src/generated/apis/NonFungibleTokensApi.ts +0 -116
  26. package/src/generated/apis/index.ts +0 -1
  27. package/src/generated/models/NakamotoBlock.ts +5 -5
  28. package/src/generated/models/index.ts +0 -7
  29. package/lib/generated/apis/FungibleTokensApi.d.ts +0 -82
  30. package/lib/generated/apis/FungibleTokensApi.js +0 -80
  31. package/lib/generated/apis/FungibleTokensApi.js.map +0 -1
  32. package/lib/generated/models/AddressNftListResponse.d.ts +0 -46
  33. package/lib/generated/models/AddressNftListResponse.js +0 -49
  34. package/lib/generated/models/AddressNftListResponse.js.map +0 -1
  35. package/lib/generated/models/AddressNftListResponseValue.d.ts +0 -33
  36. package/lib/generated/models/AddressNftListResponseValue.js +0 -44
  37. package/lib/generated/models/AddressNftListResponseValue.js.map +0 -1
  38. package/lib/generated/models/FungibleTokenMetadata.d.ts +0 -75
  39. package/lib/generated/models/FungibleTokenMetadata.js +0 -58
  40. package/lib/generated/models/FungibleTokenMetadata.js.map +0 -1
  41. package/lib/generated/models/FungibleTokensMetadataList.d.ts +0 -46
  42. package/lib/generated/models/FungibleTokensMetadataList.js +0 -49
  43. package/lib/generated/models/FungibleTokensMetadataList.js.map +0 -1
  44. package/lib/generated/models/NftEvent.d.ts +0 -76
  45. package/lib/generated/models/NftEvent.js +0 -60
  46. package/lib/generated/models/NftEvent.js.map +0 -1
  47. package/lib/generated/models/NonFungibleTokenMetadata.d.ts +0 -63
  48. package/lib/generated/models/NonFungibleTokenMetadata.js +0 -54
  49. package/lib/generated/models/NonFungibleTokenMetadata.js.map +0 -1
  50. package/lib/generated/models/NonFungibleTokensMetadataList.d.ts +0 -46
  51. package/lib/generated/models/NonFungibleTokensMetadataList.js +0 -49
  52. package/lib/generated/models/NonFungibleTokensMetadataList.js.map +0 -1
  53. package/src/generated/apis/FungibleTokensApi.ts +0 -150
  54. package/src/generated/models/AddressNftListResponse.ts +0 -87
  55. package/src/generated/models/AddressNftListResponseValue.ts +0 -64
  56. package/src/generated/models/FungibleTokenMetadata.ts +0 -120
  57. package/src/generated/models/FungibleTokensMetadataList.ts +0 -87
  58. package/src/generated/models/NftEvent.ts +0 -127
  59. package/src/generated/models/NonFungibleTokenMetadata.ts +0 -104
  60. package/src/generated/models/NonFungibleTokensMetadataList.ts +0 -87
@@ -1,54 +0,0 @@
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.NonFungibleTokenMetadataToJSON = exports.NonFungibleTokenMetadataFromJSONTyped = exports.NonFungibleTokenMetadataFromJSON = void 0;
17
- function NonFungibleTokenMetadataFromJSON(json) {
18
- return NonFungibleTokenMetadataFromJSONTyped(json, false);
19
- }
20
- exports.NonFungibleTokenMetadataFromJSON = NonFungibleTokenMetadataFromJSON;
21
- function NonFungibleTokenMetadataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'token_uri': json['token_uri'],
27
- 'name': json['name'],
28
- 'description': json['description'],
29
- 'image_uri': json['image_uri'],
30
- 'image_canonical_uri': json['image_canonical_uri'],
31
- 'tx_id': json['tx_id'],
32
- 'sender_address': json['sender_address'],
33
- };
34
- }
35
- exports.NonFungibleTokenMetadataFromJSONTyped = NonFungibleTokenMetadataFromJSONTyped;
36
- function NonFungibleTokenMetadataToJSON(value) {
37
- if (value === undefined) {
38
- return undefined;
39
- }
40
- if (value === null) {
41
- return null;
42
- }
43
- return {
44
- 'token_uri': value.token_uri,
45
- 'name': value.name,
46
- 'description': value.description,
47
- 'image_uri': value.image_uri,
48
- 'image_canonical_uri': value.image_canonical_uri,
49
- 'tx_id': value.tx_id,
50
- 'sender_address': value.sender_address,
51
- };
52
- }
53
- exports.NonFungibleTokenMetadataToJSON = NonFungibleTokenMetadataToJSON;
54
- //# sourceMappingURL=NonFungibleTokenMetadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NonFungibleTokenMetadata.js","sourceRoot":"","sources":["../../../src/generated/models/NonFungibleTokenMetadata.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqDH,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAFD,4EAEC;AAED,SAAgB,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,CAAC;QAClD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;KAC3C,CAAC;AACN,CAAC;AAdD,sFAcC;AAED,SAAgB,8BAA8B,CAAC,KAAuC;IAClF,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,qBAAqB,EAAE,KAAK,CAAC,mBAAmB;QAChD,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,gBAAgB,EAAE,KAAK,CAAC,cAAc;KACzC,CAAC;AACN,CAAC;AAjBD,wEAiBC"}
@@ -1,46 +0,0 @@
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 { NonFungibleTokenMetadata } from './';
13
- /**
14
- * List of non fungible tokens metadata
15
- * @export
16
- * @interface NonFungibleTokensMetadataList
17
- */
18
- export interface NonFungibleTokensMetadataList {
19
- /**
20
- * The number of tokens metadata to return
21
- * @type {number}
22
- * @memberof NonFungibleTokensMetadataList
23
- */
24
- limit: number;
25
- /**
26
- * The number to tokens metadata to skip (starting at `0`)
27
- * @type {number}
28
- * @memberof NonFungibleTokensMetadataList
29
- */
30
- offset: number;
31
- /**
32
- * The number of tokens metadata available
33
- * @type {number}
34
- * @memberof NonFungibleTokensMetadataList
35
- */
36
- total: number;
37
- /**
38
- *
39
- * @type {Array<NonFungibleTokenMetadata>}
40
- * @memberof NonFungibleTokensMetadataList
41
- */
42
- results: Array<NonFungibleTokenMetadata>;
43
- }
44
- export declare function NonFungibleTokensMetadataListFromJSON(json: any): NonFungibleTokensMetadataList;
45
- export declare function NonFungibleTokensMetadataListFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFungibleTokensMetadataList;
46
- export declare function NonFungibleTokensMetadataListToJSON(value?: NonFungibleTokensMetadataList | null): any;
@@ -1,49 +0,0 @@
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.NonFungibleTokensMetadataListToJSON = exports.NonFungibleTokensMetadataListFromJSONTyped = exports.NonFungibleTokensMetadataListFromJSON = void 0;
17
- const _1 = require("./");
18
- function NonFungibleTokensMetadataListFromJSON(json) {
19
- return NonFungibleTokensMetadataListFromJSONTyped(json, false);
20
- }
21
- exports.NonFungibleTokensMetadataListFromJSON = NonFungibleTokensMetadataListFromJSON;
22
- function NonFungibleTokensMetadataListFromJSONTyped(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
- 'results': (json['results'].map(_1.NonFungibleTokenMetadataFromJSON)),
31
- };
32
- }
33
- exports.NonFungibleTokensMetadataListFromJSONTyped = NonFungibleTokensMetadataListFromJSONTyped;
34
- function NonFungibleTokensMetadataListToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
40
- }
41
- return {
42
- 'limit': value.limit,
43
- 'offset': value.offset,
44
- 'total': value.total,
45
- 'results': (value.results.map(_1.NonFungibleTokenMetadataToJSON)),
46
- };
47
- }
48
- exports.NonFungibleTokensMetadataListToJSON = NonFungibleTokensMetadataListToJSON;
49
- //# sourceMappingURL=NonFungibleTokensMetadataList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NonFungibleTokensMetadataList.js","sourceRoot":"","sources":["../../../src/generated/models/NonFungibleTokensMetadataList.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,yBAKY;AAkCZ,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAFD,sFAEC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,SAAS,EAAE,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,mCAAgC,CAAC,CAAC;KACrF,CAAC;AACN,CAAC;AAXD,gGAWC;AAED,SAAgB,mCAAmC,CAAC,KAA4C;IAC5F,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,SAAS,EAAE,CAAE,KAAK,CAAC,OAAsB,CAAC,GAAG,CAAC,iCAA8B,CAAC,CAAC;KACjF,CAAC;AACN,CAAC;AAdD,kFAcC"}
@@ -1,150 +0,0 @@
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
-
16
- import * as runtime from '../runtime';
17
- import {
18
- FungibleTokenMetadata,
19
- FungibleTokenMetadataFromJSON,
20
- FungibleTokenMetadataToJSON,
21
- FungibleTokensMetadataList,
22
- FungibleTokensMetadataListFromJSON,
23
- FungibleTokensMetadataListToJSON,
24
- } from '../models';
25
-
26
- export interface GetContractFtMetadataRequest {
27
- contractId: string;
28
- }
29
-
30
- export interface GetFtMetadataListRequest {
31
- limit?: number;
32
- offset?: number;
33
- }
34
-
35
- /**
36
- * FungibleTokensApi - interface
37
- *
38
- * @export
39
- * @interface FungibleTokensApiInterface
40
- */
41
- export interface FungibleTokensApiInterface {
42
- /**
43
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
44
- * @summary Fungible tokens metadata for contract id
45
- * @param {string} contractId token\&#39;s contract id
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- * @memberof FungibleTokensApiInterface
49
- */
50
- getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>>;
51
-
52
- /**
53
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
54
- * Fungible tokens metadata for contract id
55
- */
56
- getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata>;
57
-
58
- /**
59
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
60
- * @summary Fungible tokens metadata list
61
- * @param {number} [limit] max number of tokens to fetch.
62
- * @param {number} [offset] index of first tokens to fetch
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- * @memberof FungibleTokensApiInterface
66
- */
67
- getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>>;
68
-
69
- /**
70
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
71
- * Fungible tokens metadata list
72
- */
73
- getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList>;
74
-
75
- }
76
-
77
- /**
78
- *
79
- */
80
- export class FungibleTokensApi extends runtime.BaseAPI implements FungibleTokensApiInterface {
81
-
82
- /**
83
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
84
- * Fungible tokens metadata for contract id
85
- */
86
- async getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>> {
87
- if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
88
- throw new runtime.RequiredError('contractId','Required parameter requestParameters.contractId was null or undefined when calling getContractFtMetadata.');
89
- }
90
-
91
- const queryParameters: any = {};
92
-
93
- const headerParameters: runtime.HTTPHeaders = {};
94
-
95
- const response = await this.request({
96
- path: `/extended/v1/tokens/{contractId}/ft/metadata`.replace(`{${"contractId"}}`, encodeURIComponent(String(requestParameters.contractId))),
97
- method: 'GET',
98
- headers: headerParameters,
99
- query: queryParameters,
100
- }, initOverrides);
101
-
102
- return new runtime.JSONApiResponse(response, (jsonValue) => FungibleTokenMetadataFromJSON(jsonValue));
103
- }
104
-
105
- /**
106
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
107
- * Fungible tokens metadata for contract id
108
- */
109
- async getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata> {
110
- const response = await this.getContractFtMetadataRaw(requestParameters, initOverrides);
111
- return await response.value();
112
- }
113
-
114
- /**
115
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
116
- * Fungible tokens metadata list
117
- */
118
- async getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>> {
119
- const queryParameters: any = {};
120
-
121
- if (requestParameters.limit !== undefined) {
122
- queryParameters['limit'] = requestParameters.limit;
123
- }
124
-
125
- if (requestParameters.offset !== undefined) {
126
- queryParameters['offset'] = requestParameters.offset;
127
- }
128
-
129
- const headerParameters: runtime.HTTPHeaders = {};
130
-
131
- const response = await this.request({
132
- path: `/extended/v1/tokens/ft/metadata`,
133
- method: 'GET',
134
- headers: headerParameters,
135
- query: queryParameters,
136
- }, initOverrides);
137
-
138
- return new runtime.JSONApiResponse(response, (jsonValue) => FungibleTokensMetadataListFromJSON(jsonValue));
139
- }
140
-
141
- /**
142
- * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
143
- * Fungible tokens metadata list
144
- */
145
- async getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList> {
146
- const response = await this.getFtMetadataListRaw(requestParameters, initOverrides);
147
- return await response.value();
148
- }
149
-
150
- }
@@ -1,87 +0,0 @@
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
- import {
17
- NftEvent,
18
- NftEventFromJSON,
19
- NftEventFromJSONTyped,
20
- NftEventToJSON,
21
- } from './';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface AddressNftListResponse
27
- */
28
- export interface AddressNftListResponse {
29
- /**
30
- *
31
- * @type {number}
32
- * @memberof AddressNftListResponse
33
- */
34
- limit: number;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof AddressNftListResponse
39
- */
40
- offset: number;
41
- /**
42
- *
43
- * @type {number}
44
- * @memberof AddressNftListResponse
45
- */
46
- total: number;
47
- /**
48
- *
49
- * @type {Array<NftEvent>}
50
- * @memberof AddressNftListResponse
51
- */
52
- nft_events: Array<NftEvent>;
53
- }
54
-
55
- export function AddressNftListResponseFromJSON(json: any): AddressNftListResponse {
56
- return AddressNftListResponseFromJSONTyped(json, false);
57
- }
58
-
59
- export function AddressNftListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressNftListResponse {
60
- if ((json === undefined) || (json === null)) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'limit': json['limit'],
66
- 'offset': json['offset'],
67
- 'total': json['total'],
68
- 'nft_events': ((json['nft_events'] as Array<any>).map(NftEventFromJSON)),
69
- };
70
- }
71
-
72
- export function AddressNftListResponseToJSON(value?: AddressNftListResponse | null): any {
73
- if (value === undefined) {
74
- return undefined;
75
- }
76
- if (value === null) {
77
- return null;
78
- }
79
- return {
80
-
81
- 'limit': value.limit,
82
- 'offset': value.offset,
83
- 'total': value.total,
84
- 'nft_events': ((value.nft_events as Array<any>).map(NftEventToJSON)),
85
- };
86
- }
87
-
@@ -1,64 +0,0 @@
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
- * Identifier of the NFT
18
- * @export
19
- * @interface AddressNftListResponseValue
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;
28
- /**
29
- * Readable string of the NFT identifier
30
- * @type {string}
31
- * @memberof AddressNftListResponseValue
32
- */
33
- repr: string;
34
- }
35
-
36
- export function AddressNftListResponseValueFromJSON(json: any): AddressNftListResponseValue {
37
- return AddressNftListResponseValueFromJSONTyped(json, false);
38
- }
39
-
40
- export function AddressNftListResponseValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressNftListResponseValue {
41
- if ((json === undefined) || (json === null)) {
42
- return json;
43
- }
44
- return {
45
-
46
- 'hex': json['hex'],
47
- 'repr': json['repr'],
48
- };
49
- }
50
-
51
- export function AddressNftListResponseValueToJSON(value?: AddressNftListResponseValue | null): any {
52
- if (value === undefined) {
53
- return undefined;
54
- }
55
- if (value === null) {
56
- return null;
57
- }
58
- return {
59
-
60
- 'hex': value.hex,
61
- 'repr': value.repr,
62
- };
63
- }
64
-
@@ -1,120 +0,0 @@
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
- *
18
- * @export
19
- * @interface FungibleTokenMetadata
20
- */
21
- export interface FungibleTokenMetadata {
22
- /**
23
- * An optional string that is a valid URI which resolves to this token's metadata. Can be empty.
24
- * @type {string}
25
- * @memberof FungibleTokenMetadata
26
- */
27
- token_uri: string;
28
- /**
29
- * Identifies the asset to which this token represents
30
- * @type {string}
31
- * @memberof FungibleTokenMetadata
32
- */
33
- name: string;
34
- /**
35
- * Describes the asset to which this token represents
36
- * @type {string}
37
- * @memberof FungibleTokenMetadata
38
- */
39
- description: string;
40
- /**
41
- * A URI pointing to a resource with mime type image/* representing the asset to which this token represents. The API may provide a URI to a cached resource, dependending on configuration. Otherwise, this can be the same value as the canonical image URI.
42
- * @type {string}
43
- * @memberof FungibleTokenMetadata
44
- */
45
- image_uri: string;
46
- /**
47
- * The original image URI specified by the contract. A URI pointing to a resource with mime type image/* representing the asset to which this token represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive.
48
- * @type {string}
49
- * @memberof FungibleTokenMetadata
50
- */
51
- image_canonical_uri: string;
52
- /**
53
- * A shorter representation of a token. This is sometimes referred to as a "ticker". Examples: "STX", "COOL", etc. Typically, a token could be referred to as $SYMBOL when referencing it in writing.
54
- * @type {string}
55
- * @memberof FungibleTokenMetadata
56
- */
57
- symbol: string;
58
- /**
59
- * The number of decimal places in a token.
60
- * @type {number}
61
- * @memberof FungibleTokenMetadata
62
- */
63
- decimals: number;
64
- /**
65
- * Tx id that deployed the contract
66
- * @type {string}
67
- * @memberof FungibleTokenMetadata
68
- */
69
- tx_id: string;
70
- /**
71
- * principle that deployed the contract
72
- * @type {string}
73
- * @memberof FungibleTokenMetadata
74
- */
75
- sender_address: string;
76
- }
77
-
78
- export function FungibleTokenMetadataFromJSON(json: any): FungibleTokenMetadata {
79
- return FungibleTokenMetadataFromJSONTyped(json, false);
80
- }
81
-
82
- export function FungibleTokenMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FungibleTokenMetadata {
83
- if ((json === undefined) || (json === null)) {
84
- return json;
85
- }
86
- return {
87
-
88
- 'token_uri': json['token_uri'],
89
- 'name': json['name'],
90
- 'description': json['description'],
91
- 'image_uri': json['image_uri'],
92
- 'image_canonical_uri': json['image_canonical_uri'],
93
- 'symbol': json['symbol'],
94
- 'decimals': json['decimals'],
95
- 'tx_id': json['tx_id'],
96
- 'sender_address': json['sender_address'],
97
- };
98
- }
99
-
100
- export function FungibleTokenMetadataToJSON(value?: FungibleTokenMetadata | null): any {
101
- if (value === undefined) {
102
- return undefined;
103
- }
104
- if (value === null) {
105
- return null;
106
- }
107
- return {
108
-
109
- 'token_uri': value.token_uri,
110
- 'name': value.name,
111
- 'description': value.description,
112
- 'image_uri': value.image_uri,
113
- 'image_canonical_uri': value.image_canonical_uri,
114
- 'symbol': value.symbol,
115
- 'decimals': value.decimals,
116
- 'tx_id': value.tx_id,
117
- 'sender_address': value.sender_address,
118
- };
119
- }
120
-
@@ -1,87 +0,0 @@
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
- import {
17
- FungibleTokenMetadata,
18
- FungibleTokenMetadataFromJSON,
19
- FungibleTokenMetadataFromJSONTyped,
20
- FungibleTokenMetadataToJSON,
21
- } from './';
22
-
23
- /**
24
- * List of fungible tokens metadata
25
- * @export
26
- * @interface FungibleTokensMetadataList
27
- */
28
- export interface FungibleTokensMetadataList {
29
- /**
30
- * The number of tokens metadata to return
31
- * @type {number}
32
- * @memberof FungibleTokensMetadataList
33
- */
34
- limit: number;
35
- /**
36
- * The number to tokens metadata to skip (starting at `0`)
37
- * @type {number}
38
- * @memberof FungibleTokensMetadataList
39
- */
40
- offset: number;
41
- /**
42
- * The number of tokens metadata available
43
- * @type {number}
44
- * @memberof FungibleTokensMetadataList
45
- */
46
- total: number;
47
- /**
48
- *
49
- * @type {Array<FungibleTokenMetadata>}
50
- * @memberof FungibleTokensMetadataList
51
- */
52
- results: Array<FungibleTokenMetadata>;
53
- }
54
-
55
- export function FungibleTokensMetadataListFromJSON(json: any): FungibleTokensMetadataList {
56
- return FungibleTokensMetadataListFromJSONTyped(json, false);
57
- }
58
-
59
- export function FungibleTokensMetadataListFromJSONTyped(json: any, ignoreDiscriminator: boolean): FungibleTokensMetadataList {
60
- if ((json === undefined) || (json === null)) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'limit': json['limit'],
66
- 'offset': json['offset'],
67
- 'total': json['total'],
68
- 'results': ((json['results'] as Array<any>).map(FungibleTokenMetadataFromJSON)),
69
- };
70
- }
71
-
72
- export function FungibleTokensMetadataListToJSON(value?: FungibleTokensMetadataList | null): any {
73
- if (value === undefined) {
74
- return undefined;
75
- }
76
- if (value === null) {
77
- return null;
78
- }
79
- return {
80
-
81
- 'limit': value.limit,
82
- 'offset': value.offset,
83
- 'total': value.total,
84
- 'results': ((value.results as Array<any>).map(FungibleTokenMetadataToJSON)),
85
- };
86
- }
87
-