AmbireTech / adex-platform

AdEx Platform UI
https://platform.adex.network
GNU General Public License v3.0
58 stars 19 forks source link

deploy Identity: fund and then deploy mechanism #61

Closed Ivshti closed 5 years ago

Ivshti commented 5 years ago

Deploying an Identity (without a grant) will require the address to be funded first. The relayer would check if the funds are sent before it will accept the deploy request.

This is why we should employ the following mechanism:

  1. the user chooses to sign up, at which point we generate the IdentityProxy code and the salt; and calculate identityAddr; we save those in localStorage
  2. the UI behaves as if this contract is already deployed
  3. when the user wishes to open a campaign (advertiser) or to create an ad slot (publisher), we prompt them to finish the Identity creation by sending funds (NOTE: is there an easier way, if they're a publisher?)
  4. once the funds are sent to the addr, we send a request to the relayer to deploy, followed by a request to open the campaign
Ivshti commented 5 years ago

closing this in favor of #78 ; tracking the underlying mechanism in https://github.com/AdExNetwork/adex-relayer/issues/25