|
|
@ -40,7 +40,8 @@ class ContextView { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const view = yo`<div class="${css.contextview} ${css.contextviewcontainer} badge bg-light border-0">
|
|
|
|
const view = yo` |
|
|
|
|
|
|
|
<div class="${css.contextview} ${css.contextviewcontainer} bg-light text-dark border-0"> |
|
|
|
<div class=${css.container}> |
|
|
|
<div class=${css.container}> |
|
|
|
${this._renderTarget()} |
|
|
|
${this._renderTarget()} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -159,21 +160,25 @@ class ContextView { |
|
|
|
const executionCost = ' Execution cost: ' + result.executionCost + ' gas' |
|
|
|
const executionCost = ' Execution cost: ' + result.executionCost + ' gas' |
|
|
|
const codeDepositCost = 'Code deposit cost: ' + result.codeDepositCost + ' gas' |
|
|
|
const codeDepositCost = 'Code deposit cost: ' + result.codeDepositCost + ' gas' |
|
|
|
const estimatedGas = result.codeDepositCost ? `${codeDepositCost}, ${executionCost}` : `${executionCost}` |
|
|
|
const estimatedGas = result.codeDepositCost ? `${codeDepositCost}, ${executionCost}` : `${executionCost}` |
|
|
|
return yo`<div class=${css.gasEstimation}>
|
|
|
|
return yo` |
|
|
|
<img class=${css.gasStationIcon} title='Gas estimation' src='assets/img/gasStation_50.png'> |
|
|
|
<div class=${css.gasEstimation}> |
|
|
|
${estimatedGas} |
|
|
|
<i class="fas fa-gas-pump ${css.gasStationIcon}" title='Gas estimation'></i> |
|
|
|
</div>` |
|
|
|
<span>${estimatedGas}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
` |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return yo`<div class=${css.line}>${showGasEstimation()} |
|
|
|
return yo` |
|
|
|
|
|
|
|
<div class=${css.line}>${showGasEstimation()} |
|
|
|
<div title=${type} class=${css.type}>${type}</div> |
|
|
|
<div title=${type} class=${css.type}>${type}</div> |
|
|
|
<div title=${node.attributes.name} class=${css.name}>${node.attributes.name}</div> |
|
|
|
<div title=${node.attributes.name} class=${css.name}>${node.attributes.name}</div> |
|
|
|
<i class="fas fa-share ${css.jump}" aria-hidden="true" onclick=${jumpTo}></i> |
|
|
|
<i class="fas fa-share ${css.jump}" aria-hidden="true" onclick=${jumpTo}></i> |
|
|
|
<span class=${css.referencesnb}>${references}</span> |
|
|
|
<span class=${css.referencesnb}>${references}</span> |
|
|
|
<i data-action='previous' class="fas fa-chevron-up ${css.jump}" aria-hidden="true" onclick=${jump}></i> |
|
|
|
<i data-action='previous' class="fas fa-chevron-up ${css.jump}" aria-hidden="true" onclick=${jump}></i> |
|
|
|
<i data-action='next' class="fas fa-chevron-down ${css.jump}" aria-hidden="true" onclick=${jump}></i> |
|
|
|
<i data-action='next' class="fas fa-chevron-down ${css.jump}" aria-hidden="true" onclick=${jump}></i> |
|
|
|
</div>` |
|
|
|
</div> |
|
|
|
|
|
|
|
` |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|