Skip to content

Chainink consumer contract to connect to a Tesla Vehicle

License

Notifications You must be signed in to change notification settings

pappas999/Tesla-Consumer

Repository files navigation

Tesla Consumer Contract

Demonstrating how to connect a Smart Contract to a Tesla Vehicle

Requirements

  • NPM

Installation

npm install

Or

yarn install

Deploy

If needed, edit the truffle-config.js config file to set the desired network to a different port. It assumes any network is running the RPC port on 8545.

npm run migrate:dev

For deploying to live networks, Truffle will use truffle-hdwallet-provider for your mnemonic and an RPC URL. Set your environment variables $RPC_URL and $MNEMONIC before running:

npm run migrate:live

Run

Once deployed, the unlockVehicle function can be called, passing in a vehicleId

About

Chainink consumer contract to connect to a Tesla Vehicle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages