Supports the compilation, deployment, and testing of Aptos smart contracts, boosting development productivity in GitHub Codespaces. Enables unified management of frontend and backend development within a single repository.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
The Aptos extension provides seamless support for compiling, deploying, and testing Aptos smart contracts directly within VS Code. It enhances development productivity, especially when using GitHub Codespaces, by enabling unified management of front-end and back-end development within a single repository.
Features
Compile Aptos Smart Contracts: Easily compile your Aptos smart contracts from within VS Code.
Deploy and Test: Deploy and test your smart contracts using the keyless-generated wallet, all from within the extension.
GitHub Codespaces Integration: Increase the efficiency of your development workflow with full support for GitHub Codespaces.
Unified Development: Manage both front-end and back-end code in a single repository for streamlined development.
Upgrade Smart Contracts: Seamlessly upgrade and test your smart contracts.
Wallet: This section of the interface is used to manage wallets. You can create a wallet using Aptos’s keyless account. After selecting a network, click the Google Login button to create a wallet. Please note that wallets created using keyless account will require re-authentication after a specific period. The currently supported networks are Devnet and Testnet.
Workspace: This section of the interface allows you to compile, test, prove, and deploy Smart Contracts. If you have multiple smart contracts in your repository, you can select the specific smart contract (Move.toml) and proceed with compilation or deployment. Additionally, you can choose from the latest Aptos Move features such as the formatter and Move 2.0 for enhanced functionality.
Package Explorer: This section of the user interface allows you to test smart contracts. When you deploy a Smart Contract, it is automatically registered here. You can also manually enter the address of a previously deployed Smart Contract to register it. If the smart contract is loaded correctly, you will see a list of functions available to interact with the contract.
Output: In this section, you can view the transaction execution data in raw format. Please select Aptos Extension in the Task.
Requirements
Aptos CLI: Install the Aptos command-line interface to interact with the Aptos blockchain.
Note: If you are using GitHub Codespaces, please install Homebrew from https://brew.sh first to manage and install the Aptos CLI.
Keyless Account: Set up keyless account to generate wallets for contract deployment and testing. A Google account is required.