Skip to content

Commit

Permalink
chore: deploy erc20 distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Oct 13, 2023
1 parent 0cd16c2 commit c539b08
Show file tree
Hide file tree
Showing 3 changed files with 561 additions and 5 deletions.
28 changes: 28 additions & 0 deletions packages/dev/deploy/linea/003_deploy_ERC20Distributor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { DeployFunction } from 'hardhat-deploy/types';

const func: DeployFunction = async function ({ deployments, getNamedAccounts }) {
const { deploy, execute } = deployments;

const { prodDeployer } = await getNamedAccounts();

await deploy('ERC20Distributor', {
from: prodDeployer,
// USDC on linea
// https://lineascan.build/address/0x176211869ca2b568f2a7d4ee941e073a821ee1ff
args: [prodDeployer, '0x176211869ca2b568f2a7d4ee941e073a821ee1ff'],
log: true,
});

await execute(
'ERC20Distributor',
{ from: prodDeployer, log: true },
'setMerkleRoot',
'0x12cd0132016024cd4f350d9aabb515293431327ad6e5e1dcd7064ccc6a4e6d3c',
);

await execute('ERC20Distributor', { from: prodDeployer, log: true }, 'setClaimPeriodEnds', 1698681600);
};

func.tags = ['ERC20Distributor'];

export default func;
Loading

0 comments on commit c539b08

Please sign in to comment.