-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* advanced filter start * advanced filters stage 2 * adv filters stage 3 * fixes * add test * eslint fixes * age filter update * some fixes and filters tests * fixes 2 * add csv export * fixes 3 * add env variable for adv filter * fix tests * edit env temporary
- Loading branch information
Showing
67 changed files
with
2,347 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { Feature } from './types'; | ||
|
||
import { getEnvValue } from '../utils'; | ||
|
||
const isDisabled = getEnvValue('NEXT_PUBLIC_ADVANCED_FILTER_ENABLED') === 'false'; | ||
|
||
const title = 'Advanced filter'; | ||
|
||
const config: Feature<{}> = (() => { | ||
if (!isDisabled) { | ||
return Object.freeze({ | ||
title, | ||
isEnabled: true, | ||
}); | ||
} | ||
|
||
return Object.freeze({ | ||
title, | ||
isEnabled: false, | ||
}); | ||
})(); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default function getValuesArrayFromQuery(val: string | Array<string> | undefined) { | ||
if (val === undefined) { | ||
return; | ||
} | ||
|
||
const valArray = []; | ||
if (typeof val === 'string') { | ||
valArray.push(...val.split(',')); | ||
} | ||
if (Array.isArray(val)) { | ||
if (!val.length) { | ||
return; | ||
} | ||
val.forEach(el => valArray.push(...el.split(','))); | ||
} | ||
|
||
return valArray; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
import type { AdvancedFilterResponse } from 'types/api/advancedFilter'; | ||
|
||
export const baseResponse: AdvancedFilterResponse = { | ||
items: [ | ||
{ | ||
timestamp: '2024-12-06T12:38:59.000000Z', | ||
total: null, | ||
type: 'coin_transfer', | ||
value: '0', | ||
hash: '0x35e5793d3da98d8e8e3944e40fa15028806502b53a2319501c6acdb8c83ed4bc', | ||
from: { | ||
ens_domain_name: null, | ||
hash: '0xC1b634853Cb333D3aD8663715b08f41A3Aec47cc', | ||
implementations: [], | ||
is_contract: false, | ||
is_verified: false, | ||
metadata: null, | ||
name: null, | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
token: null, | ||
to: { | ||
ens_domain_name: null, | ||
hash: '0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6', | ||
implementations: [ | ||
{ | ||
address: '0x31DA64D19Cd31A19CD09F4070366Fe2144792cf7', | ||
name: 'SequencerInbox', | ||
}, | ||
], | ||
is_contract: true, | ||
is_verified: true, | ||
metadata: null, | ||
name: 'TransparentUpgradeableProxy', | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
method: 'addSequencerL2BatchFromBlobs', | ||
fee: '2657475294553624', | ||
}, | ||
{ | ||
timestamp: '2024-12-06T12:38:59.000000Z', | ||
total: null, | ||
type: 'coin_transfer', | ||
value: '1328910000000000', | ||
hash: '0x0d7a6c1e91540f767bc4d48bbcf2aa3fa22c93d0d8a60fb34bd7f0ecec5565b0', | ||
from: { | ||
ens_domain_name: null, | ||
hash: '0x9BDc51980d3b81a0fBd031d0F0E39e9E1aFCB294', | ||
implementations: [], | ||
is_contract: false, | ||
is_verified: false, | ||
metadata: null, | ||
name: null, | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
token: null, | ||
to: { | ||
ens_domain_name: null, | ||
hash: '0xFe4cda7cc3603bdB9447cAd4A6550290AFeF6b38', | ||
implementations: [], | ||
is_contract: false, | ||
is_verified: false, | ||
metadata: null, | ||
name: null, | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
method: null, | ||
fee: '279416150328000', | ||
}, | ||
{ | ||
timestamp: '2024-12-06T12:38:59.000000Z', | ||
total: null, | ||
type: 'coin_transfer', | ||
value: '0', | ||
hash: '0x925bb2b7bf0b7a37ba4012bd718015cae29fa44e7846a7563c01f11ef99461e2', | ||
from: { | ||
ens_domain_name: null, | ||
hash: '0x807Db16fd01766EE8A7040B6d32F4169c0A0Bf47', | ||
implementations: [], | ||
is_contract: false, | ||
is_verified: false, | ||
metadata: null, | ||
name: null, | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
token: null, | ||
to: { | ||
ens_domain_name: null, | ||
hash: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', | ||
implementations: [], | ||
is_contract: true, | ||
is_verified: true, | ||
metadata: null, | ||
name: 'WstETH', | ||
private_tags: [], | ||
public_tags: [], | ||
watchlist_names: [], | ||
}, | ||
method: 'approve', | ||
fee: '620080096879104', | ||
}, | ||
], | ||
next_page_params: { | ||
block_number: 5867485, | ||
internal_transaction_index: null, | ||
token_transfer_index: null, | ||
transaction_index: 208, | ||
items_count: 50, | ||
}, | ||
search_params: { | ||
tokens: {}, | ||
methods: {}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { NextPage } from 'next'; | ||
import React from 'react'; | ||
|
||
import PageNextJs from 'nextjs/PageNextJs'; | ||
|
||
import AdvancedFilter from 'ui/pages/AdvancedFilter'; | ||
|
||
const Page: NextPage = () => { | ||
return ( | ||
<PageNextJs pathname="/advanced-filter"> | ||
<AdvancedFilter/> | ||
</PageNextJs> | ||
); | ||
}; | ||
|
||
export default Page; | ||
|
||
export { advancedFilter as getServerSideProps } from 'nextjs/getServerSideProps'; |
Oops, something went wrong.