Module token_diff

Source

Structs§

TokenDiff
The user declares the will to have a set of changes done to set of tokens. For example, a simple trade of 100 of token A for 200 of token B, can be represented by TokenDiff of {“A”: -100, “B”: 200} (this format is just for demonstration purposes). In general, the user can submit multiple changes with many tokens, not just token A for token B.
TokenDiffEvent
An event emitted when a TokenDiff intent is executed.

Type Aliases§

TokenDeltas