ethmimo / MIPs

Mimo Improvement Proposals
0 stars 0 forks source link

Action Delegates #3

Open ghiliweld opened 6 years ago

ghiliweld commented 6 years ago

Ability to delegate control of your Mimo profile to others, who can complete actions on your behalf. Say, following a batch of users on your behalf.

Perhaps by adding another function to the ERC721 contract, something like authorize, one could delegate partial ownership of a profile without approve-ing them, enabling the delegate address to transfer the profile.

ghiliweld commented 6 years ago

I've added delegation to the profile contract, please see ERC721Delegate.sol. Now actions can be done on behalf of a profile owner by a delegate address without giving away transferring rights via approval.

ghiliweld commented 6 years ago

For ENS based Mimo profiles, profile delegation can be handle through a smart contract that is made the owner of a subnode. That smart contract can then define who can complete actions on behalf of the profile owner and what actions they can complete (as in what functions can they execute from the Mimo contract).

See MimoDelegate.sol for a simple example of a Delegate contract.