JSPM

  • Created
  • Published
  • Downloads 1748
  • Score
    100M100P100Q128955F
  • License LGPL-3.0

A library implements VeChain Connex interface

Package Exports

  • @vechain/connex-framework

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

Readme

Connex Framework

npm version

Connex Framework is a library implements Connex interface. It helps various wallet instances offer consistent Connex interface to VeChain DApps.

Installation

npm i @vechain/connex-framework

Usage

To create framework instance, DriverInterface needs to be implemented

import { Framework } from '@vechain/connex-framework'
import { DriverInterface } from '@vechain/connex-framework/dist/driver-interface'

class MyDriver implements DriverInterface {
    // implementations
}

const driver = new MyDriver()

// it's suggested in development mode, which is helpful to diagnose driver implementation.
// const framework = new Framework(Framework.guardDriver(driver))

const framework = new Framework(driver)

// here `framework` is the ready-to-use Connex instance object