New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@soramitsu/soraneo-wallet-web

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soramitsu/soraneo-wallet-web

## How to use

  • 1.44.7-analog.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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.

FAQs

Package last updated on 09 Feb 2025

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc