Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for EIP-4844 blobs #10

Merged
merged 165 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
960e80d
OG description bug for NFT instances
tom2drum Feb 12, 2024
320ee8e
remove marketplace experiment
maxaleks Feb 14, 2024
e0cda4c
remove unused components
maxaleks Feb 14, 2024
687c5ac
update screenshots
maxaleks Feb 14, 2024
c2dcc91
fix interpretation checks
ArminaAiren Feb 14, 2024
fd45937
add method call as tx interpretation
ArminaAiren Feb 14, 2024
0e57120
sort dapps by favorite
maxaleks Feb 15, 2024
d358993
fix csp policy for hype
tom2drum Feb 16, 2024
b6a8896
fix label for "Add public tag"
tom2drum Feb 16, 2024
b2432b3
Merge pull request #1620 from blockscout/release/v1.24.0
tom2drum Feb 16, 2024
8d6429d
Fix RSK stats - transaction fees precision (#1602)
tom2drum Feb 16, 2024
0a825f0
Fix broken link in ENVS.md
bap2pecs Feb 16, 2024
123cf3f
add NEXT_PUBLIC_MARKETPLACE_ENABLED env var
maxaleks Feb 16, 2024
113647d
update schema
maxaleks Feb 16, 2024
ae563d3
enable marketplace in pw tests
maxaleks Feb 16, 2024
2d3066f
add an explanatory comment
maxaleks Feb 16, 2024
7cce399
fix script
tom2drum Feb 16, 2024
c168859
Merge branch 'hot-fix-env-validator' of github.com:blockscout/fronten…
tom2drum Feb 16, 2024
3a89edf
Merge pull request #1615 from blockscout/fe-1589
isstuev Feb 18, 2024
ff7a5cc
Merge pull request #1623 from blockscout/hot-fix-env-validator
tom2drum Feb 19, 2024
b7b891d
Merge pull request #1622 from bap2pecs/patch-1
tom2drum Feb 19, 2024
74561d6
Validators list (#1621)
tom2drum Feb 19, 2024
e522483
[skip ci] out out parallel tests in local env
tom2drum Feb 19, 2024
beebb07
shibarium deposits and withdrawals
ArminaAiren Feb 15, 2024
dd47c92
review fixes
ArminaAiren Feb 19, 2024
2139c6c
Merge pull request #1610 from blockscout/fe-1564
isstuev Feb 19, 2024
b1fdc64
contract audits
ArminaAiren Feb 14, 2024
8a71b3d
tests
ArminaAiren Feb 14, 2024
9676d2f
tests
ArminaAiren Feb 14, 2024
5965c63
fix schema
ArminaAiren Feb 15, 2024
16274b9
try to remove scroll artifacts
ArminaAiren Feb 16, 2024
cb9d6cb
remove double fetch
ArminaAiren Feb 18, 2024
ab2f498
better mock
ArminaAiren Feb 18, 2024
6e118f2
review fixes
ArminaAiren Feb 19, 2024
5c2d06f
Merge pull request #1598 from blockscout/fe-1563
isstuev Feb 19, 2024
7c69314
Gas tracker page (#1524)
tom2drum Feb 20, 2024
043609f
`outputs` field is not required for contract read method
tom2drum Feb 20, 2024
66ec60d
Merge pull request #1613 from blockscout/remove-marketplace-experiment
isstuev Feb 20, 2024
bf709de
Merge pull request #1619 from blockscout/dapp-sorting-with-favourites
isstuev Feb 20, 2024
e281214
rename apps to dapps
maxaleks Feb 15, 2024
058fedd
update screenshots
maxaleks Feb 15, 2024
d20c632
Merge pull request #1618 from blockscout/rename-apps-to-dapps
isstuev Feb 20, 2024
90c4ca7
Merge pull request #1628 from blockscout/tom2drum/issue-1624
isstuev Feb 20, 2024
4b27e3a
add ads for GasTracker page test
tom2drum Feb 20, 2024
fd0428b
add top bar to dapp page
maxaleks Feb 21, 2024
4a32493
fix github links in MarketplaceAppModal
maxaleks Feb 21, 2024
d8363ac
fix envs-validator
maxaleks Feb 21, 2024
f7ab435
fix csp for marketplace
tom2drum Feb 22, 2024
d806732
update search bar screenshot
tom2drum Feb 22, 2024
c768469
typo: incorrect yarn dev preset command
ryanpwaldon Feb 22, 2024
8a7cb46
add mixpanel events to operations in dapps
maxaleks Feb 22, 2024
98d3bbc
Merge pull request #1636 from ryanpwaldon/typo/incorrect-yarn-dev-pre…
tom2drum Feb 23, 2024
a7424c6
Not possible to remove address filter in token inventory for an addre…
tom2drum Feb 23, 2024
cf6fb44
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
tom2drum Feb 23, 2024
452bcc4
OG description bug for NFT instances
tom2drum Feb 23, 2024
4903ff2
fix navigation reset
ArminaAiren Feb 24, 2024
f98c321
Merge pull request #1640 from blockscout/tom2drum/issue-1514
tom2drum Feb 26, 2024
06b9f97
Merge pull request #1641 from blockscout/tom2drum/issue-1578
tom2drum Feb 26, 2024
9dbb2b0
Merge pull request #1642 from blockscout/fe-1631
tom2drum Feb 26, 2024
b2a79e1
Add a decimal part to the Market cap graph value and handle null values
tom2drum Feb 26, 2024
a6f3ef4
update screenshot for home page
tom2drum Feb 26, 2024
c8f6001
Display arrays of structs on Read/Write contract tabs (#1556)
tom2drum Feb 26, 2024
99a839f
post-review changes
maxaleks Feb 26, 2024
c6133dc
add mixpanel event for swap button
maxaleks Feb 27, 2024
4dbeca6
fix initial dapp sorting
maxaleks Feb 27, 2024
e03c5d1
post-review changes and style fix
maxaleks Feb 27, 2024
1ea0b6e
remove margin
maxaleks Feb 27, 2024
d3c9380
validators state filter fix
tom2drum Feb 28, 2024
785e6e1
fix gas price snippet in chrome
tom2drum Feb 28, 2024
8df5ab3
update gas tracker page screenshots
tom2drum Feb 28, 2024
e817d43
Merge pull request #1649 from blockscout/hotfix/incorrect-initial-dap…
tom2drum Feb 28, 2024
d8b8893
add test for marketplace page
maxaleks Feb 28, 2024
6d3f1b7
remove title second raw gap
ArminaAiren Feb 29, 2024
845a68b
fix block table layout
ArminaAiren Feb 29, 2024
421e2a3
Merge pull request #1658 from blockscout/fe-1656
isstuev Feb 29, 2024
d096187
remove title second raw gap
ArminaAiren Feb 29, 2024
ac9bcfe
fix block table layout
ArminaAiren Feb 29, 2024
621c968
improve marketplace tests
maxaleks Feb 29, 2024
84571f4
add test for app info dropdown
maxaleks Feb 29, 2024
9f7b884
add test for marketplace app modal
maxaleks Feb 29, 2024
77854a0
Fix message shown when there are no deposits on L2
Mar 1, 2024
10cb563
upgrade dappscout-iframe
maxaleks Mar 1, 2024
1d91b29
Merge pull request #1635 from blockscout/add-info-to-dapp-page
maxaleks Mar 4, 2024
9538e63
Merge pull request #1639 from blockscout/mixpanel-events-in-dapps
maxaleks Mar 4, 2024
3e376f9
Merge pull request #1667 from blockscout/upgrade-dappscout-iframe
maxaleks Mar 4, 2024
0c7453c
post-review changes
maxaleks Mar 4, 2024
fbf1fb4
Merge branch 'main' into marketplace-tests
maxaleks Mar 4, 2024
cdb9322
fix conflict
maxaleks Mar 4, 2024
33875b3
Merge pull request #1663 from blockscout/marketplace-tests
maxaleks Mar 4, 2024
6b4b5d9
Merge pull request #1643 from blockscout/tom2drum/issue-1548
tom2drum Mar 4, 2024
19623fa
truncate domain in domains popup (#1645)
tom2drum Mar 4, 2024
82b7f3d
Update Safe wallets networks config (#1654)
tom2drum Mar 4, 2024
20d8c0c
improve perf of highlighting same address in lists (#1662)
tom2drum Mar 4, 2024
0d3890d
add fallback for NFT animation media
tom2drum Mar 5, 2024
459e5ea
Contract: License (#1668)
tom2drum Mar 5, 2024
c4f9e89
Merge pull request #1665 from illuque/fix_no_deposits_text
tom2drum Mar 5, 2024
3240695
fix typo
ArminaAiren Mar 6, 2024
7a1bb12
Support raw format of v0.7 user ops
ArminaAiren Mar 6, 2024
a5a4211
Merge pull request #1679 from blockscout/fix-typo
isstuev Mar 6, 2024
b3f5a0b
Handle undefined timestamp for zkEVM batch
tom2drum Mar 7, 2024
d423fb8
Merge pull request #1680 from blockscout/tom2drum/issue-1674
tom2drum Mar 7, 2024
8e6a099
Merge pull request #1670 from blockscout/hotfix/nft-image
tom2drum Mar 7, 2024
154cdad
Add Blobs support (EIP-4884) (#1672)
tom2drum Mar 7, 2024
80d5aff
highlight code of the main contract
tom2drum Mar 7, 2024
47a5282
change api host for demo
tom2drum Mar 7, 2024
1274f1e
add user ops tx interpretation
ArminaAiren Mar 7, 2024
6775ba2
Merge pull request #1686 from blockscout/fe-1650
tom2drum Mar 8, 2024
1b27ff0
Merge pull request #1678 from blockscout/fe-1677
tom2drum Mar 8, 2024
94218f5
[skip ci] rollback demo env
tom2drum Mar 8, 2024
d53884c
Merge pull request #1685 from blockscout/tom2drum/issue-1676
tom2drum Mar 8, 2024
51bc875
Metasuites placeholders (#1637)
tom2drum Mar 8, 2024
760c69e
fix blob page tests
tom2drum Mar 8, 2024
83fda2c
handle blobs with no data
tom2drum Mar 8, 2024
6f378b0
fix connect wallet message
maxaleks Mar 8, 2024
e8c97e6
fix dapps sorting
maxaleks Mar 8, 2024
dfd590e
fix contract method form fields value foramatting
tom2drum Mar 11, 2024
e0fecd3
rename validator status "failed" into "inactive"
tom2drum Mar 11, 2024
93098f5
update screenshots
maxaleks Mar 11, 2024
3e7fc0e
Revert "update screenshots"
maxaleks Mar 11, 2024
af2ef28
update screenshots for MarketplaceApp
maxaleks Mar 11, 2024
0e005e2
fix useMarketplaceApps hook
maxaleks Mar 11, 2024
a85b278
another fix
maxaleks Mar 11, 2024
9a47831
remove mobile test
maxaleks Mar 11, 2024
5524c8d
replace ref with state to fix test
maxaleks Mar 12, 2024
7a3c131
getit test
ArminaAiren Feb 23, 2024
37df317
update sdk
ArminaAiren Feb 26, 2024
82fc4c1
update sdk 2
ArminaAiren Feb 28, 2024
12f4fed
error-demo
ArminaAiren Mar 7, 2024
c8728df
update sdk 3
ArminaAiren Mar 13, 2024
d7b9d94
Merge pull request #1687 from blockscout/hotfix/v1.26.0
tom2drum Mar 13, 2024
60b3423
remove 404 for blob page if blob txs view is hidden
tom2drum Mar 13, 2024
9278adb
Merge branch 'main' of github.com:blockscout/frontend
tom2drum Mar 14, 2024
e0ec2b0
fix blob image parsing
tom2drum Mar 14, 2024
af87fdb
blob: don't break words for UTF-8 decoding
tom2drum Mar 14, 2024
354193e
add test
tom2drum Mar 14, 2024
e2a73e4
contract method: format all args to string
tom2drum Mar 14, 2024
12f0781
change api for demo
tom2drum Mar 14, 2024
8c1be25
Merge pull request #1704 from blockscout/hotfix/v1.26.2
tom2drum Mar 15, 2024
c1946b5
metadata date fix
ArminaAiren Mar 18, 2024
3b1694d
Incorrect NFT media placeholder when navigating between pages
tom2drum Mar 18, 2024
bcafc93
fix token icon fallback
ArminaAiren Mar 18, 2024
089e667
Merge pull request #1715 from blockscout/tom2drum/issue-1710
tom2drum Mar 18, 2024
c4f6b56
404 for unknown transaction (#1697)
tom2drum Mar 18, 2024
754a976
Remove the use of the token object from the response of the `api/v2/t…
tom2drum Mar 18, 2024
09e8ab9
Add a banner to the My Verified Addresses page (#1695)
tom2drum Mar 18, 2024
9a3d38d
bugfix: No number wrap on the address 'Tokens' tab (#1691)
tom2drum Mar 18, 2024
259b2df
Merge pull request #1716 from blockscout/fe-1714
isstuev Mar 18, 2024
6618c44
Merge pull request #1712 from blockscout/metadata-date-fix
isstuev Mar 18, 2024
9f2aaa3
Merge pull request #1647 from blockscout/getit
isstuev Mar 18, 2024
373a979
design fixes
tom2drum Mar 18, 2024
4dc76f6
Merge pull request #1718 from blockscout/tom2drum/issue-1701
isstuev Mar 19, 2024
7019554
Dim out page to focus on a search (#1711)
tom2drum Mar 19, 2024
3378bab
solidity scan icon
ArminaAiren Mar 18, 2024
976b4c7
change icon folder
isstuev Mar 19, 2024
f56c38e
stats price diff on the homepage
ArminaAiren Mar 18, 2024
7b8d8d5
Merge pull request #1719 from blockscout/fe-1666
isstuev Mar 19, 2024
d833ceb
bugfix: Real-time incoming transactions are sorted incorrectly (#1720)
tom2drum Mar 19, 2024
9933b2a
bugfix: Cannot convert string to buffer while write to the contract (…
tom2drum Mar 19, 2024
3699cb4
Merge pull request #1722 from blockscout/fe-1721
isstuev Mar 19, 2024
b123e5a
fix react keys for withdrawals
isstuev Mar 19, 2024
567aa1b
Merge pull request #1727 from blockscout/fe-1726
isstuev Mar 19, 2024
20ba905
enable email for wallet connect
isstuev Mar 19, 2024
4a6ac17
Merge pull request #1730 from blockscout/wc-email
isstuev Mar 19, 2024
5a63649
add button to tx not found error screen
tom2drum Mar 21, 2024
84d3e26
Merge tag 'v1.27.0' into add-eip-4844
gabmontes May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -115,7 +117,7 @@ jobs:
run: yarn --frozen-lockfile --ignore-optional

- name: Run Jest
run: yarn test:jest --onlyChanged=${{ github.event_name == 'pull_request' }} --passWithNoTests
run: yarn test:jest ${{ github.event_name == 'pull_request' && '--changedSince=origin/main' || '' }} --passWithNoTests

pw_affected_tests:
name: Resolve affected Playwright tests
Expand Down
7 changes: 4 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,15 @@
"options": [
"main",
"main.L2",
"poa_core",
"eth",
"eth_goerli",
"sepolia",
"eth",
"rootstock",
"polygon",
"zkevm",
"gnosis",
"rootstock",
"stability",
"poa_core",
"localhost",
],
"default": "main"
Expand Down
37 changes: 37 additions & 0 deletions configs/app/features/gasTracker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { Feature } from './types';
import { GAS_UNITS } from 'types/client/gasTracker';
import type { GasUnit } from 'types/client/gasTracker';

import { getEnvValue, parseEnvJson } from '../utils';

const isDisabled = getEnvValue('NEXT_PUBLIC_GAS_TRACKER_ENABLED') === 'false';

const units = ((): Array<GasUnit> => {
const envValue = getEnvValue('NEXT_PUBLIC_GAS_TRACKER_UNITS');
if (!envValue) {
return [ 'usd', 'gwei' ];
}

const units = parseEnvJson<Array<GasUnit>>(envValue)?.filter((type) => GAS_UNITS.includes(type)) || [];

return units;
})();

const title = 'Gas tracker';

const config: Feature<{ units: Array<GasUnit> }> = (() => {
if (!isDisabled && units.length > 0) {
return Object.freeze({
title,
isEnabled: true,
units,
});
}

return Object.freeze({
title,
isEnabled: false,
});
})();

export default config;
3 changes: 3 additions & 0 deletions configs/app/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ export { default as beaconChain } from './beaconChain';
export { default as bridgedTokens } from './bridgedTokens';
export { default as blockchainInteraction } from './blockchainInteraction';
export { default as csvExport } from './csvExport';
export { default as gasTracker } from './gasTracker';
export { default as googleAnalytics } from './googleAnalytics';
export { default as graphqlApiDocs } from './graphqlApiDocs';
export { default as growthBook } from './growthBook';
export { default as marketplace } from './marketplace';
export { default as metasuites } from './metasuites';
export { default as mixpanel } from './mixpanel';
export { default as nameService } from './nameService';
export { default as restApiDocs } from './restApiDocs';
Expand All @@ -22,5 +24,6 @@ export { default as suave } from './suave';
export { default as swapButton } from './swapButton';
export { default as txInterpretation } from './txInterpretation';
export { default as userOps } from './userOps';
export { default as validators } from './validators';
export { default as verifiedTokens } from './verifiedTokens';
export { default as web3Wallet } from './web3Wallet';
3 changes: 2 additions & 1 deletion configs/app/features/marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import chain from '../chain';
import { getEnvValue, getExternalAssetFilePath } from '../utils';

// config file will be downloaded at run-time and saved in the public folder
const enabled = getEnvValue('NEXT_PUBLIC_MARKETPLACE_ENABLED');
const configUrl = getExternalAssetFilePath('NEXT_PUBLIC_MARKETPLACE_CONFIG_URL');
const submitFormUrl = getEnvValue('NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM');
const suggestIdeasFormUrl = getEnvValue('NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM');
Expand All @@ -17,7 +18,7 @@ const config: Feature<(
{ api: { endpoint: string; basePath: string } }
) & { submitFormUrl: string; categoriesUrl: string | undefined; suggestIdeasFormUrl: string | undefined }
> = (() => {
if (chain.rpcUrl && submitFormUrl) {
if (enabled === 'true' && chain.rpcUrl && submitFormUrl) {
if (configUrl) {
return Object.freeze({
title,
Expand Down
21 changes: 21 additions & 0 deletions configs/app/features/metasuites.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Feature } from './types';

import { getEnvValue } from '../utils';

const title = 'MetaSuites extension';

const config: Feature<{ isEnabled: true }> = (() => {
if (getEnvValue('NEXT_PUBLIC_METASUITES_ENABLED') === 'true') {
return Object.freeze({
title,
isEnabled: true,
});
}

return Object.freeze({
title,
isEnabled: false,
});
})();

export default config;
31 changes: 5 additions & 26 deletions configs/app/features/safe.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,14 @@
import type { Feature } from './types';

import chain from '../chain';

// https://docs.safe.global/safe-core-api/available-services
const SAFE_API_MAP: Record<string, string> = {
'42161': 'https://safe-transaction-arbitrum.safe.global',
'1313161554': 'https://safe-transaction-aurora.safe.global',
'43114': 'https://safe-transaction-avalanche.safe.global',
'8453': 'https://safe-transaction-base.safe.global',
'84531': 'https://safe-transaction-base-testnet.safe.global',
'56': 'https://safe-transaction-bsc.safe.global',
'42220': 'https://safe-transaction-celo.safe.global',
'1': 'https://safe-transaction-mainnet.safe.global',
'100': 'https://safe-transaction-gnosis-chain.safe.global',
'5': 'https://safe-transaction-goerli.safe.global',
'10': 'https://safe-transaction-optimism.safe.global',
'137': 'https://safe-transaction-polygon.safe.global',
};
import { getEnvValue } from '../utils';

function getApiUrl(): string | undefined {
if (!chain.id) {
return;
}

const apiHost = SAFE_API_MAP[chain.id];

if (!apiHost) {
try {
const envValue = getEnvValue('NEXT_PUBLIC_SAFE_TX_SERVICE_URL');
return new URL('/api/v1/safes', envValue).toString();
} catch (error) {
return;
}

return `${ apiHost }/api/v1/safes/`;
}

const title = 'Safe address tags';
Expand Down
29 changes: 29 additions & 0 deletions configs/app/features/validators.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { Feature } from './types';
import { VALIDATORS_CHAIN_TYPE } from 'types/client/validators';
import type { ValidatorsChainType } from 'types/client/validators';

import { getEnvValue } from '../utils';

const chainType = ((): ValidatorsChainType | undefined => {
const envValue = getEnvValue('NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE') as ValidatorsChainType | undefined;
return envValue && VALIDATORS_CHAIN_TYPE.includes(envValue) ? envValue : undefined;
})();

const title = 'Validators list';

const config: Feature<{ chainType: ValidatorsChainType }> = (() => {
if (chainType) {
return Object.freeze({
title,
isEnabled: true,
chainType,
});
}

return Object.freeze({
title,
isEnabled: false,
});
})();

export default config;
2 changes: 1 addition & 1 deletion configs/app/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const UI = Object.freeze({
background: getEnvValue('NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND') || HOMEPAGE_PLATE_BACKGROUND_DEFAULT,
textColor: getEnvValue('NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR') || 'white',
},
showGasTracker: getEnvValue('NEXT_PUBLIC_HOMEPAGE_SHOW_GAS_TRACKER') === 'false' ? false : true,
showAvgBlockTime: getEnvValue('NEXT_PUBLIC_HOMEPAGE_SHOW_AVG_BLOCK_TIME') === 'false' ? false : true,
},
views,
Expand All @@ -70,6 +69,7 @@ const UI = Object.freeze({
ides: {
items: parseEnvJson<Array<ContractCodeIde>>(getEnvValue('NEXT_PUBLIC_CONTRACT_CODE_IDES')) || [],
},
hasContractAuditReports: getEnvValue('NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS') === 'true' ? true : false,
});

export default UI;
26 changes: 24 additions & 2 deletions configs/app/ui/views/tx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TxAdditionalFieldsId, TxFieldsId } from 'types/views/tx';
import { TX_ADDITIONAL_FIELDS_IDS, TX_FIELDS_IDS } from 'types/views/tx';
import type { TxAdditionalFieldsId, TxFieldsId, TxViewId } from 'types/views/tx';
import { TX_ADDITIONAL_FIELDS_IDS, TX_FIELDS_IDS, TX_VIEWS_IDS } from 'types/views/tx';

import { getEnvValue, parseEnvJson } from 'configs/app/utils';

Expand Down Expand Up @@ -33,9 +33,31 @@ const additionalFields = (() => {
return result;
})();

const hiddenViews = (() => {
const envValue = getEnvValue('NEXT_PUBLIC_VIEWS_TX_HIDDEN_VIEWS');

if (!envValue) {
return undefined;
}

const parsedValue = parseEnvJson<Array<TxViewId>>(envValue);

if (!Array.isArray(parsedValue)) {
return undefined;
}

const result = TX_VIEWS_IDS.reduce((result, item) => {
result[item] = parsedValue.includes(item);
return result;
}, {} as Record<TxViewId, boolean>);

return result;
})();

const config = Object.freeze({
hiddenFields,
additionalFields,
hiddenViews,
});

export default config;
10 changes: 9 additions & 1 deletion configs/envs/.env.eth
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,20 @@ NEXT_PUBLIC_HAS_BEACON_CHAIN=true
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_AUTH_URL=http://localhost:3000
NEXT_PUBLIC_LOGOUT_URL=https://blockscoutcom.us.auth0.com/v2/logout
NEXT_PUBLIC_STATS_API_HOST=https://stats-eth-main.k8s.blockscout.com
NEXT_PUBLIC_STATS_API_HOST=https://stats-eth-main.k8s-prod-1.blockscout.com
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com
NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://contracts-info.services.blockscout.com
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://admin-rs.services.blockscout.com
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout
NEXT_PUBLIC_AD_BANNER_PROVIDER=hype
NEXT_PUBLIC_SAFE_TX_SERVICE_URL=https://safe-transaction-mainnet.safe.global
NEXT_PUBLIC_NAME_SERVICE_API_HOST=https://bens.services.blockscout.com
NEXT_PUBLIC_MARKETPLACE_ENABLED=true
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/marketplace-categories/default.json
NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/marketplace-categories/default.json
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://airtable.com/appiy5yijZpMMSKjT/shr6uMGPKjj1DK7NL
NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM=https://airtable.com/appiy5yijZpMMSKjT/pag3t82DUCyhGRZZO/form
NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED=true

#meta
NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/main/configs/og-images/eth.jpg?raw=true
4 changes: 3 additions & 1 deletion configs/envs/.env.eth_goerli
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ NEXT_PUBLIC_NETWORK_ICON=https://raw.githubusercontent.com/blockscout/frontend-c
NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES=[{'name':'LooksRare','collection_url':'https://goerli.looksrare.org/collections/{hash}','instance_url':'https://goerli.looksrare.org/collections/{hash}/{id}','logo_url':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/nft-marketplace-logos/looks-rare.png'}]
## misc
NEXT_PUBLIC_NETWORK_EXPLORERS=[{'title':'Bitquery','baseUrl':'https://explorer.bitquery.io/','paths':{'tx':'/goerli/tx','address':'/goerli/address','token':'/goerli/token','block':'/goerli/block'}},{'title':'Etherscan','baseUrl':'https://goerli.etherscan.io/','paths':{'tx':'/tx','address':'/address','token':'/token','block':'/block'}}]
NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS=true

# app features
NEXT_PUBLIC_APP_ENV=development
Expand All @@ -52,6 +53,7 @@ NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED='true'
NEXT_PUBLIC_HAS_BEACON_CHAIN=true
NEXT_PUBLIC_HAS_USER_OPS=true
NEXT_PUBLIC_CONTRACT_CODE_IDES=[{'title':'Remix IDE','url':'https://remix.blockscout.com/?address={hash}&blockscout=eth-goerli.blockscout.com','icon_url':'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/ide-icons/remix.png'}]
NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER=blockscout

#meta
NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/main/configs/og-images/eth-goerli.png?raw=true
NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/main/configs/og-images/eth-goerli.png?raw=true
1 change: 0 additions & 1 deletion configs/envs/.env.jest
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ NEXT_PUBLIC_API_BASE_PATH=/
## homepage
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs','coin_price','market_cap']
NEXT_PUBLIC_HOMEPAGE_SHOW_AVG_BLOCK_TIME=true
NEXT_PUBLIC_HOMEPAGE_SHOW_GAS_TRACKER=true
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=
## sidebar
NEXT_PUBLIC_NETWORK_LOGO=
Expand Down
1 change: 1 addition & 0 deletions configs/envs/.env.main
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ NEXT_PUBLIC_GRAPHIQL_TRANSACTION=0xf7d4972356e6ae44ae948d0cf19ef2beaf0e574c18099
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_AUTH_URL=http://localhost:3000
NEXT_PUBLIC_LOGOUT_URL=https://blockscoutcom.us.auth0.com/v2/logout
NEXT_PUBLIC_MARKETPLACE_ENABLED=true
NEXT_PUBLIC_MARKETPLACE_CONFIG_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/dev/configs/marketplace/eth-goerli.json
NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/dev/configs/marketplace-categories/default.json
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://airtable.com/shrqUAcjgGJ4jU88C
Expand Down
6 changes: 3 additions & 3 deletions configs/envs/.env.optimism_goerli
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com
NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://contracts-info.services.blockscout.com
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://admin-rs.services.blockscout.com
# rollup
NEXT_PUBLIC_IS_OPTIMISTIC_L2_NETWORK=true
NEXT_PUBLIC_OPTIMISTIC_L2_WITHDRAWAL_URL=https://app.optimism.io/bridge/withdraw
NEXT_PUBLIC_L1_BASE_URL=https://eth-goerli.blockscout.com/
NEXT_PUBLIC_ROLLUP_TYPE='optimistic'
NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL=https://app.optimism.io/bridge/withdraw
NEXT_PUBLIC_ROLLUP_L1_BASE_URL=https://eth-goerli.blockscout.com/
3 changes: 2 additions & 1 deletion configs/envs/.env.pw
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ NEXT_PUBLIC_API_BASE_PATH=/
## homepage
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs','coin_price','market_cap']
NEXT_PUBLIC_HOMEPAGE_SHOW_AVG_BLOCK_TIME=true
NEXT_PUBLIC_HOMEPAGE_SHOW_GAS_TRACKER=true
## sidebar
## footer
NEXT_PUBLIC_GIT_TAG=v1.0.11
Expand All @@ -39,8 +38,10 @@ NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE=
# app features
NEXT_PUBLIC_APP_ENV=testing
NEXT_PUBLIC_APP_INSTANCE=pw
NEXT_PUBLIC_MARKETPLACE_ENABLED=true
NEXT_PUBLIC_MARKETPLACE_CONFIG_URL=https://localhost:3000/marketplace-config.json
NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM=https://localhost:3000/marketplace-submit-form
NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM=https://localhost:3000/marketplace-suggest-ideas-form
NEXT_PUBLIC_AD_BANNER_PROVIDER=slise
NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED=true
NEXT_PUBLIC_AUTH_URL=http://localhost:3100
Expand Down
2 changes: 2 additions & 0 deletions configs/envs/.env.sepolia
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ NEXT_PUBLIC_ADMIN_SERVICE_API_HOST=https://admin-rs.services.blockscout.com
NEXT_PUBLIC_WEB3_WALLETS=['token_pocket','metamask']
NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED=true
NEXT_PUBLIC_HAS_BEACON_CHAIN=true
NEXT_PUBLIC_HAS_USER_OPS=true
NEXT_PUBLIC_AD_BANNER_PROVIDER=getit

#meta
NEXT_PUBLIC_OG_IMAGE_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/sepolia-testnet.png
Loading
Loading