@shapeshiftoss/types 1.23.0 → 1.25.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.
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/chain-adapters/index.d.ts +6 -0
- package/dist/chain-adapters/index.js +1 -0
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -13,6 +13,7 @@ var ChainTypes;
|
|
|
13
13
|
ChainTypes["Ethereum"] = "ethereum";
|
|
14
14
|
ChainTypes["Bitcoin"] = "bitcoin";
|
|
15
15
|
ChainTypes["Cosmos"] = "cosmos";
|
|
16
|
+
ChainTypes["Osmosis"] = "osmosis";
|
|
16
17
|
})(ChainTypes = exports.ChainTypes || (exports.ChainTypes = {}));
|
|
17
18
|
var NetworkTypes;
|
|
18
19
|
(function (NetworkTypes) {
|
|
@@ -76,6 +76,7 @@ export declare type TxFee = {
|
|
|
76
76
|
export declare enum TxType {
|
|
77
77
|
Send = "send",
|
|
78
78
|
Receive = "receive",
|
|
79
|
+
Contract = "contract",
|
|
79
80
|
Unknown = "unknown"
|
|
80
81
|
}
|
|
81
82
|
export declare enum TxStatus {
|
|
@@ -97,6 +98,7 @@ export declare type SubscribeTxsMessage<T extends ChainTypes> = {
|
|
|
97
98
|
status: TxStatus;
|
|
98
99
|
tradeDetails?: TradeDetails;
|
|
99
100
|
transfers: Array<TxTransfer>;
|
|
101
|
+
data?: TxMetadata;
|
|
100
102
|
};
|
|
101
103
|
export declare enum TradeType {
|
|
102
104
|
Trade = "trade",
|
|
@@ -107,6 +109,10 @@ export declare type TradeDetails = {
|
|
|
107
109
|
memo?: string;
|
|
108
110
|
type: TradeType;
|
|
109
111
|
};
|
|
112
|
+
export interface TxMetadata {
|
|
113
|
+
method?: string;
|
|
114
|
+
parser: string;
|
|
115
|
+
}
|
|
110
116
|
export declare type TxTransfer = {
|
|
111
117
|
caip19: string;
|
|
112
118
|
from: string;
|