@skalenetwork/upgrade-tools 2.0.0-refactor.2 → 2.0.0-refactor.3
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/src/upgrader.d.ts +2 -2
- package/dist/src/upgrader.js +3 -0
- package/package.json +1 -1
package/dist/src/upgrader.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export declare abstract class Upgrader {
|
|
|
10
10
|
submitter: Submitter;
|
|
11
11
|
constructor(projectName: string, targetVersion: string, abi: SkaleABIFile, contractNamesToUpgrade: string[], submitter?: Submitter);
|
|
12
12
|
abstract getDeployedVersion: () => Promise<string | undefined>;
|
|
13
|
-
abstract deployNewContracts: () => Promise<void>;
|
|
14
|
-
abstract initialize: () => Promise<void>;
|
|
15
13
|
abstract setVersion: (newVersion: string) => Promise<void>;
|
|
14
|
+
deployNewContracts: () => Promise<void>;
|
|
15
|
+
initialize: () => Promise<void>;
|
|
16
16
|
upgrade(): Promise<void>;
|
|
17
17
|
_getContractFactoryAndUpdateManifest(contract: string): Promise<import("ethers").ContractFactory>;
|
|
18
18
|
_getContractKeyInAbiFile(contract: string): string;
|
package/dist/src/upgrader.js
CHANGED
|
@@ -26,6 +26,9 @@ const verification_1 = require("./verification");
|
|
|
26
26
|
const auto_submitter_1 = require("./submitters/auto-submitter");
|
|
27
27
|
class Upgrader {
|
|
28
28
|
constructor(projectName, targetVersion, abi, contractNamesToUpgrade, submitter = new auto_submitter_1.AutoSubmitter()) {
|
|
29
|
+
// protected
|
|
30
|
+
this.deployNewContracts = () => { return Promise.resolve(); };
|
|
31
|
+
this.initialize = () => { return Promise.resolve(); };
|
|
29
32
|
this.targetVersion = targetVersion;
|
|
30
33
|
this.abi = abi;
|
|
31
34
|
this.contractNamesToUpgrade = contractNamesToUpgrade;
|