2020-10-08 22:29:51 -07:00
|
|
|
/**
|
|
|
|
* Exercises the token-lending program
|
|
|
|
*/
|
|
|
|
|
2021-03-27 05:42:16 -07:00
|
|
|
import { createLendingMarket } from "./token-lending-test";
|
2020-10-08 22:29:51 -07:00
|
|
|
|
|
|
|
async function main() {
|
|
|
|
// These test cases are designed to run sequentially and in the following order
|
2020-12-18 16:17:07 -08:00
|
|
|
console.log("Run test: createLendingMarket");
|
|
|
|
await createLendingMarket();
|
2020-10-08 22:29:51 -07:00
|
|
|
console.log("Success\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
main().then(
|
|
|
|
() => process.exit(),
|
|
|
|
(err) => {
|
|
|
|
console.error(err);
|
|
|
|
process.exit(-1);
|
|
|
|
}
|
|
|
|
);
|