-
Notifications
You must be signed in to change notification settings - Fork 33
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
Make list of market configuration driven instead of hard coded. #9
base: main
Are you sure you want to change the base?
Conversation
… client library versions.Read markets from Mango (or Serum) config files instead of hard coded list.
package.json
Outdated
"@solana/web3.js": "^0.91.0", | ||
"axios": "^0.21.1", | ||
"cors": "^2.8.5", | ||
"dayjs": "^1.10.7", | ||
"express": "^4.17.1", | ||
"lru-cache": "^5.1.0", | ||
"npm-run-all": "^4.1.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a new package here? I don’t see it used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I wasn't able to run the script "prepare": "run-s clean postinstall"
. run-s is part of the npm-run-all package. Couldn't we change the "prepare" script to "npm run clean && npm run postinstall" and remove run-s/npm-run-all as a dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sounds good
My 2 cents on this issue:
Both are not really actionable comments, happy to merge this nevertheless, but wanted to mention those concerns. |
For #2, I added back the ability to specify a list of markets for testing. |
Read spot markets from Mango (or Serum) config files in client libraries instead of hard coded. Users can now implement their own configuration scheme.
Updated mango and serum client library versions to get the latest configuration files.
Updated README with some installation instructions.