Cronos is the Crypto.org EVM chain designed to significantly enhance the DeFi ecosystem. This article provides a step-by-step guide on how to set up and interact with the Cronos blockchain.
Table of Contents
- 1. Description
- 2. Contributing
- 3. License
- 4. Documentation
- 5. Build Full Node
- 6. Start a Local Development Network and Node
- 7. Send Your First Transaction
- 8. Testing
- 9. Pystarport Quick Start
- 10. Useful Links
1. Description
Cronos is the Crypto.org EVM chain that aims to massively scale the DeFi ecosystem.
2. Contributing
Please abide by the Code of Conduct in all interactions and the contributing guidelines when submitting code.
3. License
4. Documentation
For detailed technical insights, check the Technical Documentation.
5. Build Full Node
To build your full node, run the following commands in your terminal:
bash
COSMOS_BUILD_OPTIONS=rocksdb make install
make build
Think of this step like setting up the foundation of a house – without a solid base, constructing the rest won’t be possible.
6. Start a Local Development Network and Node
Follow the documentation to run a local devnet.
7. Send Your First Transaction
After setting up your local devnet, you may interact with your local blockchain by following this documentation.
8. Testing
You can execute various tests in the following ways:
- Unit tests:
make test
- Integration tests
CI Testing
We use Nix as our CI testing environment. First, install gomod2nix
:
go install github.com/nix-community/gomod2nix@latest
gomod2nix generate
This will ensure that your tests are comprehensive and reflective of your code’s evolution over time.
9. Pystarport Quick Start
You can install Pystarport to manage nodes for development.
Install Latest Python (for Linux)
Ensure you have Python version 3.8 or above. You can install it using the following commands:
git clone git@github.com:python/cpython.git
cd cpython
git checkout tags/v3.9.5
./configure
make
sudo make install
Set Path (for Linux or for Mac)
If there are multiple Python versions, adjust your Python path as follows:
export PATH=/usr/local/bin:$HOME/.local/bin:$PATH
Install Pystarport
python3 -m pip install pystarport
Quick Start
Run two nodes in devnet:
pystarport serve --config .scripts/cronos-devnet.yaml
Get Status
pystarport supervisorctl status
Stop All
pystarport supervisorctl stop all
10. Useful Links
- Project Website
- Technical Documentation
- Community chatrooms (non-technical): Discord, Telegram
- Developer community channel (technical): Discord Support Server
- Ethermint by Tharsis
- Cosmos SDK Documentation
- Cosmos Discord
- Pystarport
Troubleshooting
If you encounter any issues during setup, here are a few troubleshooting tips:
- Ensure your dependencies are updated and compatible with each other.
- Check the logs for any error messages that might give clues about what’s wrong.
- Revisit the paths set in your environment variables and ensure they are correctly configured.
- Lastly, if you need further assistance, check the community channels or consult the documentation.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.