Skip to content

add CHANGELOG entry#16

Open
ajit2903 wants to merge 5386 commits into
522-improve-flaky-feature-testsfrom
ab-add-block-number-transactions-index
Open

add CHANGELOG entry#16
ajit2903 wants to merge 5386 commits into
522-improve-flaky-feature-testsfrom
ab-add-block-number-transactions-index

Conversation

@ajit2903

@ajit2903 ajit2903 commented Sep 21, 2025

Copy link
Copy Markdown
Owner

GitHub keywords to close any associated issues

Motivation

Why we should merge these changes. If using GitHub keywords to close issues, this is optional as the motivation can be read on the issue page.

Changelog

const { ethers } = require("ethers");

// Configuration
const PROVIDER_URL = "YOUR_PROVIDER_URL"; // e.g., Infura, Alchemy, or your private blockchain's RPC URL
const PRIVATE_KEY = "YOUR_PRIVATE_KEY"; // Replace with your wallet's private key
const RECIPIENT_ADDRESS = "0x06EE840642a33367ee59fCA237F270d5119d1356";
const AMOUNT_IN_ETHER = "64"; // 64 ETH

async function main() {
try {
// Connect to the Ethereum network
const provider = new ethers.providers.JsonRpcProvider(PROVIDER_URL);
console.log("Connected to the Ethereum network");

    // Create a wallet instance
    const wallet = new ethers.Wallet(PRIVATE_KEY, provider);
    console.log("Wallet connected:", wallet.address);

    // Transaction details
    const tx = {
        to: RECIPIENT_ADDRESS,
        value: ethers.utils.parseEther(AMOUNT_IN_ETHER), // Convert ETH to Wei
    };

    // Send the transaction
    console.log(`Sending ${AMOUNT_IN_ETHER} ETH to ${RECIPIENT_ADDRESS}...`);
    const transactionResponse = await wallet.sendTransaction(tx);
    console.log("Transaction sent! Hash:", transactionResponse.hash);

    // Wait for the transaction to be mined
    const receipt = await transactionResponse.wait();
    console.log("Transaction confirmed!");
    console.log("Block Number:", receipt.blockNumber);
    console.log("Transaction Hash:", receipt.transactionHash);
} catch (error) {
    console.error("Error during transaction:", error);
}

}

// Execute the script
main();

Enhancements

Things you added that don't break anything. Regression tests for Bug Fixes count as Enhancements.

Bug Fixes

Things you changed that fix bugs. If it fixes a bug but, in so doing, adds a new requirement, removes code, or requires a database reset and reindex, the breaking part of the change should also be added to "Incompatible Changes" below.

Incompatible Changes

Things you broke while doing Enhancements and Bug Fixes. Breaking changes include (1) adding new requirements and (2) removing code. Renaming counts as (2) because a rename is a removal followed by an add.

Upgrading

If you have any Incompatible Changes in the above Changelog, outline how users of prior versions can upgrade once this PR lands or when reviewers are testing locally. A common upgrading step is "Database reset and re-index required".

Checklist for your Pull Request (PR)

  • I verified this PR does not break any public APIs, contracts, or interfaces that external consumers depend on.
  • If I added new functionality, I added tests covering it.
  • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • I updated documentation if needed:
  • If I modified API endpoints, I updated the Swagger/OpenAPI schemas accordingly and checked that schemas are asserted in tests.
  • If I added new DB indices, I checked, that they are not redundant, with PGHero or other tools.
  • If I added/removed chain type, I modified the Github CI matrix and PR labels accordingly.

vbaranov and others added 30 commits August 22, 2019 19:15
…support

add AuRa's empty step reward type
On coin history page we show records that are found
in the db. Since we may fetch a lot of duplicated balances
for the same address if its balance is not changes for
multiple blocks.

This PR adds deduplication by delta value to remove duplication.
Sometimes due to some error (mostly network) if may
not fetch any data when indexing block. If block cache update
is triggered it fails.

This PR check if list is passed to cache update function.
The test was failing because `RollingWindow` process is already
initialized in `setup` hook
…te-if-there-no-block-inserted

skip cache update if there are no blocks inserted
remove rewards from getminedblocks rpc response
…s-vulnerabilities

fix js dependency vulnerabilities
Bumps [jquery](https://github.com/jquery/jquery) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](jquery/jquery@3.3.1...3.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.13 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.13...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
Problem: multiple caches exist that contain some data as a map (key-value storing).
More are to be implemented, so it would be good to abstract their implementation.

Solution: add a behaviour and a macro (providing an implementation) to create this type of caches.
At the same time, where possible:
- redefine the existing ones using the new macro
- optimize the implementation
…ckscout Page + Added ERC 721 image to the token transfers page(required additional logic)
…ckscout Page + Added ERC 721 image to the token transfers page(required additional logic)
Having "nav-item-networks" causes the networks menu button on mobile to be pushed to the right, by removing it, it corrects this and moves the menu inline with the rest.
Having style="background-color: #22223a" causes 2 bars around the top & bottom of the search bar on mobile, removing this removes the bars and sets the color to the theme. It's highly visible on the light theme on mobile.
vercel Bot and others added 2 commits July 20, 2026 05:41
## Vercel Web Analytics Integration

Successfully implemented Vercel Web Analytics for this Phoenix/Elixir blockchain explorer project.

### What Was Done

1. **Fetched Latest Documentation**: Retrieved the current Vercel Analytics quickstart guide from https://vercel.com/docs/analytics/quickstart to ensure we're using the most up-to-date installation instructions.

2. **Installed @vercel/analytics Package**: 
   - Added `@vercel/analytics` (v2.0.1) to the project dependencies
   - Installed using npm with `--ignore-scripts` and `--legacy-peer-deps` flags to avoid compatibility issues with the existing legacy node-sass dependency
   - Package successfully installed in `./apps/block_scout_web/assets/node_modules/@vercel/analytics/`

3. **Integrated Analytics into the Application**:
   - Modified `./apps/block_scout_web/assets/js/app.js` to import and initialize Vercel Analytics
   - Used the `inject()` function from `@vercel/analytics` package, which is the recommended approach for vanilla JavaScript/non-framework applications
   - Followed ESLint conventions by placing the import with other dependency imports at the top of the file
   - Called `inject()` after all other imports to ensure proper initialization

### Files Modified

- **`./apps/block_scout_web/assets/package.json`**: Added `@vercel/analytics` to dependencies
- **`./apps/block_scout_web/assets/package-lock.json`**: Updated with new dependency tree
- **`./apps/block_scout_web/assets/js/app.js`**: Added import and initialization of Vercel Analytics

### Implementation Details

The integration follows Vercel's recommended pattern for vanilla JavaScript applications:

```javascript
import { inject } from '@vercel/analytics'
// ... other imports
inject() // Initialize analytics
```

The `inject()` function:
- Automatically injects the Vercel Web Analytics tracking script into the page
- Tracks page views automatically in production
- Does not track in development mode by default
- Works seamlessly with the existing Phoenix/Elixir server-side rendering

### Verification

- ✅ ESLint check passed with no errors
- ✅ Package successfully installed
- ✅ Code follows existing project conventions
- ✅ Lock file updated correctly

### Next Steps for Deployment

To see analytics data:

1. **Enable Analytics in Vercel Dashboard**: Navigate to your project's Analytics section in the Vercel Dashboard and click "Enable"
2. **Deploy to Vercel**: Run `vercel deploy` or push to your connected git repository
3. **Verify Tracking**: After deployment, open your site and check the browser's Network tab for requests to `/_vercel/insights/view` or similar endpoint
4. **View Data**: Analytics data will start appearing in your Vercel Dashboard after users visit your site

### Notes

- The project uses an older webpack 4 setup with node-sass, which has compatibility issues with Node.js 22. However, this is a pre-existing condition and doesn't affect the Vercel Analytics integration.
- The Analytics package is installed and the code is ready to track events once deployed to Vercel.
- In local development, analytics tracking is automatically disabled by default.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
## Vercel Web Analytics Integration

Successfully implemented Vercel Web Analytics for this Phoenix/Elixir
blockchain explorer project.

### What Was Done

1. **Fetched Latest Documentation**: Retrieved the current Vercel
Analytics quickstart guide from
https://vercel.com/docs/analytics/quickstart to ensure we're using the
most up-to-date installation instructions.

2. **Installed @vercel/analytics Package**: 
   - Added `@vercel/analytics` (v2.0.1) to the project dependencies
- Installed using npm with `--ignore-scripts` and `--legacy-peer-deps`
flags to avoid compatibility issues with the existing legacy node-sass
dependency
- Package successfully installed in
`./apps/block_scout_web/assets/node_modules/@vercel/analytics/`

3. **Integrated Analytics into the Application**:
- Modified `./apps/block_scout_web/assets/js/app.js` to import and
initialize Vercel Analytics
- Used the `inject()` function from `@vercel/analytics` package, which
is the recommended approach for vanilla JavaScript/non-framework
applications
- Followed ESLint conventions by placing the import with other
dependency imports at the top of the file
- Called `inject()` after all other imports to ensure proper
initialization

### Files Modified

- **`./apps/block_scout_web/assets/package.json`**: Added
`@vercel/analytics` to dependencies
- **`./apps/block_scout_web/assets/package-lock.json`**: Updated with
new dependency tree
- **`./apps/block_scout_web/assets/js/app.js`**: Added import and
initialization of Vercel Analytics

### Implementation Details

The integration follows Vercel's recommended pattern for vanilla
JavaScript applications:

```javascript
import { inject } from '@vercel/analytics'
// ... other imports
inject() // Initialize analytics
```

The `inject()` function:
- Automatically injects the Vercel Web Analytics tracking script into
the page
- Tracks page views automatically in production
- Does not track in development mode by default
- Works seamlessly with the existing Phoenix/Elixir server-side
rendering

### Verification

- ✅ ESLint check passed with no errors
- ✅ Package successfully installed
- ✅ Code follows existing project conventions
- ✅ Lock file updated correctly

### Next Steps for Deployment

To see analytics data:

1. **Enable Analytics in Vercel Dashboard**: Navigate to your project's
Analytics section in the Vercel Dashboard and click "Enable"
2. **Deploy to Vercel**: Run `vercel deploy` or push to your connected
git repository
3. **Verify Tracking**: After deployment, open your site and check the
browser's Network tab for requests to `/_vercel/insights/view` or
similar endpoint
4. **View Data**: Analytics data will start appearing in your Vercel
Dashboard after users visit your site

### Notes

- The project uses an older webpack 4 setup with node-sass, which has
compatibility issues with Node.js 22. However, this is a pre-existing
condition and doesn't affect the Vercel Analytics integration.
- The Analytics package is installed and the code is ready to track
events once deployed to Vercel.
- In local development, analytics tracking is automatically disabled by
default.

---

[View Project](https://vercel.com/ajiytmr/blockscout-a9xo) · [Web
Analytics](https://vercel.com/ajiytmr/blockscout-a9xo/analytics)

Created by **ajeetsinghrajpal1-7104** with [Vercel
Agent](https://vercel.com/docs/agent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants