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
3ebc84a2
Commit
3ebc84a2
authored
Feb 16, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
12689343
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
resources.ts
lib/api/resources.ts
+1
-1
address.ts
types/api/address.ts
+1
-1
AddressTokenTransfers.pw.tsx
ui/address/AddressTokenTransfers.pw.tsx
+1
-1
AddressTokenTransfers.tsx
ui/address/AddressTokenTransfers.tsx
+1
-1
No files found.
lib/api/resources.ts
View file @
3ebc84a2
...
...
@@ -187,7 +187,7 @@ export const RESOURCES = {
path
:
'
/api/v2/addresses/:hash/token-transfers
'
,
pathParams
:
[
'
hash
'
as
const
],
paginationFields
:
[
'
block_number
'
as
const
,
'
items_count
'
as
const
,
'
index
'
as
const
,
'
transaction_index
'
as
const
],
filterFields
:
[
'
filter
'
as
const
,
'
type
'
as
const
,
'
token
_hash
'
as
const
],
filterFields
:
[
'
filter
'
as
const
,
'
type
'
as
const
,
'
token
'
as
const
],
},
address_blocks_validated
:
{
path
:
'
/api/v2/addresses/:hash/blocks-validated
'
,
...
...
types/api/address.ts
View file @
3ebc84a2
...
...
@@ -83,7 +83,7 @@ export interface AddressTokenTransferResponse {
export
type
AddressTokenTransferFilters
=
{
filter
?:
AddressFromToFilter
;
type
?:
Array
<
TokenType
>
;
token
_hash
?:
string
;
token
?:
string
;
}
export
type
AddressTokensFilter
=
{
...
...
ui/address/AddressTokenTransfers.pw.tsx
View file @
3ebc84a2
...
...
@@ -9,7 +9,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import
AddressTokenTransfers
from
'
./AddressTokenTransfers
'
;
const
API_URL
=
buildApiUrl
(
'
address_token_transfers
'
,
{
hash
:
'
0xd789a607CEac2f0E14867de4EB15b15C9FFB5859
'
})
+
'
?token
_hash
=0x1189a607CEac2f0E14867de4EB15b15C9FFB5859
'
;
'
?token=0x1189a607CEac2f0E14867de4EB15b15C9FFB5859
'
;
const
hooksConfig
=
{
router
:
{
...
...
ui/address/AddressTokenTransfers.tsx
View file @
3ebc84a2
...
...
@@ -88,7 +88,7 @@ const AddressTokenTransfers = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLD
const
{
isError
,
isLoading
,
data
,
pagination
,
onFilterChange
,
isPaginationVisible
}
=
useQueryWithPages
({
resourceName
:
'
address_token_transfers
'
,
pathParams
:
{
hash
:
currentAddress
},
filters
:
tokenFilter
?
{
token
_hash
:
tokenFilter
}
:
filters
,
filters
:
tokenFilter
?
{
token
:
tokenFilter
}
:
filters
,
scrollRef
,
});
...
...
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