Ink SmartContract Deploy - TrackingChains/TrackingChain GitHub Wiki

Ink SmartContract

Once the smart contract has been filled in via cargo, 3 files will be available.

  • tracking_chain.contract (code + metadata)
  • tracking_chain.wasm (the contract's code)
  • tracking_chain.json (the contract's metadata)

For simplicity, deploy using https://contracts-ui.substrate.io/

SmartContract_01_Deploy

At the top left select the desired chain (in our example Rococo). And click on "upload new contract"

SmartContract_02_Deploy

Select the account that will deploy (tokens are needed for the transaction) and then select the file tracking_chain.contract

SmartContract_03_Deploy

Click on Next to continue

SmartContract_04_Deploy

Still on Next

SmartContract_05_Deploy

Upload and instance

SmartContract_06_Deploy

Sign the transaction to proceed with the deployment