Coder Social home page Coder Social logo

polkagate / snap Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 4.0 3.77 MB

Polkagate Snap: Polkadot with Metamask

Home Page: https://polkagate.xyz

License: Apache License 2.0

JavaScript 1.12% TypeScript 93.96% Shell 1.51% CSS 0.82% HTML 1.52% Dockerfile 1.06%
metamask polkadot

snap's Introduction

PolkaGate Snap

web3 foundation_grants_badge_black

license ci

A MetaMask snap for seamless interaction with the Polkadot ecosystem, a prominent platform for cross-chain communication and scalability. Now you can use your MetaMask wallet to access Polkadot dApps and tokens effortlessly.

To integrate this snap into your dApp, you can easily upgrade your existing @polkadot/extension-dapp by replacing it with @polkagate/extension-dapp. It's important to note that once our changes are merged into the official extension-dapp, this manual update will no longer be necessary.

โฌ Polkagate snap is now available on MetaMask Snap Directory for download: https://snaps.metamask.io/snap/npm/polkagate/snap/

Image

Running the Repository

The repository contains a dApp located in the ./packages/dapp directory and the snap code, which can be found in ./packages/snap. To try out the snap, follow these steps in your terminal:

git clone https://github.com/PolkaGate/snap.git
cd snap
yarn install
yarn run start

After executing these commands, you can access a basic decentralized application (dApp) page for testing the snap at http://localhost:8000/. For more advanced dApp visit apps.polkagate.xyz. Note, MetaMask Flask (MetaMask) needs to be installed to interact with the snap and dApp.

Test

To execute the unit tests for the snap, use the following command(s):

yarn install
yarn build
yarn test

Docker

To build and run docker container(s) run:

yarn install
yarn compose

Afterward, you can access user interfaces as follows:

Image

Note: This MetaMask snap operates autonomously and does not rely on other extensions within the Polkadot ecosystem for its functionality.

Polkagate Snap Security Audit Report

https://sayfer.io/audits/metamask-snap-audit-report-for-polkagate-snap/


For more detailed help, please refer to the wiki.

snap's People

Contributors

nick-1979 avatar amirkhanef avatar

snap's Issues

not support for substrate chain

During usage, we have found that the current Snap does not support substrate chains other than parachains. Are there considerations to provide support for more chains in the future? Given the increasing popularity of Coretime, a greater number of chains will be joining the ecosystem. Currently, the process of obtaining the WS_URL through { selectableNetworks } from '@polkadot/apps-config'; is hindering the adoption and use of a large number of substrate chains.

bondExtra fails!

checked some tx like transfer, bond, rebond, withdraw unbonded, all works but bondExtra fails!!

error on extension inspect: RPC (npm:@polkagate/snap): snap_dialog -> error
to check: switch case !

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.