@alephium/web3 0.2.0-rc.16 → 0.2.0-rc.18

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.
@@ -352,11 +352,11 @@ class Project {
352
352
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...exports.DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial };
353
353
  const projectArtifact = await ProjectArtifact.from(artifactsRootDir);
354
354
  if (typeof projectArtifact === 'undefined' || projectArtifact.needToReCompile(nodeCompilerOptions, sourceFiles)) {
355
- console.log(`Compile contracts in folder "${contractsRootDir}"`);
355
+ console.log(`Compiling contracts in folder "${contractsRootDir}"`);
356
356
  Project.currentProject = await Project.compile(provider, sourceFiles, contractsRootDir, artifactsRootDir, errorOnWarnings, nodeCompilerOptions);
357
357
  }
358
358
  else {
359
- console.log(`Load compiled contracts from folder "${artifactsRootDir}"`);
359
+ console.log(`Contracts are compiled already. Loading them from folder "${artifactsRootDir}"`);
360
360
  Project.currentProject = await Project.loadArtifacts(provider, sourceFiles, projectArtifact, contractsRootDir, artifactsRootDir, errorOnWarnings, nodeCompilerOptions);
361
361
  }
362
362
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.2.0-rc.16",
3
+ "version": "0.2.0-rc.18",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -483,7 +483,7 @@ export class Project {
483
483
  const { errorOnWarnings, ...nodeCompilerOptions } = { ...DEFAULT_COMPILER_OPTIONS, ...compilerOptionsPartial }
484
484
  const projectArtifact = await ProjectArtifact.from(artifactsRootDir)
485
485
  if (typeof projectArtifact === 'undefined' || projectArtifact.needToReCompile(nodeCompilerOptions, sourceFiles)) {
486
- console.log(`Compile contracts in folder "${contractsRootDir}"`)
486
+ console.log(`Compiling contracts in folder "${contractsRootDir}"`)
487
487
  Project.currentProject = await Project.compile(
488
488
  provider,
489
489
  sourceFiles,
@@ -493,7 +493,7 @@ export class Project {
493
493
  nodeCompilerOptions
494
494
  )
495
495
  } else {
496
- console.log(`Load compiled contracts from folder "${artifactsRootDir}"`)
496
+ console.log(`Contracts are compiled already. Loading them from folder "${artifactsRootDir}"`)
497
497
  Project.currentProject = await Project.loadArtifacts(
498
498
  provider,
499
499
  sourceFiles,
@@ -1 +0,0 @@
1
- export {};
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /*
3
- Copyright 2018 - 2022 The Alephium Authors
4
- This file is part of the alephium project.
5
-
6
- The library is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published by
8
- the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- The library is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with the library. If not, see <http://www.gnu.org/licenses/>.
18
- */
19
- const { rename } = require('fs');
20
- rename(process.argv[2], process.argv[3], function (error) {
21
- if (error)
22
- console.log(error);
23
- console.log(`Renamed ${process.argv[2]} to ${process.argv[3]}.`);
24
- });
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2018 - 2022 The Alephium Authors
3
- This file is part of the alephium project.
4
-
5
- The library is free software: you can redistribute it and/or modify
6
- it under the terms of the GNU Lesser General Public License as published by
7
- the Free Software Foundation, either version 3 of the License, or
8
- (at your option) any later version.
9
-
10
- The library is distributed in the hope that it will be useful,
11
- but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- GNU Lesser General Public License for more details.
14
-
15
- You should have received a copy of the GNU Lesser General Public License
16
- along with the library. If not, see <http://www.gnu.org/licenses/>.
17
- */
18
-
19
- const { rename } = require('fs')
20
-
21
- rename(process.argv[2], process.argv[3], function (error) {
22
- if (error) console.log(error)
23
- console.log(`Renamed ${process.argv[2]} to ${process.argv[3]}.`)
24
- })