-
Notifications
You must be signed in to change notification settings - Fork 12
/
rawTypes.ts
65 lines (61 loc) · 2.25 KB
/
rawTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import type { RawAlgorandTransaction } from "./families/algorand/types";
import type { RawBitcoinTransaction } from "./families/bitcoin/types";
import type { RawCosmosTransaction } from "./families/cosmos/types";
import type { RawCryptoOrgTransaction } from "./families/crypto_org/types";
import type { RawEthereumTransaction } from "./families/ethereum/types";
import type { RawPolkadotTransaction } from "./families/polkadot/types";
import type { RawRippleTransaction } from "./families/ripple/types";
import type { RawStellarTransaction } from "./families/stellar/types";
import type { RawTezosTransaction } from "./families/tezos/types";
import type { RawTronTransaction } from "./families/tron/types";
/**
* The raw representation of the [[Account]] type
*
* @see [[Account]] for information regarding individual fields. Each field type is the serialized version of the corresponding [[Account]] type
*/
export type RawAccount = {
id: string;
name: string;
address: string;
currency: string;
balance: string;
spendableBalance: string;
blockHeight: number;
lastSyncDate: string;
};
/**
* The raw representation of the common transaction fields found in [[TransactionCommon]] type
*
* @see [[TransactionCommon]] for information regarding individual fields. Each field type is the serialized version of the corresponding [[TransactionCommon]] type
*/
export interface RawTransactionCommon {
family: string;
amount: string;
recipient: string;
}
/**
* The raw representation of the generic [[Transaction]] type.
*/
export type RawTransaction =
| RawEthereumTransaction
| RawBitcoinTransaction
| RawAlgorandTransaction
| RawCryptoOrgTransaction
| RawRippleTransaction
| RawCosmosTransaction
| RawTezosTransaction
| RawPolkadotTransaction
| RawStellarTransaction
| RawTronTransaction;
/**
* The raw representation of a signed transaction returned by the Ledger Live platform
*
* @remarks
* This type is returned by Ledger Live when signing with [[signTransaction]] and is only used as a payload by the [[broadcastSignedTransaction]] function to actually broadcast the transaction to the blockchain
*/
export type RawSignedTransaction = {
operation: unknown;
signature: string;
signatureRaw?: unknown;
expirationDate: string | null;
};