Skip to content

Commit

Permalink
Started a contract synchronization plugin (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Oct 29, 2018
1 parent 25220f0 commit 8f7d63c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions etheno/contracts.py
@@ -0,0 +1,14 @@
from .client import RpcProxyClient
from .etheno import EthenoPlugin
from .utils import format_hex_address

class ContractSynchronizer(EthenoPlugin):
def __init__(self, source_client, contract_address):
if isintsance(source_client, str):
source_client = RpcProxyClient(source_client)
self.source = source_client
self.contract = format_hex_address(contract_address, True)

def added(self):
# get the contract:
pass

0 comments on commit 8f7d63c

Please sign in to comment.