status-im/status-go

View on GitHub
services/wallet/thirdparty/community_types.go

Summary

Maintainability
A
0 mins
Test Coverage
package thirdparty

// Community-related info used by the wallet, cached in the wallet db.
type CommunityInfo struct {
    CommunityName         string `json:"community_name"`
    CommunityColor        string `json:"community_color"`
    CommunityImage        string `json:"community_image"`
    CommunityImagePayload []byte
}

type CommunityInfoProvider interface {
    FetchCommunityInfo(communityID string) (*CommunityInfo, error)

    // Collectible-related methods
    GetCommunityID(tokenURI string) string
    FillCollectiblesMetadata(communityID string, cs []*FullCollectibleData) (bool, error)
}