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

feat: integration tests setup #177

Draft
wants to merge 444 commits into
base: main
Choose a base branch
from
Draft

feat: integration tests setup #177

wants to merge 444 commits into from

Conversation

pcheremu
Copy link
Contributor

@pcheremu pcheremu commented Feb 15, 2024

What ❔

no changes with integration-tests branch except fixed commit signatures

Integration tests setup

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

vasyl-ivanchuk and others added 30 commits February 15, 2024 16:36
…erGas fields for transaction (#109)

# What ❔

Return `gasUsed`, `gasPerPubdata`, `maxFeePerGas` and
`maxPriorityFeePerGas` fields for transaction.

## Why ❔

For better UX we want to show gas and fee related fields on UI so we
need to return these fields from the API first.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

- fetch and store tx error and revert reason;
- return tx error and revert reason via API;
- display tx error on UI;

## Why ❔

- fast way to see what's the reason of transaction failure;

## Checklist

- [+] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [+] Tests for the changes have been added / updated.
- [+] Documentation comments have been added / updated.
# What ❔

Sepolia staging hostname.

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
# What ❔

- remove $ from copy-pasteable commands
- add sepolia links
# What ❔

<img width="441" alt="image"
src="https://github.com/matter-labs/block-explorer/assets/6553665/b69c7a82-4f3a-4afa-abc5-8b7385a5079d">

## Why ❔

For better user experience it was requested to show gas fields and
limits on UI.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
…d of a separate call (#115)

# What ❔

Api contract endpoint to use `creatorAddress` field instead of a
separate DB call to fetch txReceipt.

## Why ❔

We don't need a DB call to fetch contract creator address.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
# What ❔

update ui tests for sepolia

## Why ❔

keep tests up to date

## Checklist


- [+ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ +] Tests for the changes have been added / updated.
- [- ] Documentation comments have been added / updated.
# What ❔

- show logs without parsed event if it fails.

## Why ❔

- currently it shows no logs at all if even one of many logs is failed
to parse.

This is a quick fix for now. The issue can be reproduced with proxy
contracts if there are some events emitted which are defined in the
implementation contract. To properly fix it we should use both proxy and
implementation ABI.
# What ❔

- Save tokens which affected balances after processing every block.

## Why ❔

- If token initially deployed didn't have all the required attributes we
need to try to save it again later.

## Checklist

- [+] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [+] Tests for the changes have been added / updated.
# What ❔

Use liquidity tokens filter only on mainnet.

## Why ❔

To show tokens without liquidity on testnets, local envs and
hyperchains.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
olehbairak and others added 10 commits March 21, 2024 12:02
Added test cases for tc1966, tc1952, tc1950, tc1949
…api-deposit-multitransfer-transfer

test: new automation test for Multitransfer + Transfer
…-accounts-api-automate-test-cases-for-contracts-api

feat: new automation scope for tests on Contracts API + Tokens API
@pcheremu pcheremu marked this pull request as draft April 9, 2024 10:43
Copy link

Visit the preview URL for this PR:
https://staging-scan-v2--pr-177-beezn3k1.web.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation writing/fixing/maintaining auto-tests/e2e-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants