tuft_ts
v2.1.5
Published
A Truffle-like tool for managing TypeScript smart contracts on Omne
Downloads
30
Readme
Tuft
A Truffle-like tool for managing TypeScript smart contracts on Omne.
Installation
Prerequisites
Make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
Installing Tuft
npm install tuft
Configuration
Set the following environment variables in your system or in a .env file:
BLOCKCHAIN_URL=http://localhost:5000
DEPLOYER_ADDRESS=0xYourAddress
Usage
Compile a Contract
npx tuft compile example_contract
Deploy a Contract
npx tuft deploy example_contract
Execute a Contract
npx tuft execute --contract_id <contract_id> --function_name <function_name> --args <arg1> <arg2>
Running Tests
npm test