Code Monkey home page Code Monkey logo

miktoken's Introduction

A pure ERC20 token.

Test

$ forge test -vvv --gas-report
[⠊] Compiling...
[⠒] Installing Solc version 0.8.22
[⠆] Successfully installed Solc 0.8.22
[⠰] Compiling 1 files with 0.8.22
[⠔] Solc 0.8.22 finished in 958.20ms
Compiler run successful!

Running 3 tests for test/MikToken.t.sol:SimpleStorageTest
[PASS] test_token_info() (gas: 15146)
[PASS] test_transfer() (gas: 47094)
[PASS] test_transfer_from() (gas: 99246)
Test result: ok. 3 passed; 0 failed; 0 skipped; finished in 1.18ms
| src/MikToken.sol:MikToken contract |                 |       |        |       |         |
|------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost                    | Deployment Size |       |        |       |         |
| 457139                             | 2856            |       |        |       |         |
| Function Name                      | min             | avg   | median | max   | # calls |
| allowance                          | 814             | 814   | 814    | 814   | 1       |
| approve                            | 24739           | 24739 | 24739  | 24739 | 1       |
| balanceOf                          | 562             | 847   | 562    | 2562  | 7       |
| decimals                           | 177             | 177   | 177    | 177   | 1       |
| name                               | 3178            | 3178  | 3178   | 3178  | 1       |
| symbol                             | 3221            | 3221  | 3221   | 3221  | 1       |
| totalSupply                        | 326             | 1326  | 1326   | 2326  | 4       |
| transfer                           | 27988           | 28988 | 28988  | 29988 | 2       |
| transferFrom                       | 2959            | 11904 | 11904  | 20850 | 2       |



 
Ran 1 test suites: 3 tests passed, 0 failed, 0 skipped (3 total tests)

$ forge coverage
[⠊] Compiling...
[⠊] Installing Solc version 0.8.22
[⠒] Successfully installed Solc 0.8.22
[⠒] Compiling 27 files with 0.8.22
[⠆] Solc 0.8.22 finished in 2.90s
Compiler run successful!
Analysing contracts...
Running tests...
| File  | % Lines       | % Statements  | % Branches    | % Funcs       |
|-------|---------------|---------------|---------------|---------------|
| Total | 100.00% (0/0) | 100.00% (0/0) | 100.00% (0/0) | 100.00% (0/0) |

miktoken's People

Contributors

mikhulk avatar

Watchers

 avatar

Forkers

dashbaord202401

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.