Commit 31ec621b authored by isstuev's avatar isstuev

change field name

parent ed7aa0ec
...@@ -6,7 +6,7 @@ export const txnBatchesData = { ...@@ -6,7 +6,7 @@ export const txnBatchesData = {
'0x5bc94d02b65743dfaa9e10a2d6e175aff2a05cce2128c8eaf848bd84ab9325c5', '0x5bc94d02b65743dfaa9e10a2d6e175aff2a05cce2128c8eaf848bd84ab9325c5',
'0x92a51bc623111dbb91f243e3452e60fab6f090710357f9d9b75ac8a0f67dfd9d', '0x92a51bc623111dbb91f243e3452e60fab6f090710357f9d9b75ac8a0f67dfd9d',
], ],
l1_tx_timestamp: '2023-02-24T10:16:12.000000Z', l1_timestamp: '2023-02-24T10:16:12.000000Z',
l2_block_number: 5902836, l2_block_number: 5902836,
tx_count: 0, tx_count: 0,
}, },
...@@ -15,7 +15,7 @@ export const txnBatchesData = { ...@@ -15,7 +15,7 @@ export const txnBatchesData = {
l1_tx_hashes: [ l1_tx_hashes: [
'0xc45f846ee28ce9ba116ce2d378d3dd00b55d324b833b3ecd4241c919c572c4aa', '0xc45f846ee28ce9ba116ce2d378d3dd00b55d324b833b3ecd4241c919c572c4aa',
], ],
l1_tx_timestamp: '2023-02-24T10:16:00.000000Z', l1_timestamp: '2023-02-24T10:16:00.000000Z',
l2_block_number: 5902835, l2_block_number: 5902835,
tx_count: 0, tx_count: 0,
}, },
...@@ -24,7 +24,7 @@ export const txnBatchesData = { ...@@ -24,7 +24,7 @@ export const txnBatchesData = {
l1_tx_hashes: [ l1_tx_hashes: [
'0x48139721f792d3a68c3781b4cf50e66e8fc7dbb38adff778e09066ea5be9adb8', '0x48139721f792d3a68c3781b4cf50e66e8fc7dbb38adff778e09066ea5be9adb8',
], ],
l1_tx_timestamp: '2023-02-24T10:16:00.000000Z', l1_timestamp: '2023-02-24T10:16:00.000000Z',
l2_block_number: 5902834, l2_block_number: 5902834,
tx_count: 0, tx_count: 0,
}, },
......
export type TxnBatchesItem = { export type TxnBatchesItem = {
epoch_number: number; epoch_number: number;
l1_tx_hashes: Array<string>; l1_tx_hashes: Array<string>;
l1_tx_timestamp: string; l1_timestamp: string;
l2_block_number: number; l2_block_number: number;
tx_count: number; tx_count: number;
} }
......
...@@ -16,7 +16,7 @@ import ListItemMobileGrid from 'ui/shared/ListItemMobile/ListItemMobileGrid'; ...@@ -16,7 +16,7 @@ import ListItemMobileGrid from 'ui/shared/ListItemMobile/ListItemMobileGrid';
type Props = { item: TxnBatchesItem }; type Props = { item: TxnBatchesItem };
const TxnBatchesListItem = ({ item }: Props) => { const TxnBatchesListItem = ({ item }: Props) => {
const timeAgo = dayjs(item.l1_tx_timestamp).fromNow(); const timeAgo = dayjs(item.l1_timestamp).fromNow();
const items = [ const items = [
{ {
......
...@@ -15,7 +15,7 @@ import LinkInternal from 'ui/shared/LinkInternal'; ...@@ -15,7 +15,7 @@ import LinkInternal from 'ui/shared/LinkInternal';
type Props = { item: TxnBatchesItem }; type Props = { item: TxnBatchesItem };
const TxnBatchesTableItem = ({ item }: Props) => { const TxnBatchesTableItem = ({ item }: Props) => {
const timeAgo = dayjs(item.l1_tx_timestamp).fromNow(); const timeAgo = dayjs(item.l1_timestamp).fromNow();
return ( return (
<Tr> <Tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment