0.0.8 • Published 2 years ago

@hamsterbox/sdk v0.0.8

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

Description

Cavies Lab HamsterBox Library.

Installation

$ yarn add @hamsterbox/sdk

Documentation

Examples

Usages

There is three main flow usage of SDK

  1. Login flow
import {
  init,
  closeModal,
  openModal,
  Adapters,
  Providers,
  Router
} from "@hamsterbox/sdk"

await init({
  networkType:
    Providers.NetworkType.testnet ||
    Providers.NetworkType.mainnet,
  audience: "http://localhost:3000",
  disableCloseButton: true,
  disableCloseButton: false,
  cleanWalletCache: true,
  onClose: () => {
    // do somthing
  },
  onAuth: (payload) => {
    console.log({ payload });
  },
  onConnected: (payload) => {
    console.log({payload});
  },
}).then(() => {
  openModal();
});

Notes

This library is still in beta development. Significant changes may happen anytime.

Contact

If you have any inquiries please send emails to dev@cavies.xyz.

License

Copyright (c) 2022 CaviesLabs.

Licensed under the GPL-3.0

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago