示例#1
0
def test_bet_notequal():
    unsigned_tx_hex = bitcoin.transaction(
        bet.compose(db, source_default, source_default, 3, 1388000200,
                    small * 13, small * 15, 1, 5040, expiration), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#2
0
def test_bet_bearcfd_to_be_settled():
    unsigned_tx_hex = bitcoin.transaction(
        bet.compose(db, source_default, source_default, 1, 1388000100,
                    small * 7, small * 3, 0.0, 5040, expiration), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#3
0
def test_bet_bullcfd_to_be_liquidated():
    unsigned_tx_hex = bitcoin.transaction(
        bet.compose(db, source_default, source_default, 0, 1388000100, small,
                    round(small / 2), 0.0, 15120, expiration), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#4
0
def test_bet_bullcfd_to_be_settled():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default,
                                                      source_default, 0,
                                                      1388000100, small * 3,
                                                      small * 7, 0.0, 5040,
                                                      expiration),
                                          encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#5
0
def test_bet_bearcfd_to_be_liquidated():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default,
                                                      source_default, 1,
                                                      1388000100,
                                                      round(small / 2),
                                                      round(small * .83), 0.0,
                                                      15120, expiration),
                                          encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#6
0
def test_bet_notequal ():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default, source_default, 3, 1388000200, small * 13, small * 15, 1, 5040, expiration), encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#7
0
def test_bet_bearcfd_to_be_settled ():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default, source_default, 1, 1388000100, small * 7, small * 3, 0.0, 5040, expiration), encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#8
0
def test_bet_bearcfd_to_be_liquidated ():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default, source_default, 1, 1388000100, round(small / 2), round(small * .83), 0.0, 15120, expiration), encoding='multisig')

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#9
0
def test_bet_bullcfd_to_be_settled ():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default, source_default, 0, 1388000100, small * 3, small * 7, 0.0, 5040, expiration), True)

    parse_hex(unsigned_tx_hex)

    output_new[inspect.stack()[0][3]] = unsigned_tx_hex
示例#10
0
def test_bet_bullcfd_to_be_liquidated ():
    unsigned_tx_hex = bitcoin.transaction(bet.compose(db, source_default, source_default, 0, 1388000100, small, round(small / 2), 0.0, 15120, expiration), True)

    parse_hex(unsigned_tx_hex)

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