Skip to content

Instantly share code, notes, and snippets.

@mitche50
mitche50 / create2factory.sol
Created March 17, 2024 17:43
Efficient Immutable Create2 Factory Foundry Test Base
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.19;
import "forge-std/console.sol";
import "forge-std/StdCheats.sol";
import "forge-std/StdAssertions.sol";
import "forge-std/StdUtils.sol";
import {TestBase} from "forge-std/Base.sol";
interface IImmutableCreate2Factory {

Keybase proof

I hereby claim:

  • I am mitche50 on github.
  • I am mitche50 (https://keybase.io/mitche50) on keybase.
  • I have a public key ASAJsWBT_wr9Wca_0R-CK_VB0l8p7u0G8wzaHT_seXnPxQo

To claim this, I am signing this object:

@mitche50
mitche50 / rework_testing.py
Last active May 8, 2019 00:19
Send a nano transaction and monitor the work every 3 seconds to see if there has been automated rework done - Beta Node Testing
"""
Before running, make sure to update the path for the log file and your source / destination accounts and wallet.
"""
import time
import logging
import requests
import json
# Set Log File
//nano_golang_websocket.go creates a connection to the beta nano node and logs the hash
//of confirmed transactions sent from the websocket endpoint. The hash and subtype
//are printed to the terminal also.
package main
import (
"encoding/json"
"log"
"os"
@mitche50
mitche50 / LICENSE
Last active April 15, 2019 18:35
A javascript redirect to deep links from GET parameters for the Nano cryptocurrency.
Copyright 2019 Andrew Mitchell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR O
044fe59d8b63a0856a6cbd4b0013a9fec23182463fcb70436c272137b49b46378397e598e4dea8188689b8c6a9ef5265862bc7b5d983e8534779f7449505528520;architectdesigner