0.5.8 • Published 4 years ago

@meterio/flex-framework v0.5.8

Weekly downloads
16
License
LGPL-3.0
Repository
github
Last release
4 years ago

Flex Framework

npm version

Flex Framework is a library implements Flex interface. It helps various wallet instances offer consistent Flex interface to Meter Dapps.

Installation

npm i @meterio/flex-framework

Usage

To create framework instance, Flex.Driver needs to be implemented

import { Framework } from '@meterio/flex-framework';
import '@meterio/flex.driver';

class MyDriver implements Flex.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 Flex instance object

See also

Flex playground

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.2

4 years ago

0.4.13

4 years ago

0.4.12

4 years ago

0.4.11

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.2

5 years ago