2.0.0 • Published 1 year ago

nacho-token-contract v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

nacho-token-contract

The token smart contract built for Nacho using o1js.

nacho-token-contract package is intended to be used for Nacho only as it is a naive implementation.

📦 Installation

If you are using npm:

npm install nacho-token-contract

If you are using yarn:

yarn add nacho-token-contract

If you are using pnpm:

pnpm add nacho-token-contract

🔍 Details

Nacho's token contract extends o1js's existing token contract by implementing approveBase method's logic and adding a new method called mint.

🛠️ Smart Contract Methods

  • mint(to, amount):

    Mints the given token amount to the given receiver with no checks.

  • transfer(from, to, amount):

    Transfers the given token amount from the given address to the given address.

📝 License

This project is licensed under the MIT License.

You may use the source code of this project accordingly.

👤 About Me

I am Berzan and I am developing Nacho to express my skills in the real world.

I built this library to use inside Nacho.

1.0.0

1 year ago

0.4.0

1 year ago

2.0.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago