Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
/ ethane Public archive

📜 Convenient Ethereum smart contract library for Javascript.

License

Notifications You must be signed in to change notification settings

montyanderson/ethane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethane

📜 Convenient Ethereum smart contract library for Javascript.

Usage

Include the library.

const ethane = require("ethane");

Set the web3 provider

ethane.provider = web3.currentProvider;

Add your contract

const Account = ethane.contract(
	abi: /* contract abi */,
	bin: /* contract binary */
);

Create an instance to interface with a live contract

const account = Account.at("0x4780e332579dd6c885fbd66ae8166b103b016ef7");

or

Create a new instance of your contract altogether

const account = await Account.new();

Run a method!

Ethane automatically uses call for constant functions and sendTransaction otherwise.

console.log(await account.getName());
Monty

About

📜 Convenient Ethereum smart contract library for Javascript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published