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