Giter Site home page Giter Site logo

ninjas.cash's Introduction

Cash-Ninjas Minting Frontend

Repo for the Cash-Ninjas website - including wallet connect and minting logic.

Overview

The logic for the minting page can be found in js/mint.js with configuration in js/mintingParams.js.

The CashScript artifact of the minting smart contract is provided in js/mint.json.

The minting app relies on walletconnect/sign-client, walletconnect/modal, libauth, cashscript and electrum-cash libraries.

Vite is used as bundler for the code, the public folder that goes with it is used to avoid jQuery bundling issues and have a consistent image path on production deploys. Vite is configured to allow top-level-await for libauth-v2, specific Vite configuration can be found in vite.config.js. Top-level-await support of by the user's browser is necessary to use the minting page.

To implement the wallet connect functionality the following guide was used: 'Docs: Dapp Usage'.

The Wallet Connect V2 standard for BCH is supported by Cashonize, the Zapit wallet and the Paytaca wallet is at the time of writing.

Installation

git clone https://github.com/cashninjas/ninjas.cash

npm install

Usage

You need to make an account at cloud.walletconnect.com to get a WalletConnect projectId. To simplify implementation you can turn off the Verify API in the project's settings.

Update js/mintingParams.js with your specific configuration.

Then startup the web server!

npm run dev

Profit!

ninjas.cash's People

Contributors

zquestz avatar mr-zwets 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.