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
ef7e9938
Commit
ef7e9938
authored
Oct 25, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
couple more robust places
parent
c033e3b0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
35 deletions
+33
-35
address.ts
types/api/address.ts
+1
-25
addressParams.ts
types/api/addressParams.ts
+24
-1
AddressDetails.tsx
ui/address/AddressDetails.tsx
+5
-5
FilecoinActorTag.tsx
ui/address/filecoin/FilecoinActorTag.tsx
+1
-1
Address.tsx
ui/pages/Address.tsx
+0
-1
AddressEntity.tsx
ui/shared/entities/address/AddressEntity.tsx
+1
-1
AddressEntityContentProxy.tsx
ui/shared/entities/address/AddressEntityContentProxy.tsx
+1
-1
No files found.
types/api/address.ts
View file @
ef7e9938
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
UserTags
,
AddressImplementation
,
AddressParam
}
from
'
./addressParams
'
;
import
type
{
UserTags
,
AddressImplementation
,
AddressParam
,
AddressFilecoinParams
}
from
'
./addressParams
'
;
import
type
{
Block
,
EpochRewardsType
}
from
'
./block
'
;
import
type
{
InternalTransaction
}
from
'
./internalTransaction
'
;
import
type
{
MudWorldSchema
,
MudWorldTable
}
from
'
./mudWorlds
'
;
...
...
@@ -270,27 +270,3 @@ export type AddressEpochRewardsItem = {
epoch_number
:
number
;
associated_account
:
AddressParam
;
}
export
type
AddressFilecoinParams
=
{
actor_type
?:
FilecoinActorType
;
id
?:
string
|
null
;
robust
?:
string
|
null
;
}
export
type
FilecoinActorType
=
'
account
'
|
'
cron
'
|
'
datacap
'
|
'
eam
'
|
'
ethaccount
'
|
'
evm
'
|
'
init
'
|
'
market
'
|
'
miner
'
|
'
multisig
'
|
'
paych
'
|
'
placeholder
'
|
'
power
'
|
'
reward
'
|
'
system
'
|
'
verifreg
'
;
types/api/addressParams.ts
View file @
ef7e9938
import
type
{
AddressFilecoinParams
}
from
'
./address
'
;
import
type
{
AddressMetadataTagApi
}
from
'
./addressMetadata
'
;
export
interface
AddressImplementation
{
...
...
@@ -17,6 +16,30 @@ export interface WatchlistName {
display_name
:
string
;
}
export
type
AddressFilecoinParams
=
{
actor_type
?:
FilecoinActorType
;
id
?:
string
|
null
;
robust
?:
string
|
null
;
}
export
type
FilecoinActorType
=
'
account
'
|
'
cron
'
|
'
datacap
'
|
'
eam
'
|
'
ethaccount
'
|
'
evm
'
|
'
init
'
|
'
market
'
|
'
miner
'
|
'
multisig
'
|
'
paych
'
|
'
placeholder
'
|
'
power
'
|
'
reward
'
|
'
system
'
|
'
verifreg
'
;
export
interface
UserTags
{
private_tags
:
Array
<
AddressTag
>
|
null
;
watchlist_names
:
Array
<
WatchlistName
>
|
null
;
...
...
ui/address/AddressDetails.tsx
View file @
ef7e9938
...
...
@@ -17,7 +17,6 @@ import DetailsSponsoredItem from 'ui/shared/DetailsSponsoredItem';
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
BlockEntity
from
'
ui/shared/entities/block/BlockEntity
'
;
import
TxEntity
from
'
ui/shared/entities/tx/TxEntity
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
AddressBalance
from
'
./details/AddressBalance
'
;
import
AddressImplementations
from
'
./details/AddressImplementations
'
;
...
...
@@ -134,10 +133,11 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
Ethereum Address
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
flexWrap=
"nowrap"
>
<
Box
overflow=
"hidden"
>
<
HashStringShortenDynamic
hash=
{
data
.
hash
}
/>
</
Box
>
<
CopyToClipboard
text=
{
data
.
hash
}
/>
<
AddressEntity
address=
{
{
hash
:
data
.
hash
}
}
noIcon
noLink
/>
</
DetailsInfoItem
.
Value
>
</>
)
}
...
...
ui/address/filecoin/FilecoinActorTag.tsx
View file @
ef7e9938
import
{
Tag
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
type
{
FilecoinActorType
}
from
'
types/api/address
'
;
import
type
{
FilecoinActorType
}
from
'
types/api/address
Params
'
;
const
ACTOR_TYPES
:
Record
<
FilecoinActorType
,
string
>
=
{
account
:
'
Account
'
,
...
...
ui/pages/Address.tsx
View file @
ef7e9938
...
...
@@ -349,7 +349,6 @@ const AddressPageContent = () => {
address={{
...addressQuery.data,
hash: checkSummedHash,
filecoin: addressQuery.data?.filecoin,
name: '',
ens_domain_name: '',
implementations: null,
...
...
ui/shared/entities/address/AddressEntity.tsx
View file @
ef7e9938
...
...
@@ -99,7 +99,7 @@ const Content = chakra((props: ContentProps) => {
const
label
=
(
<
VStack
gap=
{
0
}
py=
{
1
}
color=
"inherit"
>
<
Box
fontWeight=
{
600
}
whiteSpace=
"pre-wrap"
wordBreak=
"break-word"
>
{
nameText
}
</
Box
>
<
Box
whiteSpace=
"pre-wrap"
wordBreak=
"break-word"
>
{
props
.
address
.
hash
}
</
Box
>
<
Box
whiteSpace=
"pre-wrap"
wordBreak=
"break-word"
>
{
props
.
address
.
filecoin
?.
robust
??
props
.
address
.
hash
}
</
Box
>
</
VStack
>
);
...
...
ui/shared/entities/address/AddressEntityContentProxy.tsx
View file @
ef7e9938
...
...
@@ -46,7 +46,7 @@ const AddressEntityContentProxy = (props: ContentProps) => {
Proxy contract
{
props
.
address
.
name
?
` (${ props.address.name })`
:
''
}
</
Box
>
<
AddressEntity
address=
{
{
hash
:
props
.
address
.
hash
}
}
noLink
noIcon
noHighlight
justifyContent=
"center"
/>
<
AddressEntity
address=
{
{
hash
:
props
.
address
.
hash
,
filecoin
:
props
.
address
.
filecoin
}
}
noLink
noIcon
noHighlight
justifyContent=
"center"
/>
<
Box
fontWeight=
{
600
}
mt=
{
2
}
>
Implementation
{
implementations
.
length
>
1
?
'
s
'
:
''
}
{
implementationName
?
` (${ implementationName })`
:
''
}
...
...
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