Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
@Turupawn
Turupawn / gist:7c17aa2e2b0e4e6fa10794d4eb4f3583
Last active October 15, 2024 16:17
aave challenge respuesta
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
// In this example, the DataTypes library is used to query the AToken address that corresponds DAI
// Later, we will use the getReserveData that will return a ReserveData object.
// Aave docs: https://docs.aave.com/developers/core-contracts/pool#getreservedata
library DataTypes {
struct ReserveConfigurationMap {
uint256 data;
}
@Turupawn
Turupawn / 4TK_bot.js
Created September 11, 2024 20:52
run with `node 4TK_bot.js`
const Web3 = require('web3');
const cron = require('node-cron');
// Replace with your Ethereum node provider URL
const web3 = new Web3('https://rpc.garnetchain.com');
// Replace with your smart contract ABI and address
const contractABI = [
{
"inputs": [
@Turupawn
Turupawn / map.json
Last active September 4, 2024 19:44
big map
This file has been truncated, but you can view the full file.
{
"map": [
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0
@Turupawn
Turupawn / maci-v2-trusted-setup-ceremony_attestation.log
Created August 27, 2024 03:20
Attestation for MACI v2 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm Turupawn-707484 and I have contributed to the MACI v2 Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (processmessages_14-9-2-3)
Contributor # 227
Contribution Hash: 22b16f16 7b2b923b 267c4764 6adf9b77
8dc3da5b dc6ee215 7f7009bd ba353c44
2d5e409a 6176b2b4 f4190d19 407aae46
9cc73c66 9a4da55f db5e7d4d 8ebb9c18
@Turupawn
Turupawn / links.md
Last active August 25, 2024 00:50
Autonomous World Links
import { defineSystem } from "@latticexyz/recs";
import { PhaserLayer } from "../createPhaserLayer";
export const createPlanetSystem = (layer: PhaserLayer) => {
const {
world,
scenes: {
Main: { objectPool, input },
},
} = layer;
@Turupawn
Turupawn / aave.sol
Last active August 11, 2024 12:58
DeFi Hackathon
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
library DataTypes {
struct ReserveConfigurationMap {
uint256 data;
}
struct ReserveData {
ReserveConfigurationMap configuration;
@Turupawn
Turupawn / README.md
Last active August 10, 2024 20:16
Verificación Hackathon
@Turupawn
Turupawn / README.md
Last active August 25, 2024 01:35
ZK Hackathon

Instala noir v22

Linux

mkdir -p $HOME/.nargo/bin && \
curl -o $HOME/.nargo/bin/nargo-x86_64-unknown-linux-gnu.tar.gz -L https://github.com/noir-lang/noir/releases/download/v0.22.0/nargo-x86_64-unknown-linux-gnu.tar.gz && \
tar -xvf $HOME/.nargo/bin/nargo-x86_64-unknown-linux-gnu.tar.gz -C $HOME/.nargo/bin/ && \
echo -e '\nexport PATH=$PATH:$HOME/.nargo/bin' >> ~/.bashrc && \
source ~/.bashrc