Socket
Book a DemoInstallSign in
Socket

@pier-wallet/lib

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pier-wallet/lib

pier sdk

0.32.0
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

lib

Installation

npm i @pier-wallet/lib

or

yarn add @pier-wallet/lib

Development

To create

npm version prerelease --preid=debug
npm version patch
npm version minor
npm version major

Read about semantic versioning

Usage

import { HarmonyClient, ... } from "@pier-wallet/lib"

Advanced

Build the package to the dist folder by running the following command.

npm run build

Publish the dist folder to the NPM repository.

Exports

  • HarmonyClient.
  • MerkleBytes.
  • MerkleHex.
  • RelayerClient.
  • SmartVault.
  • Totp.
  • Utils.
  • Wallet

Modules

Relayer - should make API calls to relayer server. Blockchain - should handle all the blockchain communications. Smartwallet - should handle creation and management of a smart wallet.

On Relayer Update

Make sure we have the latest version of the relayer --> update package.json Make sure to fix all breaking changes

Due to how webpack resolves modules, npm-linking this library the normal way (npm link @pier-wallet/lib) will not work.

To circumvent this, you can define the destination of the build of this library in a .env file:

# .env
CONSUMER_PROJECT_PATH=/path/to/your/consumer/project

After that, start watching for changes:

... now you can make build this library and see the changes in the consumer project immediately.

FAQs

Package last updated on 16 May 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.