@alephium/web3 0.2.0-rc.16 → 0.2.0-rc.17
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.
- package/dist/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/contract/contract.js +2 -2
- package/package.json +1 -1
- package/src/contract/contract.ts +2 -2
- package/dist/scripts/rename-gitignore.d.ts +0 -1
- package/dist/scripts/rename-gitignore.js +0 -24
- package/scripts/rename-gitignore.js +0 -24
|
@@ -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(`
|
|
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(`
|
|
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
package/src/contract/contract.ts
CHANGED
|
@@ -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(`
|
|
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(`
|
|
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
|
-
})
|