Socket
Socket
Sign inDemoInstall

@starport/vuex

Package Overview
Dependencies
180
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.2 to 0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0

4

package.json
{
"name": "@starport/vuex",
"version": "0.3.2",
"version": "0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0+832a377",
"description": "A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends",

@@ -31,3 +31,3 @@ "author": "Tendermint, Inc <hello@tendermint.com>",

},
"gitHead": "c5a2206e1dc0bb6f4180cf97062e912afddd01bd"
"gitHead": "832a377b244b2f8e361055f6eb00346a7379ad03"
}

@@ -1,8 +0,5 @@

import SpVuexError from './errors/SpVuexError'
import { keyFromWif, keyToWif } from './helpers/keys'
import blocks from './modules/common/blocks'
import env from './modules/common/env'
import transfers from './modules/common/transfers'
import wallet from './modules/common/wallet'
export { blocks, env, keyFromWif, keyToWif, SpVuexError, transfers, wallet }
export { blocks, env, wallet }

@@ -9,0 +6,0 @@ import { Buffer } from 'buffer'

@@ -5,4 +5,2 @@ import { sha256 } from '@cosmjs/crypto'

import SpVuexError from '../../../errors/SpVuexError'
function formatTx({

@@ -156,6 +154,4 @@ txHash = '',

} catch (e) {
console.log(e)
throw new SpVuexError(
'Blocks:AddBlock',
'Could not retrieve block. RPC node unavailable'
throw new Error(
'Blocks:AddBlock Could not retrieve block. RPC node unavailable'
)

@@ -193,5 +189,4 @@ }

} catch (e) {
throw new SpVuexError(
'Blocks:AddBlock',
'Could not add block. RPC node unavailable'
throw new Error(
'Blocks:AddBlock Could not add block. RPC node unavailable'
)

@@ -198,0 +193,0 @@ }

import Client from '../../../client/SPClient'
import SpVuexError from '../../../errors/SpVuexError'

@@ -119,3 +118,3 @@ const apiNode =

} catch (e) {
throw new SpVuexError('Env:Config', 'Could not configure environment')
throw new Error('Env:Config Could not configure environment')
}

@@ -143,5 +142,5 @@ },

} catch (e) {
throw new SpVuexError(
'Env:Client:Wallet',
'Could not create signing client with signer: ' + signer
throw new Error(
'Env:Client:Wallet Could not create signing client with signer: ' +
signer
)

@@ -236,5 +235,5 @@ }

} catch (e) {
throw new SpVuexError(
'Env:Client:Websocket',
'Could not switch to websocket node:' + config.wsNode
throw new Error(
'Env:Client:Websocket Could not switch to websocket node:' +
config.wsNode
)

@@ -250,5 +249,5 @@ }

} catch (e) {
throw new SpVuexError(
'Env:Client:TendermintRPC',
'Could not switch to Tendermint RPC node:' + config.rpcNode
throw new Error(
'Env:Client:TendermintRPC Could not switch to Tendermint RPC node:' +
config.rpcNode
)

@@ -255,0 +254,0 @@ }

import CryptoJS from 'crypto-js'
import { keyToWif } from '../../../helpers/keys'
export default {

@@ -22,3 +20,2 @@ namespaced: true,

address: (state) => state.selectedAddress,
getMnemonic: (state) => state.activeWallet.mnemonic,
getPath: (state) =>

@@ -46,11 +43,2 @@ state.activeWallet?.HDpath +

}
},
walletName: (state) =>
state.activeWallet ? state.activeWallet.name : null,
privKey: (state) => {
if (state.activeClient) {
return keyToWif(state.activeClient.signer.privkey)
} else {
return null
}
}

@@ -57,0 +45,0 @@ },

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