github.com/status-im/status-go@v1.1.0/services/wallet/thirdparty/community_types.go (about)

     1  package thirdparty
     2  
     3  // Community-related info used by the wallet, cached in the wallet db.
     4  type CommunityInfo struct {
     5  	CommunityName         string `json:"community_name"`
     6  	CommunityColor        string `json:"community_color"`
     7  	CommunityImage        string `json:"community_image"`
     8  	CommunityImagePayload []byte
     9  }
    10  
    11  type CommunityInfoProvider interface {
    12  	FetchCommunityInfo(communityID string) (*CommunityInfo, error)
    13  
    14  	// Collectible-related methods
    15  	GetCommunityID(tokenURI string) string
    16  	FillCollectiblesMetadata(communityID string, cs []*FullCollectibleData) (bool, error)
    17  }