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
3ed37a15
Commit
3ed37a15
authored
Jan 23, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove call data tab
parent
1cf6ca78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
27 deletions
+9
-27
UserOp.tsx
ui/pages/UserOp.tsx
+1
-7
UserOp.pw.tsx_default_base-view-1.png
...ges/__screenshots__/UserOp.pw.tsx_default_base-view-1.png
+0
-0
UserOp.pw.tsx_default_mobile-base-view-1.png
...creenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png
+0
-0
UserOpCallData.tsx
ui/userOp/UserOpCallData.tsx
+0
-19
UserOpDetails.tsx
ui/userOp/UserOpDetails.tsx
+8
-1
No files found.
ui/pages/UserOp.tsx
View file @
3ed37a15
...
@@ -18,7 +18,6 @@ import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
...
@@ -18,7 +18,6 @@ import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
import
useTabIndexFromQuery
from
'
ui/shared/Tabs/useTabIndexFromQuery
'
;
import
useTabIndexFromQuery
from
'
ui/shared/Tabs/useTabIndexFromQuery
'
;
import
TxLogs
from
'
ui/tx/TxLogs
'
;
import
TxLogs
from
'
ui/tx/TxLogs
'
;
import
TxTokenTransfer
from
'
ui/tx/TxTokenTransfer
'
;
import
TxTokenTransfer
from
'
ui/tx/TxTokenTransfer
'
;
import
UserOpCallData
from
'
ui/userOp/UserOpCallData
'
;
import
UserOpDetails
from
'
ui/userOp/UserOpDetails
'
;
import
UserOpDetails
from
'
ui/userOp/UserOpDetails
'
;
import
UserOpRaw
from
'
ui/userOp/UserOpRaw
'
;
import
UserOpRaw
from
'
ui/userOp/UserOpRaw
'
;
...
@@ -64,14 +63,9 @@ const UserOp = () => {
...
@@ -64,14 +63,9 @@ const UserOp = () => {
title
:
'
Token transfers
'
,
title
:
'
Token transfers
'
,
component
:
<
TxTokenTransfer
txHash=
{
userOpQuery
.
data
?.
transaction_hash
}
tokenTransferFilter=
{
filterTokenTransfersByLogIndex
}
/>,
component
:
<
TxTokenTransfer
txHash=
{
userOpQuery
.
data
?.
transaction_hash
}
tokenTransferFilter=
{
filterTokenTransfersByLogIndex
}
/>,
},
},
{
id
:
'
call_data
'
,
title
:
'
Call data
'
,
component
:
<
UserOpCallData
rawCallData=
{
userOpQuery
.
data
?.
call_data
}
isLoading=
{
userOpQuery
.
isPlaceholderData
}
/>,
},
{
id
:
'
logs
'
,
title
:
'
Logs
'
,
component
:
<
TxLogs
txHash=
{
userOpQuery
.
data
?.
transaction_hash
}
logsFilter=
{
filterLogsByLogIndex
}
/>
},
{
id
:
'
logs
'
,
title
:
'
Logs
'
,
component
:
<
TxLogs
txHash=
{
userOpQuery
.
data
?.
transaction_hash
}
logsFilter=
{
filterLogsByLogIndex
}
/>
},
{
id
:
'
raw
'
,
title
:
'
Raw
'
,
component
:
<
UserOpRaw
rawData=
{
userOpQuery
.
data
?.
raw
}
isLoading=
{
userOpQuery
.
isPlaceholderData
}
/>
},
{
id
:
'
raw
'
,
title
:
'
Raw
'
,
component
:
<
UserOpRaw
rawData=
{
userOpQuery
.
data
?.
raw
}
isLoading=
{
userOpQuery
.
isPlaceholderData
}
/>
},
]
.
filter
(
Boolean
)
),
[
userOpQuery
,
filterTokenTransfersByLogIndex
,
filterLogsByLogIndex
]);
]),
[
userOpQuery
,
filterTokenTransfersByLogIndex
,
filterLogsByLogIndex
]);
const
tabIndex
=
useTabIndexFromQuery
(
tabs
);
const
tabIndex
=
useTabIndexFromQuery
(
tabs
);
...
...
ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png
View replaced file @
1cf6ca78
View file @
3ed37a15
76.4 KB
|
W:
|
H:
75.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png
View replaced file @
1cf6ca78
View file @
3ed37a15
67.8 KB
|
W:
|
H:
68 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/userOp/UserOpCallData.tsx
deleted
100644 → 0
View file @
1cf6ca78
import
{
Skeleton
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
RawInputData
from
'
ui/shared/RawInputData
'
;
// decoded calldata will be added later
type
Props
=
{
rawCallData
?:
string
;
isLoading
?:
boolean
;
}
const
UserOpCallData
=
({
rawCallData
,
isLoading
}:
Props
)
=>
{
if
(
!
rawCallData
)
{
return
null
;
}
return
<
Skeleton
isLoaded=
{
!
isLoading
}
><
RawInputData
hex=
{
rawCallData
}
/></
Skeleton
>;
};
export
default
UserOpCallData
;
ui/userOp/UserOpDetails.tsx
View file @
3ed37a15
...
@@ -9,6 +9,7 @@ import type { UserOp } from 'types/api/userOps';
...
@@ -9,6 +9,7 @@ import type { UserOp } from 'types/api/userOps';
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
{
WEI
,
WEI_IN_GWEI
}
from
'
lib/consts
'
;
import
{
WEI
,
WEI_IN_GWEI
}
from
'
lib/consts
'
;
import
throwOnResourceLoadError
from
'
lib/errors/throwOnResourceLoadError
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
{
space
}
from
'
lib/html-entities
'
;
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
...
@@ -18,10 +19,10 @@ import DetailsTimestamp from 'ui/shared/DetailsTimestamp';
...
@@ -18,10 +19,10 @@ import DetailsTimestamp from 'ui/shared/DetailsTimestamp';
import
BlockEntity
from
'
ui/shared/entities/block/BlockEntity
'
;
import
BlockEntity
from
'
ui/shared/entities/block/BlockEntity
'
;
import
TxEntity
from
'
ui/shared/entities/tx/TxEntity
'
;
import
TxEntity
from
'
ui/shared/entities/tx/TxEntity
'
;
import
UserOpEntity
from
'
ui/shared/entities/userOp/UserOpEntity
'
;
import
UserOpEntity
from
'
ui/shared/entities/userOp/UserOpEntity
'
;
import
RawInputData
from
'
ui/shared/RawInputData
'
;
import
UserOpsAddress
from
'
ui/shared/userOps/UserOpsAddress
'
;
import
UserOpsAddress
from
'
ui/shared/userOps/UserOpsAddress
'
;
import
UserOpSponsorType
from
'
ui/shared/userOps/UserOpSponsorType
'
;
import
UserOpSponsorType
from
'
ui/shared/userOps/UserOpSponsorType
'
;
import
UserOpStatus
from
'
ui/shared/userOps/UserOpStatus
'
;
import
UserOpStatus
from
'
ui/shared/userOps/UserOpStatus
'
;
import
throwOnResourceLoadError
from
'
lib/errors/throwOnResourceLoadError
'
;
import
Utilization
from
'
ui/shared/Utilization/Utilization
'
;
import
Utilization
from
'
ui/shared/Utilization/Utilization
'
;
interface
Props
{
interface
Props
{
...
@@ -293,6 +294,12 @@ const UserOpDetails = ({ query }: Props) => {
...
@@ -293,6 +294,12 @@ const UserOpDetails = ({ query }: Props) => {
>
>
{
data
.
nonce
}
{
data
.
nonce
}
</
DetailsInfoItem
>
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
"Call data"
hint=
"Data that’s passed to the sender for execution"
>
<
RawInputData
hex=
{
data
.
call_data
}
/>
</
DetailsInfoItem
>
</>
</>
)
}
)
}
</
Grid
>
</
Grid
>
...
...
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