project-serum / serum-js

JavaScript client library for interacting with the Project Serum DEX.
82 stars 33 forks source link

Make tokens_and_markets.ts more parse friendly #31

Closed michaelhly closed 3 years ago

michaelhly commented 3 years ago

Can we load tokens_and_markets.ts from some json file?

Would like to remove this sort of parse logic from Pyserum: https://github.com/serum-community/pyserum/blob/722935cb5f4a9fdcada019c2352c166841795882/pyserum/connection.py#L9

The above logic can break easily depending on how new market pairs are added.

nathanielparke commented 3 years ago

This seems reasonable. I would be in favor.

nathanielparke commented 3 years ago

Addressed in #32

nathanielparke commented 3 years ago

Merged: 933a72e3077657e023773a30efb6d5be137edd5c