Reference implementation of SRC-7208 and usage examples
Reference implementation of SRC-7208 and usage examples
List of contracts
Interfaces
- IDataIndex - Interface of DataIndex
- IDataObject - Interface of DataObject
- IDataPointRegistry - Interface of Data Point Registry
- IIDManager - Interface for building and querying Data Index user identifiers
Implementation
- DataIndex - Data Index (implements
IDataIndexandIIDManager) - DataPointRegistry - Data Point Registry (implements
IDataPointRegistry) - DataPoints - Library implementing DataPoint type and its encode/decode functions
- ChainidTools - Library implementing utility functions to work with chain ids
Usage examples
- IFractionTransferEventEmitter - Interface used for DataManagers communication to emit SRC20 Transfer events
- IFungibleFractionsOperations - Interface defines DataObject operations, which can be called by DataManager
- MinimalisticFungibleFractionsDO - DataObject implements data storage and related logic for token with Fungible Fractions (like SRC1155)
- MinimalisticSRC1155WithSRC20FractionsDataManager - DataManager implements token with fungible fractions with SRC1155 interface, linked to a DataManager which implements SRC20 interface for same token
- MinimalisticSRC20FractionDataManager - implements token with SRC20 interface, linked to a DataManager which implements SRC1155 interface for same token
- MinimalisticSRC20FractionDataManagerFactory - factory of DataManagers implementing SRC20 interface for token with fungible fractions
An audited implementation can be found here.