Skip to content

Commit

Permalink
feat: add erc20 distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Oct 11, 2023
1 parent f50625b commit da66576
Show file tree
Hide file tree
Showing 4 changed files with 675 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/arcana/deploy/lineaGoerli/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 { deployer } = await getNamedAccounts();

await deploy('ERC20Distributor', {
from: deployer,
// self deployed USDT
// https://goerli.lineascan.build/address/0x7757f3b0d9270bea2f28366a97cdec36a2de3459
args: [deployer, '0x7757f3b0d9270bea2f28366a97cdec36a2de3459'],
log: true,
});

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

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

func.tags = ['ERC20Distributor'];

export default func;
Loading

0 comments on commit da66576

Please sign in to comment.