Coder Social home page Coder Social logo

yonatan19981 / kondor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joticajulian/kondor

0.0 0.0 0.0 4.7 MB

Koinos Wallet in your browser

License: MIT License

JavaScript 1.92% CSS 0.29% HTML 0.56% Shell 0.01% Vue 94.02% TypeScript 3.21%

kondor's Introduction

Kondor - Koinos Wallet in your browser

Kondor is a browser extension to manage a wallet for Koinos Blockchain (testnet). It based on koilib library. It is currently in beta and includes bugs.

Info for users

You can install it as an extension for Chrome. Follow this link: https://chrome.google.com/webstore/detail/kondor/ghipkefkpgkladckmlmdnadmcchefhjl

Web Developers

In the 3rdpage folder there is an example page to interact with kondor. It shows 2 main functionalities:

  • Get accounts: Request the user address.
  • Request signature: Request a signature and send the transaction. The example shows the process to make a transfer.

This html requires 2 scripts:

  • koinos.min.js: Library provided by koilib.
  • kondorIndex.js: Library to interact with Kondor.

To install these dependencies run (in future releases we will create a package in npm for kondor):

yarn install
yarn build:3rdpage

To serve the webpage run:

node ./server.js

The page will be available in http://localhost:8081/3rdpage.html

Extension Developers

Kondor wallet has been created using Vue Framework. It can be tested in 2 ways:

  1. As a single-page application in a web page. As it is developed in Vue you can take advantage of the hot reloads for fast iteration. With this option the local storage is not tested, and instead of that it is bypassed by data written in memory.
  2. As browser extension (recommended). This option doesn't have the hot reloads offered by Vue but you can test it as extension with all features.

Setup the project by installing dependencies:

yarn install

Run as Single-Page Application

When testing in localhost we need a proxy server to avoid the issues with cors. Start the server that adds the corresponding headers:

node ./server.js

The server will start in http://localhost:8081

Open the .env file and set VUE_APP_ENV=test. This variable will skip the access to the local storage in the extension and instead of that will save this data in memory.

Build typescript files:

yarn build:ts

Start the application:

yarn serve

or

npm run serve

The application will be available in http://localhost:8080

Run as browser extension

Open the .env file and set VUE_APP_ENV=extension to enable the access to the local storage for extensions. Build the application

yarn build

or

npm run build

The compiled application will be located in the folder dist. Open chrome and go to chrome://extensions/. Make sure the developer mode is enabled. Click on Load unpacked and select the folder dist with the application. The extension should be ready to be tested.

NOTE

The Koinos Blockchain is currenlty available only as a test network and is prone to bugs and crashes, tKOIN has absolutely no value. To learn more about Koinos visit their website at koinos.io

kondor's People

Contributors

joticajulian avatar yonatan19981 avatar brklyn8900 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.