⚡ CardanoVSC 🚀
✨ Features
CardanoVSC is a powerful Visual Studio Code extension that provides seamless support for Haskell and Plutus development. It is designed to enhance developer productivity by offering:
- Advanced syntax highlighting for Haskell and Plutus code.
- Intelligent code completion to speed up development.
- Integration with the Cardano API for real-time blockchain interaction.
- An intuitive "Ctrl + Shift + P >> CardanoAPI" feature allowing developers to quickly access Cardano API options directly from the IDE.
This extension is perfect for developers building on the Cardano blockchain, enabling smooth and efficient smart contract development within the Visual Studio Code ecosystem.
📥 Installation
- Clone the repository:
git clone https://github.com/AIQUANT-Tech/CardanoVSC.git
cd CardanoVSC/cardanovsc/
- Install dependencies:
npm install
- Debug the extension by clicking the VS Code debug icon.
🛠️ Usage
📜 Commands
CardanoVSC provides several commands to interact with the Cardano blockchain:
cardanovsc.get_latest_block_details
- Get details of the latest block.
cardanovsc.get_block_details
- Fetch details of a specific block.
cardanovsc.get_address_balance
- Retrieve balance for a given address.
cardanovsc.get_pool_details
- Fetch details about a stake pool.
cardanovsc.get_transaction_details
- Retrieve information about a transaction.
To access these commands, open the Command Palette (Ctrl+Shift+P
), type CardanoVSC
, and select the desired command.
🏗️ Development
✅ Running Tests
Before running the test command, ensure the required test file exists:
Create a folder out/test/
if it does not exist and add the following file sample.hs
:
module Sample where
import Data.List
factorial :: Integer -> Integer
factorial 0 = 1
factorial n = n * factorial (n - 1)
main :: IO ()
main = print (factorial 5)
To run tests:
npm run test
🔗 API Integration
CardanoVSC integrates with Cardano APIs using API keys. Ensure your .env
file contains:
CARDANO_API_KEY=your_api_key_here
🤝 Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
📜 License
This project is licensed under the MIT License.
📌Scope and Design Documentation