• Stars
    star
    398
  • Rank 104,580 (Top 3 %)
  • Language
    Solidity
  • License
    MIT License
  • Created 3 months ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Implementation of a co-joined ERC20 and ERC721 pair.

DN404 πŸ₯œ

NPM CI

DN404 is an implementation of a co-joined ERC20 and ERC721 pair.

  • Full compliance with the ERC20 and ERC721 specifications.
  • Transfers on one side will be reflected on the other side.
  • Pretty optimized.

Installation

To install with Foundry:

forge install vectorized/dn404

To install with Hardhat:

npm install dn404

Contracts

The Solidity smart contracts are located in the src directory.

src
β”œβ”€ DN404 β€” "ERC20 contract for DN404"
β”œβ”€ DN404Mirror β€” "ERC721 contract for DN404"
└─ example
   β”œβ”€ SimpleDN404 β€” "Simple DN404 example as ERC20"
   └─ NFTMintDN404 β€” "Simple DN404 example as ERC721"

Contributing

Feel free to make a pull request.

Guidelines same as Solady's.

Safety

This is experimental software and is provided on an "as is" and "as available" basis.

We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

While DN404 has been heavily tested, there may be parts that exhibit unexpected emergent behavior when used with other code, or break in future Solidity versions.

Please always include your own thorough tests when using DN404 to make sure it works correctly with your code.

Upgradability

Most contracts in DN404 are compatible with both upgradeable and non-upgradeable (i.e. regular) contracts.

Please call any required internal initialization methods accordingly.

Acknowledgements

This repository is inspired by various sources:

More Repositories

1

solady

Optimized Solidity snippets.
Solidity
1,976
star
2

multicaller

Efficient multicaller contracts
Solidity
212
star
3

Python-KD-Tree

A simple and fast KD-tree for points in Python for kNN or nearest points. (damm short at just ~60 lines) No libraries needed.
Python
158
star
4

closedsea

Optimized and flexible version of OpenSea's operator filterer
Solidity
130
star
5

soledge

Solidity snippets too edgy to be in Solady
Solidity
101
star
6

Aris

Aris - A fast and powerful tool to write HTML in JS easily. Includes syntax highlighting, templates, SVG, CSS autofixing, debugger support and more...
JavaScript
87
star
7

function-selector-miner

Solidity Function Selector Miner (AVX2 + Multithreaded)
Rust
51
star
8

Static-Sort

A simple C++ header-only library for fastest sorting of small arrays. Generates sorting networks on compile time via templates.
C++
47
star
9

preapprove

On-chain pre-approval registry for NFTs. Library included.
Solidity
41
star
10

Fluidsim

A C++ fluid simulator (SPH, OpenCL, GLSL, SSE, Fast Marching Cubes)
C++
18
star
11

VoxNet-Tensorflow

A Tensorflow Implementation of VoxNet.
Python
11
star
12

Othello-AI

A strong Othello AI bot for 50.021 Artificial Intelligence course.
Python
11
star
13

QDES

Quadratic Decay Exponential Surge
Solidity
9
star
14

Softee

Solidity
4
star
15

vectorized

4
star
16

Solidity-Code-Reviews

2
star
17

Sort-Me

A Realtime Multiplayer Sorting Game for Android
Java
2
star
18

ERC721A-Upgradeable-Old

Upgradeable version of ERC721A
Solidity
2
star
19

Python-Attribute-List

Add/set attributes to Python's built-in list.
Python
1
star
20

NFTStaker

Solidity
1
star
21

ERC721A-Transpiler

Transpiler for creating upgradable ERC721A
TypeScript
1
star
22

SUTD-Staff-Room-Maps-old-Dover-edition

An Android App for navigating the staff room in SUTD's old Dover Campus.
Java
1
star
23

CECSATSolver

CEC-SAT verification software for ISTD 2D Design Challenge
Java
1
star