Smartcontracts for collaboration splitters using Solidity 0.8.9 and Hardhat
The most important files are :
CollabSplitterFactorywhich allow the creation and deployment of a CollabSplitter contract from user transaction.CollabSplitterthe minimal proxy contract receiving ETH or ERC20 to be split accross recipients.
The allocations & associated recipients are described with a Merkle Root to greatly reduce gas comsumption.
cd contracts
npm install
Then copy the env.SAMPLE file to .env and replace your variables.
npm run test
See coverage using npm run coverage
If you want to know more about gas usage, you can run npm run gas-report
The CollabSplitterFactory has been deployed to the following network.
| Network | Address |
|---|---|
| Rinbeky | 0x916Edd1cbf7A77924168409a24c343Aff22Ac7f6 |
| Mainnet | 0x486E4CCd2970C1971f41AA16EEFf078f821F3E9a |