Skip to content

A contract which provides a reward for those who are willing to deploy a bytecode on-chain

Notifications You must be signed in to change notification settings

blue-searcher/rewarded-contract-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rewarded-contract-deploy

  • Call request{value: X}(bytes memory _bytecode) to express your interest in deploying the supplied bytecode on-chain. ETH value provided to this transaction is handled as a reward to any external actor willing to deploy your contract. Each request creates a new DeployRequest identified by an id.

  • Any request can be canceled with cancel(uint256 _id) which returns the reward back.

  • Anyone can call deploy(uint256 _id) to deploy a contract and become eligible to withdraw the corresponding reward.

  • Call withdraw() to withdraw collected rewards.

The bytecode must include constructor arguments too.

Inspired by a tweet from 0xtuba.

About

A contract which provides a reward for those who are willing to deploy a bytecode on-chain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published