@alephium/web3 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -963,7 +963,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
963
963
  }
964
964
  /**
965
965
  * @title Alephium API
966
- * @version 2.5.3
966
+ * @version 2.5.5
967
967
  * @baseUrl ../
968
968
  */
969
969
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -1347,6 +1347,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1347
1347
  * @request GET:/blockflow/is-block-in-main-chain
1348
1348
  */
1349
1349
  getBlockflowIsBlockInMainChain: (query: {
1350
+ /** @format block-hash */
1350
1351
  blockHash: string;
1351
1352
  }, params?: RequestParams) => Promise<boolean>;
1352
1353
  /**
@@ -1480,6 +1481,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1480
1481
  * @request GET:/transactions/status
1481
1482
  */
1482
1483
  getTransactionsStatus: (query: {
1484
+ /** @format 32-byte-hash */
1483
1485
  txId: string;
1484
1486
  /** @format int32 */
1485
1487
  fromGroup?: number;
@@ -1515,6 +1517,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1515
1517
  * @request PUT:/mempool/transactions/rebroadcast
1516
1518
  */
1517
1519
  putMempoolTransactionsRebroadcast: (query: {
1520
+ /** @format 32-byte-hash */
1518
1521
  txId: string;
1519
1522
  }, params?: RequestParams) => Promise<void>;
1520
1523
  /**
@@ -151,7 +151,7 @@ class HttpClient {
151
151
  exports.HttpClient = HttpClient;
152
152
  /**
153
153
  * @title Alephium API
154
- * @version 2.5.3
154
+ * @version 2.5.5
155
155
  * @baseUrl ../
156
156
  */
157
157
  class Api extends HttpClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "author": "Alephium dev <dev@alephium.org>",
29
29
  "config": {
30
- "alephium_version": "2.5.3",
30
+ "alephium_version": "2.5.5",
31
31
  "explorer_backend_version": "1.15.1"
32
32
  },
33
33
  "type": "commonjs",
@@ -42,7 +42,8 @@
42
42
  "crypto-browserify": "^3.12.0",
43
43
  "elliptic": "6.5.4",
44
44
  "eventemitter3": "^4.0.7",
45
- "path-browserify": "^1.0.1"
45
+ "path-browserify": "^1.0.1",
46
+ "stream-browserify": "^3.0.0"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@babel/eslint-parser": "^7.21.3",
@@ -71,7 +72,6 @@
71
72
  "process": "^0.11.10",
72
73
  "rewire": "^6.0.0",
73
74
  "shelljs": "^0.8.5",
74
- "stream-browserify": "^3.0.0",
75
75
  "swagger-typescript-api": "12.0.3",
76
76
  "terser-webpack-plugin": "^5.3.7",
77
77
  "ts-jest": "^28.0.8",
@@ -1256,7 +1256,7 @@ export class HttpClient<SecurityDataType = unknown> {
1256
1256
 
1257
1257
  /**
1258
1258
  * @title Alephium API
1259
- * @version 2.5.3
1259
+ * @version 2.5.5
1260
1260
  * @baseUrl ../
1261
1261
  */
1262
1262
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -1955,6 +1955,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1955
1955
  */
1956
1956
  getBlockflowIsBlockInMainChain: (
1957
1957
  query: {
1958
+ /** @format block-hash */
1958
1959
  blockHash: string
1959
1960
  },
1960
1961
  params: RequestParams = {}
@@ -2209,6 +2210,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2209
2210
  */
2210
2211
  getTransactionsStatus: (
2211
2212
  query: {
2213
+ /** @format 32-byte-hash */
2212
2214
  txId: string
2213
2215
  /** @format int32 */
2214
2216
  fromGroup?: number
@@ -2270,6 +2272,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
2270
2272
  */
2271
2273
  putMempoolTransactionsRebroadcast: (
2272
2274
  query: {
2275
+ /** @format 32-byte-hash */
2273
2276
  txId: string
2274
2277
  },
2275
2278
  params: RequestParams = {}
@@ -4,4 +4,6 @@ Interface INFTCollectionWithRoyalty extends INFTCollection {
4
4
 
5
5
  @using(preapprovedAssets = true)
6
6
  pub fn payRoyalty(payer: Address, amount: U256) -> ()
7
+
8
+ pub fn withdrawRoyalty(to: Address, amount: U256) -> ()
7
9
  }