From 2a203f3ac7eaf99400854aee1cc0902a9a379acc Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Wed, 22 Dec 2021 10:49:02 +0400 Subject: [PATCH] adding username translation --- profile.go | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/profile.go b/profile.go index fdca980..457e9ff 100644 --- a/profile.go +++ b/profile.go @@ -8,26 +8,11 @@ import ( "io" "net/http" "sync" - "time" ) type Profile struct { - Address string `json:"address"` - Username string `json:"username"` - Leaderboard struct { - Global string `json:"global"` - Team string `json:"team"` - Volume int `json:"volume"` - NextRank string `json:"next_rank"` - } `json:"leaderboard"` - LeaderboardFantoken struct { - Global string `json:"global"` - Team string `json:"team"` - Volume int `json:"volume"` - NextRank string `json:"next_rank"` - } `json:"leaderboard_fantoken"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + Address string `json:"address"` + Username string `json:"username"` } func getUsernameFromAddress(address string) (string, error) {