Example #1
0
def main(host, port, wallet_file, exe, output, neo4j):
    mrpc = MoneroRPC(host, port, wallet_file=wallet_file, exe=exe)
    w = Wallet(mrpc)
    generate_draw(w, output)
    if neo4j.get('neoHost'):
        insert_neo4j(w, neo4j.get('neoHost'), neo4j.get('neoPort'),
                     neo4j.get('neoUser'), neo4j.get('neoPass'))
from entities import Wallet, IssuerEntity
from transports import ServerTestTransport, ClientTest
import tests

walletA = Wallet()
walletA.coins = [tests.coinB]

walletB = Wallet()
ie = tests.makeIssuerEntity()
t = ClientTest(walletB.listen,
               clientnick='walletA',
               autocontinue=1,
               autoprint='json',
               servernick='walletB')
t2 = ClientTest(ie.issuer.listen,
                clientnick='walletB',
                autocontinue=1,
                autoprint='json',
                servernick='issuer')

# setup things for walletB to be able to perform connection with issuer
walletB.addIssuerTransport(location=ie.issuer.getCDD().issuer_service_location,
                           transport=t2)
walletB.setCurrentCDD(ie.issuer.getCDD())

walletA.sendCoins(t, amount=1, target='a book')
Example #3
0
from entities import Wallet, IssuerEntity
from transports import ServerTestTransport, ClientTest
import tests

walletA = Wallet()
walletA.coins = [tests.coinB]

walletB = Wallet()
ie = tests.makeIssuerEntity()
t = ClientTest(walletB.listen, clientnick="walletA", autocontinue=1, autoprint="json", servernick="walletB")
t2 = ClientTest(ie.issuer.listen, clientnick="walletB", autocontinue=1, autoprint="json", servernick="issuer")

# setup things for walletB to be able to perform connection with issuer
walletB.addIssuerTransport(location=ie.issuer.getCDD().issuer_service_location, transport=t2)
walletB.setCurrentCDD(ie.issuer.getCDD())

walletA.sendCoins(t, amount=1, target="a book")
from entities import Wallet, Issuer
from transports import ServerTestTransport, ClientTest
import tests
walletA = Wallet()
walletA.coins = [tests.coinB]

walletB = Wallet()
issuer = tests.makeIssuer()
t = ClientTest(walletB.listen,
               clientnick='walletA',
               autocontinue=1,
               autoprint=0,
               servernick='walletB')
t2 = ClientTest(issuer.listen,
                clientnick='walletB',
                autoprint=0,
                servernick='issuer')

walletB.issuer_transport = t2
walletA.sendCoins(t,amount=1,target='a book')





Example #5
0
from entities import Wallet, Issuer
from transports import ServerTestTransport, ClientTest
import tests
walletA = Wallet()
walletA.coins = [tests.coinB]

walletB = Wallet()
issuer = tests.makeIssuer()
t = ClientTest(walletB.listen,
               clientnick='walletA',
               autocontinue=1,
               autoprint=0,
               servernick='walletB')
t2 = ClientTest(issuer.listen,
                clientnick='walletB',
                autoprint=0,
                servernick='issuer')

walletB.issuer_transport = t2
walletA.sendCoins(t, amount=1, target='a book')