A Vscode plugin for Starknet Developers Community in which smart contract developers can perform the following features:
- Create account
- Deploy account
- Compile cairo smart contracts
- Declare cairo smart contracts
- Deploy cairo smart contracts
- Interaction with cairo smart contracts
-
activate starkex extension:
- A new folder with the title
starkex
generate in the current working directory to store contract logs.
- A new folder with the title
-
Select starknet network:
- Currently, the extension only supports
goerli-alpha
network. (only selectgoerli-alpha
network for contract execution).
- Currently, the extension only supports
-
Create starkex new account:
- Creates new undeployed account for contract interaction.
- It uses openzeppelin account standards.
-
Select starkex undeployed account:
- Selected undeployed account for deployment.
-
Deploy starkex new account:
- Deploy selected undeployed account on-chain.
-
Select starkex account:
- Select an on-chain deployed account for contract interaction.
- on-chain deployed accounts are used for contract interaction.
-
Select cairo contract:
- Select compiled cairo contract.
- The .json file should be present in root directory of the project.
- After selecting the contact a folder containing two files will be generated in starkex folder.
starkex/fileName/fileName_address.json
stores the address and classHash info of the cairo contract.starkex/fileName/fileName_abi.json
contains abi of selected Cairo contract for contract interaction.
-
Declare cairo contract:
- Declare selected cairo contract on-chain. (Note: before declaring and deploying the contract, the classHash of the selected contract must be present in the
starkex/fileName/fileName_address.json.
classHash field.
- Declare selected cairo contract on-chain. (Note: before declaring and deploying the contract, the classHash of the selected contract must be present in the
-
Deploy cairo contract:
- Deploy selected cairo contract on-chain.
- paste deployed contract address into file
starkex/fileName/fileName_address.json.
address field.
-
Call contact method:
-
Call contract methods present in cairo contract.
-
The view type function can be called by just selecting the contract.
-
other functions can be called by entering values in the JSON file.
starkex/fileName/fileName_abi.json
-