Skip to content

Instantly share code, notes, and snippets.

View xrave110's full-sized avatar

xRave xrave110

View GitHub Profile
function testAddressBeforeAndAfterHack(address account1) public {
console2.log("Account1:", account1);
string memory lineaRpc = vm.envString("LINEA_RPC_URL");
console2.log("------------------CoreP---BEFORE---------------------");
vm.createSelectFork(lineaRpc, 24221040); // 24096677
(address[] memory reservesList,) =
ILendingPool(0x17d8a5305A37fe93E13a28f09c46db5bE24E1B9E).getReservesList();
UserReserveData[] memory mainPoolUserReserveData =
AsteraDataProvider2(DATA_PROVIDER).getUserMainPoolReservesData(account1);
import {MakeERC20} from "./MakeERC20.sol";
contract SimpleStorageZkSync {
address[] public listOfTokens;
bytes32 bytecodeHash = 0x0100019f3c855d478f067a60da1bf1defdc34f8af0f36f6402cb79a2e5f11006;
bytes32 ZKSYNC_CREATE2_PREFIX = 0x2020dba91b30cc0006188af794c2fb30dd8520db7e2c088b7fc7c103c00ca494; // or keccak256("zksyncCreate2")
function makeDeterministicToken(bytes32 _salt) public {
@xrave110
xrave110 / 10_MultiSigWallet...MultiSigWallet.sol
Created August 29, 2021 13:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.5+commit.eb77ed08.js&optimize=false&runs=200&gist=
pragma solidity 0.7.5;
//pragma abicoder_v2;
//import "./Ownable.sol";
contract MultiSigWallet {
address payable public owner;
address[] public addressesToSign;
uint approvalsLimit;