Skip to content

0xJijimi/erc-1155-black-hole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC-1155 BLACK HOLE

Overview

The ERC1155BlackHole contract is a specialized implementation designed to permanently receive and hold ERC-1155 tokens. This "black hole" contract serves as a mechanism permanently locking ERC-1155 tokens.

Features

  • Acts as an ERC-1155 token receiver
  • Prevents accidental sending of non-ERC-1155 tokens (including Ether)
  • Immutable design with no ability to withdraw or transfer received tokens

Use Cases

  • Token locking: Securely store tokens without the possibility of retrieval

Deploy

  • Interactive, without verification:
$ forge create ERC1155BlackHole --rpc-url <testnet-or-mainnet-url> --interactive
  • Automatic, with verification:
$ forge script script/ERC1155BlackHole.s.sol:ERC1155BlackHoleScript --broadcast --verify -vvvv --slow --ffi

Security Considerations

  • Once tokens are sent to this contract, they cannot be retrieved
  • Ensure you're interacting with the correct contract address
  • Double-check all transactions before sending tokens

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published