2022-09-13 17:01:24 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Tests the core auction flow with the added factor of specifying which
|
|
|
|
# providers are verified.
|
|
|
|
|
|
|
|
# import utilities
|
|
|
|
HERE=$(cd $(dirname $BASH_SOURCE) && pwd)
|
|
|
|
source $HERE/testutil.sh
|
|
|
|
|
2022-09-13 22:43:17 -07:00
|
|
|
colineard tx colinearcore unlock-all-funds -y --from alice \
|
|
|
|
| swallow "Unlock all funds before proceeding"
|
|
|
|
|
|
|
|
colineard tx colinearcore lock-funds 550000000 -y --from alice \
|
|
|
|
| expect_success "Re-lock funds (Alice)"
|
|
|
|
|
|
|
|
colineard tx colinearcore lock-funds 550000000 -y --from bob \
|
|
|
|
| expect_success "Re-lock funds (Bob)"
|
|
|
|
|
2022-09-13 17:05:39 -07:00
|
|
|
colineard tx colinearcore new-auction asdf asdf 200 uusdc $(now + 3700) \
|
|
|
|
$ALICE \
|
|
|
|
-y --from bob \
|
|
|
|
| expect_success "New auction is created"
|
2022-09-13 17:01:24 -07:00
|
|
|
|
2022-09-13 17:05:39 -07:00
|
|
|
colineard tx colinearcore new-bid $(get_last_auction_index) 100 \
|
|
|
|
-y --from bob \
|
|
|
|
| expect_fail "Unverified provider account can't bid"
|
|
|
|
|
|
|
|
colineard tx colinearcore new-bid $(get_last_auction_index) 100 \
|
|
|
|
-y --from alice \
|
|
|
|
| expect_success "Verified provider account can bid"
|