I hereby claim:
- I am saw-mon-and-natalie on github.
- I am sawmonandnatalie (https://keybase.io/sawmonandnatalie) on keybase.
- I have a public key ASD-lsiPSVSifdZGA049ptrEsk6oeiqOL4mqMzSkKxgRlAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const hre = require('hardhat'); | |
const { map } = require('underscore'); | |
require('dotenv').config(); | |
const { | |
FlashbotsBundleProvider, | |
} = require('@flashbots/ethers-provider-bundle'); | |
const ENS = require('./ENSABI.json'); |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
iwr -useb get.scoop.sh | iex | |
# if you don't have scoop installed, run the previous lines first | |
scoop bucket add scoop-crypto https://github.com/Saw-mon-and-Natalie/scoop-crypto | |
scoop install solana |
git clone --recursive [email protected]:quilt/etk.git | |
cd etk | |
cargo install etk-asm --path etk-asm --version 0.2.0-dev --features cli | |
cargo install etk-dasm --path etk-dasm --version 0.2.0-dev --features cli | |
cargo install etk-analyze --path etk-analyze --version 0.2.0-dev --features cli |
%push(end_runtime - start_runtime) | |
dup1 | |
%push(start_runtime) | |
returndatasize | |
codecopy | |
returndatasize | |
return |
<div /> | |
<style> | |
div { | |
--0: transparent; | |
--1: #8b3615; | |
--2: #d49443; | |
--3: #c57032; | |
--4: #76290c; | |
width: 1px; |
# `solc` compiler runtime output with extra bits removed. | |
# solcr [OPTIONS] <CONTRACT_FILE> | |
# example: solcr contract.sol | |
solcr() { | |
solc "$@" --bin-runtime --metadata-hash none | | |
grep '60806040' | | |
sed -e 's/.\{27\}$//g'; | |
} |
// SPDX-License-Identifier: MIT | |
// @author Saw-mon and Natalie | |
pragma solidity 0.8.13; | |
import "forge-std/Test.sol"; | |
contract CoprimalityTest is Test { | |
function verify_coprimality(uint120 a, uint120 b, int x, int y) internal pure { | |
unchecked { |
# ▇ => ▇ + ▇ | |
# Minimal runtime bytecode for a contract that mutates | |
# into two child contracts and then self-destructs | |
# 1st child contract receives the call value | |
# 2nd child contract recevies the remaining balance | |
# author: Saw-mon and Natalie | |
# constructor payload for the spawned contract | |
# ┏━━━━━━━━━━━━━━━━━━━ push1 RUNTIME_BYTECODE_LEN # L |
# --- evm quine --- | |
# ⬜ => ⬜ | |
# --- stack --- | |
# immediate value for push15 | |
# is the compiled bytecode for part 2 | |
push15 0x8060781b173d52386001606e8153f3 # c | |
# --- part 2 --- | |
dup1 # c c |