This repository contains smart contracts for the KiiChain ecosystem, written in Solidity.
This is a simple swap contract that uses the Cosmos bank module on the Kii EVM testnet. This contract is designed to swap EVM Kii tokens for internal Cosmos Kii tokens and vice versa.
Follow these steps to set up the development environment and test the contracts locally.
git clone https://github.com/KiiChain/kii-solidity-contracts
cd kii-solidity-contractsnpm installnode -vnpx hardhat compilenpx hardhat test- Added basic test: test/basic-test.ts for AirdropNFT
- Removed default Hardhat boilerplate: test/Lock.ts
/contracts → Solidity smart contracts
/test → Test files using Hardhat framework
/hardhat.config.ts → Hardhat configuration (TypeScript)
/scripts → Deployment and utility scripts (optional)
/README.md → Project documentation
- You can find a basic test file in test/basic-test.ts.
- This test verifies successful deployment of the AirdropNFT contract.
This project uses GitHub Actions to run a series of checks on every push and pull request to the main branch. This ensures that the codebase remains consistent and that all tests pass.
The CI workflow runs the following checks:
- Linting:
npx solhint 'contracts/**/*.sol' - Formatting:
npx prettier --check 'contracts/**/*.sol' - Tests:
npx hardhat test
You can run these checks locally to ensure your contributions will pass the CI.
Pull Requests are welcome! Please follow the instructions above to set up your environment and run tests locally before submitting a PR.
This project is licensed under the MIT License.