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 / aave.sol
Last active July 30, 2024 21:14
DeFi Ethereum Argentina
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
library DataTypes {
struct ReserveConfigurationMap {
uint256 data;
}
struct ReserveData {
ReserveConfigurationMap configuration;
@Turupawn
Turupawn / README.md
Created July 30, 2024 21:07
Verificación Ethereum Argentina
@Turupawn
Turupawn / README.md
Last active July 30, 2024 21:25
ZK Ethereum Argentina

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
@Turupawn
Turupawn / Poseidon.json
Last active July 3, 2024 16:53
Snarklibjs's poseidon ABI
[
{
"constant":true,
"inputs":[
{
"internalType":"bytes32[2]",
"name":"input",
"type":"bytes32[2]"
}
],
@Turupawn
Turupawn / Notes.md
Created June 3, 2024 20:23
Rise In: Intro to ZK Development

Tutorial

Circom

ZK Circom Logo

Installation

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
@Turupawn
Turupawn / Notes.md
Last active June 29, 2024 11:36
Deploying and verifying a contract in Scroll
const NETWORK_ID = 534351
const MY_CONTRACT_ADDRESS = "0xdE19032216f861c6011F6898B14fb49Fd26c45F2"
const MY_CONTRACT_ABI_PATH = "./json_abi/MyContract.json"
var my_contract
var accounts
var web3
function metamaskReloadCallback() {

Merkle demo

8411631094850346633429466206441955219061762119006426459772382946930606390748
  - 9708419728795563670286566418307042748092204899363634976546883453490873071450
      - 1
      - 2
  - 959253372465518657915465330794866170308951936404091375323782669660913720058
      - 3
 - 4
// run with node etherscan_script.mjs
var ACCOUNT = "XXX"
var API_URL= "https://api-optimistic.etherscan.io/api"
var API_KEY = "YYY"
var MY_TX_COUNT = 0
var INTRACTIONS_WITH_MY_CONTRACTS_COUNT = 0
var ONBOARDED_COUNT = 0
var ONBOARDED_MULTI_TX_COUNT = 0