示例#1
0
def test_order_to_be_cancelled():
    unsigned_tx_hex = bitcoin.transaction(order.compose(
        db, source_default, 'BBBB', small, config.XCP, small, expiration, 0),
                                          encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#2
0
def test_order_to_be_cancelled():
    unsigned_tx_hex = bitcoin.transaction(
        order.compose(db, source_default, 'BBBB', small, 'XCP', small,
                      expiration, 0, config.MIN_FEE), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#3
0
def test_order_sell_xcp():
    unsigned_tx_hex = bitcoin.transaction(
        order.compose(db, source_default, 'XCP', round(small * 2.1), 'BTC',
                      small, expiration, fee_required, config.MIN_FEE), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#4
0
def test_order_buy_xcp():
    unsigned_tx_hex = bitcoin.transaction(
        order.compose(db, source_default, 'BTC', small, 'XCP', small * 2,
                      expiration, 0, fee_provided), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#5
0
def test_order_sell_xcp():
    unsigned_tx_hex = bitcoin.transaction(order.compose(
        db, source_default, config.XCP, round(small * 2.1), config.BTC, small,
        expiration, fee_required),
                                          encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#6
0
def test_order_buy_xcp():
    unsigned_tx_hex = bitcoin.transaction(order.compose(
        db, source_default, config.BTC, small, config.XCP, small * 2,
        expiration, 0),
                                          encoding='multisig',
                                          fee_provided=fee_provided)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#7
0
def test_order_to_be_cancelled ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, 'BBBB', small, config.XCP, small, expiration, 0), encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#8
0
def test_order_sell_xcp ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, config.XCP, round(small * 2.1), config.BTC, small, expiration, fee_required), encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#9
0
def test_order_buy_xcp ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, config.BTC, small, config.XCP, small * 2, expiration, 0), encoding='multisig', fee_provided=fee_provided)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#10
0
def test_order_to_be_cancelled ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, 'BBBB', small, 'XCP', small, expiration, 0, config.MIN_FEE), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#11
0
def test_order_sell_xcp ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, 'XCP', round(small * 2.1), 'BTC', small, expiration, fee_required, config.MIN_FEE), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#12
0
def test_order_buy_xcp ():
    unsigned_tx_hex = bitcoin.transaction(order.compose(db, source_default, 'BTC', small, 'XCP', small * 2, expiration, 0, fee_provided), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex