Skip to content

Commit

Permalink
add tldr
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley-eth committed Apr 16, 2024
1 parent 1c0beeb commit 57b8629
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
## Token Types

### TL;DR

Token Types are drop-in replacements for interfaces.

All the expected functions, all of the available operators, none of the memory allocation, and none of the bloat.

```solidity
// replace this:
import { IERC20 } from "some-other-project/IERC20.sol";
// with this:
import { ERC20 } from "token-types/ERC20.sol";
```

### Motivation

Interfaces were a good abstraction for their time, but are outdated. Interface interactions allocate
Expand Down

0 comments on commit 57b8629

Please sign in to comment.