From cd3bbac4aeff054f1a8873ffa2fbc3c590006885 Mon Sep 17 00:00:00 2001 From: Roman Petriv Date: Thu, 19 Oct 2023 23:22:39 +0300 Subject: [PATCH] feat: display paymaster info when transaction is paid by paymaster --- packages/app/src/components/FeeData.vue | 43 ++++- .../transactions/PaymasterLabel.vue | 16 ++ .../transactions/infoTable/TransferInfo.vue | 12 ++ .../infoTable/TransferTableCell.vue | 18 +- .../app/src/composables/useTransaction.ts | 24 ++- packages/app/src/locales/en.json | 6 +- packages/app/tests/components/FeeData.spec.ts | 135 ++++++++++--- .../transactions/PaymasterLabel.spec.ts | 29 +++ .../transactions/TransferInfo.spec.ts | 18 ++ .../tests/composables/useTransaction.spec.ts | 178 ++++++++++++------ 10 files changed, 378 insertions(+), 101 deletions(-) create mode 100644 packages/app/src/components/transactions/PaymasterLabel.vue create mode 100644 packages/app/tests/components/transactions/PaymasterLabel.spec.ts 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 @@
@@ -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 @@