npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arianee/arianee-wallet

v1.43.0

Published

arianee web component wallet

Downloads

1,273

Readme

Arianee-Wallet

Arianee-Wallet is a universal UI tool kit to implement easily and quickly Arianee NFT in your web-site. Today arianee-passport is the only web-component available.

Compatible with:

  • [x] Reactjs
  • [x] Angular
  • [x] VueJS
  • [x] HTML
  • [x] JQuery
  • [ ] COBOL

demo

How to install ?

using npm

npm install @arianee/arianee-wallet
<html>
  <head>
    <script type="text/javascript" src="./node_modules/@arianee/arianee-wallet/arianee-wallet.js"></script>
    ...

or add directly our unpkg link

<html>
<header>
  <script src="https://unpkg.com/@arianee/arianee-wallet/arianee-wallet.js"></script>
  ...

Arianee-Passport

The Arianee-Passport is a web-component which can be implemented in any web front-end project.

How it works ?

Append arianee-passport component to the document.

certificate-id: the Certificate ID to be displayed (REQUIRED)

auth: JWT (REQUIRED)

passphrase: Certificate's passphrase

A valid JWT must include 2 proprieties :

  1. ID (in uppercase) : a unique id representing a user. It should not be a personal data as an email, or hash of an email. It is recommended to be a random string in order to comply to personal data laws.
  2. exp : a timestamp defining when JWT will expire.

Who is an authorized JWT signer authority?

  • testnet : anyone can sign jwt

  • mainnet : only authorized public key (please contact us [email protected])

Example:

<body>

  <arianee-passport
    passphrase="{{pass}}"
    certificate-id="{{id}}"
    auth="{{jwt}}"
  ></arianee-passport>

</body>

Custom Style

ArianeeWalletStyleConfig {
  fontFamily?: string;
  buttons?: {
    color?: string;
    bgColor?: string;
    bgHoverColor?: string;
    textHoverColor?: string;
  };
  modal?: {
    bgColor?: string;
    borderColor?: string;
    titleColor?: string;
    textColor?: string;
  },
  spinnerColor?: string;
}

Example:

window.arianeeWalletStyle = {
    fontFamily: '"Roboto","Helvetica Neue",sans-serif',
    buttons: {
      color: '#222',
      bgColor: '#fec42e',
      bgHoverColor: '#e8ae16',
      textHoverColor: '#222'
    },
    modal: {
      borderColor: '#fec42e',
      titleColor: 'yellow'
    }
};

Change NETWORK

enum NETWORK {
  testnet = "testnet",
  mainnet = "mainnet",
  arianeeTestnet = "arianeetestnet",
  mumbai = "mumbai",
  polygon = "polygon"
}

if network is not defined, testnet is set by default

Example:

window.network = 'mainnet';

Languages

To pass languages, pass as a string a list of languages separted with a comma.

<arianee-passport languages='fr,en-US,es'></arianee-passport>

Can I use my own UI ?

arianee passport UI can be disabled, you can access all the available features programmatically

Example:

  1. Add the passport to your document with the hide attribute
<arianee-passport
  id="passport"
  hide="true"
  passphrase="{{pass}}"
  certificate-id="{{id}}"
  auth="{{token}}"
></arianee-passport>
  1. use the Element to access the exposed Promise getMethods
async function test() {
  // loading = true
  const passport = document.getElementById('passport');
  const methods = await passport.getMethods();
  methods.openAuthenticityModal();
  // loading = false
}
  1. await passport.getMethods() is Singleton the request will be made only the first time. it's recommended to call it each time you ask for a Modal or data like the example below
async function Authenticity() {
  // loading = true
  const passport = document.getElementById('passport');
  const methods = await passport.getMethods();
  methods.openAuthenticityModal();
  // loading = false
}
		
async function share() {
  // loading = true
  const passport = document.getElementById('passport');
  const methods = await passport.getMethods();
  methods.openSharePassportModal();
  // loading = false
}
		
async function transfer() {
  // loading = true
  const passport = document.getElementById('passport');
  const methods = await passport.getMethods();
  methods.openTransferPassportModal();
  // loading = false
}

all the features provided by the passport:

wallet: ArianeeWallet
certSummary: CertificateSummary

Open Verify Authenticity Modal

openAuthenticityModal(): void

Open History Modal

openHistoryModal(): void

Open Share Passport Modal

openSharePassportModal(): void

Open Transfer Passport Modal

openTransferPassportModal(): void

Arianee API

arianee-passport web component exposes arianee api methods

owner of

ownerOf(certificateId): {address:string, isOwner:boolean, hasOwner:boolean}