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
5e8a8a6d
Commit
5e8a8a6d
authored
Oct 10, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contract verification alert
parent
e5af9612
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
routes.ts
lib/link/routes.ts
+4
-0
TxLogItem.tsx
ui/tx/logs/TxLogItem.tsx
+13
-2
No files found.
lib/link/routes.ts
View file @
5e8a8a6d
...
@@ -104,6 +104,10 @@ export const ROUTES = {
...
@@ -104,6 +104,10 @@ export const ROUTES = {
pattern
:
`
${
BASE_PATH
}
/address/[id]`
,
pattern
:
`
${
BASE_PATH
}
/address/[id]`
,
crossNetworkNavigation
:
true
,
crossNetworkNavigation
:
true
,
},
},
address_contract_verification
:
{
pattern
:
`
${
BASE_PATH
}
/address/[id]/contract_verifications/new`
,
crossNetworkNavigation
:
true
,
},
// APPS
// APPS
apps
:
{
apps
:
{
...
...
ui/tx/logs/TxLogItem.tsx
View file @
5e8a8a6d
import
{
Text
,
Grid
,
GridItem
,
Tooltip
,
Button
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Text
,
Grid
,
GridItem
,
Tooltip
,
Button
,
useColorModeValue
,
Alert
,
Link
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Log
}
from
'
types/api/log
'
;
import
type
{
Log
}
from
'
types/api/log
'
;
// import searchIcon from 'icons/search.svg';
// import searchIcon from 'icons/search.svg';
import
{
space
}
from
'
lib/html-entities
'
;
import
useLink
from
'
lib/link/useLink
'
;
import
Address
from
'
ui/shared/address/Address
'
;
import
Address
from
'
ui/shared/address/Address
'
;
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
import
AddressLink
from
'
ui/shared/address/AddressLink
'
;
...
@@ -22,6 +24,7 @@ const TxLogItem = ({ address, index, topics, data, decoded }: Props) => {
...
@@ -22,6 +24,7 @@ const TxLogItem = ({ address, index, topics, data, decoded }: Props) => {
const
borderColor
=
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
);
const
borderColor
=
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
);
const
dataBgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
const
dataBgColor
=
useColorModeValue
(
'
blackAlpha.50
'
,
'
whiteAlpha.50
'
);
const
link
=
useLink
();
return
(
return
(
<
Grid
<
Grid
...
@@ -36,9 +39,17 @@ const TxLogItem = ({ address, index, topics, data, decoded }: Props) => {
...
@@ -36,9 +39,17 @@ const TxLogItem = ({ address, index, topics, data, decoded }: Props) => {
pt
:
0
,
pt
:
0
,
}
}
}
}
>
>
{
!
decoded
&&
(
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
2
}
}
>
<
Alert
status=
"warning"
display=
"inline-table"
whiteSpace=
"normal"
>
To see accurate decoded input data, the contract must be verified.
{
space
}
<
Link
href=
{
link
(
'
address_contract_verification
'
,
{
id
:
address
.
hash
})
}
>
Verify the contract here
</
Link
>
</
Alert
>
</
GridItem
>
)
}
<
RowHeader
>
Address
</
RowHeader
>
<
RowHeader
>
Address
</
RowHeader
>
<
GridItem
display=
"flex"
alignItems=
"center"
>
<
GridItem
display=
"flex"
alignItems=
"center"
>
<
Address
>
<
Address
mr=
{
{
base
:
9
,
lg
:
0
}
}
>
<
AddressIcon
hash=
{
address
.
hash
}
/>
<
AddressIcon
hash=
{
address
.
hash
}
/>
<
AddressLink
hash=
{
address
.
hash
}
alias=
{
address
.
name
}
ml=
{
2
}
/>
<
AddressLink
hash=
{
address
.
hash
}
alias=
{
address
.
name
}
ml=
{
2
}
/>
</
Address
>
</
Address
>
...
...
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