Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bash command filepaths (README.md), add bn.js dependency (package.json), add feature (fetchFormatMakerData.ts) #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

BlockDweller
Copy link

  1. Fixed some bash commands in README.md that had deprecated filenames and filepaths

  2. Added bn.js dependency because it was not possible to run the example scripts without that (Error: Cannot find module 'bn.js')

  3. Added a feature to get Maker position data for a specific user address. This was only possible before by modifying the fetchFormatMakerData.ts file and replacing "zeroAddress" with whatever address the user is interested in. With the small change proposed in this pull request, it will be possible to specify an environment variable called USER_ADDRESS instead.

Fix bash commands by updating filename from fetchMakerData.ts to fetchFormatMakerData.ts and relative path from ./examples/ to ./examples/onchain/
Add dependency "bn.js": "^5.2.1"
Check for environment variable USER_ADDRESS to fetch Maker position data for a specific user. If USER_ADDRESS does not exist, revert back to the previous behaviour using zeroAddress as the input for calling main()
1) Add instructions how to fetch Maker data for specific user address

2) Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant