Enums and Constants

List of Solidity Enums and Constants used in Faracle smart contracts.

Constants

Holds various constant values used across Faracle smart contracts.

Use it to get other address types like custody and recovery address.

YourContract.sol
1contract FaracleConstants {
2  uint256 constant ADDRESS_PRIMARY    = 1;
3  uint256 constant ADDRESS_CUSTODY    = 1024;
4  uint256 constant ADDRESS_RECOVERY   = 1025;
5}

Score Type

Defines different types of scores that can be associated with a user.

Like Neynar score, Channel statistics, Quotient score, etc.

YourContract.sol
1contract EnumsScoreType {
2  
3  enum ScoreType {
4    NeynarScore   = 1, 
5    ChannelStats  = 2
6  }
7
8}
Note: This will keep growing over time as we add more score types.

Networth Source

Defines different sources from which net worth data can be fetched.
YourContract.sol
1contract EnumsNetworthSource {
2  
3  enum NetworthSource {
4    Debank  = 1
5  }
6
7}
Note: This will keep growing over time as we integrate with more data providers.

Social Graph Type

Defines different types of social graphs associated with a user.
YourContract.sol
1contract EnumsSocialGraphType {
2  
3  enum SocialGraphType {
4    Follow  = 1,
5    Blocked = 2,
6    Muted   = 3
7  }
8
9}
Note: Currently only 'Follow' graph is supported.