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
0e4c7419
Commit
0e4c7419
authored
Dec 21, 2022
by
POA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially fix lint:tsc errors
parent
23091fa0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
tx.ts
mocks/txs/tx.ts
+1
-0
transaction.ts
types/api/transaction.ts
+2
-1
txAction.ts
types/api/txAction.ts
+13
-1
TxDetailsActions.tsx
ui/tx/details/TxDetailsActions.tsx
+3
-1
No files found.
mocks/txs/tx.ts
View file @
0e4c7419
...
...
@@ -64,6 +64,7 @@ export const base: Transaction = {
],
type
:
2
,
value
:
'
42000000000000000000
'
,
actions
:
[],
};
export
const
withContractCreation
:
Transaction
=
{
...
...
types/api/transaction.ts
View file @
0e4c7419
...
...
@@ -3,6 +3,7 @@ import type { BlockTransactionsResponse } from './block';
import
type
{
DecodedInput
}
from
'
./decodedInput
'
;
import
type
{
Fee
}
from
'
./fee
'
;
import
type
{
TokenTransfer
}
from
'
./tokenTransfer
'
;
import
type
{
TxAction
}
from
'
./txAction
'
;
export
type
TransactionRevertReason
=
{
raw
:
string
;
...
...
@@ -48,7 +49,7 @@ export type Transaction = (
method
:
string
|
null
;
tx_types
:
Array
<
TransactionType
>
;
tx_tag
:
string
|
null
;
actions
?:
Array
<
object
>
;
actions
:
Array
<
TxAction
>
;
}
export
type
TransactionsResponse
=
TransactionsResponseValidated
|
TransactionsResponsePending
;
...
...
types/api/txAction.ts
View file @
0e4c7419
export
type
TxAction
=
{
protocol
:
string
;
type
:
string
;
data
:
object
;
data
:
{
name
:
string
;
symbol
:
string
;
address
:
string
;
to
:
string
;
ids
:
Array
<
string
>
;
amount0
:
string
;
symbol0
:
string
;
address0
:
string
;
amount1
:
string
;
symbol1
:
string
;
address1
:
string
;
};
isLast
:
boolean
;
}
ui/tx/details/TxDetailsActions.tsx
View file @
0e4c7419
...
...
@@ -2,12 +2,14 @@ import { Box, Flex } from '@chakra-ui/react';
import
Script
from
'
next/script
'
;
import
React
from
'
react
'
;
import
type
{
TxAction
as
TTxAction
}
from
'
types/api/txAction
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
TxDetailsAction
from
'
./TxDetailsAction
'
;
interface
Props
{
actions
:
array
;
actions
:
Array
<
TTxAction
>
;
}
declare
global
{
...
...
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