This repo contains some basic scripts so that you can get started with Madara. The scripts have been tested on the following commit.
You will need Node.js to use these scripts. These scripts were tested on Node version v20.5.1
git clone https://github.com/karnotxyz/madara-get-started
npm i
-
Declaring a contract:
node scripts/declare.js <path_to_sierra> <path_to_casm>
For example,
node scripts/declare.js ./contracts/OpenZeppelinAccountCairoOne.sierra.json ./contracts/OpenZeppelinAccountCairoOne.casm.json
-
Deploying a contract
node scripts/deploy.js <path_to_sierra> <constructor_args>
For example,
node scripts/deploy.js ./contracts/OpenZeppelinAccountCairoOne.sierra.json 0x1
-
Getting a transaction receipt
node scripts/get_transaction.js <txn_hash>