Milestone: Linking SmartHome Truffle Project in Ganache

This post documents a key milestone in our Smart-Home Ethereum project: successfully linking the SmartHome Truffle project to the Ganache workspace.

Ganache Workspace Setup

We used Ganache to create a local Ethereum blockchain for testing:

  • Workspace Name: SMART-HOME-TEST
  • Network ID: 5777
  • RPC Server: http://127.0.0.1:7545
  • Mining Status: AUTOMINING

Linking Truffle Project

The project folder containing truffle-config.js was linked to the Ganache workspace. This allows Ganache to track deployed contracts, transactions, events, and contract state.

Truffle Project Linked in Ganache

Screenshot: Truffle project linked in Ganache

Next Steps

After linking, we can:

  1. Deploy the SmartHome contract using truffle migrate --network development.
  2. Observe deployed contracts, transactions, and events directly in Ganache.
  3. Use the Truffle console to interact with the SmartHome contract:
  4. truffle console --network development
    let instance = await SmartHome.deployed()
    await instance.getStatus()
    await instance.setStatus(true)
      

Comments

Popular posts from this blog

From DSRC to 5G NR-V2X: The Road Ahead for Connected Vehicles

CTE 311: ENGINEER IN SOCIETY: CURRICULUM (20/21 SESSION)

🔹 Is Qualitative Data Always Primary Data?