Skip to content

Commit

Permalink
Add GetValidatorAssetLogoGithubURL and GetValidatorListGithubURL (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
unanoc authored Feb 9, 2022
1 parent af3a665 commit e6c6fdd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions path/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ func GetAssetLogoGithubURL(repoOwner, repoName, branch, chain, tokenID string) s
githubUserContentURL, repoOwner, repoName, branch, chain, tokenID)
}

func GetValidatorAssetLogoGithubURL(repoOwner, repoName, branch, chain, tokenID string) string {
return fmt.Sprintf("%s/%s/%s/%s/blockchains/%s/validators/assets/%s/logo.png",
githubUserContentURL, repoOwner, repoName, branch, chain, tokenID)
}

func GetValidatorListGithubURL(repoOwner, repoName, branch, chain string) string {
return fmt.Sprintf("%s/%s/%s/%s/blockchains/%s/validators/list.json",
githubUserContentURL, repoOwner, repoName, branch, chain)
}

func GetChainLogoURL(host, chain string) string {
return fmt.Sprintf("%s/blockchains/%s/info/logo.png", host, chain)
}
Expand Down

0 comments on commit e6c6fdd

Please sign in to comment.