Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Sep 30, 2024
1 parent 4a3d006 commit d997e08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/deployL2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const config = [
];
const storageCost = 1500000000000000; // storageCost - 1,500,000Gwei forever per blob - https://ethresear.ch/t/ethstorage-scaling-ethereum-storage-via-l2-and-da/14223/6#incentivization-for-storing-m-physical-replicas-1
const dcfFactor = 340282366367469178095360967382638002176n; // dcfFactor, it mean 0.95 for yearly discount
const updateLimit = 512;

async function verifyContract(contract, args) {
// if (!process.env.ETHERSCAN_API_KEY) {
Expand All @@ -44,6 +45,7 @@ async function deployContract() {
startTime, // startTime
storageCost,
dcfFactor,
updateLimit,
{ gasPrice: gasPrice }
);
await implContract.deployed();
Expand Down Expand Up @@ -75,7 +77,7 @@ async function deployContract() {

// fund 50 qkc into the storage contract to give reward for empty mining
const ethStorage = StorageContract.attach(ethStorageProxy.address);
const tx = await ethStorage.sendValue({ value: hre.ethers.utils.parseEther("50") });
const tx = await ethStorage.sendValue({ value: hre.ethers.utils.parseEther("1") });
await tx.wait();
console.log("balance of " + ethStorage.address, await hre.ethers.provider.getBalance(ethStorage.address));

Expand Down

0 comments on commit d997e08

Please sign in to comment.