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
64d1f392
Unverified
Commit
64d1f392
authored
Feb 04, 2025
by
Igor Stuev
Committed by
GitHub
Feb 04, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show decoded target address in User operations (#2520)
parent
97858e77
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
0 deletions
+24
-0
userOp.ts
mocks/userOps/userOp.ts
+8
-0
userOps.ts
types/api/userOps.ts
+1
-0
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
UserOpDetails.tsx
ui/userOp/UserOpDetails.tsx
+15
-0
No files found.
mocks/userOps/userOp.ts
View file @
64d1f392
...
@@ -66,6 +66,14 @@ export const userOpData: UserOp = {
...
@@ -66,6 +66,14 @@ export const userOpData: UserOp = {
},
},
call_data
:
'
0xb61d27f600000000000000000000000059f6aa952df7f048fd076e33e0ea8bb552d5ffd8000000000000000000000000000000000000000000000000003f3d017500800000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
'
,
call_data
:
'
0xb61d27f600000000000000000000000059f6aa952df7f048fd076e33e0ea8bb552d5ffd8000000000000000000000000000000000000000000000000003f3d017500800000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
'
,
execute_call_data
:
'
0x3cf80e6c
'
,
execute_call_data
:
'
0x3cf80e6c
'
,
execute_target
:
{
ens_domain_name
:
null
,
hash
:
'
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
'
,
implementations
:
null
,
is_contract
:
true
,
is_verified
:
true
,
name
:
'
FiatTokenProxy
'
,
},
decoded_call_data
:
{
decoded_call_data
:
{
method_call
:
'
execute(address dest, uint256 value, bytes func)
'
,
method_call
:
'
execute(address dest, uint256 value, bytes func)
'
,
method_id
:
'
b61d27f6
'
,
method_id
:
'
b61d27f6
'
,
...
...
types/api/userOps.ts
View file @
64d1f392
...
@@ -49,6 +49,7 @@ export type UserOp = {
...
@@ -49,6 +49,7 @@ export type UserOp = {
call_data
:
string
;
call_data
:
string
;
decoded_call_data
:
DecodedInput
|
null
;
decoded_call_data
:
DecodedInput
|
null
;
execute_call_data
:
string
|
null
;
execute_call_data
:
string
|
null
;
execute_target
?:
AddressParamBasic
|
null
;
decoded_execute_call_data
:
DecodedInput
|
null
;
decoded_execute_call_data
:
DecodedInput
|
null
;
user_logs_start_index
:
number
;
user_logs_start_index
:
number
;
user_logs_count
:
number
;
user_logs_count
:
number
;
...
...
ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png
View replaced file @
97858e77
View file @
64d1f392
149 KB
|
W:
|
H:
153 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png
View replaced file @
97858e77
View file @
64d1f392
142 KB
|
W:
|
H:
146 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/userOp/UserOpDetails.tsx
View file @
64d1f392
...
@@ -19,6 +19,7 @@ import DataFetchAlert from 'ui/shared/DataFetchAlert';
...
@@ -19,6 +19,7 @@ import DataFetchAlert from 'ui/shared/DataFetchAlert';
import
*
as
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
*
as
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
DetailsInfoItemDivider
from
'
ui/shared/DetailsInfoItemDivider
'
;
import
DetailsInfoItemDivider
from
'
ui/shared/DetailsInfoItemDivider
'
;
import
DetailsTimestamp
from
'
ui/shared/DetailsTimestamp
'
;
import
DetailsTimestamp
from
'
ui/shared/DetailsTimestamp
'
;
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
AddressStringOrParam
from
'
ui/shared/entities/address/AddressStringOrParam
'
;
import
AddressStringOrParam
from
'
ui/shared/entities/address/AddressStringOrParam
'
;
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
'
;
...
@@ -91,6 +92,20 @@ const UserOpDetails = ({ query }: Props) => {
...
@@ -91,6 +92,20 @@ const UserOpDetails = ({ query }: Props) => {
<
AddressStringOrParam
address=
{
data
.
sender
}
isLoading=
{
isPlaceholderData
}
/>
<
AddressStringOrParam
address=
{
data
.
sender
}
isLoading=
{
isPlaceholderData
}
/>
</
DetailsInfoItem
.
Value
>
</
DetailsInfoItem
.
Value
>
{
data
.
execute_target
&&
(
<>
<
DetailsInfoItem
.
Label
hint=
"Target smart contract called by the User operation"
isLoading=
{
isPlaceholderData
}
>
Target
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
AddressEntity
address=
{
data
.
execute_target
}
isLoading=
{
isPlaceholderData
}
/>
</
DetailsInfoItem
.
Value
>
</>
)
}
<
DetailsInfoItem
.
Label
<
DetailsInfoItem
.
Label
hint=
"Current User operation state"
hint=
"Current User operation state"
isLoading=
{
isPlaceholderData
}
isLoading=
{
isPlaceholderData
}
...
...
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