Ejemplo n.º 1
0
    def get(arguments, transaction=None):
        Contract = chain.provider.get_contract_factory('SimpleExchange')
        contract = create_contract(SimpleExchange, arguments, transaction)

        if print_the_logs:
            print_logs(uraiden_contract, 'Setup', 'SimpleExchange')
            print_logs(uraiden_contract, 'Fund', 'SimpleExchange')
            print_logs(uraiden_contract, 'Buy', 'SimpleExchange')
            print_logs(uraiden_contract, 'WithdrawTokens', 'SimpleExchange')

        return contract
Ejemplo n.º 2
0
    def get(arguments, transaction=None):
        RaidenMicroTransferChannels = chain.provider.get_contract_factory(
            'RaidenMicroTransferChannels'
        )

        uraiden_contract = create_contract(
            RaidenMicroTransferChannels,
            arguments,
            transaction
        )

        if print_the_logs:
            print_logs(uraiden_contract, 'ChannelCreated', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelToppedUp', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelCloseRequested', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelSettled', 'RaidenMicroTransferChannels')

        return uraiden_contract
Ejemplo n.º 3
0
    def get(arguments, transaction=None):
        RaidenMicroTransferChannels = chain.provider.get_contract_factory(
            'RaidenMicroTransferChannels'
        )

        uraiden_contract = create_contract(
            RaidenMicroTransferChannels,
            arguments,
            transaction
        )

        if print_the_logs:
            print_logs(uraiden_contract, 'ChannelCreated', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelToppedUp', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelCloseRequested', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelSettled', 'RaidenMicroTransferChannels')
            print_logs(uraiden_contract, 'ChannelWithdraw', 'RaidenMicroTransferChannels')

        return uraiden_contract
Ejemplo n.º 4
0
def ecverify_test_contract(chain, create_contract):
    ECVerifyTest = chain.provider.get_contract_factory('ECVerifyTest')
    ecverify_test_contract = create_contract(ECVerifyTest, [])

    return ecverify_test_contract
Ejemplo n.º 5
0
 def get(transaction=None):
     Delegate = chain.provider.get_contract_factory('Delegate')
     delegate_contract = create_contract(Delegate, [], {})
     return delegate_contract
Ejemplo n.º 6
0
def ecverify_test_contract(chain, create_contract):
    ECVerifyTest = chain.provider.get_contract_factory('ECVerifyTest')
    ecverify_test_contract = create_contract(ECVerifyTest, [])

    return ecverify_test_contract
Ejemplo n.º 7
0
 def get(transaction=None):
     Delegate = chain.provider.get_contract_factory('Delegate')
     delegate_contract = create_contract(Delegate, [], {})
     return delegate_contract