Smart contracts for https://paid2hack.com
- Arbitrum Sepolia:
TODO: contract verification on arbiscan
Install pre-requisites:
Then run:
$ bun i
$ bun prepareTo compile the contracts:
$ bun compileTo run tests:
$ bun tests
All commands will generate the generated/exports.ts file which contains ABI and bytecode to be used by the dapp.
In a separate terminal, start a local devnet:
$ bun devnetNow deploy the contracts:
$ bun deploy-localNote: Deployment is done using CREATE2. So, if you need to deploy the contracts again, first stop and restart the devnet in the other terminal.
NOTE: Use a burner wallet to deploy, don't use your own main wallet!!
$ export PRIVATE_KEY="0x..."
$ export RPC_URL="http://..."
$ export CHAIN_ID="..."
$ bun deploy-publicAGPLv3 - see LICENSE.md
Paid2Hack contracts Copyright (C) 2024 Paid2Hack
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.