Skip to content

Instantly share code, notes, and snippets.

View insipx's full-sized avatar
🏠
Working from home

Andrew Plaza insipx

🏠
Working from home
View GitHub Profile
@insipx
insipx / Failure
Last active February 4, 2025 22:38
Test
running 1 test
2025-02-04 16:40:22.494: sqlcipher_set_log: set log to stderr
2025-02-04T21:40:22.683259Z DEBUG stream_all_messages: xmtp_mls::subscriptions: stream all messages
2025-02-04T21:40:22.711161Z DEBUG stream_all_messages: xmtp_mls::subscriptions::stream_conversations: Setting up conversation stream cursor = 0
2025-02-04T21:40:22.736603Z DEBUG stream_all_messages: xmtp_mls::subscriptions::stream_messages: setting up messages subscription
2025-02-04T21:40:22.986142Z INFO xmtp_mls::subscriptions::stream_conversations: Trying to process streamed welcome
2025-02-04T21:40:23.064992Z DEBUG xmtp_mls::subscriptions::stream_conversations: finished processing with group a64d959f7e44c20e9491813d7a7a3157
2025-02-04T21:40:23.065016Z DEBUG xmtp_mls::subscriptions::stream_messages: begin establishing new message stream to include group_id=a64d959f7e44c20e9491813d7a7a3157
2025-02-04T21:40:23.091025Z DEBUG xmtp_mls::subscriptions::stream_messages: added group_id=a64d959f7e44c20e9491813d7a7a3157 at cursor=1 to messag
font-family = "Berkeley Mono"
theme = catppuccin-mocha
font-size = 16
keybind = ctrl+space>shift+-=new_split:down
keybind = ctrl+space>shift+\=new_split:right
keybind = ctrl+space>h=goto_split:left
keybind = ctrl+space>j=goto_split:bottom
keybind = ctrl+space>k=goto_split:top
keybind = ctrl+space>l=goto_split:right

Modular Gateway


  • Problem:
    • Need to build Resolver, Inbox and L2 Node services but provide a consistent API for libXMTP that is quickly iterable on both ends (Gateways and libxmtp)
  • Need:
    • Easy to create more than one gateway
title description authors categories created updated version
@insipx
insipx / launch_para.sh
Created August 16, 2023 14:42
Run Chains
#!/bin/bash
FOLDER=$1
if [ -e "/tmp/parachain" ]; then
rm -rf /tmp/parachain
fi
RELAY_PEER_ID=$(curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_localPeerId"}' http://localhost:9941 | jq -r '.result') || exit 1;
$FOLDER/target/release/efinity --alice \
#!/bin/bash
RELAY_PEER_ID=$(curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "system_localPeerId"}' http://localhost:9955 | jq -r '.result')
./target/release/matrix --alice \
--force-authoring \
--collator \
--chain ./realdata-efinity.dev.json \
--base-path /tmp/parachain/alice \
--port 40446 \
{
description = "Dev Env";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
fenix = {
url = "github:nix-community/fenix";
# The `follows` keyword in inputs is used for inheritance.
# Here, `inputs.nixpkgs` of sops-nix is kept consistent with the `inputs.nixpkgs` of
{ config, pkgs, ... }:
{
disabledModules = [
"hardware/video/nvidia.nix"
];
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
id | block_num | hash | is_event | timestamp | duration | file | line | trace_id | trace_parent_id | target | name | traces
-------+-----------+--------------------------------------------------------------------+----------+----------------------------+----------+------------------------------------------------------------------------------------------------------------------+------+----------+-----------------+-----------------------------------+-----------------+----------------------------------------------------------------------------------
55751 | 6096514 | \xfc9dd9fd693485af56aea8b841399c5617c82c43b0dc5b7943fd1d915a8eb6fb | f | 2021-03-26 17:02:32.275115 | 1630 | /home/insipx/.cargo/git/che
2020-08-03 18:07:30.013 tokio-blocking-driver INFO sc_tracing frame_executive: extract_pre_digest, time: 670, id: 2, parent_id: Some(1)
2020-08-03 18:07:30.013 tokio-blocking-driver INFO sc_tracing frame_executive: runtime_upgraded, time: 12890, id: 4, parent_id: Some(3)
2020-08-03 18:07:30.013 tokio-blocking-driver INFO sc_tracing sp_io::storage, parent_id: Some(3), message="set", key="[38, 170, 57, 78, 234, 86, 48, 224, 124, 72, 174, 12, 149, 88, 206, 247, 255, 85, 59, 90, 152, 98, 165, 22, 147, 157, 130, 179, 211, 216, 102, 26]", value="[2]"
2020-08-03 18:07:30.013 tokio-blocking-driver INFO sc_tracing sp_io::storage, parent_id: Some(3), message="set", key="[58, 101, 120, 116, 114, 105, 110, 115, 105, 99, 95, 105, 110, 100, 101, 120]", value="[0, 0, 0, 0]"
2020-08-03 18:07:30.013 tokio-blocking-driver INFO sc_tracing sp_io::storage, parent_id: Some(3), message="set", key="[38, 170, 57, 78, 234, 86, 48, 224, 124, 72, 174, 12, 149, 88, 206, 247, 2, 165, 193, 177, 154, 183, 160, 79, 83, 108, 81, 154, 202