From b40be179aebe55229eca9cd7c92f33e5d7b1dd3e Mon Sep 17 00:00:00 2001 From: durch Date: Tue, 7 Sep 2021 12:37:24 +0000 Subject: [PATCH] [ci skip] Generate TS types --- tauri-wallet/src/types/rust/tauritxresult.ts | 9 +++++++++ tauri-wallet/src/types/rust/transactiondetails.ts | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 tauri-wallet/src/types/rust/tauritxresult.ts create mode 100644 tauri-wallet/src/types/rust/transactiondetails.ts diff --git a/tauri-wallet/src/types/rust/tauritxresult.ts b/tauri-wallet/src/types/rust/tauritxresult.ts new file mode 100644 index 0000000000..92d812300f --- /dev/null +++ b/tauri-wallet/src/types/rust/tauritxresult.ts @@ -0,0 +1,9 @@ +import { TransactionDetails } from "./transactiondetails"; + +export interface TauriTxResult { + code: number; + gas_wanted: number; + gas_used: number; + block_height: number; + details: TransactionDetails; +} \ No newline at end of file diff --git a/tauri-wallet/src/types/rust/transactiondetails.ts b/tauri-wallet/src/types/rust/transactiondetails.ts new file mode 100644 index 0000000000..f24b695511 --- /dev/null +++ b/tauri-wallet/src/types/rust/transactiondetails.ts @@ -0,0 +1,7 @@ +import { Coin } from "./coin"; + +export interface TransactionDetails { + from_address: string; + to_address: string; + amount: Coin; +} \ No newline at end of file