@alephium/web3 0.11.3 → 0.11.5

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.
@@ -237,6 +237,8 @@ export interface BuildSweepAddressTransactions {
237
237
  fromPublicKey: string;
238
238
  /** @format address */
239
239
  toAddress: string;
240
+ /** @format uint256 */
241
+ maxAttoAlphPerUTXO?: string;
240
242
  /** @format int64 */
241
243
  lockTime?: number;
242
244
  /** @format gas */
@@ -559,7 +561,8 @@ export interface NodeInfo {
559
561
  };
560
562
  }
561
563
  export interface NodeVersion {
562
- version: ReleaseVersion;
564
+ /** @format semver */
565
+ version: string;
563
566
  }
564
567
  export interface NotFound {
565
568
  detail: string;
@@ -601,14 +604,6 @@ export interface Reachable {
601
604
  peers: string[];
602
605
  type: string;
603
606
  }
604
- export interface ReleaseVersion {
605
- /** @format int32 */
606
- major: number;
607
- /** @format int32 */
608
- minor: number;
609
- /** @format int32 */
610
- patch: number;
611
- }
612
607
  export interface RevealMnemonic {
613
608
  password: string;
614
609
  }
@@ -929,7 +924,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
929
924
  }
930
925
  /**
931
926
  * @title Alephium API
932
- * @version 2.2.2
927
+ * @version 2.3.1
933
928
  * @baseUrl ../
934
929
  */
935
930
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -151,7 +151,7 @@ class HttpClient {
151
151
  exports.HttpClient = HttpClient;
152
152
  /**
153
153
  * @title Alephium API
154
- * @version 2.2.2
154
+ * @version 2.3.1
155
155
  * @baseUrl ../
156
156
  */
157
157
  class Api extends HttpClient {
@@ -418,7 +418,7 @@ class Project {
418
418
  }
419
419
  static async build(compilerOptionsPartial = {}, projectRootDir = '.', contractsRootDir = Project.DEFAULT_CONTRACTS_DIR, artifactsRootDir = Project.DEFAULT_ARTIFACTS_DIR, defaultFullNodeVersion = undefined) {
420
420
  const provider = (0, global_1.getCurrentNodeProvider)();
421
- const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosNode()).buildInfo.releaseVersion;
421
+ const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosVersion()).version;
422
422
  const sourceFiles = await Project.loadSourceFiles(projectRootDir, contractsRootDir);
423
423
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...exports.DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial };
424
424
  const projectArtifact = await ProjectArtifact.from(projectRootDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
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.2.2",
30
+ "alephium_version": "2.3.1",
31
31
  "explorer_backend_version": "1.13.5"
32
32
  },
33
33
  "type": "commonjs",
@@ -273,6 +273,8 @@ export interface BuildSweepAddressTransactions {
273
273
  fromPublicKey: string
274
274
  /** @format address */
275
275
  toAddress: string
276
+ /** @format uint256 */
277
+ maxAttoAlphPerUTXO?: string
276
278
  /** @format int64 */
277
279
  lockTime?: number
278
280
  /** @format gas */
@@ -639,7 +641,8 @@ export interface NodeInfo {
639
641
  }
640
642
 
641
643
  export interface NodeVersion {
642
- version: ReleaseVersion
644
+ /** @format semver */
645
+ version: string
643
646
  }
644
647
 
645
648
  export interface NotFound {
@@ -691,15 +694,6 @@ export interface Reachable {
691
694
  type: string
692
695
  }
693
696
 
694
- export interface ReleaseVersion {
695
- /** @format int32 */
696
- major: number
697
- /** @format int32 */
698
- minor: number
699
- /** @format int32 */
700
- patch: number
701
- }
702
-
703
697
  export interface RevealMnemonic {
704
698
  password: string
705
699
  }
@@ -1217,7 +1211,7 @@ export class HttpClient<SecurityDataType = unknown> {
1217
1211
 
1218
1212
  /**
1219
1213
  * @title Alephium API
1220
- * @version 2.2.2
1214
+ * @version 2.3.1
1221
1215
  * @baseUrl ../
1222
1216
  */
1223
1217
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -629,7 +629,7 @@ export class Project {
629
629
  defaultFullNodeVersion: string | undefined = undefined
630
630
  ): Promise<void> {
631
631
  const provider = getCurrentNodeProvider()
632
- const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosNode()).buildInfo.releaseVersion
632
+ const fullNodeVersion = defaultFullNodeVersion ?? (await provider.infos.getInfosVersion()).version
633
633
  const sourceFiles = await Project.loadSourceFiles(projectRootDir, contractsRootDir)
634
634
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial }
635
635
  const projectArtifact = await ProjectArtifact.from(projectRootDir)