Goveranance contract is a special type of module that may optionally be attached to an IssuingEntity. It is used to add on-chain voting functionality for token holders. When attached, it adds a permissioning check before increasing authorized token supplies or adding new tokens.
SFT includes a very minimal proof of concept as a starting point for developing a governance contract. It can be combined with a checkpoint module to build whatever specific setup is required by an issuer.
It may be useful to view source code for the following contracts while reading this document:
- Governance.sol: A minimal implementation of
Goverance, intended for testing purposes or as a base for building a functional contract.
- IGovernance.sol: The minimum contract interface required for a governance module to interact with an
The address of the associated
>>> governance.issuer() 0x40b49Ad1B8D6A8Df6cEdB56081D51b69e6569e06
The following methods must return
true in order for the calling methods to execute.
IssuingEntity.addTokenbefore associating a new token contract.
modifyAuthorizedSupply(address _token, uint256 _value)¶
TokenBase.modifyAuthorizedSupplybefore modifying the authorized supply.