JSPM

@walletconnect/utils

1.0.0-beta.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1093356
  • Score
    100M100P100Q195043F
  • License LGPL-3.0

Utility Library for WalletConnect

Package Exports

  • @walletconnect/utils

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 (@walletconnect/utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

WalletConnect Utils

Utility Library for WalletConnect

API

// ArrayBuffer
function convertArrayBufferToBuffer (arrayBuffer: ArrayBuffer): Buffer
function convertArrayBufferToUtf8 (arrayBuffer: ArrayBuffer): string
function convertArrayBufferToHex (arrayBuffer: ArrayBuffer): string
function concatArrayBuffers (...args: ArrayBuffer[]): ArrayBuffer

// Buffer
function convertBufferToArrayBuffer (buffer: Buffer): ArrayBuffer
function convertBufferToUtf8 (buffer: Buffer): string
function convertBufferToHex (buffer: Buffer): string
function concatBuffers (...args: Buffer[]): Buffer

// Utf-8
function convertUtf8ToArrayBuffer (utf8: string): ArrayBuffer
function convertUtf8ToBuffer (utf8: string): Buffer

// Hex
function convertHexToBuffer (hex: string): Buffer
function convertHexToArrayBuffer (hex: string): ArrayBuffer

// Misc
function payloadId (): number
function uuid (): string
function getMeta (): IClientMeta | null
function parseWalletConnectUri (str: string): IParseURIResult