-
Notifications
You must be signed in to change notification settings - Fork 8
/
constants.ts
36 lines (31 loc) · 2.37 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export const WALLETS_FILENAME = "wallets.txt";
export const MULTICALL3_CONTRACT = "0xcA11bde05977b3631167028862bE2a173976CA11";
export const ERC20_ABI = [
"function allowance(address _owner, address _spender) view returns (uint256)",
"function approve(address spender, uint256 amount) returns (bool)",
"function balanceOf(address account) view returns (uint256)",
"function decimals() view returns (uint8)",
"function name() view returns (string)",
"function transfer(address _recipient, uint256 _amount) returns (bool)",
"function symbol() view returns (string)",
];
export const MULTICALL3_ABI = [
"function aggregate(tuple(address target, bytes callData)[] calls) payable returns (uint256 blockNumber, bytes[] returnData)",
"function aggregate3(tuple(address target, bool allowFailure, bytes callData)[] calls) payable returns (tuple(bool success, bytes returnData)[] returnData)",
"function aggregate3Value(tuple(address target, bool allowFailure, uint256 value, bytes callData)[] calls) payable returns (tuple(bool success, bytes returnData)[] returnData)",
"function blockAndAggregate(tuple(address target, bytes callData)[] calls) payable returns (uint256 blockNumber, bytes32 blockHash, tuple(bool success, bytes returnData)[] returnData)",
"function getBasefee() view returns (uint256 basefee)",
"function getBlockHash(uint256 blockNumber) view returns (bytes32 blockHash)",
"function getBlockNumber() view returns (uint256 blockNumber)",
"function getChainId() view returns (uint256 chainid)",
"function getCurrentBlockCoinbase() view returns (address coinbase)",
"function getCurrentBlockDifficulty() view returns (uint256 difficulty)",
"function getCurrentBlockGasLimit() view returns (uint256 gaslimit)",
"function getCurrentBlockTimestamp() view returns (uint256 timestamp)",
"function getEthBalance(address addr) view returns (uint256 balance)",
"function getLastBlockHash() view returns (bytes32 blockHash)",
"function tryAggregate(bool requireSuccess, tuple(address target, bytes callData)[] calls) payable returns (tuple(bool success, bytes returnData)[] returnData)",
"function tryBlockAndAggregate(bool requireSuccess, tuple(address target, bytes callData)[] calls) payable returns (uint256 blockNumber, bytes32 blockHash, tuple(bool success, bytes returnData)[] returnData)",
];
export const CSV_DELIMITER = ";";
export const CSV_RESULTS_FOLDER = "results";