@gooddollar/goodprotocol 1.0.3-beta.1 → 1.0.3-beta.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.
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export const main = async (
|
|
|
74
74
|
if (isProduction && networkName.includes("mainnet")) {
|
|
75
75
|
GAS_SETTINGS.gasLimit = 6000000;
|
|
76
76
|
GAS_SETTINGS.maxFeePerGas = ethers.utils.parseUnits("80", "gwei");
|
|
77
|
-
} else if (!networkName.includes("mainnet")) {
|
|
77
|
+
} else if (isProduction && !networkName.includes("mainnet")) {
|
|
78
78
|
//case we are on fusefuse
|
|
79
79
|
GAS_SETTINGS = {
|
|
80
80
|
gasLimit: 6000000,
|
|
@@ -355,6 +355,7 @@ export const main = async (
|
|
|
355
355
|
|
|
356
356
|
if (contract.isUpgradable !== false) {
|
|
357
357
|
if (isCoverage) {
|
|
358
|
+
console.log("Deploying:", contract.name, "using proxy");
|
|
358
359
|
//coverage has large contracts doesnt work with proxy factory
|
|
359
360
|
const tx = await upgrades.deployProxy(Contract, args, {
|
|
360
361
|
initializer: contract.initializer,
|
|
@@ -364,6 +365,7 @@ export const main = async (
|
|
|
364
365
|
await countTotalGas(tx, contract.name);
|
|
365
366
|
return tx;
|
|
366
367
|
}
|
|
368
|
+
console.log("Deploying:", contract.name, "using proxyfactory");
|
|
367
369
|
const encoded = Contract.interface.encodeFunctionData(
|
|
368
370
|
contract.initializer || "initialize",
|
|
369
371
|
args
|
|
@@ -394,6 +396,7 @@ export const main = async (
|
|
|
394
396
|
} else {
|
|
395
397
|
//for some reason deploying with link library via proxy doesnt work on hardhat test env
|
|
396
398
|
if (isTest === false) {
|
|
399
|
+
console.log("Deploying:", contract.name, "using proxyfactory code");
|
|
397
400
|
const constructor = Contract.interface.encodeDeploy(args);
|
|
398
401
|
const bytecode = ethers.utils.solidityPack(
|
|
399
402
|
["bytes", "bytes"],
|
|
@@ -411,6 +414,7 @@ export const main = async (
|
|
|
411
414
|
)
|
|
412
415
|
);
|
|
413
416
|
} else {
|
|
417
|
+
console.log("Deploying:", contract.name, "using regular");
|
|
414
418
|
const tx = await Contract.deploy(...args, GAS_SETTINGS);
|
|
415
419
|
await countTotalGas(tx, contract.name);
|
|
416
420
|
const impl = await tx.deployed();
|