All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesplatform.transaction.TxWithFee.scala Maven / Gradle / Ivy

The newest version!
package com.wavesplatform.transaction

import com.wavesplatform.transaction.Asset.Waves

sealed trait TxWithFee {
  def fee: TxPositiveAmount
  def assetFee: (Asset, Long) // TODO: Delete or rework
}

object TxWithFee {
  trait InWaves extends TxWithFee {
    override def assetFee: (Asset, Long) = (Waves, fee.value)
  }

  trait InCustomAsset extends TxWithFee {
    def feeAssetId: Asset
    override def assetFee: (Asset, Long) = (feeAssetId, fee.value)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy