|
|
@ -9,6 +9,12 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
"result" => "663046792267785498951364" |
|
|
|
"result" => "663046792267785498951364" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@account_balance_example_value_error %{ |
|
|
|
|
|
|
|
"status" => "0", |
|
|
|
|
|
|
|
"message" => "Invalid address hash", |
|
|
|
|
|
|
|
"result" => nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@account_balancemulti_example_value %{ |
|
|
|
@account_balancemulti_example_value %{ |
|
|
|
"status" => "1", |
|
|
|
"status" => "1", |
|
|
|
"message" => "OK", |
|
|
|
"message" => "OK", |
|
|
@ -56,6 +62,12 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@account_txlist_example_value_error %{ |
|
|
|
|
|
|
|
"status" => "0", |
|
|
|
|
|
|
|
"message" => "No transactions found", |
|
|
|
|
|
|
|
"result" => [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@status_type %{ |
|
|
|
@status_type %{ |
|
|
|
type: "status", |
|
|
|
type: "status", |
|
|
|
enum: ~s(["0", "1"]), |
|
|
|
enum: ~s(["0", "1"]), |
|
|
@ -173,6 +185,7 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
responses: [ |
|
|
|
responses: [ |
|
|
|
%{ |
|
|
|
%{ |
|
|
|
code: "200", |
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "successful operation", |
|
|
|
example_value: Jason.encode!(@account_balance_example_value), |
|
|
|
example_value: Jason.encode!(@account_balance_example_value), |
|
|
|
model: %{ |
|
|
|
model: %{ |
|
|
|
name: "Result", |
|
|
|
name: "Result", |
|
|
@ -182,6 +195,11 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
result: @wei_type |
|
|
|
result: @wei_type |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
%{ |
|
|
|
|
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "error", |
|
|
|
|
|
|
|
example_value: Jason.encode!(@account_balance_example_value_error) |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
@ -202,6 +220,7 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
responses: [ |
|
|
|
responses: [ |
|
|
|
%{ |
|
|
|
%{ |
|
|
|
code: "200", |
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "successful operation", |
|
|
|
example_value: Jason.encode!(@account_balancemulti_example_value), |
|
|
|
example_value: Jason.encode!(@account_balancemulti_example_value), |
|
|
|
model: %{ |
|
|
|
model: %{ |
|
|
|
name: "Result", |
|
|
|
name: "Result", |
|
|
@ -214,6 +233,11 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
%{ |
|
|
|
|
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "error", |
|
|
|
|
|
|
|
example_value: Jason.encode!(@account_balance_example_value_error) |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
@ -262,6 +286,7 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
responses: [ |
|
|
|
responses: [ |
|
|
|
%{ |
|
|
|
%{ |
|
|
|
code: "200", |
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "successful operation", |
|
|
|
example_value: Jason.encode!(@account_txlist_example_value), |
|
|
|
example_value: Jason.encode!(@account_txlist_example_value), |
|
|
|
model: %{ |
|
|
|
model: %{ |
|
|
|
name: "Result", |
|
|
|
name: "Result", |
|
|
@ -274,6 +299,11 @@ defmodule ExplorerWeb.Etherscan do |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
%{ |
|
|
|
|
|
|
|
code: "200", |
|
|
|
|
|
|
|
description: "error", |
|
|
|
|
|
|
|
example_value: Jason.encode!(@account_txlist_example_value_error) |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|