diff --git a/app/src/main/java/io/gnosis/safe/ui/safe/send_funds/SendAssetReviewViewModel.kt b/app/src/main/java/io/gnosis/safe/ui/safe/send_funds/SendAssetReviewViewModel.kt index a76090dfb..fdf36a17f 100644 --- a/app/src/main/java/io/gnosis/safe/ui/safe/send_funds/SendAssetReviewViewModel.kt +++ b/app/src/main/java/io/gnosis/safe/ui/safe/send_funds/SendAssetReviewViewModel.kt @@ -251,10 +251,10 @@ class SendAssetReviewViewModel SendAssetReviewState( ViewAction.NavigateTo( SendAssetReviewFragmentDirections.actionSendAssetReviewFragmentToSendAssetSuccessFragment( - activeSafe.chain, - safeTxHash, - amountString, - selectedAsset.symbol + chain = activeSafe.chain, + txId = safeTxHash, // to get non cached updates later we need the txId not the hash + amount = amountString, + token = selectedAsset.symbol ) ) ) diff --git a/app/src/main/java/io/gnosis/safe/ui/transactions/details/TransactionDetailsFragment.kt b/app/src/main/java/io/gnosis/safe/ui/transactions/details/TransactionDetailsFragment.kt index 79d9e99a1..fcee95b12 100644 --- a/app/src/main/java/io/gnosis/safe/ui/transactions/details/TransactionDetailsFragment.kt +++ b/app/src/main/java/io/gnosis/safe/ui/transactions/details/TransactionDetailsFragment.kt @@ -70,7 +70,7 @@ class TransactionDetailsFragment : BaseViewBindingFragment { addExecutionStep(TxExecutionStep.Type.FAILED) } + TransactionStatus.PENDING -> { + addExecutionStep(TxExecutionStep.Type.PENDING) + } } } @@ -241,7 +244,8 @@ class TxConfirmationsView @JvmOverloads constructor( EXECUTE_WAITING, EXECUTE_READY, EXECUTE_DONE, - REJECTION_CREATED + REJECTION_CREATED, + PENDING } private val binding by lazy { ViewTxConfirmationsExecutionStepBinding.inflate(LayoutInflater.from(context), this) } @@ -297,6 +301,11 @@ class TxConfirmationsView @JvmOverloads constructor( stepTitle.text = resources.getString(R.string.tx_confirmations_rejection_created) stepTitle.setTextColor(ContextCompat.getColor(context, R.color.error)) } + Type.PENDING -> { + stepIcon.setImageResource(R.drawable.ic_tx_confirmations_execute_ready_16dp) + stepTitle.text = resources.getString(R.string.tx_confirmations_pending) + stepTitle.setTextColor(ContextCompat.getColor(context, R.color.primary)) + } } } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2406394f4..324f405c2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -466,6 +466,7 @@ Execute (%1$d more confirmation needed) Executed On-chain rejection created + Pending Add owner key Import existing owner key diff --git a/data/build.gradle b/data/build.gradle index 5707b4cca..24519cd6a 100644 --- a/data/build.gradle +++ b/data/build.gradle @@ -38,7 +38,7 @@ android { buildTypes { debug { - buildConfigField ("String", "CLIENT_GATEWAY_URL", '"https://safe-client-nest.staging.5afe.dev/"') + buildConfigField ("String", "CLIENT_GATEWAY_URL", '"https://safe-client.staging.5afe.dev/"') buildConfigField (javaTypes.INT, "CHAIN_ID", "5") buildConfigField (javaTypes.STRING, "CHAIN_TEXT_COLOR", asString("#ffffff")) buildConfigField (javaTypes.STRING, "CHAIN_BACKGROUND_COLOR", asString("#4D99EB")) @@ -49,7 +49,7 @@ android { } profile { - buildConfigField javaTypes.STRING, "CLIENT_GATEWAY_URL", asString(getKey("CLIENT_GATEWAY_URL", "https://safe-client-nest.staging.5afe.dev/")) + buildConfigField javaTypes.STRING, "CLIENT_GATEWAY_URL", asString(getKey("CLIENT_GATEWAY_URL", "https://safe-client.staging.5afe.dev/")) buildConfigField (javaTypes.INT, "CHAIN_ID", "5") buildConfigField (javaTypes.STRING, "CHAIN_TEXT_COLOR", asString("#ffffff")) buildConfigField (javaTypes.STRING, "CHAIN_BACKGROUND_COLOR", asString("#4D99EB")) @@ -71,7 +71,7 @@ android { } internal { - buildConfigField javaTypes.STRING, "CLIENT_GATEWAY_URL", asString(getKey("CLIENT_GATEWAY_URL", "https://safe-client-nest.staging.5afe.dev/")) + buildConfigField javaTypes.STRING, "CLIENT_GATEWAY_URL", asString(getKey("CLIENT_GATEWAY_URL", "https://safe-client.staging.5afe.dev/")) buildConfigField (javaTypes.INT, "CHAIN_ID", "5") buildConfigField (javaTypes.STRING, "CHAIN_TEXT_COLOR", asString("#ffffff")) buildConfigField (javaTypes.STRING, "CHAIN_BACKGROUND_COLOR", asString("#4D99EB")) diff --git a/data/src/main/java/io/gnosis/data/models/transaction/TransactionDetails.kt b/data/src/main/java/io/gnosis/data/models/transaction/TransactionDetails.kt index 4e4744052..30470ad3b 100644 --- a/data/src/main/java/io/gnosis/data/models/transaction/TransactionDetails.kt +++ b/data/src/main/java/io/gnosis/data/models/transaction/TransactionDetails.kt @@ -14,6 +14,8 @@ import java.util.* @JsonClass(generateAdapter = true) data class TransactionDetails( + @Json(name = "txId") + val txId: String? = null, @Json(name = "txHash") val txHash: String? = null, @Json(name = "txStatus")