Пример #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