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

emoney-token

v1.28.7

Published

The E-Money Standard Token aims to enable the issuance of regulated electronic money on blockchain networks, and its practical usage in real financial applications.

Downloads

13

Readme

E-Money token project

An e-money, bank and central bank money issued token based on ERC-20. With additional functionalities such as holds, clearance and detailed compliance.

This project is the first implementation of electronic money on a Blockchain. The learnings that were made during its creation were used to propose ERC-2020 - The E-Money Token Standard. Currently, there are differences between the interfaces used here and the proposed standard. The interfaces of the standard will be adapted in a future release.

Additionally, to the ERC-2020 standard the token allows cross ledger transfer. This means transferring tokens from one wallet in one blokchain network to another one in a different blockchain network

Installation

The contracts and the corresponding build files can be downloaded with:

npm install emoney-token --only=production

Interacting with the token

The abstract contract EmoneyToken can be used to interact with the token. It consists of the following interfaces:

ERC-20

Please refer to the ERC-20 Token Standard for the exact specification.

Hold

An extension to the ERC-20 standard token which allows tokens to be put on hold. This guarantees a future transfer and makes the held tokens unavailable for transfer in the meantime. Holds are similar to escrows in that are firm and lead to final settlement.

Please refer to IHoldable.sol for the exact specification.

balanceOf

The standard implementation of ERC-20 has been changed in order to deduct the held balance from the ERC-20 balance.

transfer

The standard implementation of ERC-20 has been changed in order to deduct the held balance from the ERC-20 balance. Any amount that is held cannot be transferred.

transferFrom

The standard implementation of ERC-20 has been changed in order to deduct the held balance from the ERC-20 balance. Any amount that is held cannot be transferred.

Two Step Transfer (Clearable Transfer)

"In banking and finance, clearing denotes all activities from the time a commitment is made for a transaction until it is settled." [1]

Please refer to ITwoStepTransferableToken.sol for the exact specification.

[1] https://en.wikipedia.org/wiki/Clearing_(finance)

Cross Ledger Transfer

Please refer to ICrossLedgerLink.sol for the exact specification.

Compiling

To compile the interfaces and the abstract contract, please execute:

npm install
npm run compile