tx-state-manager
txMeta and staus mangament for metamask
Last updated 9 months ago by frankiebee .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tx-state-manager 
SYNC missed versions from official npm registry.

transaction-state-manager

Metamask txMeta status/state management

npm i tx-state-manager

const TxStateManager = require('tx-state-manager')
const txStateManager = new TxStateManager({
  initState: {
    transactions: [],
  },
  txHistoryLimit: 40,
  getNetwork: () => currentNetworkId,
})
const tx = txStateManager.generateTxMeta(extraCustomKeys)
txStateManager.addTx(tx)
txStateManager.subscribe(tx.id)
txStateManager.setTxStatusApproved(tx.id)

api docs!

Current Tags

  • 1.0.1                                ...           latest (9 months ago)

4 Versions

  • 1.0.1                                ...           9 months ago
  • 2.0.2                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 4
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |