Skip to content

Instantly share code, notes, and snippets.

View elmato's full-sized avatar

Matias Romeo elmato

  • Buenos Aires, Argentina
View GitHub Profile
@elmato
elmato / eos-evm-ws-proxy.md
Created September 25, 2023 21:23
EOS EVM WebSocket Proxy

eos-evm-ws-proxy

Description:

The eos-evm-ws-proxy offers a WebSocket interface to the EOS EVM. Given that Silkworm lacks WebSocket support, eos-evm-ws-proxy fills this gap enabling real-time, bidirectional interaction between clients and the EOS EVM.

Internal Components:

  1. SubscriptionServer: Acts as the heart of the project, managing subscriptions and coordinating events between the BlockMonitor and WebSocketHandler components.
import sys
from binascii import hexlify
from ueosio.ds import DataStream, symbol_code_to_uint64
def eos_token_to_erc20(account, symbol_code, precision):
v=symbol_code_to_uint64(symbol_code)<<8|int(precision)
ds=DataStream()
ds.pack_uint64(v)
ds.pack_name(account)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@elmato
elmato / designer.html
Created October 30, 2014 06:31
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;