diff --git a/api/api_types.go b/api/api_types.go index d7e218f5a..94c7b54ac 100644 --- a/api/api_types.go +++ b/api/api_types.go @@ -321,6 +321,9 @@ func CensusTypeToOrigin(ctype CensusTypeDescription) (models.CensusOrigin, []byt case CensusTypeWeighted, CensusTypeZKWeighted: origin = models.CensusOrigin_OFF_CHAIN_TREE_WEIGHTED root = ctype.RootHash + case CensusTypeFarcaster: + origin = models.CensusOrigin_FARCASTER_FRAME + root = ctype.RootHash default: return 0, nil, ErrCensusTypeUnknown.Withf("%q", ctype) } diff --git a/api/census_helpers.go b/api/census_helpers.go index 3317486a1..58e1e441a 100644 --- a/api/census_helpers.go +++ b/api/census_helpers.go @@ -32,6 +32,8 @@ func encodeCensusType(t models.Census_Type) string { return CensusTypeWeighted case models.Census_CA: return CensusTypeCSP + case models.Census_FARCASTER_FRAME: + return CensusTypeFarcaster } return CensusTypeUnknown diff --git a/api/censuses.go b/api/censuses.go index 0f971dbae..dc2f8fea4 100644 --- a/api/censuses.go +++ b/api/censuses.go @@ -29,6 +29,7 @@ const ( CensusTypeWeighted = "weighted" CensusTypeZKWeighted = "zkweighted" CensusTypeCSP = "csp" + CensusTypeFarcaster = "farcaster" CensusTypeUnknown = "unknown" MaxCensusAddBatchSize = 8192