Skip to content
Library implements Connex interface
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore init & scratch Jun 9, 2019
.npmignore
LICENSE
README.md
package-lock.json
package.json upgrade thor-devkit; ver 1.1.1 Sep 12, 2019
tsconfig.json extract driver interface Jul 31, 2019
tslint.json

README.md

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, Connex.Driver needs to be implemented

import { Framework } from '@vechain/connex-framework'
import '@vechain/connex.driver'

class MyDriver implements Connex.Driver {
    // 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

See also

Driver implementations:

Connex playground

You can’t perform that action at this time.