Skip to content

Instantly share code, notes, and snippets.

@paullinator
Last active September 6, 2023 19:23
Show Gist options
  • Select an option

  • Save paullinator/16be939d3ad98b6915d566f7b618a159 to your computer and use it in GitHub Desktop.

Select an option

Save paullinator/16be939d3ad98b6915d566f7b618a159 to your computer and use it in GitHub Desktop.
EdgeTxInfo
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