0xsequence / bundler

ERC5189 p2p transaction bundler
14 stars 1 forks source link

Deploy temporal endorser registry #18

Open Agusx1211 opened 5 months ago

Agusx1211 commented 5 months ago

The project contains a generic "endorser registry" at /registry/registry.go. This endorser registry determines if any endorser should be trusted or not.

Right now, there are two possible sources of information for this registry:

1) Statically trusted endorsers

2) Contract sources

For quick testing, these validations can be bypassed by (a) adding any wanted endorsers to the list of trusted endorsers or by (b) setting the min_reputation of the registry configuration to zero.


ERC-5189 defines that the endorser registry should be a "burn eth" operation. Given the early stages of development of this ERC, I would recommend allowing a "lighter" version of this mechanic, an endorser registry that instead of burning, enforces that some ETH has been locked for X amount of time. A sample implementation of this can be found at /contracts/src/TemporalRegistry.sol.

This temporal registry should be easy to integrate using the "contract sources" of the endorser registry.

This contract hasn't been deployed and integrated with the rest of the bundler yet.

ScreamingHawk commented 5 months ago

Singleton deploy script added in https://github.com/0xsequence/bundler/pull/14/commits/3c5432c5ed8fc738e4a65650b1531afa8c1372df Integration still required.