Skip to content

Commit

Permalink
added teamaddress config
Browse files Browse the repository at this point in the history
  • Loading branch information
MutsiMutsi committed Jan 23, 2022
1 parent 3c55ee4 commit a181905
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions backend/constants/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ const (

//duration of a subscription blocktime is ~20sec
SubscriptionDuration = 180

//official surge wallets
TeamAddressA = "7a48870a43d1512e467e8df103b1dee8d908f297ffe1fb45e81317965597bc7c"
TeamAddressB = "44734f736b31e522e9be64a812cf42d0822c765f4bc13404d3169ff8e3d54c9e"
TeamAddressC = "68a10e26288b9e97fc97362eb935574dd3db74004f0081918ee121d15ed1d29b"
)
5 changes: 3 additions & 2 deletions backend/topicmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ func GetTopicPermissions(topicName string, clientAddr string) models.TopicPermis
}

//Check if user is from team
//TODO: make this onchain somehow
if clientAddr == "7a48870a43d1512e467e8df103b1dee8d908f297ffe1fb45e81317965597bc7c" {
if clientAddr == constants.TeamAddressA ||
clientAddr == constants.TeamAddressB ||
clientAddr == constants.TeamAddressC {
return models.TopicPermissions{
CanRead: true,
CanWrite: true,
Expand Down

0 comments on commit a181905

Please sign in to comment.