@alephium/web3 2.0.0 → 2.0.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.
|
@@ -576,6 +576,7 @@ export interface CompileProjectResult {
|
|
|
576
576
|
constants?: Constant[];
|
|
577
577
|
enums?: Enum[];
|
|
578
578
|
warnings?: string[];
|
|
579
|
+
testError?: string;
|
|
579
580
|
}
|
|
580
581
|
/** CompileScriptResult */
|
|
581
582
|
export interface CompileScriptResult {
|
|
@@ -1443,7 +1444,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1443
1444
|
}
|
|
1444
1445
|
/**
|
|
1445
1446
|
* @title Alephium API
|
|
1446
|
-
* @version 4.2.
|
|
1447
|
+
* @version 4.2.3
|
|
1447
1448
|
* @baseUrl ../
|
|
1448
1449
|
*/
|
|
1449
1450
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -1939,7 +1940,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1939
1940
|
* @summary Get the UTXOs of an address
|
|
1940
1941
|
* @request GET:/addresses/{address}/utxos
|
|
1941
1942
|
*/
|
|
1942
|
-
getAddressesAddressUtxos: (address: string,
|
|
1943
|
+
getAddressesAddressUtxos: (address: string, query?: {
|
|
1944
|
+
'error-if-exceed-max-utxos'?: boolean;
|
|
1945
|
+
}, params?: RequestParams) => Promise<UTXOs>;
|
|
1943
1946
|
/**
|
|
1944
1947
|
* No description
|
|
1945
1948
|
*
|
|
@@ -151,7 +151,7 @@ class HttpClient {
|
|
|
151
151
|
exports.HttpClient = HttpClient;
|
|
152
152
|
/**
|
|
153
153
|
* @title Alephium API
|
|
154
|
-
* @version 4.2.
|
|
154
|
+
* @version 4.2.3
|
|
155
155
|
* @baseUrl ../
|
|
156
156
|
*/
|
|
157
157
|
class Api extends HttpClient {
|
|
@@ -829,9 +829,10 @@ class Api extends HttpClient {
|
|
|
829
829
|
* @summary Get the UTXOs of an address
|
|
830
830
|
* @request GET:/addresses/{address}/utxos
|
|
831
831
|
*/
|
|
832
|
-
getAddressesAddressUtxos: (address, params = {}) => this.request({
|
|
832
|
+
getAddressesAddressUtxos: (address, query, params = {}) => this.request({
|
|
833
833
|
path: `/addresses/${address}/utxos`,
|
|
834
834
|
method: 'GET',
|
|
835
|
+
query: query,
|
|
835
836
|
format: 'json',
|
|
836
837
|
...params
|
|
837
838
|
}).then(utils_1.convertHttpResponse),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alephium/web3",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A JS/TS library to interact with the Alephium platform",
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"author": "Alephium dev <dev@alephium.org>",
|
|
35
35
|
"config": {
|
|
36
|
-
"alephium_version": "4.2.
|
|
36
|
+
"alephium_version": "4.2.3",
|
|
37
37
|
"explorer_backend_version": "2.3.2"
|
|
38
38
|
},
|
|
39
39
|
"type": "commonjs",
|
package/src/api/api-alephium.ts
CHANGED
|
@@ -646,6 +646,7 @@ export interface CompileProjectResult {
|
|
|
646
646
|
constants?: Constant[]
|
|
647
647
|
enums?: Enum[]
|
|
648
648
|
warnings?: string[]
|
|
649
|
+
testError?: string
|
|
649
650
|
}
|
|
650
651
|
|
|
651
652
|
/** CompileScriptResult */
|
|
@@ -1777,7 +1778,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1777
1778
|
|
|
1778
1779
|
/**
|
|
1779
1780
|
* @title Alephium API
|
|
1780
|
-
* @version 4.2.
|
|
1781
|
+
* @version 4.2.3
|
|
1781
1782
|
* @baseUrl ../
|
|
1782
1783
|
*/
|
|
1783
1784
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -2787,13 +2788,20 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2787
2788
|
* @summary Get the UTXOs of an address
|
|
2788
2789
|
* @request GET:/addresses/{address}/utxos
|
|
2789
2790
|
*/
|
|
2790
|
-
getAddressesAddressUtxos: (
|
|
2791
|
+
getAddressesAddressUtxos: (
|
|
2792
|
+
address: string,
|
|
2793
|
+
query?: {
|
|
2794
|
+
'error-if-exceed-max-utxos'?: boolean
|
|
2795
|
+
},
|
|
2796
|
+
params: RequestParams = {}
|
|
2797
|
+
) =>
|
|
2791
2798
|
this.request<
|
|
2792
2799
|
UTXOs,
|
|
2793
2800
|
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2794
2801
|
>({
|
|
2795
2802
|
path: `/addresses/${address}/utxos`,
|
|
2796
2803
|
method: 'GET',
|
|
2804
|
+
query: query,
|
|
2797
2805
|
format: 'json',
|
|
2798
2806
|
...params
|
|
2799
2807
|
}).then(convertHttpResponse),
|