Skip to content

Hypha Sales Backend 2.0

Nikolaus Heger edited this page Mar 11, 2022 · 4 revisions

Changes / Delta to existing

New API endpoints

  • /register/[acct] API to register an account
  • /scanbtc/[blocknum] API to manually initiate a scan on this BTC block

This will remove a lot of manual digging for errors in case something goes wrong - we can then re-register account and re-run block scans

Improvements

  • Generate BTC address and add to redis on demand (DONE)
  • Change the redis keys in case we run on the same redis server as Seeds sale DONE
  • Create different API machine endpoint, api-tokensale insert dot hypha.earth DONE

Hypha Sale deltas

  • New BTC derivation address DONE
  • Test new BTC derivation address
  • new EOS receiving account - not thehyphabank since that is for the Seeds sale. Mirror thehyphabank permissions.

Contract work

  • Modify seeds sale contract to be a hypha sale contract
  • deploy on local chain
  • modify local unit tests
  • deploy buy.hypha on testnet
  • deploy buy.hypha on mainnet
  • change rounds and increments and price - setup function
  • test on testnet
  • transfer 900,000 HYPHA to sales contract
  • Changes because HYPHA only has 2 digits of precision?
Clone this wiki locally