Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
eb7e70be
Commit
eb7e70be
authored
Nov 06, 2024
by
isstuev
Committed by
tom goriunov
Nov 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token transfers, blocks fee and xstar fixes
parent
55ebeaaf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
xStarScore.ts
configs/app/features/xStarScore.ts
+2
-2
useNavItems.tsx
lib/hooks/useNavItems.tsx
+1
-1
block.ts
stubs/block.ts
+1
-1
TokenTransfers.tsx
ui/pages/TokenTransfers.tsx
+1
-1
TokenTransfersTable.tsx
ui/tokenTransfers/TokenTransfersTable.tsx
+1
-1
No files found.
configs/app/features/xStarScore.ts
View file @
eb7e70be
...
...
@@ -2,8 +2,8 @@ import type { Feature } from './types';
import
{
getEnvValue
}
from
'
../utils
'
;
const
title
=
'
X
name
score
'
;
const
url
=
getEnvValue
(
'
NEXT_PUBLIC_X
NAME
_SCORE_URL
'
);
const
title
=
'
X
Star
score
'
;
const
url
=
getEnvValue
(
'
NEXT_PUBLIC_X
STAR
_SCORE_URL
'
);
const
config
:
Feature
<
{
url
:
string
}
>
=
(()
=>
{
if
(
url
)
{
...
...
lib/hooks/useNavItems.tsx
View file @
eb7e70be
...
...
@@ -184,7 +184,7 @@ export default function useNavItems(): ReturnType {
text
:
'
Tokens
'
,
nextRoute
:
{
pathname
:
'
/tokens
'
as
const
},
icon
:
'
token
'
,
isActive
:
pathname
.
startsWith
(
'
/token
'
),
isActive
:
pathname
===
'
/tokens
'
||
pathname
.
startsWith
(
'
/token/
'
),
},
{
text
:
'
Token transfers
'
,
...
...
stubs/block.ts
View file @
eb7e70be
...
...
@@ -6,7 +6,7 @@ import { TOKEN_INFO_ERC_20, TOKEN_TRANSFER_ERC_20 } from './token';
export
const
BLOCK_HASH
=
'
0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70
'
;
export
const
BLOCK
:
Block
=
{
base_fee_per_gas
:
'
1
4
'
,
base_fee_per_gas
:
'
1
0000000000
'
,
burnt_fees
:
'
92834504000000000
'
,
burnt_fees_percentage
:
42.2
,
difficulty
:
'
340282366920938463463374607431768211451
'
,
...
...
ui/pages/TokenTransfers.tsx
View file @
eb7e70be
...
...
@@ -37,7 +37,7 @@ const TokenTransfers = () => {
<
Show
below=
"lg"
ssr=
{
false
}
>
{
tokenTransfersQuery
.
data
?.
items
.
map
((
item
,
index
)
=>
(
<
TokenTransfersListItem
key=
{
item
.
block_number
+
item
.
log_index
+
(
tokenTransfersQuery
.
isPlaceholderData
?
index
:
''
)
}
key=
{
item
.
tx_hash
+
item
.
log_index
+
(
tokenTransfersQuery
.
isPlaceholderData
?
index
:
''
)
}
isLoading=
{
tokenTransfersQuery
.
isPlaceholderData
}
item=
{
item
}
/>
...
...
ui/tokenTransfers/TokenTransfersTable.tsx
View file @
eb7e70be
...
...
@@ -30,7 +30,7 @@ const TokenTransferTable = ({ items, top, isLoading }: Props) => {
<
Tbody
>
{
items
?.
map
((
item
,
index
)
=>
(
<
TokenTransferTableItem
key=
{
item
.
block_number
+
item
.
log_index
+
(
isLoading
?
index
:
''
)
}
key=
{
item
.
tx_hash
+
item
.
log_index
+
(
isLoading
?
index
:
''
)
}
item=
{
item
}
isLoading=
{
isLoading
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment