Skip to content

Instantly share code, notes, and snippets.

View m1guelpf's full-sized avatar

Miguel Piedrafita m1guelpf

View GitHub Profile
@m1guelpf
m1guelpf / attestation.txt
Created April 7, 2022 17:35
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 193
Hash: 2b0a1a94 661f7cbd 8ab00877 f3676570
82d881d9 86990c5e 159ff5d7 1284945e
cb3b7f30 3aceb733 80e6daed 3586257e
0012aaed 8918a3c4 cff31024 5744722e
did:3:kjzl6cwe1jw148wahhdvncozedy5coxmqwso9aq23tb7xx9kxd31u9f1lesek3l
@m1guelpf
m1guelpf / Multicall.ts
Created March 1, 2022 11:00
An Ethers.js-compatible Multicall implementation
import { ethers } from 'ethers'
import { ChainId } from '@/types/utils'
import { namehash } from 'ethers/lib/utils'
import { multicallAddresses, ZERO_ADDRESS } from '../consts'
import { Multicall as MulticallInterface, Multicall__factory } from '@/contracts'
export type Call = {
contract: {
address: string
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import 'solmate/tokens/ERC721.sol';
contract NFTBillboard is ERC721('NFT Billboard', 'BNFT') {
error Unauthorized();
error TokenNotFound();
struct NFT {
@m1guelpf
m1guelpf / Leaderboard.sol
Created January 20, 2022 05:22
An optimized version of nnnnicholas.eth's leaderboard contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import 'solmate/utils/SafeTransferLib.sol';
/**
* @title Leaderboard
* @author @nnnnicholas, tweaked by @m1guelpf
* @dev Receive ETH and associate contributions with contract addresses.
*/
@m1guelpf
m1guelpf / PRMTVS.sol
Last active January 3, 2022 20:03
A lil identity namespace contract in response to jsngr's tweet: https://twitter.com/jsngr/status/1478090387101302789
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
contract PRMTVS {
struct Identity {
string name;
string bio;
string email;
string website;
}
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreigic2vtnqmiryifjotq73punydb3wsio3y3r4vagonxu2h7g5l2wq ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@m1guelpf
m1guelpf / mysql.sh
Last active May 11, 2018 15:28 — forked from mahemoff/mysql.sh
circleci mysql upgrade
#!/bin/bash
set -x
set -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --purge autoremove -y mysql-server-5.6
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections
@m1guelpf
m1guelpf / test.md
Last active May 11, 2018 15:55
Example Markdown document for playing with UnMarkDocs
title Rendered Example
description Example gist to showcase the possibilities of UnMarkDocs
next
url copy
What are you waiting for? Create an UnMarkDocs account!

How it Works