@shapeshiftoss/types 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,7 @@ export declare type Address = {
|
|
|
13
13
|
balance: string;
|
|
14
14
|
};
|
|
15
15
|
export declare type GetAddressInput = GetAddressInputBase & {
|
|
16
|
-
accountType
|
|
16
|
+
accountType?: UtxoAccountType;
|
|
17
17
|
};
|
|
18
18
|
export declare type TransactionSpecific = {
|
|
19
19
|
opReturnData?: string;
|
|
@@ -2,9 +2,44 @@ export declare type BuildTxInput = {
|
|
|
2
2
|
gas: string;
|
|
3
3
|
fee: string;
|
|
4
4
|
};
|
|
5
|
+
export declare type Validator = {
|
|
6
|
+
address: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type Delegation = {
|
|
9
|
+
assetId: string;
|
|
10
|
+
amount: string;
|
|
11
|
+
validator: Validator;
|
|
12
|
+
};
|
|
13
|
+
export declare type RedelegationEntry = {
|
|
14
|
+
assetId: string;
|
|
15
|
+
completionTime: number;
|
|
16
|
+
amount: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type Redelegation = {
|
|
19
|
+
destinationValidator: Validator;
|
|
20
|
+
sourceValidator: Validator;
|
|
21
|
+
entries: RedelegationEntry[];
|
|
22
|
+
};
|
|
23
|
+
export declare type UndelegationEntry = {
|
|
24
|
+
assetId: string;
|
|
25
|
+
completionTime: number;
|
|
26
|
+
amount: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type Undelegation = {
|
|
29
|
+
validator: Validator;
|
|
30
|
+
entries: UndelegationEntry[];
|
|
31
|
+
};
|
|
32
|
+
export declare type Reward = {
|
|
33
|
+
assetId: string;
|
|
34
|
+
amount: string;
|
|
35
|
+
};
|
|
5
36
|
export declare type Account = {
|
|
6
37
|
sequence: string;
|
|
7
38
|
accountNumber: string;
|
|
39
|
+
delegations: Delegation[];
|
|
40
|
+
redelegations: Redelegation[];
|
|
41
|
+
undelegations: Undelegation[];
|
|
42
|
+
rewards: Reward[];
|
|
8
43
|
};
|
|
9
44
|
export declare type FeeData = {
|
|
10
45
|
gasLimit: string;
|
|
@@ -127,6 +127,7 @@ export declare type BuildSendTxInput<T extends ChainTypes> = {
|
|
|
127
127
|
wallet: HDWallet;
|
|
128
128
|
bip44Params?: BIP44Params;
|
|
129
129
|
sendMax?: boolean;
|
|
130
|
+
memo?: string;
|
|
130
131
|
} & ChainSpecificBuildTxData<T>;
|
|
131
132
|
declare type ChainSpecificBuildTxData<T> = ChainSpecific<T, {
|
|
132
133
|
[ChainTypes.Ethereum]: ethereum.BuildTxInput;
|