software-mansion / protostar

Protostar is a toolchain for developing and testing Starknet contracts
https://docs.swmansion.com/protostar/
MIT License
250 stars 48 forks source link

[CLI] `--json` output #2153

Closed war-in closed 1 year ago

war-in commented 1 year ago

Closes #2146

Checklist

Declare

--json

{
  "class_hash": "0x8448a68b5ea1affc45e3fd4b8b480ea36a51dc34e337a16d2567d32d0c6f8a",
  "command": "Declare",
  "transaction_hash": "0x41753d391e9b238a608a3866f22191a6a956cb42fb4e3857f0af9197a0d3b82"
}

--int-format

command: Declare
class_hash: 233725228316200119834039379114988415372286690470331219113395524995289739146
transaction_hash: 1850467425684918101618529434157632339580094806406252409582129610526565415810

Deploy

--json

{
  "command": "Deploy",
  "contract_address": "0x1ceadaa5f34ace657469c74c1eacc02295faec59dc58f814538fd626cbee1db",
  "transaction_hash": "0x6ee128bd8db9361cdfbf245e92660663d2f7a44093d0593fb13ca58c39fe013"
}

--int-format --json

{
  "command": "Deploy",
  "contract_address": "817481939262878850386591849661418498787336656885023715447744806500308017627",
  "transaction_hash": "3134514694621465973511654855236921494481584513720403914416829849016788312083"
}