Skip to content

Expose getTokens method from OrderbookYaml to the js SDK #2106

@hardyjosh

Description

@hardyjosh

At the moment the js class for OrderbookYaml only has one getOrderbookByAddress method.

I want to be able to get all tokens. It should return:

  • All under the token key
  • All in a using-tokens-from json

These can be keyed like the gui.getAllTokens method on DotrainOrderGui (the logic should be centralised).

Unlike the gui.getAllTokens method which returns TokenInfo, we'll also need a way to know the network (as one OrderbookYaml can contain tokens for many networks). We could add chainId to TokenInfo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions