Skip to content

Instantly share code, notes, and snippets.

View matekno's full-sized avatar
🐢
The turtle may be slow, but always does its job

Mati Rapoport matekno

🐢
The turtle may be slow, but always does its job
View GitHub Profile
// ILista.java
package interfaces;
public interface ILista<T> {
void insertarPrimero(INodo<T> nodo);
void insertarUltimo(INodo<T> nodo);
void insertarPosicion(INodo<T> nodo, int pos);
INodo<T> eliminarPrimero();
INodo<T> eliminarUltimo();
{
token0: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
token1: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
fee: 500,
tickLower: 204854,
tickUpper: 205054,
amount0Desired: '10000',
amount1Desired: '7950866837399',
amount0Min: 0,
amount1Min: 0,
import { ethers } from 'ethers'
import * as dotenv from "dotenv";
dotenv.config();
// configuramos el provider de alchemy para conectarnos a la red de ethereum
const apikey = process.env.ALCHEMY_API_KEY || "";
const provider = new ethers.providers.AlchemyProvider('homestead', apikey);
const poolAddress = '0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8'
import { ethers } from 'ethers'
import { Pool } from '@uniswap/v3-sdk'
import { Token } from '@uniswap/sdk-core'
import { abi as IUniswapV3PoolABI } from '@uniswap/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'
const provider = new ethers.providers.AlchemyProvider('homestead', "apikey");
const poolAddress = '0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8';
const poolContract = new ethers.Contract(poolAddress, IUniswapV3PoolABI, provider);
@matekno
matekno / traefik.yaml
Last active September 16, 2022 02:08
global:
checkNewVersion: true
sendAnonymousUsage: false
log:
level: ERROR # DEBUG, INFO, WARNING, ERROR, CRITICAL
format: common # common, json, logfmt
filePath: /var/log/traefik/traefik.log
api:
{
"default_data": {
"host_id": 1,
"color_id": 4,
"chasis": "AJ37D3DDJ3D2SDDDS",
"marca": "Ford",
"modelo": "Fiesta",
"ano": 2013,
"motor": "1.6",
"combustible": "Diesel",