Skip to content

Latest commit

 

History

History

5_deployment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

5. Deployment and interaction

Once our smart contract is built and tested, it is time to deploy it and interact with it.

nile

nile offers several commands to help during contracts deployments:

  • nile node to run a local node using starknet-devnet
  • nile deploy contract --alias my_contract to deploy a smart contract
  • nile setup <private_key_alias> to deploy an account
  • nile send <private_key_alias> <contract_identifier> <method> [PARAM_1, PARAM2...] to interact with a deployed contract using a given account
  • nile [call|invoke] <contract_identifier> <method> [PARAM_1, PARAM2...] to perform read/write operations on a contract

However, if we compare the CLI of nile with the built-in starknet CLI, we can observe there are not a lot of differences. The main added value is the support of the localhost network.

✔️ several useful commands to deploy and interact with a contract
✔️ support of a local node using starknet-devnet

protostar

protostar offers the possibility to deploy a smart contract once it has been compiled. The interface is similar to the starknet-deploy API:

protostar deploy ./build/main.json --network alpha-goerli

However, there is local devnet support.

✔️ support of contract deployment
❌ lack of local devnet

Conclusion

nile protostar
✔️ several useful commands to deploy and interact with a contract ✔️ support of contract deployment
✔️ support of a local node using starknet-devnet ❌ lack of local devnet