Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@starport/vuex

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@starport/vuex - npm Package Compare versions

Comparing version 0.1.57-beta.0 to 0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0

rollup.config.js

27

package.json
{
"name": "@starport/vuex",
"version": "0.1.57-beta.0+87e4e8c",
"version": "0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0+c20ca86",
"description": "A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends",

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

],
"main": "lib/index.js",
"main": "src/index.js",
"publishConfig": {

@@ -20,5 +20,4 @@ "access": "public"

"scripts": {
"build": "babel src --out-dir lib --source-maps",
"lint": "eslint 'src/**/*.js'",
"test": "echo \"Error: run tests from root\" && exit 1"
"build": "rollup -c",
"dev": "rollup -c -w"
},

@@ -34,18 +33,14 @@ "dependencies": {

"@cosmjs/utils": "^0.26.1",
"@starport/client-js": "^0.1.57-beta.0+87e4e8c",
"axios": "^0.22.0",
"bs58": "^4.0.1",
"crypto-js": "^4.1.1"
"buffer": "^6.0.3",
"crypto-js": "^4.1.1",
"events": "^3.3.0",
"reconnecting-websocket": "^4.4.0"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1",
"prettier": "^2.4.1"
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-typescript": "^8.3.0"
},
"gitHead": "87e4e8c335f92f81cd0edb8eb52cad610c6d5ca7"
"gitHead": "c20ca865562bfe682645ad7181badf77a68db8d3"
}
# `@starport/vuex`
A collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.
A collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.

@@ -19,4 +19,4 @@ ## Install

```js
// import modules
import { env, starport, blocks, wallet,transfers } from '@starport/vuex'
// import modules
import { env, starport, blocks, wallet, transfers } from '@starport/vuex'

@@ -39,14 +39,14 @@ // init modules you need

const store = createStore({
const store = createStore({
state() {
return {}
},
},
mutations: {},
actions: {}
});
})
// init @starport/vuex
init(store);
init(store)
export default store;
export default store
```

@@ -78,3 +78,3 @@

### env
### env

@@ -109,3 +109,3 @@ Registered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).

```js
await this.$store.getters["common/blocks/getBlocks"](10)
await this.$store.getters['common/blocks/getBlocks'](10)
```

@@ -116,3 +116,3 @@

```js
await this.$store.getters["common/blocks/getBlocks"](15)
await this.$store.getters['common/blocks/getBlocks'](15)
```

@@ -136,3 +136,3 @@

So if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:
So if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:

@@ -142,4 +142,5 @@ ```js

subscribe: true,
event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'
});
event:
'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'
})
```

@@ -151,3 +152,4 @@

this.$store.getters['common/transfers/getGetTxsEvent']({
event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'
event:
'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'
})

@@ -172,3 +174,3 @@ ```

prefix: "cosmos", // Address prfix for this chain
password: "password"
password: "password"
}

@@ -187,5 +189,5 @@ ```

await this.$store.dispatch('common/wallet/unlockWallet', {
name: "My Wallet",
password: "password"
});
name: 'My Wallet',
password: 'password'
})
```

@@ -196,3 +198,3 @@

```js
const loggedInStatus = this.$store.getters['common/wallet/loggedIn'];
const loggedInStatus = this.$store.getters['common/wallet/loggedIn']
```

@@ -203,4 +205,4 @@

```js
await this.$store.dispatch('common/wallet/signOut');
```
await this.$store.dispatch('common/wallet/signOut')
```

@@ -210,3 +212,3 @@ Adding next available account to the current wallet:

```js
await this.$store.dispatch('common/wallet/addAccount');
await this.$store.dispatch('common/wallet/addAccount')
```

@@ -217,3 +219,3 @@

```js
await this.$store.dispatch('common/wallet/addAccount', 3);
await this.$store.dispatch('common/wallet/addAccount', 3)
```

@@ -226,3 +228,6 @@

```js
await this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');
await this.$store.dispatch(
'common/wallet/switchAccount',
'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'
)
```

@@ -233,3 +238,3 @@

```js
const walletName = this.$store.getters['common/wallet/walletName'];
const walletName = this.$store.getters['common/wallet/walletName']
```

@@ -240,3 +245,3 @@

```js
const lastWallet = this.$store.getters['common/wallet/lastWallet'];
const lastWallet = this.$store.getters['common/wallet/lastWallet']
```

@@ -247,3 +252,3 @@

```js
const wallet = this.$store.getters['common/wallet/wallet'];
const wallet = this.$store.getters['common/wallet/wallet']
```

@@ -254,3 +259,3 @@

```js
const address = this.$store.getters['common/wallet/address'];
const address = this.$store.getters['common/wallet/address']
```

@@ -261,3 +266,4 @@

```js
const isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);
const isAvailable =
this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)
```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc