/metaport

Metaport is simple JS/TS IMA widget

Primary LanguageTypeScriptGNU Lesser General Public License v3.0LGPL-3.0

SKALE Metaport Widget

Discord GitHub Workflow Status npm NPM GitHub top language

Metaport is a Typescript/Javascript widget that could be embeded into a web application to add IMA functionality to any SKALE dApp.

Documentation

See https://docs.skale.network/metaport/1.1.x/

Development

Storybook preview

bash prepare_meta.sh && bun install && bun build:lib
bun dev

Debug mode

To enable debug mode, set debug environment variable to true:

const metaport = new Metaport({
    ...
    debug: false // Enable debug mode (optional, default = false)
    ...
});

Additionally, you can enable debug logs in developer console by enabling Verbose level of logs.

Linter git hook

Be sure to add pre-commit git hook:

echo 'bun lint' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

Security and Liability

The Metaport UI and code is WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

License

GitHub

All contributions are made under the GNU Lesser General Public License v3. See LICENSE.