Skip to content

Instantly share code, notes, and snippets.

View fredo's full-sized avatar

formerly luehrsFred fredo

  • Brainbot Technologies
  • Frankfurt
View GitHub Profile
@fredo
fredo / distribute_funds.conf
Created April 5, 2023 15:42
Config for distributing_funds.py
addresses = [
# ENTER YOUR ADDRESSES HERE
]
[[chains]]
name = "Ethereum"
rpc = ""
[chains.tokens.ETH]
target_balance = 0.05
[chains.tokens.USDC]
@fredo
fredo / gist:e549aadcc9e791c537f4a4fc075cbd2e
Created January 5, 2023 17:23
logs_boba_not_providing_events
AttributeDict({'difficulty': 2, 'proofOfAuthorityData': HexBytes('0xd98301090a846765746889676f312e31352e3133856c696e75780000000000001f6729b37ff161a67df786e14c008190884d1b8bbd18f7161b03ba97acc0990c38888314737300423bfccd63ccad17a16c8f42f2adf29b265f2be546e76878c000'), 'gasLimit': 11000000, 'gasUsed': 140337, 'hash': HexBytes('0x063dadfd373ce2013896fdf7dd4bda7e2888f9041592b635febe0c5a27c68f9e'), 'logsBloom': HexBytes('0x00000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000080000000000000000000000000000000000000000001000000000000000000004000000000000000004000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020'), 'miner': '0x0000000000000000000000000000000000000000', 'mixHash': HexBytes('0x0000000000
@fredo
fredo / BeamerContractsSourceCodeResolvedImports.sol
Last active January 2, 2023 15:44
Source code for beamer contracts verification. All Imports are resolved. Contains all contracts needed to verify beamer contracts
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
pfs_1 | 172.22.0.3 - - [2021-09-22 08:55:16] "OPTIONS /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 200 277 0.000915
pfs_1 | 172.22.0.3 - - [2021-09-22 08:52:11] "OPTIONS /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 200 277 0.001026
pfs_1 | 172.22.0.3 - - [2021-09-22 05:23:01] "POST /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 400 437 0.005333
pfs_1 | 172.22.0.3 - - [2021-09-22 07:06:10] "POST /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 400 434 0.005626
pfs_1 | 172.22.0.3 - - [2021-09-22 07:06:10] "POST /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 400 434 0.005830
pfs_1 | 172.22.0.3 - - [2021-09-22 06:22:16] "POST /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/paths HTTP/1.1" 404 518 0.722016
pfs_1 | 172.22.0.3 - - [2021-09-22 04:43:04] "POST /api/v1/0x625F82D937ccA0f1fF0097864895ba91635309A3/p
synapse_1 | 2021-08-25 15:45:11,150 synapse.access.http.8008(389) [INFO ]: GET-23401 84.160.91.185 - 8008 - {@0x84ca3dfc5168dd9944f9cd9904eb67e510836994:transport.transport04.raiden.network} Processed request: 62.147sec/-0.000sec (0.005sec, 0.000sec) (0.001sec/0.001sec/2) 339B 200 "GET /_matrix/client/r0/sync?timeout=60000&since=s1_2617_0_1_1_27_1424_27_1&access_token=<redacted> HTTP/1.1" "Raiden 2.0.1.dev318+g5b4bdd41f.d20210823" [0 dbevts]
synapse_1 | 2021-08-25 15:45:11,166 synapse.access.http.8008(389) [INFO ]: GET-23470 138.197.156.225 - 8008 - {@0x23a74bd16e98a83be6f9c61807010c8e778ed3e2:transport.transport04.raiden.network} Processed request: 31.879sec/-0.000sec (0.001sec, 0.000sec) (0.003sec/0.001sec/2) 566B 200 "GET /_matrix/client/r0/sync?timeout=60000&since=s1_2632_0_1_1_27_1424_27_1&access_token=<redacted> HTTP/1.1" "python-requests/2.26.0" [0 dbevts]
synapse_1 | 2021-08-25 15:45:11,168 synapse.access.http.8008(389) [INFO ]: GET-23469 138.197.156.225 - 800
@fredo
fredo / gist:c8c242c2ca5ba3bba57dcd11d4e42f63
Created November 18, 2020 15:38
message_federation_penetrator.py
from gevent import monkey # isort:skip
monkey.patch_all() # isort:skip
from collections import defaultdict
from typing import List
import gevent
from gevent.event import Event
from matrix_client.errors import MatrixRequestError
@fredo
fredo / run_raiden_web_rtc.sh
Last active June 22, 2020 13:43
run raiden
raiden --log-config=raiden:DEBUG --keystore-path=./keystore --address=0xDAad27196951Bd48a12a22A5c79923c93066Bc4b --password-file=./keystore/pw --eth-rpc-endpoint=http://geth.goerli.ethnodes.brainbot.com:8545 --accept-disclaimer --environment-type=development --api-address=127.0.0.1:7778 --network-id goerli --pathfinding-service-address https://pfs.transport03.raiden.network --log-config raiden.network.transport.matrix.transport:debug,raiden.network.transport.matrix.rtc.aio_loop:debug
@fredo
fredo / raiden-matrix-sync-cheat-sheet.md
Last active February 19, 2020 14:54
Cheat Sheet for Matrix Sync in Raiden

Matrix Sync in Raiden

This document is intended to collect Matrix sync information which are documented or not in the official Matrix Spec. Especially, how raiden treats the syncing process introduces some special behavior.

Blocking First Sync

Generally spoken the first sync delivers different results if a user already used this ID in Matrix or not. If already used the UserID is already part of the broadcast rooms (discovery, PFS, Monitoring). The Matrix Server will notice this and already send you information of the rooms you joined.

Events user receives:

Keybase proof

I hereby claim:

  • I am luehrsfred on github.
  • I am luehrsfred (https://keybase.io/luehrsfred) on keybase.
  • I have a public key ASBexEulSrJmIU8kJgW6KKtcnGvFEacWuVPqGljAqGTMBQo

To claim this, I am signing this object:

@fredo
fredo / raidex-js-licenses.txt
Created June 27, 2019 09:55
all js dependencies licenses
├─ @angular-devkit/architect@0.12.1
│ ├─ licenses: MIT
│ ├─ repository: https://github.com/angular/angular-cli
│ ├─ publisher: Angular Authors
│ ├─ path: /home/fred/fred/projects/raiden/raidex/webui/node_modules/@angular-devkit/architect
│ └─ licenseFile: /home/fred/fred/projects/raiden/raidex/webui/node_modules/@angular-devkit/architect/LICENSE
├─ @angular-devkit/architect@0.12.2
│ ├─ licenses: MIT
│ ├─ repository: https://github.com/angular/angular-cli
│ ├─ publisher: Angular Authors