Skip to content

Commit

Permalink
feat(ui): add transaction simulation on transaction confirmation modal (
Browse files Browse the repository at this point in the history
#120)

Description
---
Add transaction simulation that displays difference in fungible tokens
balances after running transaction

Motivation and Context
---
This adds safety check for users before running transaction. 

How Has This Been Tested?
---
Tested manually with
[tari-faucet](https://github.com/MCozhusheck/faucet-tapplet) and
[tari-swap](https://github.com/MCozhusheck/tariswap-tapplet) tapplets

What process can a PR reviewer use to test or verify this change?
---
Deploy and launch tapplet and click any button that triggers
transaction.


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
  • Loading branch information
MCozhusheck authored Aug 6, 2024
1 parent d0dedd0 commit cfac17a
Show file tree
Hide file tree
Showing 19 changed files with 1,218 additions and 1,034 deletions.
6 changes: 3 additions & 3 deletions locales/en/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"fetch-taplet-list": "Fetch Tapplet List",
"transaction-confirmation": "Transaction confirmation",
"method-name": "Method name: {{ methodName }}",
"todo-display-transaction-simulation-result": "TODO: display transaction simulation result",
"tauri-wallet-daemon": "Tauri wallet daemon",
"tari-wallet-daemon": "Tari wallet daemon",
"get-free-coins": " Get free coins",
"get-balances": "Get balances"
"get-balances": "Get balances",
"balance-updates": "Balance updates"
}
6 changes: 3 additions & 3 deletions locales/pl/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"fetch-taplet-list": "Pobierz listę tapplet'ów",
"transaction-confirmation": "Potwierdzenie transakcji",
"method-name": "Nazwa metody: {{ methodName }}",
"todo-display-transaction-simulation-result": "TODO: wyświetl wynik symulacji transakcji",
"tauri-wallet-daemon": "Demon portfela Tauri",
"tari-wallet-daemon": "Demon portfela Tari",
"get-free-coins": "Odbierz darmowe monety",
"get-balances": "Pobierz balanse"
"get-balances": "Pobierz balanse",
"balance-updates": "Zmiana balansów"
}
223 changes: 221 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@reduxjs/toolkit": "^2.2.6",
"@tariproject/tarijs": "https://gitpkg.now.sh/tari-project/tari.js?main&scripts.postinstall=npm%20run%20build-tsc",
"@tariproject/wallet_jrpc_client": "https://gitpkg.now.sh/tari-project/tari-dan/clients/javascript/wallet_daemon_client?development&scripts.postinstall=npm%20run%20build",
"@tari-project/typescript-bindings": "1.0.3",
"@tauri-apps/api": ">=2.0.0-beta.0",
"@tauri-apps/plugin-shell": ">=2.0.0-beta.0",
"i18next": "^23.12.2",
Expand Down
Loading

0 comments on commit cfac17a

Please sign in to comment.