Skip to content

Smart Contracts

Hardly Difficult edited this page Oct 14, 2019 · 9 revisions

WIP

Smart Contracts

This page will talk about working with the Fairmint smart contracts directly.

Intro

Covers DAT, BigMath, Whitelist, etc

Actors

  • Beneficiary
  • Control
  • FeeCollector
  • Investor
  • ProxyAdmin

Contracts

  • DecentralizedAutonomousTrust
  • BigMath
  • Whitelist
  • Proxy
  • ProxyAdmin

Process

Deploy

  • Deploy proxy admin
  • Deploy BigMath
  • Deploy DAT template
  • Deploy DAT proxy
  • Call DAT initialize
  • Deploy whitelist template
  • Deploy whitelist
  • Call whitelist initialize
  • Call whitelist approve for team accounts (e.g. control/beneficiary)
  • Call DAT update config with remaining initialization info

Configure

TODO

Upgrade

  • BigMath: swap
  • Whitelist: swap or upgrade
  • DAT: upgrade
Clone this wiki locally