From d9d8ec5aa9fe6af3d500a4b6593acf597489efb6 Mon Sep 17 00:00:00 2001 From: Yauheni Mileika Date: Thu, 10 Jul 2025 15:16:37 +0300 Subject: [PATCH 1/9] feat: find transaction demo --- src/App.scss | 14 ++ src/App.tsx | 2 + src/TonProofDemoApi.ts | 23 +++ .../CreateJettonDemo/CreateJettonDemo.tsx | 19 ++- .../FindTransactionDemo.tsx | 65 ++++++++ src/components/FindTransactionDemo/style.scss | 156 ++++++++++++++++++ .../SignDataTester/SignDataTester.tsx | 50 +++--- src/components/TonProofDemo/TonProofDemo.tsx | 15 +- src/components/TxForm/TxForm.tsx | 104 +++++++++--- src/components/TxForm/style.scss | 14 ++ .../find-transaction-by-external-message.ts | 93 +++++++++++ src/server/api/wait-for-transaction.ts | 64 +++++++ src/server/utils/http-utils.ts | 37 ++++- src/server/utils/transactions-utils.ts | 35 ++++ src/server/worker.ts | 4 + 15 files changed, 640 insertions(+), 55 deletions(-) create mode 100644 src/components/FindTransactionDemo/FindTransactionDemo.tsx create mode 100644 src/components/FindTransactionDemo/style.scss create mode 100644 src/server/api/find-transaction-by-external-message.ts create mode 100644 src/server/api/wait-for-transaction.ts create mode 100644 src/server/utils/transactions-utils.ts diff --git a/src/App.scss b/src/App.scss index d08e80de..2f869d9b 100644 --- a/src/App.scss +++ b/src/App.scss @@ -7,3 +7,17 @@ margin-bottom: 10px; } } + +.react-json-view { + background: rgba(24, 32, 48, 0.98) !important; + border-radius: 14px; + box-shadow: 0 2px 12px 0 rgba(16, 22, 31, 0.13); + padding: 18px 18px 14px 18px; + margin-top: 0; + margin-bottom: 0; + width: 100%; + overflow-x: auto; + font-size: 15px; + word-break: break-all; + white-space: pre-wrap; +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 6df2384a..f3064a97 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import {CreateJettonDemo} from "./components/CreateJettonDemo/CreateJettonDemo"; import {WalletBatchLimitsTester} from "./components/WalletBatchLimitsTester/WalletBatchLimitsTester"; import {SignDataTester} from "./components/SignDataTester/SignDataTester"; import { MerkleExample } from "./components/MerkleExample/MerkleExample"; +import { FindTransactionDemo } from './components/FindTransactionDemo/FindTransactionDemo'; function App() { return ( @@ -373,6 +374,7 @@ function App() { +