Skip to content

Instantly share code, notes, and snippets.

/*
This script is designed to allow smart accounts to log into websites that require a
signature. It will automatically (without prompting the user) accept a WalletConnect
session for the provided URI and sign the incoming personal_sign request to pass the
log in step on https://app.liquifi.finance/. It should realistically work on any
website that requires a signature to log in.
Dependencies:
1. Copy the package.json into a folder alongside this script.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import {DSTest} from "ds-test/test.sol";
contract Which {
uint256[] public s_playerFunds;
uint256 public s_totalFunds;
constructor() {
@metashx
metashx / 0-assembly-call.txt
Created November 28, 2021 08:23
opcodes of different safeTransferETH implementations from https://twitter.com/transmissions11/status/1464432498297901056
/// call(gas(), to, amount, 0, 0, 0, 0)
DUP1
PUSH1 0x0
DUP1
PUSH1 0x0
DUP6
DUP8
GAS
CALL
SWAP1
@metashx
metashx / 0-readme.md
Created October 25, 2021 23:05
Bulk listing of ERC-1155s to OpenSea
@metashx
metashx / 1.png
Last active August 28, 2021 07:34
1.png
@metashx
metashx / ys-custom.omp.json
Last active August 3, 2021 21:03
Custom oh-my-posh theme based on 'ys' for WSL shells
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",