def some_demo_txns(looper, sdk_wallet_steward, sdk_pool_handle): id = 'xyz' ops = [{ TXN_TYPE: AUCTION_START, DATA: { 'id': id } }, { TXN_TYPE: PLACE_BID, DATA: { 'id': id, AMOUNT: 20 } }, { TXN_TYPE: PLACE_BID, DATA: { 'id': id, AMOUNT: 40 } }, { TXN_TYPE: AUCTION_END, DATA: { 'id': id } }] for op in ops: successful_op(looper, op, sdk_wallet_steward, sdk_pool_handle)
def send_auction_txn(looper, sdk_pool_handle, sdk_wallet_stewards): op = { TXN_TYPE: AUCTION_START, DATA: {'id': 'abc'} } successful_op(looper, op, sdk_wallet_stewards, sdk_pool_handle)