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

auc_dahab_wallet

v1.8.2

Published

This is a full-featured crypto-wallet created by AUC students that helps developers to interact with the wallet through the cli or node code in their apps

Downloads

14

Readme

auc_dahab_wallet

This is the npm package for auc dahab wallet. It is a full-featured crypto-wallet to secure and save your funds

Installation

npm install --save auc_dahab_wallet

Run your script with --openssl-legacy-provider

node --openssl-legacy-provider test_npm_package.js

APIS

Please see the examples directory on Github to see how to use the library

Using auc_dahab_wallet

const auc_dahab_wallet= require("auc_dahab_wallet")

MasterWallet Class

Json Types

export interface IDictionary<TValue> {

    [id: string]: TValue

}

export interface ChainsInfo <TValue> {

    [id: string]: IDictionary<TValue>
    
}

Creating an object from the class

let master_wallet= new auc_dahab_wallet.MasterWallet()

MasterWallet.create_master_wallet

this function returns the json with the chain information either encrypted or not encrypted to be ready for storing in a file

async create_master_wallet (master_mnemonic: string, password: string, return_encrypted_keys: boolean)

MasterWallet.get_master_balance

this function takes the json with the chain information obtained from claim_master_keys it returns a json with the balances for all chains

async get_master_balance(info_obj: ChainsInfo<string>)

MasterWallet.claim_master_keys

this function takes the encrypted json with the chain information obtained from create_master_keys and the password the user used to encrypt the keys it returns the decrypted version of the json input with all the keys plain text

async claim_master_keys(info_obj: ChainsInfo<string>, password: string)

Eth Class

Creating an object from the class

let eth_cls= new auc_dahab_wallet.Eth()

Eth.create_wallet

this function returns an array of strings contains [privateKey, publicKey]

create_wallet (master_mnemonic: string)

Eth.get_balance

this function returns the balance with a certain publicKey

async get_balance(publicKey: string)

Eth.send_transaction

this function performs a send transaction from a certain account to another

async send_transaction(sender_priv_key: string, receiver_pub_key: string, amount: string)

Sol Class

Creating an object from the class

let sol_cls= new auc_dahab_wallet.Sol()

Sol.create_wallet

this function returns an array of strings contains [privateKey, publicKey]

create_wallet (master_mnemonic: string)

Sol.get_balance

this function returns the balance with a certain publicKey

async get_balance(publicKey: string)

Sol.send_transaction

this function performs a send transaction from a certain account to another

async send_transaction(sender_priv_key: string, receiver_pub_key: string, amount: string)

Cspr Class

Creating an object from the class

let cspr_cls= new auc_dahab_wallet.Cspr()

Cspr.create_wallet

this function returns an array of strings contains [privateKey, publicKey]

async create_wallet (master_mnemonic: string)

Cspr.get_balance

this function returns the balance with a certain publicKey

async get_balance(publicKey: string)

Cspr.send_transaction

this function performs a send transaction from a certain account to another

async send_transaction(sender_priv_key: string, receiver_pub_key: string, amount: string)

Polygon Class

Creating an object from the class

let polygon_cls= new auc_dahab_wallet.Polygon()

Polygon.create_wallet

this function returns an array of strings contains [privateKey, publicKey]

 create_wallet (master_mnemonic: string)

Polygon.getPolygonMaticBalance

this function returns the Matic balance with a certain publicKey

async getPolygonMaticBalance(publicKey: string)

Polygon.getPolygonWethBalance

this function returns the Weth balance with a certain publicKey, and privateKey

async getPolygonWethBalance(publicKey: string, privateKey: string)

Polygon.send_transaction

this function performs a send transaction from a certain account to another

async send_transaction(sender_priv_key: string, receiver_pub_key: string, amount: string)