Skip to content

authenticator meant to be used with Wombat and Universal Authenticator Library

License

Notifications You must be signed in to change notification settings

wombat-tech/wombat-ual

 
 

Repository files navigation

UAL for Wombat Authenticator

This authenticator is meant to be used with Wombat and Universal Authenticator Library. When used in combination with them, it gives developers the ability to request transaction signatures through Wombat using the common UAL API.

Getting Started

npm install wombat-ual --save

Dependencies

You must use one of the UAL renderers below.

React - ual-reactjs-renderer

PlainJS - ual-plainjs-renderer

Basic Usage with React

import { Wombat } from 'wombat-ual'
import { UALProvider, withUAL } from 'ual-reactjs-renderer'

const exampleNet = {
  chainId: '',
  rpcEndpoints: [{
    protocol: '',
    host: '',
    port: '',
  }]
}

const App = (props) => <div>{JSON.stringify(props.ual)}</div>
const AppWithUAL = withUAL(App)

const wombat = new Wombat([exampleNet], { appName: 'Example App' })

<UALProvider chains={[exampleNet]} authenticators={[wombat]}>
  <AppWithUAL />
</UALProvider>

License

MIT

Important

See LICENSE for copyright and license terms.

All repositories and other materials are provided subject to the terms of this IMPORTANT notice and you must familiarize yourself with its terms. The notice contains important information, limitations and restrictions relating to our software, publications, trademarks, third-party resources, and forward-looking statements. By accessing any of our repositories and other materials, you accept and agree to the terms of the notice.

About

authenticator meant to be used with Wombat and Universal Authenticator Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%