Last active
September 6, 2023 19:23
-
-
Save paullinator/16be939d3ad98b6915d566f7b618a159 to your computer and use it in GitHub Desktop.
EdgeTxInfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type EdgeTxAsset = { | |
| pluginId: string, | |
| tokenId: string, | |
| nativeAmount: string, | |
| } | |
| type EdgeTxInfoSwap = { | |
| type: 'swap' | 'swapOrder' | 'swapOrderFulfill', | |
| orderId?: string, | |
| direction: 'from' | 'to', | |
| canBePartial?: boolean, | |
| sourceAsset: EdgeTxAsset, | |
| destAsset: EdgeTxAsset, | |
| } | |
| type EdgeTxInfoStake = { | |
| type: 'stake' | 'stakeOrder' | 'unstake' | 'unstakeOrder', | |
| stakeAssets: EdgeTxAsset[], | |
| } | |
| type EdgeTxInfo = EdgeTxInfoSwap | EdgeTxInfoStake | |
| type EdgeTransaction = { | |
| ... | |
| txInfo?: EdgeTxInfo | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment