The aelf-contract-build VSCode extension provides a comprehensive suite of tools for building, testing, and deploying aelf smart contracts. This extension allows users to:
- Select a
.csprojfile from their workspace. - Zip all files within the same folder (including subfolders).
- Upload the zip file via a POST request to a specified server endpoint to build the smart contract.
- Deploy smart contracts directly from the local environment or from a local DLL file.
- Test smart contracts to ensure they function as expected.
- Obtain testnet tokens from a faucet.
- Check the status of transactions.
- Build aelf Smart Contracts: Easily build your aelf smart contracts by selecting a
.csprojfile and uploading it to the server. - Test Smart Contracts: Run tests on your smart contracts to verify their functionality.
- Deploy Smart Contracts: Deploy your smart contracts directly from your local environment or from a local DLL file.
- Faucet Integration: Get testnet tokens from a faucet to use in your smart contract development.
- Transaction Status Check: Check the status of your transactions to ensure they are processed correctly.
The extension contributes the following commands:
aelf-contract-build.build: Build aelf smart contract...aelf-contract-build.test: Test aelf smart contract...aelf-contract-build.deploy: Deploy aelf smart contract...aelf-contract-build.deployFromLocal: Deploy aelf smart contract from a local DLL...aelf-contract-build.faucet: Get testnet tokens from faucet...aelf-contract-build.checkStatus: Check status of transaction...aelf-contract-build.audit: Audit aelf smart contract...
Tip
Click the aelf icon in the status bar to open a custom menu with various actions.
- Build Smart Contract: Run the
aelf-contract-build.buildcommand. - Test Smart Contract: Use the
aelf-contract-build.testcommand to run tests on your smart contract. - Deploy Smart Contract: Deploy your smart contract using the
aelf-contract-build.deployoraelf-contract-build.deployFromLocalcommands. - Get Testnet Tokens: Use the
aelf-contract-build.faucetcommand to get testnet tokens. - Check Transaction Status: Use the
aelf-contract-build.checkStatuscommand to check the status of your most recently deployed contract. - Audit Smart Contract: Run the
aelf-contract-build.auditcommand to audit your smart contract.
To install the extension, follow these steps:
- Open VSCode.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
- Search for
aelf-contract-build. - Click Install.