1.46.3 • Published 3 months ago

@soramitsu/soraneo-wallet-web v1.46.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 months ago

sora2-wallet-web

How to use

You should set vuex storage and endpoint to blockchain url when using it as a vue plugin:

import Vue from 'vue'
import Wallet, { connection } from '@soramitsu/soraneo-wallet-web'

import store from '@/store'
import * as env from '../../public/env.json'

connection.endpoint = env.BLOCKCHAIN_URL
Vue.use(Wallet, { store })

You can also use storage instance to interact with wallet data:

import { storage } from '@soramitsu/soraneo-wallet-web'

If you want to change some default wallet permissions, pass related object to initWallet function. Here is example with default permissions:

const permissions = {
    sendAssets: true, // enable 'send' button in assets list
    swapAssets: true, // enable 'swap' button in assets list
}

initWallet({ permissions })

Also, you need to unsubscribe from events of balances updates and txs statuses sync when Vue root component will be destroyed.

import { Action } from 'vuex-class'

@Action resetActiveTransactions
@Action resetAccountAssetsSubscription
@Action resetRuntimeVersionSubscription
@Action resetFiatPriceAndApySubscription

beforeDestroy (): void {
    this.resetActiveTransactions()
    this.resetAccountAssetsSubscription()
    this.resetRuntimeVersionSubscription()
    this.resetFiatPriceAndApySubscription()
}

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Run your unit tests

yarn test:unit

Run your end-to-end tests

yarn test:e2e

Lints and fixes files

yarn lint

Desktop

To run desktop version in the browser window, please change isElectron flag in src/store/settings/state.ts

Customize configuration

See Configuration Reference.

1.44.7-analog.0

6 months ago

1.44.7-analog.1

6 months ago

1.46.0

3 months ago

1.44.2

8 months ago

1.44.1

9 months ago

1.46.2

3 months ago

1.46.1

3 months ago

1.44.3

8 months ago

1.44.6

8 months ago

1.46.3

3 months ago

1.44.5

8 months ago

1.44.7

8 months ago

1.45.0-mst

4 months ago

1.43.0-betaMST

9 months ago

1.43.5

9 months ago

1.43.2-beta-1

9 months ago

1.43.3

9 months ago

1.43.4

9 months ago

1.43.2

9 months ago

1.43.1

10 months ago

1.43.0

10 months ago

1.41.1

10 months ago

1.41.0-beta-1

10 months ago

1.41.0

10 months ago

1.40.4

10 months ago

1.40.6

10 months ago

1.40.16-beta-1

10 months ago

1.40.5

10 months ago

1.40.8

10 months ago

1.40.13-beta-1

10 months ago

1.40.7

10 months ago

1.40.14

10 months ago

1.40.15

10 months ago

1.40.9

10 months ago

1.40.16

10 months ago

1.40.10

10 months ago

1.40.11

10 months ago

1.40.12

10 months ago

1.40.13

10 months ago

1.40.16-beta-2

10 months ago

1.41.0-beta.0

10 months ago

1.40.3

10 months ago

1.40.2

10 months ago

1.40.1

11 months ago

1.40.0-beta-2

11 months ago

1.40.0-beta-1

11 months ago

1.40.0

11 months ago

1.39.10-beta-6

11 months ago

1.39.12

11 months ago