Disperse helps you to distribute ERC20 token or ethers to number of accounts in single transaction.
Disperse App
The Disperse app allows you to distribute any ERC20 tokens or ethers to multiple addresses using a single transaction.
Deploy to a New Network ⛓️
- Clone the repository:
git clone https://github.com/rajkharvar/disperse-clone.git
- Install the dependencies:
npm install
or
yarn
- Modify the hardhat.config.js file to include the new network. Refer to the documentation at https://hardhat.org/hardhat-runner/docs/config for guidance.
- Deploy the contract:
npx hardhat scripts/deploy.js --network [NETWORK]
- Adding support in the frontend:
constants.ts file in the frontend/utils directory.
- Include the chain information and Disperse contract address by adding the following code snippet in supportedChains array:
{
chainId: <chain_id>,
disperseAddress: <disperse_address>,
blockExplorer: <blockexplorerurl>,
name: <chain_name>,
}
Replace <chainid> with the ID of the new chain, <disperseaddress> with the address of the deployed Disperse contract, <blockexplorerurl> with the URL of the block explorer for the chain, and <chain_name> with the name of the chain.
- Verifying the contract with the relevant chain block explorer:
- Updating the README:
Supported Networks and addresses
| Network | Disperse contract address | | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Mumbai | 0xaf6f4A737188571d128477DEe81d54Bc63De6d80 | | Goerli | 0xD286f3D834E6030F178C395C9ba33d32B427cAD3 | | Razor Schain | 0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1 | | Polygon | 0x0461950C8664A38b6b1D6599420CA9c50a714B56 | | Skale Staging | 0x553a0a6FCe2943F6901f783f381292C567038ddF | | Europa Testnet | 0x596df15B63d0f9CB9690BbdAecE64db59637Bf22 | | Optimism Sepolia | 0xC181C71991FFfE9952B023835DE79D7EcC67AE9B |