poanetwork / token-wizard

(Discontinued) TokenWizard is an DApp to create and manage crowdsale and token contracts using a simple UI
MIT License
386 stars 215 forks source link

(Fix) contribute page for contribution without Metamask #939

Closed vbaranov closed 6 years ago

vbaranov commented 6 years ago

Problem: The current wizard 2.0 contribution page without Metamask is:

screencapture-localhost-3000-contribute-2018-06-05-15_40_10 1

Solution:

  1. QR code should contain the address of ScriptExec smart-contract
  2. Call data of buy method should be generated for CrowdsaleBuyTokens smart-contract
  3. Instead of method signature final call data should be generated and displayed for exec method of ScriptExec smart-contract to execute buy method of CrowdsaleBuyTokens smart-contract
  4. As amount of wei to be paid is a part of calldata we should display input for amount tokens amount to buy when user selects non-Metamask buy option. Also we should recalculate calldata on-fly with changing of amount of tokens to buy
vbaranov commented 6 years ago

As amount of wei to be paid is a part of calldata we should display input for amount tokens amount to buy when user selects non-Metamask buy option. Also we should recalculate calldata on-fly with changing of amount of tokens to buy

Since Auth-os implemented v 1.0.1, amount of wei is not a part of the calldata anymore.