SafeBase provides tools for deploying and verifying smart contracts on the KRNL network with Python and Web3.py.
- Compile Solidity contracts
- Deploy contracts to KRNL network
- Verify contracts on KRNL explorer
- Environment variable configuration
- Python 3.x
- Web3.py for blockchain interactions
- Solcx for contract compilation
- Dotenv for environment management
- Python 3.x
- Web3.py
- Solcx
- Dotenv
- Clone the repo
git clone https://github.com/context7/safebase.git
cd safebase- Install dependencies
pip install -r requirements.txt- Configure environment variables
Create a
.envfile with:
KRNL_RPC_URL=your_krnl_rpc_url
DEPLOYER_PRIVATE_KEY=your_private_key
- Run deployment script
python scripts/deploy_krnl.py path/to/contract.solMIT