codex-contracts is the contracts repo for CodexField.
To install dependencies:
git clone https://github.com/codexfield/codex-contracts.git && cd codex-contracts
yarn install
forge install
- Copy
.env.example
and setupOP_PRIVATE_KEY
andOWNER_PRIVATE_KEY
in.env
.
cp .env.example .env
- Deploy with foundry.
source .env
forge script ./script/1-deploy.s.sol --rpc-url ${RPC_TESTNET} --legacy --broadcast --private-key ${OP_PRIVATE_KEY} --via-ir
Test with foundry after deploying:
forge test --rpc-url ${RPC_TESTNET}
The CodexField contracts (i.e. all code inside the contracts
directory) are licensed under the
GNU Affero General Public License v3.0, also
included in our repository in the COPYING
file.
The software and related documentation are under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty. We advise you to be careful and experiment on the network at your own risk. Stay safe out there.