@stacks/blockchain-api-client 7.5.0-beta.2 → 7.6.0-nakamoto.1

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 (80) 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 +108 -21
  5. package/lib/generated/apis/BlocksApi.js +97 -10
  6. package/lib/generated/apis/BlocksApi.js.map +1 -1
  7. package/lib/generated/apis/BurnBlocksApi.d.ts +82 -0
  8. package/lib/generated/apis/BurnBlocksApi.js +80 -0
  9. package/lib/generated/apis/BurnBlocksApi.js.map +1 -0
  10. package/lib/generated/apis/NonFungibleTokensApi.d.ts +1 -57
  11. package/lib/generated/apis/NonFungibleTokensApi.js +0 -55
  12. package/lib/generated/apis/NonFungibleTokensApi.js.map +1 -1
  13. package/lib/generated/apis/TransactionsApi.d.ts +38 -10
  14. package/lib/generated/apis/TransactionsApi.js +31 -4
  15. package/lib/generated/apis/TransactionsApi.js.map +1 -1
  16. package/lib/generated/apis/index.d.ts +1 -1
  17. package/lib/generated/apis/index.js +1 -1
  18. package/lib/generated/apis/index.js.map +1 -1
  19. package/lib/generated/models/BurnBlock.d.ts +51 -0
  20. package/lib/generated/models/BurnBlock.js +50 -0
  21. package/lib/generated/models/BurnBlock.js.map +1 -0
  22. package/lib/generated/models/BurnBlockListResponse.d.ts +46 -0
  23. package/lib/generated/models/{AddressNftListResponse.js → BurnBlockListResponse.js} +11 -11
  24. package/lib/generated/models/BurnBlockListResponse.js.map +1 -0
  25. package/lib/generated/models/NakamotoBlock.d.ts +123 -0
  26. package/lib/generated/models/NakamotoBlock.js +74 -0
  27. package/lib/generated/models/NakamotoBlock.js.map +1 -0
  28. package/lib/generated/models/NakamotoBlockListResponse.d.ts +46 -0
  29. package/lib/generated/models/{FungibleTokensMetadataList.js → NakamotoBlockListResponse.js} +11 -11
  30. package/lib/generated/models/NakamotoBlockListResponse.js.map +1 -0
  31. package/lib/generated/models/ServerStatusResponse.d.ts +6 -0
  32. package/lib/generated/models/ServerStatusResponse.js +2 -0
  33. package/lib/generated/models/ServerStatusResponse.js.map +1 -1
  34. package/lib/generated/models/index.d.ts +4 -7
  35. package/lib/generated/models/index.js +4 -7
  36. package/lib/generated/models/index.js.map +1 -1
  37. package/lib/index.umd.js +605 -679
  38. package/lib/index.umd.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/generated/.openapi-generator/FILES +5 -8
  41. package/src/generated/apis/AccountsApi.ts +0 -79
  42. package/src/generated/apis/BlocksApi.ts +200 -20
  43. package/src/generated/apis/BurnBlocksApi.ts +150 -0
  44. package/src/generated/apis/NonFungibleTokensApi.ts +0 -116
  45. package/src/generated/apis/TransactionsApi.ts +63 -10
  46. package/src/generated/apis/index.ts +1 -1
  47. package/src/generated/models/BurnBlock.ts +88 -0
  48. package/src/generated/models/{AddressNftListResponse.ts → BurnBlockListResponse.ts} +22 -22
  49. package/src/generated/models/NakamotoBlock.ts +184 -0
  50. package/src/generated/models/{FungibleTokensMetadataList.ts → NakamotoBlockListResponse.ts} +22 -22
  51. package/src/generated/models/ServerStatusResponse.ts +8 -0
  52. package/src/generated/models/index.ts +4 -7
  53. package/lib/generated/apis/FungibleTokensApi.d.ts +0 -82
  54. package/lib/generated/apis/FungibleTokensApi.js +0 -80
  55. package/lib/generated/apis/FungibleTokensApi.js.map +0 -1
  56. package/lib/generated/models/AddressNftListResponse.d.ts +0 -46
  57. package/lib/generated/models/AddressNftListResponse.js.map +0 -1
  58. package/lib/generated/models/AddressNftListResponseValue.d.ts +0 -33
  59. package/lib/generated/models/AddressNftListResponseValue.js +0 -44
  60. package/lib/generated/models/AddressNftListResponseValue.js.map +0 -1
  61. package/lib/generated/models/FungibleTokenMetadata.d.ts +0 -75
  62. package/lib/generated/models/FungibleTokenMetadata.js +0 -58
  63. package/lib/generated/models/FungibleTokenMetadata.js.map +0 -1
  64. package/lib/generated/models/FungibleTokensMetadataList.d.ts +0 -46
  65. package/lib/generated/models/FungibleTokensMetadataList.js.map +0 -1
  66. package/lib/generated/models/NftEvent.d.ts +0 -76
  67. package/lib/generated/models/NftEvent.js +0 -60
  68. package/lib/generated/models/NftEvent.js.map +0 -1
  69. package/lib/generated/models/NonFungibleTokenMetadata.d.ts +0 -63
  70. package/lib/generated/models/NonFungibleTokenMetadata.js +0 -54
  71. package/lib/generated/models/NonFungibleTokenMetadata.js.map +0 -1
  72. package/lib/generated/models/NonFungibleTokensMetadataList.d.ts +0 -46
  73. package/lib/generated/models/NonFungibleTokensMetadataList.js +0 -49
  74. package/lib/generated/models/NonFungibleTokensMetadataList.js.map +0 -1
  75. package/src/generated/apis/FungibleTokensApi.ts +0 -150
  76. package/src/generated/models/AddressNftListResponseValue.ts +0 -64
  77. package/src/generated/models/FungibleTokenMetadata.ts +0 -120
  78. package/src/generated/models/NftEvent.ts +0 -127
  79. package/src/generated/models/NonFungibleTokenMetadata.ts +0 -104
  80. package/src/generated/models/NonFungibleTokensMetadataList.ts +0 -87
@@ -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,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,127 +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
- AddressNftListResponseValue,
18
- AddressNftListResponseValueFromJSON,
19
- AddressNftListResponseValueFromJSONTyped,
20
- AddressNftListResponseValueToJSON,
21
- } from './';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface NftEvent
27
- */
28
- export interface NftEvent {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof NftEvent
33
- */
34
- sender?: string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof NftEvent
39
- */
40
- recipient?: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof NftEvent
45
- */
46
- asset_identifier: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof NftEvent
51
- */
52
- asset_event_type: string;
53
- /**
54
- *
55
- * @type {AddressNftListResponseValue}
56
- * @memberof NftEvent
57
- */
58
- value: AddressNftListResponseValue;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof NftEvent
63
- */
64
- tx_id: string;
65
- /**
66
- *
67
- * @type {number}
68
- * @memberof NftEvent
69
- */
70
- tx_index: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof NftEvent
75
- */
76
- block_height: number;
77
- /**
78
- *
79
- * @type {number}
80
- * @memberof NftEvent
81
- */
82
- event_index: number;
83
- }
84
-
85
- export function NftEventFromJSON(json: any): NftEvent {
86
- return NftEventFromJSONTyped(json, false);
87
- }
88
-
89
- export function NftEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): NftEvent {
90
- if ((json === undefined) || (json === null)) {
91
- return json;
92
- }
93
- return {
94
-
95
- 'sender': !exists(json, 'sender') ? undefined : json['sender'],
96
- 'recipient': !exists(json, 'recipient') ? undefined : json['recipient'],
97
- 'asset_identifier': json['asset_identifier'],
98
- 'asset_event_type': json['asset_event_type'],
99
- 'value': AddressNftListResponseValueFromJSON(json['value']),
100
- 'tx_id': json['tx_id'],
101
- 'tx_index': json['tx_index'],
102
- 'block_height': json['block_height'],
103
- 'event_index': json['event_index'],
104
- };
105
- }
106
-
107
- export function NftEventToJSON(value?: NftEvent | null): any {
108
- if (value === undefined) {
109
- return undefined;
110
- }
111
- if (value === null) {
112
- return null;
113
- }
114
- return {
115
-
116
- 'sender': value.sender,
117
- 'recipient': value.recipient,
118
- 'asset_identifier': value.asset_identifier,
119
- 'asset_event_type': value.asset_event_type,
120
- 'value': AddressNftListResponseValueToJSON(value.value),
121
- 'tx_id': value.tx_id,
122
- 'tx_index': value.tx_index,
123
- 'block_height': value.block_height,
124
- 'event_index': value.event_index,
125
- };
126
- }
127
-
@@ -1,104 +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 NonFungibleTokenMetadata
20
- */
21
- export interface NonFungibleTokenMetadata {
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 NonFungibleTokenMetadata
26
- */
27
- token_uri: string;
28
- /**
29
- * Identifies the asset to which this token represents
30
- * @type {string}
31
- * @memberof NonFungibleTokenMetadata
32
- */
33
- name: string;
34
- /**
35
- * Describes the asset to which this token represents
36
- * @type {string}
37
- * @memberof NonFungibleTokenMetadata
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 NonFungibleTokenMetadata
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 NonFungibleTokenMetadata
50
- */
51
- image_canonical_uri: string;
52
- /**
53
- * Tx id that deployed the contract
54
- * @type {string}
55
- * @memberof NonFungibleTokenMetadata
56
- */
57
- tx_id: string;
58
- /**
59
- * principle that deployed the contract
60
- * @type {string}
61
- * @memberof NonFungibleTokenMetadata
62
- */
63
- sender_address: string;
64
- }
65
-
66
- export function NonFungibleTokenMetadataFromJSON(json: any): NonFungibleTokenMetadata {
67
- return NonFungibleTokenMetadataFromJSONTyped(json, false);
68
- }
69
-
70
- export function NonFungibleTokenMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFungibleTokenMetadata {
71
- if ((json === undefined) || (json === null)) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'token_uri': json['token_uri'],
77
- 'name': json['name'],
78
- 'description': json['description'],
79
- 'image_uri': json['image_uri'],
80
- 'image_canonical_uri': json['image_canonical_uri'],
81
- 'tx_id': json['tx_id'],
82
- 'sender_address': json['sender_address'],
83
- };
84
- }
85
-
86
- export function NonFungibleTokenMetadataToJSON(value?: NonFungibleTokenMetadata | null): any {
87
- if (value === undefined) {
88
- return undefined;
89
- }
90
- if (value === null) {
91
- return null;
92
- }
93
- return {
94
-
95
- 'token_uri': value.token_uri,
96
- 'name': value.name,
97
- 'description': value.description,
98
- 'image_uri': value.image_uri,
99
- 'image_canonical_uri': value.image_canonical_uri,
100
- 'tx_id': value.tx_id,
101
- 'sender_address': value.sender_address,
102
- };
103
- }
104
-
@@ -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
- NonFungibleTokenMetadata,
18
- NonFungibleTokenMetadataFromJSON,
19
- NonFungibleTokenMetadataFromJSONTyped,
20
- NonFungibleTokenMetadataToJSON,
21
- } from './';
22
-
23
- /**
24
- * List of non fungible tokens metadata
25
- * @export
26
- * @interface NonFungibleTokensMetadataList
27
- */
28
- export interface NonFungibleTokensMetadataList {
29
- /**
30
- * The number of tokens metadata to return
31
- * @type {number}
32
- * @memberof NonFungibleTokensMetadataList
33
- */
34
- limit: number;
35
- /**
36
- * The number to tokens metadata to skip (starting at `0`)
37
- * @type {number}
38
- * @memberof NonFungibleTokensMetadataList
39
- */
40
- offset: number;
41
- /**
42
- * The number of tokens metadata available
43
- * @type {number}
44
- * @memberof NonFungibleTokensMetadataList
45
- */
46
- total: number;
47
- /**
48
- *
49
- * @type {Array<NonFungibleTokenMetadata>}
50
- * @memberof NonFungibleTokensMetadataList
51
- */
52
- results: Array<NonFungibleTokenMetadata>;
53
- }
54
-
55
- export function NonFungibleTokensMetadataListFromJSON(json: any): NonFungibleTokensMetadataList {
56
- return NonFungibleTokensMetadataListFromJSONTyped(json, false);
57
- }
58
-
59
- export function NonFungibleTokensMetadataListFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFungibleTokensMetadataList {
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(NonFungibleTokenMetadataFromJSON)),
69
- };
70
- }
71
-
72
- export function NonFungibleTokensMetadataListToJSON(value?: NonFungibleTokensMetadataList | 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(NonFungibleTokenMetadataToJSON)),
85
- };
86
- }
87
-