staratlasmeta / factory

Star Atlas Factory for constructing Transactions targeting Solana on-chain programs
https://www.npmjs.com/package/@staratlas/factory
Apache License 2.0
37 stars 15 forks source link

OrderHistory #87

Open skullnbonesdao opened 2 years ago

skullnbonesdao commented 2 years ago

Problem

Using the StarAtlas/factory there seems to be no way to get a order-history atm?

Solution

Provide a function to receive the order history per asset. Just like the getOpenOrdersForAsset() just for successful transfers.

Notes

As always thanks for your time.

MikeLuDev commented 2 years ago

@skullnbonesdao order history (as-is) would require crawling through the Solana transaction history for any given user or for the entire program which is extremely network heavy.

We have internal plans to index all historical Galactic Marketplace data in a centralized database in the future rather than supporting the above querying through direct on-chain calls since it's so inefficient - no details or timelines on that ready at this moment but more to come soon™