1.0.2 ā€¢ Published 5 years ago

vuex-web3 v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

This web3 to a vuex state

šŸ  Homepage

Install

npm install vuex-web3 --save

Usage

import store from './vuex/store'
import registerWeb3 from 'vuex-web3'

registerWeb3(store, 'w3') 
// second parameter is module name is optional

Exposed Getters:

address - need description
coinbase - String ETH Address Hex
instance - Function<Web3> Function that returns web3 instance
isInjected - Boolean True if web3 is injected
networkId - String Network ID
isLocal - Boolean True if web3 instance is connected to local node
balance - String Wallet balance
isApprovedNetwork - Boolean True if network is approved
networkName - String Network Name
filter - same as web3.eth.filter
reset - same as web3.reset
sha3 - same as web3.sha3
contract - same as web3.eth.contract
isConnected - same as web3.isConnected

Run tests

npm run test

Author

šŸ‘¤ JC Bombardelli

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!


This Project was created with ā¤ļø by JC Bombardelli and powered by readme-md-generator

1.0.2

5 years ago

1.0.1

5 years ago

0.0.2

5 years ago

1.0.0

5 years ago