- 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 installto install the node_modules- Ensure that ts-node is also installed globally so that
ts-nodeis recognized as a command-line function. ts-node retrieve-holders.tsto 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 postgreson terminal to launch postgresql and input password- If you wish to load simple schema and sample data for testing, run
\i setupTests.sql problem7query.sqlcontains the sql code for a single query statement only, without any creation of schema and loading of sample.- run
\i problem7query.sqlafter step 3 if you wish to test the query with simple sample data. One row of result 0xabab is expected.