Skip to content

Instantly share code, notes, and snippets.

View M4cs's full-sized avatar

Max Bridgland M4cs

View GitHub Profile
@M4cs
M4cs / guide.md
Created February 16, 2024 04:20
Using the Basescan Contract for Manual Staking and Rewards

How to stake your $FRAME tokens using the Contract and Basescan

Pre-requisites:

  • Must have a WETH/FRAME LP position in the 1.00% Fee Pool
  • Must be able to connect to Basescan with your wallet that owns the LP

Values for UniswapV3Staking Contract:

Incentive Key:

This file has been truncated, but you can view the full file.
{
"name": "peeperz",
"description": "peeperz is love",
"total_supply": 6969,
"logo_image_uri": "",
"banner_image_uri": "",
"background_color": "",
"twitter_link": "",
"website_link": "https://peeperz.wtf",
"discord_link": "",
This file has been truncated, but you can view the full file.
{
"name": "Inscripigeons",
"description": "The first flock of pigeons to nest on Ethscriptions. 5,000 Unique Art Pieces. PRUU PRUU!",
"logo_image_uri": "https://media.discordapp.net/attachments/960362686942707745/1155895424922693713/logo.png?width=486&height=486",
"banner_image_uri": "https://media.discordapp.net/attachments/960362686942707745/1155895842922827786/IMG_5119.png?width=1277&height=638",
"background_color": "#C4FF02",
"twitter_link": "https://twitter.com/inscripigeons",
"website_link": "https://inscripigeons.com",
"discord_link": "",
"collection_items": [
This file has been truncated, but you can view the full file.
{
"name": "Inscripigeons",
"description": "The first flock of pigeons to nest on Ethscriptions. 5,000 Unique Art Pieces. PRUU PRUU!",
"logo_image_url": "https://media.discordapp.net/attachments/960362686942707745/1155895424922693713/logo.png?width=486&height=486",
"banner_image_url": "https://media.discordapp.net/attachments/960362686942707745/1155895842922827786/IMG_5119.png?width=1277&height=638",
"background_color": "#C4FF02",
"twitter_link": "https://twitter.com/inscripigeons",
"website_link": "https://inscripigeons.com",
"discord_link": "",
"collection_items": [
@M4cs
M4cs / Inscripigeons.json
Created September 25, 2023 18:07
Inscripigeons.json
This file has been truncated, but you can view the full file.
{
"name": "Inscripigeons",
"description": "5,000 UNIQUE PIGEONS CREATED ON ETHSCRIPTIONS. PRUU PRUU",
"logo_image_url": "",
"banner_image_url": "",
"background_color": "#C4FF02",
"twitter_link": "https://twitter.com/inscripigeons",
"website_link": "https://inscripigeons.com",
"discord_link": "",
"collection_items": [
This file has been truncated, but you can view the full file.
{
"name": "mfpurrs",
"description": "10,000 unique mfpurrs enciphering the blockchain",
"total_supply": 10000,
"logo_image_uri": "esc://ethscriptions/0x8a9e848d966f563216a991c1dd38a0a68d2293839b6ce7c35211b0c33a450f42/data",
"banner_image_uri": "https://iili.io/HQyYOtp.png",
"background_color": "#C4FF02",
"twitter_link": "",
"website_link": "https://mfpurrs.com",
"discord_link": "",
@M4cs
M4cs / snapshot.js
Created August 19, 2023 16:42
Ethscriptions Snapshot Tool
const axios = require('axios');
const fs = require('fs');
const BASE_URL = 'https://api.ethscriptions.com/api/ethscriptions/filtered';
const COLLECTION = 'mfpurrs'; // Collection Name
const sleep = ms => new Promise(r => setTimeout(r, ms));
async function main() {
let total_count = 0;
@M4cs
M4cs / ESIP-1.sol
Created June 21, 2023 20:11
ESIP-1: Contract functionality for ETHScriptions through Event driven transactions. Indexer must check for topic: `Enscription(address,address,bytes)`
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
import "./IESIP-1.sol";
contract ESIP1 is IESIP1 {
/**
* @dev Enscribes `data` to `to` address.
*
@M4cs
M4cs / ETHScriptoor.js
Last active June 21, 2023 02:00
Run `mkdir ethscriptoor; cd ethscriptoor; yarn init . -y; yarn add ethers;` and add this to a file
// Super basic ETHScriptions in node
const ethers = require('ethers');
const privatekey = 'YOUR_PRIVATE_KEY'
const provider = new ethers.JsonRpcProvider('YOUR_RPC_URL');
const wallet = new ethers.Wallet(privatekey, provider);
const type = ``; // Leave blank for plain text (Save gas)
const text = `CHANGE_THIS`;
const hex = ethers.hexlify(ethers.toUtf8Bytes(`data:${type},`${CHANGE_THIS}`));
const ethers = require('ethers');
const privatekey = '0X_PRIVATE_KEY';
const provider = new ethers.JsonRpcProvider('ALCHEMY_OR_INFURA_KEY');
const wallet = new ethers.Wallet(privatekey, provider);
const addresses = [];
async function batchETHScribe() {
let count = 0;