Skip to content

Commit

Permalink
feat: show cardano tx
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Aug 31, 2024
1 parent 25634ca commit e4e79ba
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/routes/explorer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<div class="table-cell p-4">Target</div>
<div class="table-cell p-4">Hash</div>
<div class="table-cell p-4">Epoch</div>
<div class="table-cell p-4">Cardano Tx</div>
<div class="table-cell p-4">Time</div>
</div>

Expand All @@ -62,8 +63,20 @@
<div class="table-cell p-4 border-t-2 border-gray-800">
<div class="badge badge-success">{Math.floor(block.number / 2016 + 1)}</div>
</div>

<div class="table-cell p-4 border-t-2 border-gray-800">
<a class="link" href={`https://cexplorer.io/tx/${block.cardano_tx_hash}`}>view</a>
</div>

<div class="table-cell p-4 border-t-2 border-gray-800">
{intlFormat(block.currentPosixTime)}
{intlFormat(block.currentPosixTime, {
year: 'numeric',
month: 'short',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
})}
</div>
</div>
{/each}
Expand Down

0 comments on commit e4e79ba

Please sign in to comment.