Пример #1
0
    RDOCMoCInrate, \
    RDOCMoCBurnout, \
    RDOCMoCBProxManager, \
    RDOCMoCState, \
    RDOCMoCConnector, \
    RDOCMoCMedianizer
from moneyonchain.token import RIFDoC, RIFPro

network = 'rdocMainnet'
connection_manager = ConnectionManager(network=network)
print("Connecting to %s..." % network)
print(
    "Connected: {conectado}".format(conectado=connection_manager.is_connected))

moc_main = RDOCMoC(connection_manager)
addresses = moc_main.connector_addresses()

count = 0
lines = list()

md_header = '''
| Nº     | Contract                      | Address Proxy                  | Address Implementation           |
| :---:  | :---------------------------- | ----------------------------   | -------------------------------- |
'''

# MOC
count += 1
line = '| {0} | {1}  | {2}  | {3} |'.format(count, 'MOC', addresses['MoC'],
                                            moc_main.implementation())
lines.append(line)
Пример #2
0
from moneyonchain.manager import ConnectionManager
from moneyonchain.rdoc import RDOCMoC


network = 'rdocTestnetAlpha'
connection_manager = ConnectionManager(network=network)
print("Connecting to %s..." % network)
print("Connected: {conectado}".format(conectado=connection_manager.is_connected))

moc_moc = RDOCMoC(connection_manager, contracts_discovery=False)
print("Connector: {0}".format(moc_moc.connector()))

print("Addresses: {0}".format(moc_moc.connector_addresses()))