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
05de412b
Commit
05de412b
authored
Nov 27, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bind to full prop namings in API v2 endpoints, pt. 2
parent
fb1e3bf9
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
60 additions
and
50 deletions
+60
-50
internalTxs.ts
mocks/txs/internalTxs.ts
+1
-1
tx.ts
mocks/txs/tx.ts
+9
-9
internalTx.ts
stubs/internalTx.ts
+1
-1
tx.ts
stubs/tx.ts
+4
-4
internalTransaction.ts
types/api/internalTransaction.ts
+1
-1
transaction.ts
types/api/transaction.ts
+4
-4
AddressIntTxsListItem.tsx
ui/address/internals/AddressIntTxsListItem.tsx
+2
-2
AddressIntTxsTableItem.tsx
ui/address/internals/AddressIntTxsTableItem.tsx
+2
-2
useBlockTxsQuery.tsx
ui/block/useBlockTxsQuery.tsx
+4
-4
LatestTxsItem.tsx
ui/home/LatestTxsItem.tsx
+1
-1
LatestTxsItemMobile.tsx
ui/home/LatestTxsItemMobile.tsx
+1
-1
Transaction.tsx
ui/pages/Transaction.tsx
+2
-2
PrivateTagMenuItem.tsx
ui/shared/AccountActionsMenu/items/PrivateTagMenuItem.tsx
+1
-1
TxDetailsDegraded.tsx
ui/tx/TxDetailsDegraded.tsx
+4
-4
TxInfo.tsx
ui/tx/details/TxInfo.tsx
+2
-2
TxsListItem.tsx
ui/txs/TxsListItem.tsx
+11
-6
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+10
-5
No files found.
mocks/txs/internalTxs.ts
View file @
05de412b
import
type
{
InternalTransaction
,
InternalTransactionsResponse
}
from
'
types/api/internalTransaction
'
;
import
type
{
InternalTransaction
,
InternalTransactionsResponse
}
from
'
types/api/internalTransaction
'
;
export
const
base
:
InternalTransaction
=
{
export
const
base
:
InternalTransaction
=
{
block
:
29611822
,
block
_number
:
29611822
,
created_contract
:
null
,
created_contract
:
null
,
error
:
null
,
error
:
null
,
from
:
{
from
:
{
...
...
mocks/txs/tx.ts
View file @
05de412b
...
@@ -8,7 +8,7 @@ import * as decodedInputDataMock from 'mocks/txs/decodedInputData';
...
@@ -8,7 +8,7 @@ import * as decodedInputDataMock from 'mocks/txs/decodedInputData';
export
const
base
:
Transaction
=
{
export
const
base
:
Transaction
=
{
base_fee_per_gas
:
'
10000000000
'
,
base_fee_per_gas
:
'
10000000000
'
,
block
:
29611750
,
block
_number
:
29611750
,
confirmation_duration
:
[
confirmation_duration
:
[
0
,
0
,
6364
,
6364
,
...
@@ -61,14 +61,14 @@ export const base: Transaction = {
...
@@ -61,14 +61,14 @@ export const base: Transaction = {
token_transfers
:
[],
token_transfers
:
[],
token_transfers_overflow
:
false
,
token_transfers_overflow
:
false
,
tx_burnt_fee
:
'
461030000000000
'
,
tx_burnt_fee
:
'
461030000000000
'
,
t
x
_tag
:
null
,
t
ransaction
_tag
:
null
,
t
x
_types
:
[
t
ransaction
_types
:
[
'
contract_call
'
,
'
contract_call
'
,
],
],
type
:
2
,
type
:
2
,
value
:
'
42000000000000000000
'
,
value
:
'
42000000000000000000
'
,
actions
:
[],
actions
:
[],
has_error_in_internal_t
x
s
:
false
,
has_error_in_internal_t
ransaction
s
:
false
,
};
};
export
const
withWatchListNames
:
Transaction
=
{
export
const
withWatchListNames
:
Transaction
=
{
...
@@ -102,7 +102,7 @@ export const withContractCreation: Transaction = {
...
@@ -102,7 +102,7 @@ export const withContractCreation: Transaction = {
watchlist_names
:
[],
watchlist_names
:
[],
ens_domain_name
:
null
,
ens_domain_name
:
null
,
},
},
t
x
_types
:
[
t
ransaction
_types
:
[
'
contract_creation
'
,
'
contract_creation
'
,
],
],
};
};
...
@@ -132,7 +132,7 @@ export const withTokenTransfer: Transaction = {
...
@@ -132,7 +132,7 @@ export const withTokenTransfer: Transaction = {
tokenTransferMock
.
erc404B
,
tokenTransferMock
.
erc404B
,
],
],
token_transfers_overflow
:
true
,
token_transfers_overflow
:
true
,
t
x
_types
:
[
t
ransaction
_types
:
[
'
token_transfer
'
,
'
token_transfer
'
,
],
],
};
};
...
@@ -182,7 +182,7 @@ export const withRawRevertReason: Transaction = {
...
@@ -182,7 +182,7 @@ export const withRawRevertReason: Transaction = {
export
const
pending
:
Transaction
=
{
export
const
pending
:
Transaction
=
{
...
base
,
...
base
,
base_fee_per_gas
:
null
,
base_fee_per_gas
:
null
,
block
:
null
,
block
_number
:
null
,
confirmation_duration
:
[],
confirmation_duration
:
[],
confirmations
:
0
,
confirmations
:
0
,
decoded_input
:
null
,
decoded_input
:
null
,
...
@@ -197,7 +197,7 @@ export const pending: Transaction = {
...
@@ -197,7 +197,7 @@ export const pending: Transaction = {
status
:
null
,
status
:
null
,
timestamp
:
null
,
timestamp
:
null
,
tx_burnt_fee
:
null
,
tx_burnt_fee
:
null
,
t
x
_tag
:
null
,
t
ransaction
_tag
:
null
,
type
:
null
,
type
:
null
,
value
:
'
0
'
,
value
:
'
0
'
,
};
};
...
@@ -373,7 +373,7 @@ export const withBlob = {
...
@@ -373,7 +373,7 @@ export const withBlob = {
],
],
burnt_blob_fee
:
'
2820464441688064
'
,
burnt_blob_fee
:
'
2820464441688064
'
,
max_fee_per_blob_gas
:
'
60000000000
'
,
max_fee_per_blob_gas
:
'
60000000000
'
,
t
x
_types
:
[
'
blob_transaction
'
as
const
],
t
ransaction
_types
:
[
'
blob_transaction
'
as
const
],
type
:
3
,
type
:
3
,
};
};
...
...
stubs/internalTx.ts
View file @
05de412b
...
@@ -4,7 +4,7 @@ import { ADDRESS_PARAMS } from './addressParams';
...
@@ -4,7 +4,7 @@ import { ADDRESS_PARAMS } from './addressParams';
import
{
TX_HASH
}
from
'
./tx
'
;
import
{
TX_HASH
}
from
'
./tx
'
;
export
const
INTERNAL_TX
:
InternalTransaction
=
{
export
const
INTERNAL_TX
:
InternalTransaction
=
{
block
:
9006105
,
block
_number
:
9006105
,
created_contract
:
null
,
created_contract
:
null
,
error
:
null
,
error
:
null
,
from
:
ADDRESS_PARAMS
,
from
:
ADDRESS_PARAMS
,
...
...
stubs/tx.ts
View file @
05de412b
...
@@ -12,7 +12,7 @@ export const TX: Transaction = {
...
@@ -12,7 +12,7 @@ export const TX: Transaction = {
value
:
'
2100000000000000
'
,
value
:
'
2100000000000000
'
,
},
},
gas_limit
:
'
21000
'
,
gas_limit
:
'
21000
'
,
block
:
9004925
,
block
_number
:
9004925
,
status
:
'
ok
'
,
status
:
'
ok
'
,
method
:
'
placeholder
'
,
method
:
'
placeholder
'
,
confirmations
:
71
,
confirmations
:
71
,
...
@@ -28,14 +28,14 @@ export const TX: Transaction = {
...
@@ -28,14 +28,14 @@ export const TX: Transaction = {
base_fee_per_gas
:
'
24
'
,
base_fee_per_gas
:
'
24
'
,
from
:
ADDRESS_PARAMS
,
from
:
ADDRESS_PARAMS
,
token_transfers
:
null
,
token_transfers
:
null
,
t
x
_types
:
[
t
ransaction
_types
:
[
'
coin_transfer
'
,
'
coin_transfer
'
,
],
],
gas_used
:
'
21000
'
,
gas_used
:
'
21000
'
,
created_contract
:
null
,
created_contract
:
null
,
position
:
0
,
position
:
0
,
nonce
:
295929
,
nonce
:
295929
,
has_error_in_internal_t
x
s
:
false
,
has_error_in_internal_t
ransaction
s
:
false
,
actions
:
[],
actions
:
[],
decoded_input
:
null
,
decoded_input
:
null
,
token_transfers_overflow
:
false
,
token_transfers_overflow
:
false
,
...
@@ -47,7 +47,7 @@ export const TX: Transaction = {
...
@@ -47,7 +47,7 @@ export const TX: Transaction = {
0
,
0
,
14545
,
14545
,
],
],
t
x
_tag
:
null
,
t
ransaction
_tag
:
null
,
};
};
export
const
TX_ZKEVM_L2
:
Transaction
=
{
export
const
TX_ZKEVM_L2
:
Transaction
=
{
...
...
types/api/internalTransaction.ts
View file @
05de412b
...
@@ -19,7 +19,7 @@ export type InternalTransaction = (
...
@@ -19,7 +19,7 @@ export type InternalTransaction = (
from
:
AddressParam
;
from
:
AddressParam
;
value
:
string
;
value
:
string
;
index
:
number
;
index
:
number
;
block
:
number
;
block
_number
:
number
;
timestamp
:
string
;
timestamp
:
string
;
gas_limit
:
string
;
gas_limit
:
string
;
};
};
...
...
types/api/transaction.ts
View file @
05de412b
...
@@ -30,7 +30,7 @@ export type Transaction = {
...
@@ -30,7 +30,7 @@ export type Transaction = {
result
:
string
;
result
:
string
;
confirmations
:
number
;
confirmations
:
number
;
status
:
'
ok
'
|
'
error
'
|
null
|
undefined
;
status
:
'
ok
'
|
'
error
'
|
null
|
undefined
;
block
:
number
|
null
;
block
_number
:
number
|
null
;
timestamp
:
string
|
null
;
timestamp
:
string
|
null
;
confirmation_duration
:
Array
<
number
>
|
null
;
confirmation_duration
:
Array
<
number
>
|
null
;
from
:
AddressParam
;
from
:
AddressParam
;
...
@@ -54,14 +54,14 @@ export type Transaction = {
...
@@ -54,14 +54,14 @@ export type Transaction = {
token_transfers_overflow
:
boolean
;
token_transfers_overflow
:
boolean
;
exchange_rate
:
string
|
null
;
exchange_rate
:
string
|
null
;
method
:
string
|
null
;
method
:
string
|
null
;
t
x
_types
:
Array
<
TransactionType
>
;
t
ransaction
_types
:
Array
<
TransactionType
>
;
t
x
_tag
:
string
|
null
;
t
ransaction
_tag
:
string
|
null
;
actions
:
Array
<
TxAction
>
;
actions
:
Array
<
TxAction
>
;
l1_fee
?:
string
;
l1_fee
?:
string
;
l1_fee_scalar
?:
string
;
l1_fee_scalar
?:
string
;
l1_gas_price
?:
string
;
l1_gas_price
?:
string
;
l1_gas_used
?:
string
;
l1_gas_used
?:
string
;
has_error_in_internal_t
x
s
:
boolean
|
null
;
has_error_in_internal_t
ransaction
s
:
boolean
|
null
;
// optimism fields
// optimism fields
op_withdrawals
?:
Array
<
OpWithdrawal
>
;
op_withdrawals
?:
Array
<
OpWithdrawal
>
;
// SUAVE fields
// SUAVE fields
...
...
ui/address/internals/AddressIntTxsListItem.tsx
View file @
05de412b
...
@@ -26,7 +26,7 @@ const TxInternalsListItem = ({
...
@@ -26,7 +26,7 @@ const TxInternalsListItem = ({
error
,
error
,
created_contract
:
createdContract
,
created_contract
:
createdContract
,
transaction_hash
:
txnHash
,
transaction_hash
:
txnHash
,
block
,
block
_number
:
blockNumber
,
timestamp
,
timestamp
,
currentAddress
,
currentAddress
,
isLoading
,
isLoading
,
...
@@ -59,7 +59,7 @@ const TxInternalsListItem = ({
...
@@ -59,7 +59,7 @@ const TxInternalsListItem = ({
<
Skeleton
isLoaded=
{
!
isLoading
}
fontSize=
"sm"
fontWeight=
{
500
}
>
Block
</
Skeleton
>
<
Skeleton
isLoaded=
{
!
isLoading
}
fontSize=
"sm"
fontWeight=
{
500
}
>
Block
</
Skeleton
>
<
BlockEntity
<
BlockEntity
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
number=
{
block
}
number=
{
block
Number
}
noIcon
noIcon
fontSize=
"sm"
fontSize=
"sm"
lineHeight=
{
5
}
lineHeight=
{
5
}
...
...
ui/address/internals/AddressIntTxsTableItem.tsx
View file @
05de412b
...
@@ -24,7 +24,7 @@ const AddressIntTxsTableItem = ({
...
@@ -24,7 +24,7 @@ const AddressIntTxsTableItem = ({
error
,
error
,
created_contract
:
createdContract
,
created_contract
:
createdContract
,
transaction_hash
:
txnHash
,
transaction_hash
:
txnHash
,
block
,
block
_number
:
blockNumber
,
timestamp
,
timestamp
,
currentAddress
,
currentAddress
,
isLoading
,
isLoading
,
...
@@ -66,7 +66,7 @@ const AddressIntTxsTableItem = ({
...
@@ -66,7 +66,7 @@ const AddressIntTxsTableItem = ({
<
Td
verticalAlign=
"middle"
>
<
Td
verticalAlign=
"middle"
>
<
BlockEntity
<
BlockEntity
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
number=
{
block
}
number=
{
block
Number
}
noIcon
noIcon
fontSize=
"sm"
fontSize=
"sm"
lineHeight=
{
5
}
lineHeight=
{
5
}
...
...
ui/block/useBlockTxsQuery.tsx
View file @
05de412b
...
@@ -91,7 +91,7 @@ export default function useBlockTxsQuery({ heightOrHash, blockQuery, tab }: Para
...
@@ -91,7 +91,7 @@ export default function useBlockTxsQuery({ heightOrHash, blockQuery, tab }: Para
timestamp
:
block
?.
timestamp
?
dayjs
.
unix
(
Number
(
block
.
timestamp
)).
format
()
:
null
,
timestamp
:
block
?.
timestamp
?
dayjs
.
unix
(
Number
(
block
.
timestamp
)).
format
()
:
null
,
confirmation_duration
:
null
,
confirmation_duration
:
null
,
status
:
undefined
,
status
:
undefined
,
block
:
Number
(
block
.
number
),
block
_number
:
Number
(
block
.
number
),
value
:
tx
.
value
.
toString
(),
value
:
tx
.
value
.
toString
(),
gas_price
:
tx
.
gasPrice
?.
toString
()
??
null
,
gas_price
:
tx
.
gasPrice
?.
toString
()
??
null
,
base_fee_per_gas
:
block
?.
baseFeePerGas
?.
toString
()
??
null
,
base_fee_per_gas
:
block
?.
baseFeePerGas
?.
toString
()
??
null
,
...
@@ -114,13 +114,13 @@ export default function useBlockTxsQuery({ heightOrHash, blockQuery, tab }: Para
...
@@ -114,13 +114,13 @@ export default function useBlockTxsQuery({ heightOrHash, blockQuery, tab }: Para
tx_burnt_fee
:
null
,
tx_burnt_fee
:
null
,
revert_reason
:
null
,
revert_reason
:
null
,
decoded_input
:
null
,
decoded_input
:
null
,
has_error_in_internal_t
x
s
:
null
,
has_error_in_internal_t
ransaction
s
:
null
,
token_transfers
:
null
,
token_transfers
:
null
,
token_transfers_overflow
:
false
,
token_transfers_overflow
:
false
,
exchange_rate
:
null
,
exchange_rate
:
null
,
method
:
null
,
method
:
null
,
t
x
_types
:
[],
t
ransaction
_types
:
[],
t
x
_tag
:
null
,
t
ransaction
_tag
:
null
,
actions
:
[],
actions
:
[],
};
};
})
})
...
...
ui/home/LatestTxsItem.tsx
View file @
05de412b
...
@@ -50,7 +50,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
...
@@ -50,7 +50,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
<
TxAdditionalInfo
tx=
{
tx
}
isLoading=
{
isLoading
}
my=
"3px"
/>
<
TxAdditionalInfo
tx=
{
tx
}
isLoading=
{
isLoading
}
my=
"3px"
/>
<
Box
ml=
{
3
}
w=
"calc(100% - 40px)"
>
<
Box
ml=
{
3
}
w=
"calc(100% - 40px)"
>
<
HStack
flexWrap=
"wrap"
my=
"3px"
>
<
HStack
flexWrap=
"wrap"
my=
"3px"
>
<
TxType
types=
{
tx
.
t
x
_types
}
isLoading=
{
isLoading
}
/>
<
TxType
types=
{
tx
.
t
ransaction
_types
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
</
HStack
>
</
HStack
>
...
...
ui/home/LatestTxsItemMobile.tsx
View file @
05de412b
...
@@ -40,7 +40,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
...
@@ -40,7 +40,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
>
>
<
Flex
justifyContent=
"space-between"
>
<
Flex
justifyContent=
"space-between"
>
<
HStack
flexWrap=
"wrap"
>
<
HStack
flexWrap=
"wrap"
>
<
TxType
types=
{
tx
.
t
x
_types
}
isLoading=
{
isLoading
}
/>
<
TxType
types=
{
tx
.
t
ransaction
_types
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
</
HStack
>
</
HStack
>
...
...
ui/pages/Transaction.tsx
View file @
05de412b
...
@@ -77,7 +77,7 @@ const TransactionPageContent = () => {
...
@@ -77,7 +77,7 @@ const TransactionPageContent = () => {
const
tags
=
(
const
tags
=
(
<
EntityTags
<
EntityTags
isLoading=
{
isPlaceholderData
}
isLoading=
{
isPlaceholderData
}
tags=
{
data
?.
t
x_tag
?
[
{
slug
:
data
.
tx_tag
,
name
:
data
.
tx
_tag
,
tagType
:
'
private_tag
'
as
const
}
]
:
[]
}
tags=
{
data
?.
t
ransaction_tag
?
[
{
slug
:
data
.
transaction_tag
,
name
:
data
.
transaction
_tag
,
tagType
:
'
private_tag
'
as
const
}
]
:
[]
}
/>
/>
);
);
...
@@ -94,7 +94,7 @@ const TransactionPageContent = () => {
...
@@ -94,7 +94,7 @@ const TransactionPageContent = () => {
};
};
},
[
appProps
.
referrer
]);
},
[
appProps
.
referrer
]);
const
titleSecondRow
=
<
TxSubHeading
hash=
{
hash
}
hasTag=
{
Boolean
(
data
?.
t
x
_tag
)
}
txQuery=
{
txQuery
}
/>;
const
titleSecondRow
=
<
TxSubHeading
hash=
{
hash
}
hasTag=
{
Boolean
(
data
?.
t
ransaction
_tag
)
}
txQuery=
{
txQuery
}
/>;
const
content
=
(()
=>
{
const
content
=
(()
=>
{
if
(
isPlaceholderData
&&
!
showDegradedView
)
{
if
(
isPlaceholderData
&&
!
showDegradedView
)
{
...
...
ui/shared/AccountActionsMenu/items/PrivateTagMenuItem.tsx
View file @
05de412b
...
@@ -38,7 +38,7 @@ const PrivateTagMenuItem = ({ className, hash, entityType = 'address', type }: P
...
@@ -38,7 +38,7 @@ const PrivateTagMenuItem = ({ className, hash, entityType = 'address', type }: P
queryData
&&
queryData
&&
(
(
(
'
private_tags
'
in
queryData
&&
queryData
.
private_tags
?.
length
)
||
(
'
private_tags
'
in
queryData
&&
queryData
.
private_tags
?.
length
)
||
(
'
t
x_tag
'
in
queryData
&&
queryData
.
tx
_tag
)
(
'
t
ransaction_tag
'
in
queryData
&&
queryData
.
transaction
_tag
)
)
)
)
{
)
{
return
null
;
return
null
;
...
...
ui/tx/TxDetailsDegraded.tsx
View file @
05de412b
...
@@ -81,7 +81,7 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => {
...
@@ -81,7 +81,7 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => {
timestamp
:
block
?.
timestamp
?
dayjs
.
unix
(
Number
(
block
.
timestamp
)).
format
()
:
null
,
timestamp
:
block
?.
timestamp
?
dayjs
.
unix
(
Number
(
block
.
timestamp
)).
format
()
:
null
,
confirmation_duration
:
null
,
confirmation_duration
:
null
,
status
,
status
,
block
:
tx
.
blockNumber
?
Number
(
tx
.
blockNumber
)
:
null
,
block
_number
:
tx
.
blockNumber
?
Number
(
tx
.
blockNumber
)
:
null
,
value
:
tx
.
value
.
toString
(),
value
:
tx
.
value
.
toString
(),
gas_price
:
gasPrice
?.
toString
()
??
null
,
gas_price
:
gasPrice
?.
toString
()
??
null
,
base_fee_per_gas
:
block
?.
baseFeePerGas
?.
toString
()
??
null
,
base_fee_per_gas
:
block
?.
baseFeePerGas
?.
toString
()
??
null
,
...
@@ -106,13 +106,13 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => {
...
@@ -106,13 +106,13 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => {
tx_burnt_fee
:
null
,
tx_burnt_fee
:
null
,
revert_reason
:
null
,
revert_reason
:
null
,
decoded_input
:
null
,
decoded_input
:
null
,
has_error_in_internal_t
x
s
:
null
,
has_error_in_internal_t
ransaction
s
:
null
,
token_transfers
:
null
,
token_transfers
:
null
,
token_transfers_overflow
:
false
,
token_transfers_overflow
:
false
,
exchange_rate
:
null
,
exchange_rate
:
null
,
method
:
null
,
method
:
null
,
t
x
_types
:
[],
t
ransaction
_types
:
[],
t
x
_tag
:
null
,
t
ransaction
_tag
:
null
,
actions
:
[],
actions
:
[],
};
};
},
},
...
...
ui/tx/details/TxInfo.tsx
View file @
05de412b
...
@@ -282,11 +282,11 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
...
@@ -282,11 +282,11 @@ const TxInfo = ({ data, isLoading, socketStatus }: Props) => {
Block
Block
</
DetailsInfoItem
.
Label
>
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
DetailsInfoItem
.
Value
>
{
data
.
block
===
null
?
{
data
.
block
_number
===
null
?
<
Text
>
Pending
</
Text
>
:
(
<
Text
>
Pending
</
Text
>
:
(
<
BlockEntity
<
BlockEntity
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
number=
{
data
.
block
}
number=
{
data
.
block
_number
}
noIcon
noIcon
/>
/>
)
}
)
}
...
...
ui/txs/TxsListItem.tsx
View file @
05de412b
...
@@ -39,9 +39,14 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
...
@@ -39,9 +39,14 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
<
ListItemMobile
display=
"block"
width=
"100%"
isAnimated
key=
{
tx
.
hash
}
>
<
ListItemMobile
display=
"block"
width=
"100%"
isAnimated
key=
{
tx
.
hash
}
>
<
Flex
justifyContent=
"space-between"
mt=
{
4
}
>
<
Flex
justifyContent=
"space-between"
mt=
{
4
}
>
<
HStack
flexWrap=
"wrap"
>
<
HStack
flexWrap=
"wrap"
>
{
tx
.
translation
?
{
tx
.
translation
?
(
<
TxTranslationType
types=
{
tx
.
tx_types
}
isLoading=
{
isLoading
||
tx
.
translation
.
isLoading
}
translatationType=
{
tx
.
translation
.
data
?.
type
}
/>
:
<
TxTranslationType
<
TxType
types=
{
tx
.
tx_types
}
isLoading=
{
isLoading
}
/>
types=
{
tx
.
transaction_types
}
isLoading=
{
isLoading
||
tx
.
translation
.
isLoading
}
translatationType=
{
tx
.
translation
.
data
?.
type
}
/>
)
:
<
TxType
types=
{
tx
.
transaction_types
}
isLoading=
{
isLoading
}
/>
}
}
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
...
@@ -55,7 +60,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
...
@@ -55,7 +60,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
truncation=
"constant_long"
truncation=
"constant_long"
fontWeight=
"700"
fontWeight=
"700"
icon=
{
{
icon=
{
{
name
:
tx
.
t
x
_types
.
includes
(
'
blob_transaction
'
)
?
'
blob
'
:
undefined
,
name
:
tx
.
t
ransaction
_types
.
includes
(
'
blob_transaction
'
)
?
'
blob
'
:
undefined
,
}
}
}
}
/>
/>
<
TimeAgoWithTooltip
<
TimeAgoWithTooltip
...
@@ -81,12 +86,12 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
...
@@ -81,12 +86,12 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
</
Skeleton
>
</
Skeleton
>
</
Flex
>
</
Flex
>
)
}
)
}
{
showBlockInfo
&&
tx
.
block
!==
null
&&
(
{
showBlockInfo
&&
tx
.
block
_number
!==
null
&&
(
<
Flex
mt=
{
2
}
>
<
Flex
mt=
{
2
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"inline-block"
whiteSpace=
"pre"
>
Block
</
Skeleton
>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"inline-block"
whiteSpace=
"pre"
>
Block
</
Skeleton
>
<
BlockEntity
<
BlockEntity
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
number=
{
tx
.
block
}
number=
{
tx
.
block
_number
}
noIcon
noIcon
/>
/>
</
Flex
>
</
Flex
>
...
...
ui/txs/TxsTableItem.tsx
View file @
05de412b
...
@@ -67,9 +67,14 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
...
@@ -67,9 +67,14 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
</
Td
>
</
Td
>
<
Td
>
<
Td
>
<
VStack
alignItems=
"start"
>
<
VStack
alignItems=
"start"
>
{
tx
.
translation
?
{
tx
.
translation
?
(
<
TxTranslationType
types=
{
tx
.
tx_types
}
isLoading=
{
isLoading
||
tx
.
translation
.
isLoading
}
translatationType=
{
tx
.
translation
.
data
?.
type
}
/>
:
<
TxTranslationType
<
TxType
types=
{
tx
.
tx_types
}
isLoading=
{
isLoading
}
/>
types=
{
tx
.
transaction_types
}
isLoading=
{
isLoading
||
tx
.
translation
.
isLoading
}
translatationType=
{
tx
.
translation
.
data
?.
type
}
/>
)
:
<
TxType
types=
{
tx
.
transaction_types
}
isLoading=
{
isLoading
}
/>
}
}
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxStatus
status=
{
tx
.
status
}
errorText=
{
tx
.
status
===
'
error
'
?
tx
.
result
:
undefined
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
<
TxWatchListTags
tx=
{
tx
}
isLoading=
{
isLoading
}
/>
...
@@ -84,10 +89,10 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
...
@@ -84,10 +89,10 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement,
</
Td
>
</
Td
>
{
showBlockInfo
&&
(
{
showBlockInfo
&&
(
<
Td
>
<
Td
>
{
tx
.
block
&&
(
{
tx
.
block
_number
&&
(
<
BlockEntity
<
BlockEntity
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
number=
{
tx
.
block
}
number=
{
tx
.
block
_number
}
noIcon
noIcon
fontSize=
"sm"
fontSize=
"sm"
lineHeight=
{
6
}
lineHeight=
{
6
}
...
...
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