Skip to content

Instantly share code, notes, and snippets.

View sudo-owen's full-sized avatar
💭
musings on magic, minds, and meta-levels

owen sudo-owen

💭
musings on magic, minds, and meta-levels
View GitHub Profile
@sudo-owen
sudo-owen / multicall.js
Created December 21, 2020 00:02
Short multicall service provider for Angular
import { Injectable } from '@angular/core';
import { ContractService } from './contract.service';
import { WalletService } from './wallet.service';
/*
Usage:
- contract has a reference to the multicall address for the relevant network you're on
- format your argument to makeMulticall as a list of objects:
multicallFns = [
"call1": {
@sudo-owen
sudo-owen / update_opensea.py
Created July 30, 2021 01:42
Update OpenSea metadata
import requests
import time
# change the address here to be your desired NFT
url = "https://api.opensea.io/asset/0xc17030798a6d6e1a76382cf8f439182eb0342d93/"
update_flag = "/?force_update=true"
ids = [ i for i in range(0, 180)]
for i in ids: