import { HexString } from "../../basic" ; import { tidy } from "../../utils" ; import { CoinTransfer } from "../funding" ; import { singleAssetTwoPartyCoinTransferEncoding } from "../misc" ; export const SimpleLinkedTransferAppName = "SimpleLinkedTransferApp" ; export const OnlineLinkedTransferAppName = "OnlineLinkedTransferApp" ; export type SimpleLinkedTransferAppState = { coinTransfers : CoinTransfer [ ] ; linkedHash : HexString ; preImage : HexString ; finalized : boolean ; } ; export const SimpleLinkedTransferAppStateEncoding = tidy ( `tuple(
  ${ singleAssetTwoPartyCoinTransferEncoding } coinTransfers,
  bytes32 linkedHash,
  bytes32 preImage,
  bool finalized
)` ) ; export type SimpleLinkedTransferAppAction = { preImage : HexString ; } ; export const SimpleLinkedTransferAppActionEncoding = tidy ( `tuple(
  bytes32 preImage
)` ) ;