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
c3420f6d
Unverified
Commit
c3420f6d
authored
Jun 13, 2024
by
tom goriunov
Committed by
GitHub
Jun 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blueprint contracts support (#2009)
Fixes #1907
parent
aeb16bf0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
0 deletions
+12
-0
info.ts
mocks/contract/info.ts
+3
-0
contract.ts
types/api/contract.ts
+1
-0
ContractCode.tsx
ui/address/contract/ContractCode.tsx
+8
-0
ContractCode.pw.tsx_dark-color-mode_full-view-mobile-dark-mode-1.png
...e.pw.tsx_dark-color-mode_full-view-mobile-dark-mode-1.png
+0
-0
ContractCode.pw.tsx_default_full-view-mobile-dark-mode-1.png
...tractCode.pw.tsx_default_full-view-mobile-dark-mode-1.png
+0
-0
ContractCode.pw.tsx_mobile_full-view-mobile-dark-mode-1.png
...ntractCode.pw.tsx_mobile_full-view-mobile-dark-mode-1.png
+0
-0
No files found.
mocks/contract/info.ts
View file @
c3420f6d
...
...
@@ -16,6 +16,7 @@ export const verified: SmartContract = {
},
evm_version
:
'
default
'
,
is_verified
:
true
,
is_blueprint
:
false
,
name
:
'
WPOA
'
,
optimization_enabled
:
true
,
optimization_runs
:
1500
,
...
...
@@ -101,10 +102,12 @@ export const selfDestructed: SmartContract = {
export
const
withChangedByteCode
:
SmartContract
=
{
...
verified
,
is_changed_bytecode
:
true
,
is_blueprint
:
true
,
};
export
const
nonVerified
:
SmartContract
=
{
is_verified
:
false
,
is_blueprint
:
false
,
creation_bytecode
:
'
creation_bytecode
'
,
deployed_bytecode
:
'
deployed_bytecode
'
,
is_self_destructed
:
false
,
...
...
types/api/contract.ts
View file @
c3420f6d
...
...
@@ -30,6 +30,7 @@ export interface SmartContract {
optimization_runs
:
number
|
null
;
name
:
string
|
null
;
verified_at
:
string
|
null
;
is_blueprint
:
boolean
|
null
;
is_verified
:
boolean
|
null
;
is_verified_via_eth_bytecode_db
:
boolean
|
null
;
is_changed_bytecode
:
boolean
|
null
;
...
...
ui/address/contract/ContractCode.tsx
View file @
c3420f6d
...
...
@@ -206,6 +206,14 @@ const ContractCode = ({ addressHash, contractQuery, channel }: Props) => {
return
(
<>
<
Flex
flexDir=
"column"
rowGap=
{
2
}
mb=
{
6
}
_empty=
{
{
display
:
'
none
'
}
}
>
{
data
?.
is_blueprint
&&
(
<
Box
>
<
span
>
This is an
</
span
>
<
LinkExternal
href=
"https://eips.ethereum.org/EIPS/eip-5202"
>
ERC-5202 Blueprint contract
</
LinkExternal
>
</
Box
>
)
}
{
data
?.
is_verified
&&
(
<
Skeleton
isLoaded=
{
!
isPlaceholderData
}
>
<
Alert
status=
"success"
flexWrap=
"wrap"
rowGap=
{
3
}
columnGap=
{
5
}
>
...
...
ui/address/contract/__screenshots__/ContractCode.pw.tsx_dark-color-mode_full-view-mobile-dark-mode-1.png
View replaced file @
aeb16bf0
View file @
c3420f6d
109 KB
|
W:
|
H:
113 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/address/contract/__screenshots__/ContractCode.pw.tsx_default_full-view-mobile-dark-mode-1.png
View replaced file @
aeb16bf0
View file @
c3420f6d
108 KB
|
W:
|
H:
113 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/address/contract/__screenshots__/ContractCode.pw.tsx_mobile_full-view-mobile-dark-mode-1.png
View replaced file @
aeb16bf0
View file @
c3420f6d
94.2 KB
|
W:
|
H:
98.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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