|
|
@ -37,30 +37,30 @@ const showTable = (opts, showTableHash) => { |
|
|
|
const val = opts.val != null ? typeConversion.toInt(opts.val) : 0 |
|
|
|
const val = opts.val != null ? typeConversion.toInt(opts.val) : 0 |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<table |
|
|
|
<table |
|
|
|
className={`txTable ${showTableHash.includes(opts.hash) ? 'active' : ''}`} |
|
|
|
className={`mt-1 mb-2 mr-4 align-self-center ${showTableHash.includes(opts.hash) ? 'active' : ''}`} |
|
|
|
id="txTable" |
|
|
|
id="txTable" |
|
|
|
data-id={`txLoggerTable${opts.hash}`} |
|
|
|
data-id={`txLoggerTable${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{opts.status !== undefined ? ( |
|
|
|
{opts.status !== undefined ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
status |
|
|
|
status |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableStatus${opts.hash}`} |
|
|
|
data-id={`txLoggerTableStatus${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
>{`${opts.status} ${msg}`}</td> |
|
|
|
>{`${opts.status} ${msg}`}</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.hash && !opts.isCall ? ( |
|
|
|
{opts.hash && !opts.isCall ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
transaction hash |
|
|
|
transaction hash |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -70,12 +70,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.contractAddress ? ( |
|
|
|
{opts.contractAddress ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
contract address |
|
|
|
contract address |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableContractAddress${opts.hash}`} |
|
|
|
data-id={`txLoggerTableContractAddress${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -85,12 +85,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.from ? ( |
|
|
|
{opts.from ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td tableTitle" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="td tableTitle" data-shared={`key_${opts.hash}`}> |
|
|
|
from |
|
|
|
from |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableFrom${opts.hash}`} |
|
|
|
data-id={`txLoggerTableFrom${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -100,12 +100,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.to ? ( |
|
|
|
{opts.to ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
to |
|
|
|
to |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableTo${opts.hash}`} |
|
|
|
data-id={`txLoggerTableTo${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -115,12 +115,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.gas ? ( |
|
|
|
{opts.gas ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
gas |
|
|
|
gas |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableGas${opts.hash}`} |
|
|
|
data-id={`txLoggerTableGas${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -130,12 +130,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.transactionCost ? ( |
|
|
|
{opts.transactionCost ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
transaction cost |
|
|
|
transaction cost |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableTransactionCost${opts.hash}`} |
|
|
|
data-id={`txLoggerTableTransactionCost${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -145,12 +145,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.executionCost ? ( |
|
|
|
{opts.executionCost ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
execution cost |
|
|
|
execution cost |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableExecutionHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableExecutionHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -160,12 +160,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.hash ? ( |
|
|
|
{opts.hash ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
hash |
|
|
|
hash |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -175,12 +175,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.input ? ( |
|
|
|
{opts.input ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
input |
|
|
|
input |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -190,12 +190,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts['decoded input'] ? ( |
|
|
|
{opts['decoded input'] ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
decoded input |
|
|
|
decoded input |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -205,12 +205,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts['decoded output'] ? ( |
|
|
|
{opts['decoded output'] ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
decoded output |
|
|
|
decoded output |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -220,12 +220,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.logs ? ( |
|
|
|
{opts.logs ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
logs |
|
|
|
logs |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
@ -238,12 +238,12 @@ const showTable = (opts, showTableHash) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{opts.val ? ( |
|
|
|
{opts.val ? ( |
|
|
|
<tr className="tr"> |
|
|
|
<tr className="remix_ui_terminal_tr"> |
|
|
|
<td className="td" data-shared={`key_${opts.hash}`}> |
|
|
|
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> |
|
|
|
val |
|
|
|
val |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td |
|
|
|
<td |
|
|
|
className="td" |
|
|
|
className="remix_ui_terminal_td" |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-id={`txLoggerTableHash${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
data-shared={`pair_${opts.hash}`} |
|
|
|
> |
|
|
|
> |
|
|
|