Skip to content

An instantiation of the Terra wallet provider library in the browser.

Notifications You must be signed in to change notification settings

Kayanski/terra-wallet-provider-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building the library

This project was done in order to integrate the Terra Wallet Provider library in a Bubble.io application. This is directed at exporting a unique file to integrate the logic of the library directly in the browser.

To build the library, use:

  npm install
  npm run build

This builds the project and creates a main.js file in the dist folder. This file contains everything you need to make the library work in the browser.

Testing

To test the export locally, use :

 npm install --global http-server
 http-server

Browse to https://localhost:8080 (or any address that appears in the console). The Terra wallet should ask for connection rapidly. If nothing happends, check the javascript console. You should see something like

  not connected yet
  connected
  `a terra address`

Usage Example

You can find an example usage in the index.html file. The central variable is the controller. Using this variable, you can access all the fonctionnalities of the Wallet Provider Library

About

An instantiation of the Terra wallet provider library in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published