Skip to content

Instantly share code, notes, and snippets.

@jordy25519
jordy25519 / example.py
Last active March 27, 2024 08:19
driftpy query User accounts
"""
Shows how to query user account data using driftpy
python 3.10.13
"""
import asyncio
from anchorpy import Wallet
from driftpy.addresses import get_user_account_public_key
from driftpy.drift_client import DriftClient;
from driftpy.user_map.user_map import UserMap, UserMapConfig, PollingConfig;
@jordy25519
jordy25519 / keybase.md
Last active November 2, 2020 20:22
keybase.md

Keybase proof

I hereby claim:

  • I am holygits on github.
  • I am jrodan (https://keybase.io/jrodan) on keybase.
  • I have a public key ASCg9EiMNiOkjVULNz9rwhRc4DKQuTMeBFeZFq6VCte3PQo

To claim this, I am signing this object:

@jordy25519
jordy25519 / substrate-knownledge-dump.md
Last active September 21, 2022 03:34
Substrate/Plug/CENNZnet Knowledge Dump

Rust

cargo check

Sometimes errors from macro expansion are too opaque to debug. To see errors with the expanded macro set RUSTFLAGS like so:

RUSTFLAGS="-Z external-macro-backtrace" cargo +nightly [test|check]
# new version