@midnight-ntwrk/dapp-connector-api
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Midnight DApp Connector API

Definition of the Midnight DApp Connector interface.

Structure

This package declares a set of TypeScript interfaces. All of them can be found in src/ directory:

  • api.ts - To the interface that's exposed to dapps
  • errors.ts - Errors thrown from the exposed api

Documentation

To generate documentation files in docs folder:

yarn build:docs

Global Variables Exposure

This package declares a global variable in the window.midnight.mnLace scope.

The package needs to be imported in the project or the (typeRoots)[https://www.typescriptlang.org/tsconfig#typeRoots] needs to be configured to load the global variable declaration.

Readme

Keywords

none

Package Sidebar

Install

npm i @midnight-ntwrk/dapp-connector-api

Weekly Downloads

13

Version

1.1.0

License

Apache-2.0

Unpacked Size

9.49 kB

Total Files

13

Last publish

Collaborators

  • ntwrk-bot