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
1814a000
Commit
1814a000
authored
Sep 21, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tx log fixes
parent
54a995bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
16 deletions
+36
-16
TxDecodedInputData.tsx
ui/tx/TxDecodedInputData.tsx
+32
-12
TxLogItem.tsx
ui/tx/logs/TxLogItem.tsx
+4
-4
No files found.
ui/tx/TxDecodedInputData.tsx
View file @
1814a000
...
@@ -10,12 +10,13 @@ interface RowProps {
...
@@ -10,12 +10,13 @@ interface RowProps {
isLast
?:
boolean
;
isLast
?:
boolean
;
name
:
string
;
name
:
string
;
type
:
string
;
type
:
string
;
indexed
?:
boolean
;
}
}
const
PADDING
=
4
;
const
PADDING
=
4
;
const
GAP
=
5
;
const
GAP
=
5
;
const
TableRow
=
({
isLast
,
name
,
type
,
children
}:
RowProps
)
=>
{
const
TableRow
=
({
isLast
,
name
,
type
,
children
,
indexed
}:
RowProps
)
=>
{
const
bgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
const
bgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
return
(
return
(
...
@@ -38,6 +39,14 @@ const TableRow = ({ isLast, name, type, children }: RowProps) => {
...
@@ -38,6 +39,14 @@ const TableRow = ({ isLast, name, type, children }: RowProps) => {
>
>
{
type
}
{
type
}
</
GridItem
>
</
GridItem
>
<
GridItem
pr=
{
GAP
}
pt=
{
GAP
}
pb=
{
isLast
?
PADDING
:
0
}
bgColor=
{
bgColor
}
>
{
indexed
?
'
true
'
:
'
false
'
}
</
GridItem
>
<
GridItem
<
GridItem
pr=
{
PADDING
}
pr=
{
PADDING
}
pt=
{
GAP
}
pt=
{
GAP
}
...
@@ -55,28 +64,30 @@ const TxDecodedInputData = () => {
...
@@ -55,28 +64,30 @@ const TxDecodedInputData = () => {
const
bgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
const
bgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
return
(
return
(
<
Grid
gridTemplateColumns=
"minmax(80px, auto) minmax(80px, auto) minmax(0, 1fr)"
fontSize=
"sm"
lineHeight=
{
5
}
w=
"100%"
>
<
Grid
gridTemplateColumns=
"minmax(80px, auto) minmax(80px, auto) minmax(
80px, auto) minmax(
0, 1fr)"
fontSize=
"sm"
lineHeight=
{
5
}
w=
"100%"
>
{
/* FIRST PART OF BLOCK */
}
{
/* FIRST PART OF BLOCK */
}
<
GridItem
fontWeight=
{
600
}
pl=
{
PADDING
}
pr=
{
GAP
}
>
Method Id
</
GridItem
>
<
GridItem
fontWeight=
{
600
}
pl=
{
{
base
:
0
,
lg
:
PADDING
}
}
pr=
{
{
base
:
0
,
lg
:
GAP
}
}
colSpan=
{
{
base
:
4
,
lg
:
undefined
}
}
>
Method Id
</
GridItem
>
<
GridItem
colSpan=
{
2
}
pr=
{
PADDING
}
>
0xddf252ad
</
GridItem
>
<
GridItem
colSpan=
{
{
base
:
4
,
lg
:
3
}
}
pr=
{
{
base
:
0
,
lg
:
PADDING
}
}
mt=
{
{
base
:
2
,
lg
:
0
}
}
>
0xddf252ad
</
GridItem
>
<
GridItem
<
GridItem
py=
{
2
}
py=
{
2
}
mt=
{
2
}
mt=
{
2
}
pl=
{
PADDING
}
pl=
{
{
base
:
0
,
lg
:
PADDING
}
}
pr=
{
GAP
}
pr=
{
{
base
:
0
,
lg
:
GAP
}
}
fontWeight=
{
600
}
fontWeight=
{
600
}
borderTopColor=
{
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
)
}
borderTopColor=
{
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
)
}
borderTopWidth=
"1px"
borderTopWidth=
"1px"
colSpan=
{
{
base
:
4
,
lg
:
undefined
}
}
>
>
Call
Call
</
GridItem
>
</
GridItem
>
<
GridItem
<
GridItem
py=
{
2
}
py=
{
{
base
:
0
,
lg
:
2
}
}
mt=
{
2
}
mt=
{
{
base
:
0
,
lg
:
2
}
}
colSpan=
{
2
}
mb=
{
{
base
:
2
,
lg
:
0
}
}
pr=
{
PADDING
}
colSpan=
{
{
base
:
4
,
lg
:
3
}
}
pr=
{
{
base
:
0
,
lg
:
PADDING
}
}
borderTopColor=
{
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
)
}
borderTopColor=
{
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
)
}
borderTopWidth=
"1px"
borderTopWidth=
{
{
base
:
'
0px
'
,
lg
:
'
1px
'
}
}
whiteSpace=
"normal"
whiteSpace=
"normal"
>
>
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
...
@@ -101,6 +112,15 @@ const TxDecodedInputData = () => {
...
@@ -101,6 +112,15 @@ const TxDecodedInputData = () => {
>
>
Type
Type
</
GridItem
>
</
GridItem
>
<
GridItem
pr=
{
GAP
}
pt=
{
PADDING
}
pb=
{
1
}
bgColor=
{
bgColor
}
fontWeight=
{
600
}
>
Indexed?
</
GridItem
>
<
GridItem
<
GridItem
pr=
{
PADDING
}
pr=
{
PADDING
}
pt=
{
PADDING
}
pt=
{
PADDING
}
...
@@ -116,7 +136,7 @@ const TxDecodedInputData = () => {
...
@@ -116,7 +136,7 @@ const TxDecodedInputData = () => {
<
CopyToClipboard
text=
"0x0000000000000000000000000000000000000000"
/>
<
CopyToClipboard
text=
"0x0000000000000000000000000000000000000000"
/>
</
Address
>
</
Address
>
</
TableRow
>
</
TableRow
>
<
TableRow
name=
"
from"
type=
"address"
>
<
TableRow
name=
"
to"
type=
"address"
indexed
>
<
Address
justifyContent=
"space-between"
>
<
Address
justifyContent=
"space-between"
>
<
AddressLink
hash=
"0xcf0c50b7ea8af37d57380a0ac199d55b0782c718"
/>
<
AddressLink
hash=
"0xcf0c50b7ea8af37d57380a0ac199d55b0782c718"
/>
<
CopyToClipboard
text=
"0xcf0c50b7ea8af37d57380a0ac199d55b0782c718"
/>
<
CopyToClipboard
text=
"0xcf0c50b7ea8af37d57380a0ac199d55b0782c718"
/>
...
...
ui/tx/logs/TxLogItem.tsx
View file @
1814a000
...
@@ -16,8 +16,8 @@ interface Props {
...
@@ -16,8 +16,8 @@ interface Props {
}
}
const
RowHeader
=
({
children
}:
{
children
:
React
.
ReactNode
})
=>
(
const
RowHeader
=
({
children
}:
{
children
:
React
.
ReactNode
})
=>
(
<
GridItem
_notFirst=
{
{
m
t
:
{
base
:
5
,
lg
:
0
}
}
}
>
<
GridItem
_notFirst=
{
{
m
y
:
{
base
:
4
,
lg
:
0
}
}
}
>
<
Text
fontWeight=
{
{
base
:
700
,
lg
:
500
}
}
>
{
children
}
</
Text
>
<
Text
fontWeight=
{
500
}
>
{
children
}
</
Text
>
</
GridItem
>
</
GridItem
>
);
);
...
@@ -28,7 +28,7 @@ const TxLogItem = ({ address, index, topics, data }: Props) => {
...
@@ -28,7 +28,7 @@ const TxLogItem = ({ address, index, topics, data }: Props) => {
return
(
return
(
<
Grid
<
Grid
gridTemplateColumns=
{
{
base
:
'
minmax(0, 1fr)
'
,
lg
:
'
200px minmax(0, 1fr)
'
}
}
gridTemplateColumns=
{
{
base
:
'
minmax(0, 1fr)
'
,
lg
:
'
200px minmax(0, 1fr)
'
}
}
gap=
{
{
base
:
3
,
lg
:
8
}
}
gap=
{
{
base
:
2
,
lg
:
8
}
}
py=
{
8
}
py=
{
8
}
_notFirst=
{
{
_notFirst=
{
{
borderTopWidth
:
'
1px
'
,
borderTopWidth
:
'
1px
'
,
...
@@ -50,7 +50,7 @@ const TxLogItem = ({ address, index, topics, data }: Props) => {
...
@@ -50,7 +50,7 @@ const TxLogItem = ({ address, index, topics, data }: Props) => {
</
Link
>
</
Link
>
</
Tooltip
>
</
Tooltip
>
<
Tooltip
label=
"Log index"
>
<
Tooltip
label=
"Log index"
>
<
Button
variant=
"outline"
isActive
ml=
{
{
base
:
6
,
lg
:
'
auto
'
}
}
size=
"sm"
fontWeight=
{
400
}
>
<
Button
variant=
"outline"
isActive
ml=
{
{
base
:
9
,
lg
:
'
auto
'
}
}
size=
"sm"
fontWeight=
{
400
}
>
{
index
}
{
index
}
</
Button
>
</
Button
>
</
Tooltip
>
</
Tooltip
>
...
...
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