I’ve been trying to learn about STO’s , and i am trying to use ERC1400 for an implementation.
I downloaded the code(https://github.com/ConsenSys/ERC1400) but i am still struggling with some points that are not clear:
Looking at the constructor of erc1400.sol , it does not have a totalSupply parameter, i thought that when you are launching an STO you should specify the totalSupply , (like in erc20)
Also erc1400 inherits from erc1400Raw.sol which has the parameter totalSupply to specify in the constructor but it’s used as if the totalSupply is specified by token holder. Not the total supply of all the tokens circling.
So that got me really confused and i would appreciate it if someone clarifies this for me.
Also in the constructor of erc1400.sol we specify “defaultPartitions” , i didn’t quit catch what those are , in erc1400Test.js it is specified that they can be (reserved in hex/issued in hex or locked in hex) but what are they concretely ? are they smart contract addresses ? And at the launch of your sto you have to specify the securities that are issued, locked and reserved from the beginning ?
I looked into erc777 (https://medium.com/coinmonks/erc-777-a-new-advanced-token-standard-c841788ab3cb) which seemed a lot simplier but it’s missing document management so i am trying to understand better erc1400.