Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: NanoContractTransactions component [11] #438

Merged
merged 32 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7d2ad8e
feat: add nano contract screen
alexruzenhack Apr 1, 2024
82141bb
feat: add nano contract components
alexruzenhack May 14, 2024
65743f4
feat: improve NanoContractTransactionsList component
alexruzenhack May 31, 2024
3293444
feat: add init effect on sagas/nanoContract
alexruzenhack May 31, 2024
4d127d3
refactor: rename NanoContractTransactions* to NanoContractDetails*
alexruzenhack May 31, 2024
e4a50fd
lint: comply with rules
alexruzenhack May 31, 2024
3ce08a4
chore: update i18n
alexruzenhack May 31, 2024
90b46c6
refactor: use consumeAsyncIterator from utils
alexruzenhack Jun 1, 2024
3af8f25
chore: update NanoContractDetailsScreen title
alexruzenhack Jun 1, 2024
4da4f91
review: apply suggestions
alexruzenhack Jun 4, 2024
1321805
chore: update i18n
alexruzenhack Jun 4, 2024
dad7df9
refactor: change oneline style to use unicode no-break space
alexruzenhack Jun 5, 2024
ea993a3
review: apply suggestions
alexruzenhack Jun 5, 2024
61fb97d
lint: apply rules
alexruzenhack Jun 5, 2024
0ff1022
refactor: use methods from the store
alexruzenhack Jun 5, 2024
920a461
fix: await async fn
alexruzenhack Jun 6, 2024
d8e1929
refact: extract getAllAddresses as utility fn
alexruzenhack Jun 6, 2024
7d01184
refactor: replace call to "replaceAll" to "no-break space" char in th…
alexruzenhack Jun 6, 2024
2af6825
feat: add "offcard" prop to FeedbackContent component
alexruzenhack Jun 6, 2024
fc355b7
feat: add error and loading feedback content to select addresses modal
alexruzenhack Jun 6, 2024
d9d6e0a
lint: comply with rules
alexruzenhack Jun 6, 2024
c42b2e1
chore: change style name to feedbackContentIcon
alexruzenhack Jun 6, 2024
b1a706d
chore: remove console.log
alexruzenhack Jun 7, 2024
6432c23
refactor: move fetch all wallet addresses to a saga effect on sagas/m…
alexruzenhack Jun 7, 2024
c36592f
chore: update i18n
alexruzenhack Jun 7, 2024
263822e
refactor: offcard style
alexruzenhack Jun 7, 2024
7373f05
review: apply suggestions
alexruzenhack Jun 7, 2024
9ed0a9a
lint: comply with rules
alexruzenhack Jun 7, 2024
e9100f5
chore: update i18n
alexruzenhack Jun 7, 2024
05e098e
review: apply suggestions
alexruzenhack Jun 10, 2024
c6e14bf
refactor: move effects from mixins to wallet
alexruzenhack Jun 12, 2024
cf48e7e
refactor: remove mixins from sagas/index.js
alexruzenhack Jun 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 138 additions & 15 deletions locale/da/texts.po
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ msgid "[Last] dddd [•] HH:mm"
msgstr "[Sidste] dddd [•] HH:mm"

#. See https://momentjs.com/docs/#/displaying/calendar-time/
#: src/models.js:107
#: src/models.js:107 src/utils.js:415
andreabadesso marked this conversation as resolved.
Show resolved Hide resolved
msgid "DD MMM YYYY [•] HH:mm"
msgstr "DD MMM YYYY [•] HH:mm"

Expand Down Expand Up @@ -341,7 +341,7 @@ msgid "Tokens"
msgstr "Tokens"

#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/components/NanoContract/NanoContractsList.js:71
#: src/components/NanoContract/NanoContractsList.js:75
#: src/screens/Dashboard.js:131
msgid "Nano Contracts"
msgstr ""
Expand Down Expand Up @@ -432,6 +432,7 @@ msgstr "Ord"
msgid "Enter your seed words separated by space"
msgstr "Indtast dine seed-ord adskilt med mellemrum"

#: src/components/NanoContract/NanoContractDetails.component.js:194
#: src/screens/LoadHistoryScreen.js:51 src/screens/LoadWalletErrorScreen.js:20
msgid "Try again"
msgstr ""
Expand Down Expand Up @@ -684,18 +685,20 @@ msgstr "SEND ${ tokenNameUpperCase }"
msgid "Your transfer is being processed"
msgstr "Din overførsel behandles"

#: src/sagas/helpers.js:139 src/screens/SendConfirmScreen.js:104
#: src/sagas/helpers.js:140 src/screens/SendConfirmScreen.js:104
msgid "Enter your 6-digit pin to authorize operation"
msgstr "Indtast din 6-cifrede pin for at godkende overførslen"

#: src/sagas/helpers.js:140 src/screens/SendConfirmScreen.js:105
#: src/sagas/helpers.js:141 src/screens/SendConfirmScreen.js:105
msgid "Authorize operation"
msgstr "Autoriserer overførslen"

#: src/screens/SendConfirmScreen.js:142
msgid "Your transfer of **${ this.amountAndToken }** has been confirmed"
msgstr "Din overførsel af **${ _this.amountAndToken }** er bekræftet"

#: src/components/NanoContract/EditAddressModal.component.js:60
#: src/components/NanoContract/SelectAddressModal.component.js:117
#: src/screens/SendConfirmScreen.js:161
msgid "Address"
msgstr "Adresse"
Expand Down Expand Up @@ -924,32 +927,45 @@ msgid ""
"this can potentially make you susceptible to fraudulent schemes."
msgstr ""

#: src/sagas/nanoContract.js:36
#: src/screens/NanoContract/NanoContractDetailsScreen.js:39
msgid "Nano Contract Details"
msgstr ""

#: src/sagas/mixins.js:31
msgid "Wallet is not ready to load addresses."
msgstr ""

#. This will show the message in the feedback content at SelectAddressModal
#: src/sagas/mixins.js:47
msgid "There was an error while loading wallet addresses. Try again."
msgstr ""

#: src/sagas/nanoContract.js:43
msgid "Nano Contract already registered."
msgstr ""

#: src/sagas/nanoContract.js:37
#: src/sagas/nanoContract.js:44
msgid "Wallet is not ready yet to register a Nano Contract."
msgstr ""

#: src/sagas/nanoContract.js:38
#: src/sagas/nanoContract.js:45
msgid "The informed address does not belong to the wallet."
msgstr ""

#: src/sagas/nanoContract.js:39
#: src/sagas/nanoContract.js:46
msgid "Nano Contract not found."
msgstr ""

#: src/sagas/nanoContract.js:40
#: src/sagas/nanoContract.js:47
msgid "Error while trying to get Nano Contract state."
msgstr ""

#: src/sagas/nanoContract.js:41
#: src/sagas/nanoContract.js:48
msgid "Nano Contract not registered."
msgstr ""

#: src/sagas/nanoContract.js:42
msgid "Error while trying to fetch Nano Contract history."
#: src/sagas/nanoContract.js:49
msgid "Error while trying to download Nano Contract transactions history."
msgstr ""

#: src/sagas/networkSettings.js:91
Expand Down Expand Up @@ -1097,7 +1113,7 @@ msgstr "Ingen internetforbindelse"
msgid "Public Explorer"
msgstr "Public Explorer"

#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:103
msgid "Date & Time"
msgstr "Dato & Tid"

Expand Down Expand Up @@ -1170,6 +1186,8 @@ msgstr ""
msgid "Blueprint Method"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:142
#: src/components/NanoContract/NanoContractsListItem.js:57
#: src/components/TxDetailsModal.js:106
msgid "Nano Contract ID"
msgstr ""
Expand All @@ -1182,6 +1200,7 @@ msgstr ""
msgid "Nano Contract Status"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:79
#: src/components/TxDetailsModal.js:120
msgid "Nano Contract"
msgstr ""
Expand Down Expand Up @@ -1219,11 +1238,75 @@ msgstr ""
msgid "Custom network"
msgstr ""

#: src/components/NanoContract/NoNanoContracts.js:16
#: src/components/NanoContract/EditAddressModal.component.js:41
msgid "New Nano Contract Address"
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:49
msgid ""
"This address signs any transaction you create with Nano Contracts method. "
"Switching to a new one means"
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:51
msgid "all future transactions will use this address."
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:57
msgid "Selected Information"
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:67
msgid "Index"
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:74
msgid "Confirm new address"
msgstr ""

#: src/components/NanoContract/EditAddressModal.component.js:78
msgid "Go back"
msgstr ""

#: src/components/NanoContract/NanoContractDetails.component.js:158
#: src/components/NanoContract/SelectAddressModal.component.js:105
msgid "Loading"
msgstr ""

#: src/components/NanoContract/NanoContractDetails.component.js:159
msgid "Loading Nano Contract transactions."
msgstr ""

#: src/components/NanoContract/NanoContractDetails.component.js:173
msgid "Nano Contract Transactions Error"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:146
#: src/components/NanoContract/NanoContractsListItem.js:59
msgid "Blueprint Name"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:150
msgid "Registered Address"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:153
msgid "See status details"
msgstr ""

#: src/components/NanoContract/NanoContractDetailsHeader.component.js:154
msgid "Unregister contract"
msgstr ""

#: src/components/NanoContract/NanoContractTransactionsListItem.component.js:62
msgid "From this wallet"
msgstr ""

#: src/components/NanoContract/NanoContractsList.js:85
msgid "No Nano Contracts"
msgstr ""

#: src/components/NanoContract/NoNanoContracts.js:18
#: src/components/NanoContract/NanoContractsList.js:86
msgid ""
"You can keep track of your registered Nano Contracts here once you have "
"registered them."
Expand All @@ -1232,3 +1315,43 @@ msgstr ""
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
msgid "Register new"
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:90
msgid "Choose New Wallet Address"
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:97
msgid "Load Addresses Error"
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:106
msgid "Loading wallet addresses."
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:114
msgid "Current Information"
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:115
msgid "To change, select other address on the list below."
msgstr ""

#: src/components/NanoContract/SelectAddressModal.component.js:178
msgid "index"
msgstr ""

#: src/components/NanoContract/UnregisterNanoContractModal.component.js:39
msgid "Unregister Nano Contract"
msgstr ""

#: src/components/NanoContract/UnregisterNanoContractModal.component.js:41
msgid "Are you sure you want to unregister this Nano Contract?"
msgstr ""

#: src/components/NanoContract/UnregisterNanoContractModal.component.js:44
msgid "Yes, unregister contract"
msgstr ""

#: src/components/NanoContract/UnregisterNanoContractModal.component.js:50
msgid "No, go back"
msgstr ""
Loading
Loading