Skip to content

1kresh/preapprove

This branch is 1 commit ahead of, 47 commits behind Vectorized/preapprove:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
EDU/a.korokhov
Dec 2, 2022
953fdb9 · Dec 2, 2022

History

8 Commits
Nov 28, 2022
Nov 29, 2022
Dec 2, 2022
Nov 29, 2022
Dec 2, 2022
Nov 28, 2022
Nov 29, 2022
Nov 28, 2022
Nov 30, 2022
Nov 28, 2022
Nov 28, 2022
Nov 28, 2022
Nov 29, 2022
Nov 29, 2022

Repository files navigation

PreApprove

On-chain registry for pre-approvals of ERC721 transfers.

This codebase is still under construction.

TODO:

  • A simple stateless library for calling isPreApproved on the registry in the most efficient way possible.

  • ERC721A, ERC721, ERC1155 examples with overriden isApprovedForAll.

  • For development and testing:

    • First, compile the registry and get its initcode.

    • Use vm.etch to write the bytecode of 0x0000000000ffe8b47b3e2130213b802212439497 (ImmutableCreate2Factory by z0age).

    • Call the safeCreate2(bytes32 salt, bytes calldata initializationCode) on ImmutableCreate2Factory.

    • Test if the registry works (subclass PreApproveRegistryTest).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%