Skip to content

Instantly share code, notes, and snippets.

View rodrigosobrero's full-sized avatar
💻
Focusing

Rodrigo Sobrero rodrigosobrero

💻
Focusing
View GitHub Profile
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><title></title><!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]--><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style type="text/css">#outlook a { padding:0; }
body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }
table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }
img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }
p { display:block;margin:13px 0; }</style><!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
@rodrigosobrero
rodrigosobrero / thegraph.py
Last active December 3, 2020 13:46
Obtener precio de un token con el Subgraph oficial de Balancer.
from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport
transport = AIOHTTPTransport(url="https://api.thegraph.com/subgraphs/name/balancer-labs/balancer")
client = Client(transport=transport, fetch_schema_from_transport=True)
# DAI
tokenAddress = "0x6b175474e89094c44da98b954eedeac495271d0f"
@rodrigosobrero
rodrigosobrero / performanceTest.html
Created October 19, 2020 18:10
Performance API
<!doctype html>
<html>
<head>
</head>
<body onload="loadResources()">
<script>
function loadResources() {
var image1 = new Image();
@rodrigosobrero
rodrigosobrero / defiBalances.json
Created September 3, 2020 15:30
defi-sdk balances
[
{
"metadata": {
"name": "Matic",
"description": "A scaling solution for public blockchains",
"website": "https://matic.network/",
"logo": "https://http//protocol-icons.s3.amazonaws.com/matic.png",
"version": "1n"
},
"balances": [
{
"hits": [
{
"store_id": 128480,
"schedules": [
{
"open_time": "12:00:00",
"close_time": "23:30:00"
}
],