Coder Social home page Coder Social logo

lez / sporran-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bte-trusted-entity/sporran-extension

0.0 0.0 0.0 23.6 MB

KILT browser extension, to manage accounts and send / receive tokens.

Home Page: https://sporran.org

License: Other

JavaScript 2.06% TypeScript 85.13% CSS 12.78% HTML 0.03%

sporran-extension's Introduction

sporran-extension

kilt

Quick start with play coins

  1. We recommend using a different browser or a different profile of your browser to avoid mixing up the real Sporran and the play coins Sporran
  2. Have git, Node.js, and yarn installed
  3. git clone https://github.com/KILTprotocol/sporran-extension.git
  4. cd sporran-extension
  5. yarn install && yarn dev
  6. Start Chrome and navigate to chrome://extensions (or in Firefox about:debugging#/runtime/this-firefox)
  7. Enable Developer Mode by clicking the toggle switch next to Developer mode (Chrome only)
  8. Click the Load unpacked button and select the sporran-extension/dist directory (or in Firefox click Load Temporary Add-on... and select sporran-extension/dist/manifest.json)
  9. Now you have the internal version of Sporran installed. DO NOT USE IT for real KILT identities/addresses/coins! Choose wss://peregrine.kilt.io/parachain-public-ws in โš™ Settings > Custom Endpoint. Click the Sporran icon in the browser toolbar and follow the flow to create an Identity. Click the Receive link and copy the Identity address on the next screen.
  10. Visit the Faucet, paste the Identity address there, accept the Terms, and click Request Tokens to get some play KILT coins

Testing in browser

Getting the internal version of extension

  1. Go to actions page for "Packages the internal version".
  2. Click on the build you want to test.
  3. Download the extension file from the Artifacts section at the bottom.
  4. Unpack the downloaded .zip file and unpack the sporran-???.zip from it as well.

Getting the public version of extension

  1. Go to actions page for "Packages the public version".
  2. Click the buttons "Run workflow" -> "Run workflow" to prepare the public version and wait for the workflow to finish.
  3. Click the link for the just finished workflow and download the extension file from the Artifacts section at the bottom.
  4. Unpack the downloaded .zip file and unpack the sporran-???.zip from it as well.

Testing in Chrome

  1. Navigate to chrome://extensions.
  2. Enable Developer Mode by clicking the toggle switch next to Developer mode.
  3. Click the Load unpacked button and select the directory you have unpacked the extension into.

Testing in Firefox

  1. Navigate to about:debugging#/runtime/this-firefox.
  2. Click the Load Temporary Add-on... button.
  3. Select the manifest.json from the directory you have unpacked the extension into.

Getting Started

Run the following commands to install dependencies and start developing

yarn install
yarn dev

Build and package for uploading

Update the version in src/static/manifest.json and src/configuration/configuration.ts.

Run the following commands:

yarn install
yarn build
yarn package

This will generate a file dist/web-ext-artifacts/sporran-???.zip ready to be uploaded to stores.

Scripts

  • yarn dev - run webpack in watch mode
  • yarn storybook - runs the Storybook server
  • yarn build - builds the production-ready unpacked extension
  • yarn package - packages the built code for upload
  • yarn test -u - runs Jest + updates test snapshots
  • yarn lint - runs Stylelint and ESLint
  • yarn prettify - runs Prettier
  • yarn open-firefox - opens Sporran in Firefox
  • yarn open-chrome - opens Sporran in Chrome

Notes

  • Includes a custom mock for the webextension-polyfill-ts package in src/__mocks__. This allows you to mock any browser APIs used by your extension so you can develop your components inside Storybook.

Built with

Misc. References

sporran-extension's People

Contributors

angelangelides avatar arty-name avatar csmarc avatar dependabot[bot] avatar dudleyneedham avatar gustavhemmelmayr avatar lukeg90 avatar renovate[bot] avatar rflechtner avatar tjwelde avatar usmangeek 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.