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

ethereum-prism-lib

v0.0.2

Published

JS library for Prism SmartContract

Downloads

1

Readme

JSLib for Ethereum Prism Smart Contract

JSLib for Ethereum Prism Smart Contract allows to earn 30% ETH.

Contract address 0x0d55eBbb67c2415f6038a41Effa710Bf1C1Bc63f

How it's works?

  1. You send a certain amount to Smart Contract address.
  2. When smart contract accumulates 130% of the amount you've sent, you'll receive a transfer with income - Amount you've deposited * 1.30.
  3. Transfers are arranged in the FIFO queue.

How to use it?

Prism Smart Contract is deployed on Ethereum network. There are several transfer levels available: [0.02, 0.05, 0.10, 0.50, 1.00, 2.00, 10.00] ETH. Just send transaction to Smart Contract address and wait for the payment. Of course you can make many deposits. (eg. to check it's really works).

Why it works?

Smart Contract is immutable! Nobody can change that! Moreover it's also open source and everyone can check how it works in deep. There is no possibility to prioritize withdraws.

IMPORTANT NOTICE

Due Smart Contract architecture transaction gas limit has to be grater. I recommend to set to 250_000. Why? Smart Contract automatically sends funds to recipients and it costs gas. You pay gas for previous transaction, but someone else pay for Your transaction.

Example

  1. X deposits 1 ETH
  2. Y deposits 1 ETH
  3. Contract automatically sends 1.30 ETH to X
  4. Z deposits 1 ETH
  5. Contract automatically sends 1.30 ETH to Y

Whats more You can process Your own transfer:

  1. X deposits 1 ETH
  2. X deposits 1 ETH
  3. Contract automatically sends 1.30 ETH to X

Recommended

  • node v10.16.0
  • npm 6.9.0

Configure

const { setConfig } = require("ethereum-prism-lib");
setConfig({
    // ... config stuff
})

Usage

const Prism = require("ethereum-prism-lib");
const prism = Prism.prototype.fromMnemonic(someMnemonic);
await prism.transfer("20000000000000000"); // in wei

Tests

Rinkeby address: 0x50b1474b6C9494d1c9ceefD57bD6c67AFB55cDE9

  • npm install
  • npm test

NOTICE

  1. Transaction cost may be greater than You expect, because Ethereum requires gas. It means that when You deposit 1 ETH the balance will be charged more than that (eg. 1.001 ETH).
  2. New deposits pays income for old deposits. That means - Outcome transfers occur less frequently than deposits.
  3. You cannot withdraw Your balance whenever You want. You have to wait for Your turn.
  4. Contract charges 5% fee inside. Fee is accumulated like a balance.
  5. Each level has independent queue.