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

Make list of market configuration driven instead of hard coded. #9

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

Conversation

partiallysorted
Copy link

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.

mas added 2 commits June 24, 2022 11:21
… 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",
Copy link
Contributor

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

Copy link
Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah sounds good

@mschneider
Copy link
Contributor

mschneider commented Jun 28, 2022

My 2 cents on this issue:

  1. i don't plan to maintain serum history anymore, the architecture had some scaling issues when working with high volume markets like SOL/USDC
  2. this change makes it kinda difficult to just test one single market, which is often used during development to be able to step through code and debug what's happening

Both are not really actionable comments, happy to merge this nevertheless, but wanted to mention those concerns.

@partiallysorted
Copy link
Author

For #2, I added back the ability to specify a list of markets for testing.

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.

2 participants