Skip to content

Instantly share code, notes, and snippets.

View oberstet's full-sized avatar

Tobias Oberstein oberstet

View GitHub Profile
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar-examples/authentication/tls/static$ cat Makefile
default:
@echo "Targets:"
@echo ""
@echo " crossbar Run a TLS router and a TLS client component in a container"
@echo " crossbar_shared Run 2 non-TLS Web workers sharing a TCP listening port"
@echo " crossbar_shared_tls Run 2 TLS Web workers sharing a TCP listening port"
generate_certs:
./create-self-signed-cert.sh
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar-binaries$ make build_docker_arm64
cd ./docker && make build_docker_arm64
make[1]: Verzeichnis „/home/oberstet/scm/crossbario/crossbar-binaries/docker“ wird betreten
time docker build \
--build-arg CROSSBAR_ARCH=arm64v8 \
--build-arg CROSSBAR_BUILD_DATE=2022-07-31 \
--build-arg CROSSBAR_VCS_REF=d3bca556 \
--build-arg CROSSBAR_VERSION=22.7.1.dev1 \
-t crossbario/crossbar:cpy-slim-arm64v8 \
-t crossbario/crossbar:cpy-slim-arm64v8-22.7.1.dev1 \
{'attrs': {},
'docs': '',
'id': 0,
'is_union': True,
'name': 'testsvc1.TestRequestAny',
'underlying_type': None,
'values': {'NONE': {'attrs': {},
'docs': '',
'id': 0,
'name': 'NONE',
autobahn.xbr.test.test_xbr_schema
TestFbsRepository
test_create_from_archive ...
{'attrs': {},
'bytesize': 0,
'declaration_file': '//testsvc1.fbs',
'docs': '',
'fields': {'msg': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
attribute arg;
attribute kwarg;
attribute type;
attribute uuid;
attribute timestamp;
attribute ethadr;
attribute wrn;
struct uint160_t {
w0: uint32;
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) typedef int GmbH and contributors.
// All rights reserved. Licensed under the MIT open-source license.
//
///////////////////////////////////////////////////////////////////////////////
// FIXME: "error: rpc request and response types must be tables"
// https://github.com/google/flatbuffers/blob/11a19887053534c43f73e74786b46a615ecbf28e/src/idl_parser.cpp#L2658
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/typedefint/pydefi$ xbrnetwork describe-schema --schema ./pydefi/database/gen/trading.bfbs
loading schema file "./pydefi/database/gen/trading.bfbs" (31072 bytes, SHA256 0x83da74738575631879694d3efcaf8f4889a980d0acdf86e5cf62a69607484119)
ok, loaded 48 types (39 structs and tables, 6 enums and 3 service interfaces)
Interface ILimitOrderBookReader =======================================================================
Interface UUID: 0f9ee229-520d-4cea-88c9-e8e428da5660
Interface URIs: eth.pydefi.lobreader.<uuid:reader>.(procedure|topic)
Write me.
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/typedefint/pydefi$ xbrnetwork describe-schema --schema ./pydefi/database/gen/trading.bfbs
loading schema file "./pydefi/database/gen/trading.bfbs" (31072 bytes, SHA256 0x83da74738575631879694d3efcaf8f4889a980d0acdf86e5cf62a69607484119)
ok, loaded 48 types (39 structs and tables, 6 enums and 3 service interfaces)
Interface ILimitOrderBookReader =======================================================================
Interface UUID: 0f9ee229-520d-4cea-88c9-e8e428da5660
Interface URIs: eth.pydefi.lobreader.<uuid:reader>.(procedure|topic)
Write me.
import json
import argparse
from binascii import a2b_hex
from pprint import pformat
from typing import List
import txaio
txaio.use_twisted()
import json
import argparse
from binascii import a2b_hex
from pprint import pformat
from typing import List
import txaio
txaio.use_twisted()