JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 88
  • Score
    100M100P100Q83039F
  • License Apache-2.0

Typescript Utilities for Provenance Blockchain Wallet

Package Exports

  • @provenanceio/wallet-utils
  • @provenanceio/wallet-utils/esm/index.js
  • @provenanceio/wallet-utils/esm/proto/cosmos/base/v1beta1/coin_pb
  • @provenanceio/wallet-utils/esm/proto/cosmos/base/v1beta1/coin_pb.js
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/accessgrant_pb
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/accessgrant_pb.js
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/marker_pb
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/marker_pb.js
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/tx_pb
  • @provenanceio/wallet-utils/esm/proto/provenance/marker/v1/tx_pb.js
  • @provenanceio/wallet-utils/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@provenanceio/wallet-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Provenance Blockchain Foundation - Wallet Utils

Typescript Utilities for Provenance Blockchain Wallet

Status

Latest Release Apache 2.0 License LOC Commitizen friendly

Use

Import the dependency

npm install @provenanceio/wallet-utils --save

The package json import will look like this: "@provenanceio/wallet-utils": "^0.2.0"

Below is a quick example of how to use the utils to prepare a message:

import { buildMessage, createAnyMessageBase64 } from "@provenanceio/wallet-utils";

const type = 'MsgDelegate';
const sendMessage = {
    delegatorAddress,
    validatorAddress,
    amount: { denom: 'nhash', amount: sendAmountNHash },
  };
  const messageMsgSend = buildMessage(type, sendMessage);
  const message = createAnyMessageBase64(type, messageMsgSend as Message);

System Requirements

  • node >= 16.14 (LTS)
  • npm >= 8.0 (included with node 16)

    It's recommended to use n (GitHub) or nvm (GitHub) to manage your local node/npm versions

Contributing

Read the contributing guide to learn about our development process, how to submit bugfixes and improvements, and how to build and test your changes.