@shapeshiftoss/types 3.1.3 → 3.1.4
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.
- package/dist/base.d.ts +0 -2
- package/dist/chain-adapters/index.d.ts +6 -6
- package/dist/market.d.ts +2 -2
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -15,13 +15,13 @@ declare type ChainSpecificAccount<T> = ChainSpecific<T, {
|
|
|
15
15
|
export declare type Account<T extends ChainTypes> = {
|
|
16
16
|
balance: string;
|
|
17
17
|
pubkey: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
chainId: string;
|
|
19
|
+
assetId: string;
|
|
20
20
|
chain: T;
|
|
21
21
|
} & ChainSpecificAccount<T>;
|
|
22
22
|
export declare type AssetBalance = {
|
|
23
23
|
balance: string;
|
|
24
|
-
|
|
24
|
+
assetId: string;
|
|
25
25
|
};
|
|
26
26
|
export declare enum FeeDataKey {
|
|
27
27
|
Slow = "slow",
|
|
@@ -53,7 +53,7 @@ export declare type SubscribeTxsInput = {
|
|
|
53
53
|
accountType?: UtxoAccountType;
|
|
54
54
|
};
|
|
55
55
|
export declare type TxFee = {
|
|
56
|
-
|
|
56
|
+
assetId: string;
|
|
57
57
|
value: string;
|
|
58
58
|
};
|
|
59
59
|
export declare enum TxType {
|
|
@@ -74,7 +74,7 @@ export declare type Transaction<T extends ChainTypes> = {
|
|
|
74
74
|
blockHeight: number;
|
|
75
75
|
blockTime: number;
|
|
76
76
|
chain: T;
|
|
77
|
-
|
|
77
|
+
chainId: string;
|
|
78
78
|
confirmations: number;
|
|
79
79
|
txid: string;
|
|
80
80
|
fee?: TxFee;
|
|
@@ -97,7 +97,7 @@ export interface TxMetadata {
|
|
|
97
97
|
parser: string;
|
|
98
98
|
}
|
|
99
99
|
export declare type TxTransfer = {
|
|
100
|
-
|
|
100
|
+
assetId: string;
|
|
101
101
|
from: string;
|
|
102
102
|
to: string;
|
|
103
103
|
type: TxType;
|
package/dist/market.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export declare type HistoryData = {
|
|
|
17
17
|
date: number;
|
|
18
18
|
};
|
|
19
19
|
export declare type PriceHistoryArgs = {
|
|
20
|
-
|
|
20
|
+
assetId: string;
|
|
21
21
|
timeframe: HistoryTimeframe;
|
|
22
22
|
};
|
|
23
23
|
export declare type MarketDataArgs = {
|
|
24
|
-
|
|
24
|
+
assetId: string;
|
|
25
25
|
};
|
|
26
26
|
export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
|
|
27
27
|
export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData | null>;
|