Skip to content

Instantly share code, notes, and snippets.

View jonaprieto's full-sized avatar

Jonathan Prieto-Cubides jonaprieto

View GitHub Profile

Anoma PA Transaction Log

BNB Testnet (Chain ID: 97)

PA: 0x33d4F0c88ef555E105Ba5e5F1aFbF34d6f650964

# Tx Hash Explorer
1 0x6132e7936df2a9119d36c63ab8da33f6e420afe63c210e90f96fdeaf7d5a1606 View
@jonaprieto
jonaprieto / swap-variant-current.md
Created February 16, 2026 14:39
Swap Settlement: Current Implementation (two-party signing, server-orchestrated)

Swap Settlement: Current Implementation

Variant: Two-party signing, server-orchestrated single action

Diagram

sequenceDiagram
    participant M as Maker
    participant S as Server

End-to-End ERC20 Wrap & Swap on Sepolia

This tutorial walks through wrapping ERC20 tokens into Anoma shielded resources and executing an atomic swap between two parties — all on Ethereum Sepolia testnet with ZK proofs generated remotely via RISC Zero Bonsai.

Overview

The flow has four steps:

@jonaprieto
jonaprieto / intent-swap-diagrams.md
Created February 5, 2026 15:58
AnomaPay Intent-Based Swap: Sequence Diagrams

AnomaPay Intent-Based Swap: Sequence Diagrams

1. Maker-Taker Flow (New Design)

sequenceDiagram
    participant Alice as Alice (Maker)
    participant Server as AnomaPay Server
    participant Pool as Intent Pool
    participant Bob as Bob (Taker)

Hello there!

@jonaprieto
jonaprieto / keybindings.jsonc
Last active June 14, 2023 22:39
Dance config for vscode
[
{
"key": "ctrl+g",
"command": "dance.modes.set.normal",
"args" : {
"mode": ""
},
"when": "(editorTextFocus) && (dance.mode == 'normal' || dance.mode == 'insert' || dance.mode == 'insert' || dance.mode == 'window' || dance.mode == 'view' || dance.mode == 'file' || dance.mode == 'project')",
},
// ===========================================================================
@jonaprieto
jonaprieto / Makefile
Created May 25, 2023 08:48
Convert all the mov files to mp4 using HandBrakeCLI
# Put this Makefile inside the folder containing your
# MOV files.
MOV_FILES := $(wildcard *.mov)
MP4_FILES := $(patsubst %.mov,%.mp4,$(MOV_FILES))
all: $(MP4_FILES)
# In macOS, use `brew install HandBrakeCLI`
%.mp4: %.mov
@charset "UTF-8";
:root > * {
--md-code-link-bg-color: hsla(0, 0%, 96%, 1);
--md-code-link-accent-bg-color: var(--md-code-link-bg-color);
--md-default-bg-color--trans: rgb(100%, 100%, 100%, 0);
--md-code-title-bg-color: var(--md-code-bg-color);
--md-code-inline-bg-color: var(--md-code-bg-color);
--md-code-special-bg-color: #e8e8e8;
--md-code-alternate-bg-color: var(--md-code-bg-color);
--md-code-hl-punctuation-color: var(--md-code-fg-color);
@jonaprieto
jonaprieto / check-my-dois.py
Last active April 10, 2023 21:08
Print which dois are broken
import requests
import pybtex.database
with open('./ref.bib') as bibfile:
bib_database = pybtex.database.parse_file(bibfile)
for key in bib_database.entries.keys():
entry = bib_database.entries[key]
if 'doi' in entry.fields:
doi = entry.fields['doi'].replace('\_', '_')