From 36b9ef066751a9bf3dbfa485ca306ade376c5e93 Mon Sep 17 00:00:00 2001 From: "natasha@township.agency" Date: Tue, 7 Feb 2023 15:10:25 -0500 Subject: [PATCH 1/5] add ui for mint tokens --- src/views/Home.vue | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 2ac94df..2fb8bca 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -150,8 +150,8 @@ - -
+ +
@@ -165,32 +165,32 @@ {{ action.type }}
- +
-
- Staker: + To: - - {{ shortenedValidator(action.to_validator.toString()) }} + + {{ shortenedValidator(action.to_account.toString()) }} - +
- --> + @@ -247,6 +247,7 @@ import useRadix from '@/composables/useRadix' import { firstValueFrom } from 'rxjs' import Observed from '@/helpers/observed' import { AccountAddressT, AddressTypeT, AmountT, ExecutedAction, ExecutedTransaction, ExecutedTransferTokensAction, NetworkId, ValidatorAddressT } from '@radixdlt/application' +// ExecutedMintTokensAction, ExecutedBurnTokensAction, ExecutedCreateTokensDefinitionAction import ClickToCopy from '@/components/ClickToCopy.vue' import BigAmount, { asBigNumber } from '@/components/BigAmount.vue' import { formatTransactionAddressForDisplay, formatValidatorAddressForDisplay, formatWalletAddressForDisplay } from '@/helpers/formatter' @@ -278,10 +279,11 @@ export default defineComponent({ data.transactions.forEach(d => { const { actions } = d const alldata = JSON.stringify(d) - console.log(alldata) + // console.log(alldata) actions.forEach(action => { + console.log(action.type) if (action.type === 'Other') { - // console.log(actions) + console.log(d) const json = JSON.stringify(actions) const parse = JSON.parse(json) // console.log(json) From af1d821b082418bb166fa0b6454185d5bd8de441 Mon Sep 17 00:00:00 2001 From: "natasha@township.agency" Date: Tue, 7 Feb 2023 15:22:19 -0500 Subject: [PATCH 2/5] chore: add burn tokens ui --- src/views/Home.vue | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/views/Home.vue b/src/views/Home.vue index 2fb8bca..d86c161 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -150,6 +150,7 @@ +
@@ -192,8 +193,53 @@
+ + +
+ +
+
+ + + + + + + + + {{ action.type }} +
+
+ {{ formatAmount(action.amount) }} + {{ action.rri.name.toUpperCase() }} +
+
+ +
+
+ From: + + + {{ shortenedAddress(action.from_account.toString()) }} + + + +
+
+ +
+
+
+ +
From 42afec51aa43e5009954737174075b70e930d1cf Mon Sep 17 00:00:00 2001 From: "natasha@township.agency" Date: Tue, 7 Feb 2023 15:26:37 -0500 Subject: [PATCH 3/5] chore: add svg for mint tokens --- src/views/Home.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index d86c161..09927fb 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -157,12 +157,13 @@
- - - - - + + + + + + {{ action.type }}
From e77c773fef4fef0dcd27d75ae67422d86efce066 Mon Sep 17 00:00:00 2001 From: "natasha@township.agency" Date: Tue, 7 Feb 2023 16:08:58 -0500 Subject: [PATCH 4/5] chore: update create definition labels --- src/views/Home.vue | 47 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 09927fb..cce5be8 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -238,6 +238,51 @@
+ +
+ +
+
+ + + + + + + + + {{ action.type }} +
+
+ Token: + + {{ action.rri.name.toUpperCase() }} +
+
+ +
+
+ Supply: + + + {{ shortenedAddress(action.from_account.toString()) }} + + + + +
+
+ To: + + + {{ shortenedValidator(action.to_account.toString()) }} + + + +
+
+
+ @@ -328,7 +373,7 @@ export default defineComponent({ const alldata = JSON.stringify(d) // console.log(alldata) actions.forEach(action => { - console.log(action.type) + console.log(action) if (action.type === 'Other') { console.log(d) const json = JSON.stringify(actions) From 8f40722de17803c5bf66b67c7262308cdaff2310 Mon Sep 17 00:00:00 2001 From: "natasha@township.agency" Date: Tue, 7 Feb 2023 16:45:53 -0500 Subject: [PATCH 5/5] wip: create token labels --- src/views/Home.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index cce5be8..3984dca 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -264,9 +264,12 @@
Supply: - + + {{ formatAmount(action.amount) }} + {{ action.rri.name.toUpperCase() }} +