Skip to content

SafeMarket/web3-q

 
 

Repository files navigation

web3-q

npm install --save-dev web3-q

Web3-Q is not meant for production, but for unit testing purposes (see chaithereum). Ironically, it does not contain unit tests beyond what exists in the Web3 repo.

Version numbers are set to match those of the canonical web3 repo as closely as possible. Due to npm restrictions, patches may not match up exactly. If this repo falls behind that web3, please leave an issue and I will manually update.

Additional Functions

web3.eth.method.q(...).then(...)
ContractFactory.new.q(...).then(...)
contract.method.q(...).then(...)
contract.method.estimateGas.q(...).then(...)
contract.filter(...).q(...).then(...)

Examples

web3.eth.getBalance.q('0x...').then((balance) => {...})
MyContractFactory.new.q({ data: ... }).then((MyContract) => {...})
MyContract.owner.q().then((_owner) => {...})
MyContract.setOwner.estimateGas.q('0x...').then((gas) => {...})
MyContract.OwnerChanges(...).q(...).then((results) => {...})

About

Promisified Ethereum Compatible JavaScript API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.1%
  • HTML 5.9%