Giter Club home page Giter Club logo

penumbra-wallet's Introduction

Local installation of wallet extension in chrome

  1. npm install

  2. npm run start

  3. Go to extensions management page in chrome chrome://extensions/

  4. Enable Developer mode

  5. Use Load Unpacked and choose path to wallet/dist

Link to web store - https://chrome.google.com/webstore/detail/penumbra-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe/related?hl=uk

Install Penumbra protobuf types:

-   npm install @buf/bufbuild_es_penumbra-zone_penumbra;

Copy/paste ProviderPenumbra class to your project from https://github.com/zpoken/penumbra_dapp/blob/main/src/utils/ProviderPenumbra.ts;

Web3 Browser Detection(To verify if the browser is running Penumbra, copy and paste the code snippet below in the developer console of your web browser)

const checkIsPenumbraInstalled = async () => {
    const isInstalled = await isPenumbraInstalled();
    return isInstalled;
};

Create provider penumbra:

const penumbra = new ProviderPenumbra(); 

Connect dapp to wallet:

const handleConnect = async () => {
    const data = await penumbra.login();
};

Get current status of chain sync

penumbra.getStatus()

Queries for notes that have been accepted by the core.chain.v1alpha1.

 penumbra.getNotes()

Query for a note by its note commitment, optionally waiting until the note is detected.

 penumbra.getNoteByCommitment({noteCommitment})

Queries for assets.

 penumbra.getAssets()

Query for the current chain parameters.

 penumbra.getChainParameters()

Query for the transaction hashes in the given range of blocks.

 penumbra.getTransactionHashes({start_height,end_height})

Query for the full transactions in the given range of blocks.

 penumbra.getTransactions({start_height,end_height})

Query for a given transaction hash.

 penumbra.getTransactionByHash({txHash})

penumbra-wallet's People

Contributors

valentine1898 avatar hitchhooker avatar aubrika avatar zpoken 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.