- git clone this repository
- All the 3 functions for
sum_to_n()
are in the file named problem1.js
cd "Problem 4"
into the directory.npm install
to install the node_modules- Ensure that ts-node is also installed globally so that
ts-node
is recognized as a command-line function. ts-node retrieve-holders.ts
to output the specific holder balances at the 3 addresses.
** The util contract is in contracts/BalanceChecker
file, test file is test.js
** I have compiled and deployed BalanceChecker
utility Contract to BSC testnet (https://bsc-testnet.public.blastapi.io) successfully
** The wallet address in test.js
is also a wallet on the Bsc Testnet
** However, I cannot find existing token contracts in the same wallet on Bsc Testnet, hence the test is currently not working.
cd "Problem 7"
into the directory.psql -U postgres
on terminal to launch postgresql and input password- If you wish to load simple schema and sample data for testing, run
\i setupTests.sql
problem7query.sql
contains the sql code for a single query statement only, without any creation of schema and loading of sample.- run
\i problem7query.sql
after step 3 if you wish to test the query with simple sample data. One row of result 0xabab is expected.