Skip to content

feat(contracts): add distribution hardhat task#682

Merged
0xmad merged 1 commit into
mainfrom
feature/distribution-task
Nov 4, 2025
Merged

feat(contracts): add distribution hardhat task#682
0xmad merged 1 commit into
mainfrom
feature/distribution-task

Conversation

@0xmad

@0xmad 0xmad commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

Description

Add distribution hardhat task

Additional Notes

Use real projects and amounts in tests

How to use:

pnpm run distribute --network [network] \
  --projects-file [path] # The file with projects \
  --amounts-file [path] # The file with amounts in wei to transfer \
  --token-address [address] # ERC20 tokean address, default 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 WETH on ARB \
  --start-index [index] # The index of the recipient to start sending transactions from, default 0
  --dry-run # optional, check command run on fork (specify .env variables `FORKING_URL` and `FORKING_BLOCK_NUM`

Related issue(s)

N/A

Confirmation

Important

We do not accept minor grammatical fixes (e.g., correcting typos, rewording sentences) unless they significantly improve clarity in technical documentation. These contributions, while appreciated, are not a priority for merging. If there is a grammatical error feel free to message the team.

@0xmad 0xmad self-assigned this Nov 3, 2025
@0xmad 0xmad added the enhancement New feature or request label Nov 3, 2025
@0xmad 0xmad moved this to In Progress in MACI Platform Nov 3, 2025
@0xmad 0xmad force-pushed the feature/distribution-task branch 3 times, most recently from 2b84c21 to 08d0ed1 Compare November 3, 2025 22:21
@0xmad 0xmad marked this pull request as ready for review November 3, 2025 22:26
@0xmad 0xmad enabled auto-merge November 3, 2025 22:26
@0xmad 0xmad disabled auto-merge November 4, 2025 02:32
@0xmad 0xmad marked this pull request as draft November 4, 2025 02:33
Comment thread packages/contracts/package.json
Comment thread packages/contracts/tests/distribute.test.ts
@0xmad 0xmad force-pushed the feature/distribution-task branch from 08d0ed1 to d161d48 Compare November 4, 2025 16:44
@0xmad 0xmad marked this pull request as ready for review November 4, 2025 16:47
@0xmad 0xmad force-pushed the feature/distribution-task branch 2 times, most recently from 523c73d to 77e2546 Compare November 4, 2025 16:50
@0xmad 0xmad force-pushed the feature/distribution-task branch from 77e2546 to 3db6329 Compare November 4, 2025 17:01
@0xmad 0xmad enabled auto-merge November 4, 2025 17:05
@0xmad 0xmad merged commit 023bd8a into main Nov 4, 2025
14 checks passed
@0xmad 0xmad deleted the feature/distribution-task branch November 4, 2025 17:07
@github-project-automation github-project-automation Bot moved this from In Progress to Done in MACI Platform Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants