8000 GitHub - 7finney/starkode at v0.0.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

7finney/starkode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarkEx

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

Starkex usage instruction

Account Creation

account-creation

Contract Deployment & Interaction

contract-deploy-and-interaction

  1. activate starkex extension:

    • A new folder with the title starkex generate in the current working directory to store contract logs.
  2. Select starknet network:

    • Currently, the extension only supports goerli-alpha network. (only select goerli-alpha network for contract execution).
  3. Create starkex new account:

    • Creates new undeployed account for contract interaction.
    • It uses openzeppelin account standards.
  4. Select starkex undeployed account:

    • Selected undeployed account for deployment.
  5. Deploy starkex new account:

    • Deploy selected undeployed account on-chain.
  6. Select starkex account:

    • Select an on-chain deployed account for contract interaction.
    • on-chain deployed accounts are used for contract interaction.
  7. 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.
  8. 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.
  9. Deploy cairo contract:

    • Deploy selected cairo contract on-chain.
    • paste deployed contract address into file starkex/fileName/fileName_address.json. address field.
  10. 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

About

Starknet extension for vscode 🔌

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0