Skip to content

Instantly share code, notes, and snippets.

View erikd's full-sized avatar

Erik de Castro Lopo erikd

View GitHub Profile
@erikd
erikd / maya-protocol.md
Last active July 12, 2023 22:51
Random thoughts on Maya Protocol supporting Cardano/ADA

Maya Protocol and Implications of a Cardano/ADA Liquidity Pool

This document explores the factors that will need to be taken into account if the Maya Protocol decides to provide an ADA/CACAO liquidity pool.

Rationale

The Cardano network for the ADA token provides an incredibly simple and well designed staking and stake delegation mechanism that is trust-less, non-custodial, permission-less and carries a

#!/bin/bash -e
cabal build cardano-cli cardano-node cardano-cluster
CARDANO_CLI=$(find dist-newstyle/ -type f -name cardano-cli)
CARDANO_CLUSTER=$(find dist-newstyle/ -type f -name cardano-cluster)
CARDANO_NODE=$(find dist-newstyle/ -type f -name cardano-node)
echo "cli: ${CARDANO_CLI}"
echo "node: ${CARDANO_NODE}"
@erikd
erikd / pretty-print-sql.hs
Created July 22, 2014 05:44
Pretty print Persistent debug SQL statements
#!/usr/bin/runghc -Wall
-- Trivial little script to pretty-print safe SQL from Yesod's logging mechanism.
-- It can be run simply using:
-- prety-print-sql.hs <SQL statement string>
import System.Environment (getArgs, getProgName)
import System.Exit (exitSuccess)

Keybase proof

I hereby claim:

  • I am erikd on github.
  • I am erikd (https://keybase.io/erikd) on keybase.
  • I have a public key whose fingerprint is 6A91 A5CF 22C2 4C99 A35E 013F CFDC F91F B242 ACED

To claim this, I am signing this object: