diff --git a/packages/app/mock/transactions/Execute.json b/packages/app/mock/transactions/Execute.json index c26b1e4b1d..5dd4e8d3e8 100644 --- a/packages/app/mock/transactions/Execute.json +++ b/packages/app/mock/transactions/Execute.json @@ -11,6 +11,7 @@ "fee": "0x2279f530c00", "feeData": { "amountPaid": "0x2279f530c00", + "isPaidByPaymaster": false, "refunds": [], "amountRefunded": "0x00" }, diff --git a/packages/app/src/components/FeeData.vue b/packages/app/src/components/FeeData.vue index c7cf034e18..4663877049 100644 --- a/packages/app/src/components/FeeData.vue +++ b/packages/app/src/components/FeeData.vue @@ -2,6 +2,9 @@
+ + {{ t("transactions.table.paidByPaymaster") }} + @@ -18,15 +21,30 @@
{{ t("transactions.table.feeDetails.refunds") }}
- +
- {{ t("transactions.table.feeDetails.whyRefunded") }} +
+ {{ + t( + feeData?.isPaidByPaymaster + ? "transactions.table.feeDetails.whyPaymasterRefunded" + : "transactions.table.feeDetails.whyRefunded" + ) + }} + {{ t("transactions.table.feeDetails.whatIsPaymaster") }} +
@@ -77,7 +95,10 @@ const token = computed(() => { diff --git a/packages/app/src/components/transactions/PaymasterLabel.vue b/packages/app/src/components/transactions/PaymasterLabel.vue new file mode 100644 index 0000000000..568837d719 --- /dev/null +++ b/packages/app/src/components/transactions/PaymasterLabel.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/packages/app/src/components/transactions/infoTable/TransferInfo.vue b/packages/app/src/components/transactions/infoTable/TransferInfo.vue index eb7b917ed6..3af4025081 100644 --- a/packages/app/src/components/transactions/infoTable/TransferInfo.vue +++ b/packages/app/src/components/transactions/infoTable/TransferInfo.vue @@ -1,6 +1,7 @@