Socket
Socket
Sign inDemoInstall

@haloplatform/vuex-web3-sync

Package Overview
Dependencies
60
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @haloplatform/vuex-web3-sync

Web3 Vuex synchronization module


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

npm scoped

vuex-web3-sync

Vuex module to sync with web3

install:

npm i @haloplatform/vuex-web3-sync --save

Usage:

requires Babel-Polyfill if you don't have it install it via: https://babeljs.io/docs/usage/polyfill

import store from './vuex/store'
import web3Sync from '@haloplatform/vuex-web3-sync'

web3Sync(store, 'webThree')
// second parameter is module name, 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

FAQs

Last updated on 18 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc