tech.figure.classification.asset.util.extensions.BroadcastTxResponseExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ac-util Show documentation
Show all versions of ac-util Show documentation
Various tools for interacting with the Asset Classification smart contract
package tech.figure.classification.asset.util.extensions
import cosmos.tx.v1beta1.ServiceOuterClass.BroadcastTxResponse
import tech.figure.classification.asset.util.models.ProvenanceTxEvents
/**
* All extensions in this library are suffixed with "Ac" to ensure they do not overlap with other libraries' extensions.
*/
fun BroadcastTxResponse.toProvenanceTxEventsAc(): List = txResponse.toProvenanceTxEventsAc()
fun BroadcastTxResponse.isErrorAc(): Boolean = this.txResponse.isErrorAc()
fun BroadcastTxResponse.isSuccessAc(): Boolean = !this.isErrorAc()