Adds links to token standards in API docs

pull/617/head
Sebastian Abondano 6 years ago committed by Luke Imhoff
parent 56403341cd
commit 6c05d0a9f3
  1. 9
      apps/block_scout_web/lib/block_scout_web/etherscan.ex
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex

@ -821,7 +821,9 @@ defmodule BlockScoutWeb.Etherscan do
@token_gettoken_action %{
name: "getToken",
description: "Get ERC-20 or ERC-721 token by contract address.",
description:
"Get <a href='https://github.com/ethereum/EIPs/issues/20'>ERC-20</a>" <>
"or <a href='https://github.com/ethereum/EIPs/issues/721'>ERC-721</a> token by contract address.",
required_params: [
%{
key: "contractaddress",
@ -858,7 +860,10 @@ defmodule BlockScoutWeb.Etherscan do
@stats_tokensupply_action %{
name: "tokensupply",
description: "Get an ERC-20 or ERC-721 token total supply by contract address.",
description:
"Get <a href='https://github.com/ethereum/EIPs/issues/20'>ERC-20</a> or " <>
"<a href='https://github.com/ethereum/EIPs/issues/721'>ERC-721</a> " <>
" token total supply by contract address.",
required_params: [
%{
key: "contractaddress",

@ -7,7 +7,7 @@
<span class="badge badge-primary tile-badge float-right mr-1"><%= gettext "GET" %></span>
<strong class="tile-label"><%= @action.name %></strong>
</h3>
<h4 class="text-dark"><%= @action.description %></h4>
<h4 class="text-dark"><%= raw @action.description %></h4>
<code><%= raw query_params(@module_name, @action) %></code>
</button>
</div>

Loading…
Cancel
Save