import { BigNumber } from "ethers" ; import { Address } from "../../basic" ; import { tidy } from "../../utils" ; import { CoinTransfer } from "../funding" ; import { singleAssetTwoPartyCoinTransferEncoding } from "../misc" ; export const DepositAppName = "DepositApp" ; export type DepositAppState = { transfers : CoinTransfer [ ] ; multisigAddress : Address ; assetId : Address ; startingTotalAmountWithdrawn : BigNumber ; startingMultisigBalance : BigNumber ; } ; export const DepositAppStateEncoding = tidy ( `tuple(
  ${ singleAssetTwoPartyCoinTransferEncoding } transfers,
  address multisigAddress,
  address assetId,
  uint256 startingTotalAmountWithdrawn,
  uint256 startingMultisigBalance
)` ) ;