Questions tagged [events]
Solidity events and logging problems. Events allow the convenient usage of the EVM logging facilities, which in turn can be used to “call” JavaScript callbacks in the user interface of a dapp, which listen for these events.
868 questions
0 votes
1 answer
37 views
How does the AcrossBridge V3 handle refunds/fill failures?
When calling the depositV3Now on an AcrossSpokePool, I understand how the off-chain event tracking triggers `fillRelay. https://www.codeslaw.app/contracts/ethereum/...
0 votes
1 answer
47 views
How to get contract event information out of a transaction receipt using ethers.js?
I'm working with hardhat/ethers.js and is running a simple test of getting an argument of an emitted event of a contract via ethers.js. I have a simple test contract which has a function to emit an ...
0 votes
0 answers
46 views
What is the liquidity value in swap events on uniswapV3?
I am currently in the process of backtesting liquidity provision in a uniswapV3 pool, and I was able to get all events in said pool for the past year from an archive node. I am trying to calculate ...
0 votes
1 answer
39 views
where is the event of contract creation defined?
When create a new contract ,an event with sig 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0generated with topic1 and topic2 so where is this event defined?
0 votes
2 answers
113 views
Why does an emitted event with "good ordering" consume more gas in Solidity, and how does argument order affect gas costs?
I conducted a test in Solidity using Remix to understand how the order of arguments affects gas consumption in events and function calls. Specifically, I tested the following code: event Test1Event( ...
1 vote
1 answer
289 views
How to reconstruct UnivswapV3 pool TVL and liquidity via ordered events?
I have been trying to reconstruct the TVL and liquidity of a V3 pool via ordered events : TxIndex > LogIndex. By following the logic in the Graph V3 pool repositories such as this univ3 graph repo ...
0 votes
1 answer
59 views
Create/set "subId" by createSubscription() and get "subId" vrfCoordinatorV2_5Mock calling by javascript in hardhat environment
deploy.js: const { network, ethers } = require("hardhat") const { developmentChains, networkConfig } = require("../helper-hardhat-config") const { verify } = require("../...
1 vote
0 answers
100 views
Web3 python websocket persistent connection
I am implementing a crypto payment system for my django web app. I have a smart contract that exposes some functions that let users purchase credits for my application by sending crypto to the smart ...
1 vote
1 answer
162 views
How can a smart contract listen to on-chain events?
I understand that smart contracts can emit events, but I'm curious if there's a way for a smart contract to listen to on-chain events and react to them. Is it possible for a smart contract to monitor ...
1 vote
1 answer
38 views
Hardhat - Cannot read properties of undefined (reading '0') error in event log
I wanted to study the events on hardhat by following this lesson. npx version: 9.5.1 node version: v12.22.9 Here's my contract code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract ...
0 votes
1 answer
228 views
Monitor Uniswap Swap Events of hundreds of pairs concurrently
I have a basic POC that listens to a swap event in a specific pair on UniswapV2. This works well. My issue is when I try to run this for say, 10 or more pairs Infura starts giving me rate limiting ...
3 votes
1 answer
129 views
Is it possible to emit generic events using assembly?
I'm trying out a proxy / upgrade pattern where the deployed contract is an ERC-721 but it delegates as much functionality to a "controller" contract as possible. The storage is split between ...
1 vote
1 answer
75 views
Getting 403 forbidden error when useWatchContractEvent hook is used in next, wagmi, react
I am getting 403 forbidden on every interval multiple times. I used the useWatchContractEvent() hook from wagmi in my next js app. Getting same error multiple times in intervals: POST https://sepolia....
0 votes
1 answer
234 views
Reading Ethereum contract event TypeError: Cannot read properties of undefined (reading 'toHexString')
I have the following js script that i want to use to read events from a smart contract below, but when i run the script I get the following error message TypeError: Cannot read properties of undefined ...
0 votes
1 answer
37 views
Efficiently Visualizing and Retrieval Ethereum Smart Contract Events on Decentralized Storage
I want to know what are the recommended decentralized storage solutions (IPFS or sub-graph)? and general process for retrieving them for front-end visualization?