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

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
//! The table is :
//!
//! CREATE TABLE IF NOT EXISTS _background_tasks (
//! id BIGSERIAL PRIMARY KEY NOT NULL,
//! name VARCHAR NOT NULL,
//! )
//!
//!
//!
@insipx
insipx / meta_block_1768321.json
Created April 9, 2020 14:10
Full Metadata for block 1768321 on Kusama
[
1635018093,
{
"V11": {
"modules": [
{
"name": "System",
"storage": {
"prefix": "System",
"entries": [