This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#include <assert.h> | |
#include <time.h> | |
#include <sys/time.h> | |
#define UINT128_C(u) ((__uint128_t)u) | |
const __uint128_t UINT128_MAX = UINT128_C(UINT64_MAX)<<64 | UINT64_MAX; |
This file contains hidden or 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
#include "Callback.hpp" | |
#include <iostream> | |
IntHolderCallback::IntHolderCallback(iMethod method, void *user_data) | |
{ | |
this->_method = method; | |
this->_user_data = user_data; | |
} | |
int |
This file contains hidden or 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
"""Below is an example for faster JSON-RPC event fetcher. | |
It skips a lot of steps, like converting raw binary values to corresponding numbers (float, ints), | |
looking up ABI labels and building `AttributedDict` object. | |
The resulting Event dictitionary is generated faster, but harder to use and you need to know what you are doing. | |
""" | |
def _fetch_events_for_all_contracts( |
This file contains hidden or 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
// author: saucepoint | |
// run with a mainnet --fork-url such as: | |
// forge test --fork-url https://rpc.ankr.com/eth | |
import "forge-std/Test.sol"; | |
// temporary interface for minting USDC |