Skip to content

Instantly share code, notes, and snippets.

@leon-do
leon-do / token-list.json
Last active April 28, 2024 17:57
Avalanche Token List
{
"name": "Token List",
"timestamp": "2077-01-01T11:11:11.111Z",
"version": {
"major": 1,
"minor": 0,
"patch": 0
},
"tags": {},
"logoURI": "https://cryptologos.cc/logos/shiba-inu-shib-logo.png",
@leon-do
leon-do / v2-tknA-tknB.json
Last active February 25, 2024 02:45
etc v2 test
{
"name": "EtcswapV2Test",
"logoURI": "https://raw.githubusercontent.com/etcswap/token-list/main/assets/ethereum-classic.svg",
"keywords": ["etcswap", "ethereum classic", "etc"],
"timestamp": "2024-01-13T00:00:00.000+00:00",
"tokens": [
{
"chainId": 61,
"address": "0x1953cab0E5bFa6D4a9BaD6E05fD46C1CC6527a5a",
"name": "Wrapped Ether",
@leon-do
leon-do / mordor.json
Last active January 15, 2024 15:43
Mordor Subgraph GetPools
[
{
"id": "0x3f57f76e30b47b6eaf9799c4403aaa67f209550d",
"token0": {
"id": "0xd333787e69dbfc47e67c59441e392eb530b3dc19"
},
"token1": {
"id": "0xfc95e5e3f912823ee531687e2df137940ef3ba2c"
},
"feeTier": "500",
@leon-do
leon-do / tokens.json
Last active March 27, 2024 02:58
tokenlist swap
{
"name": "ETCswap",
"timestamp": "2023-12-13T18:25:25.830Z",
"version": {
"major": 1,
"minor": 0,
"patch": 0
},
"tags": {},
"logoURI": "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
@leon-do
leon-do / emojis.json
Created October 2, 2023 16:21
Emoji Array
["😀","😃","😄","😁","😆","😅","😂","🤣","🥲","🥹","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🥸","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😮‍💨","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🫣","🤗","🫡","🤔","🫢","🤭","🤫","🤥","😶","😶‍🌫️","😐","😑","😬","🫨","🫠","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","😵‍💫","🫥","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👶","👧","🧒","👦","👩","🧑","👨","👩‍🦱","🧑‍🦱","👨‍🦱","👩‍🦰","🧑‍🦰","👨‍🦰","👱‍♀️","👱","👱‍♂️","👩‍🦳","🧑‍🦳","👨‍🦳","👩‍🦲","🧑‍🦲","👨‍🦲","🧔‍♀️","🧔","🧔‍♂️","👵","🧓","👴","👲","👳‍♀️","👳","👳‍♂️","🧕","👮‍♀️","👮","👮‍♂️","👷‍♀️","👷","👷‍♂️","💂‍♀️","💂","💂‍♂️","🕵️‍♀️","🕵️","🕵️‍♂️","👩‍⚕️","🧑‍⚕️","👨‍⚕️","👩‍🌾","🧑‍🌾","👨‍🌾","👩‍🍳","🧑‍🍳","👨‍🍳","👩‍🎓","🧑‍🎓","👨‍🎓","👩‍🎤","🧑‍🎤","👨‍🎤","👩‍🏫","🧑‍🏫","👨‍🏫","👩‍🏭","🧑‍🏭","👨‍🏭","👩‍💻","🧑‍💻","👨‍💻","👩‍💼","🧑‍💼","👨‍💼","👩‍🔧","🧑‍🔧","👨‍🔧","👩‍🔬","🧑‍🔬","👨‍🔬","👩‍🎨","🧑‍🎨","👨‍🎨","👩‍🚒","🧑‍🚒","👨‍🚒","👩‍✈️","🧑‍✈️","👨‍✈️","👩‍🚀","🧑‍🚀","👨‍
@leon-do
leon-do / emojis.json
Last active February 8, 2024 12:03
Emoji Set in Object and Array
{
"smileys": ["😀","😃","😄","😁","😆","😅","😂","🤣","🥲","🥹","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🥸","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😮‍💨","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🫣","🤗","🫡","🤔","🫢","🤭","🤫","🤥","😶","😶‍🌫️","😐","😑","😬","🫨","🫠","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","😵‍💫","🫥","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾"],
"people": ["👶","👧","🧒","👦","👩","🧑","👨","👩‍🦱","🧑‍🦱","👨‍🦱","👩‍🦰","🧑‍🦰","👨‍🦰","👱‍♀️","👱","👱‍♂️","👩‍🦳","🧑‍🦳","👨‍🦳","👩‍🦲","🧑‍🦲","👨‍🦲","🧔‍♀️","🧔","🧔‍♂️","👵","🧓","👴","👲","👳‍♀️","👳","👳‍♂️","🧕","👮‍♀️","👮","👮‍♂️","👷‍♀️","👷","👷‍♂️","💂‍♀️","💂","💂‍♂️","🕵️‍♀️","🕵️","🕵️‍♂️","👩‍⚕️","🧑‍⚕️","👨‍⚕️","👩‍🌾","🧑‍🌾","👨‍🌾","👩‍🍳","🧑‍🍳","👨‍🍳","👩‍🎓","🧑‍🎓","👨‍🎓","👩‍🎤","🧑‍🎤","👨‍🎤","👩‍🏫","🧑‍🏫","👨‍🏫","👩‍🏭","🧑‍🏭","👨‍🏭","👩‍💻","🧑‍💻","👨‍💻","👩‍💼","🧑‍💼","👨‍💼","👩‍🔧","🧑‍🔧","👨‍🔧","👩‍🔬","🧑‍🔬","👨‍🔬","👩‍🎨","🧑‍🎨","👨‍🎨","👩‍🚒","🧑‍🚒","👨‍🚒","👩
[
{
"label": "allowance(address owner,address spender)",
"sample": "allowance",
"value": "allowance"
},
{
"label": "balanceOf(address account)",
"sample": "balanceOf",
"value": "balanceOf"
@leon-do
leon-do / view.json
Created June 3, 2023 17:32
ERC-20 View Functions
{"key":"func","label":"Function","choices":[{"label":"allowance(address owner,address spender)","sample":"allowance","value":"allowance"},{"label":"balanceOf(address account)","sample":"balanceOf","value":"balanceOf"},{"label":"decimals()","sample":"decimals","value":"decimals"},{"label":"name()","sample":"name","value":"name"},{"label":"symbol()","sample":"symbol","value":"symbol"},{"label":"totalSupply()","sample":"totalSupply","value":"totalSupply"}]}
@leon-do
leon-do / WROSE.sol
Last active May 17, 2023 19:09
EIP712 WROSE
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract VerifyTypedData {
using ECDSA for bytes32;
/*
@leon-do
leon-do / RandomCommitReveal.sol
Created April 24, 2023 15:48
Random Commit Reveal
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract RandomCommitReveal {
// global for testing
uint256 public randomNumber;
struct Commitment {
uint256 entropy;