mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 }>
|
||||
|
||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 113 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 113 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 98 KiB |
Reference in New Issue
Block a user