@shapeshiftoss/types 1.19.1 → 1.22.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 +7 -2
- package/dist/base.js +5 -0
- package/dist/chain-adapters/ethereum.d.ts +2 -0
- package/dist/market.d.ts +3 -4
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -16,13 +16,18 @@ export declare enum ContractTypes {
|
|
|
16
16
|
}
|
|
17
17
|
export declare enum ChainTypes {
|
|
18
18
|
Ethereum = "ethereum",
|
|
19
|
-
Bitcoin = "bitcoin"
|
|
19
|
+
Bitcoin = "bitcoin",
|
|
20
|
+
Cosmos = "cosmos"
|
|
20
21
|
}
|
|
21
22
|
export declare enum NetworkTypes {
|
|
22
23
|
MAINNET = "MAINNET",
|
|
23
24
|
TESTNET = "TESTNET",
|
|
24
25
|
ETH_ROPSTEN = "ETH_ROPSTEN",
|
|
25
|
-
ETH_RINKEBY = "ETH_RINKEBY"
|
|
26
|
+
ETH_RINKEBY = "ETH_RINKEBY",
|
|
27
|
+
COSMOSHUB_MAINNET = "COSMOSHUB_MAINNET",
|
|
28
|
+
COSMOSHUB_VEGA = "COSMOSHUB_VEGA",
|
|
29
|
+
OSMOSIS_MAINNET = "OSMOSIS_MAINNET",
|
|
30
|
+
OSMOSIS_TESTNET = "OSMOSIS_TESTNET"
|
|
26
31
|
}
|
|
27
32
|
export declare enum UtxoAccountType {
|
|
28
33
|
SegwitNative = "SegwitNative",
|
package/dist/base.js
CHANGED
|
@@ -12,6 +12,7 @@ var ChainTypes;
|
|
|
12
12
|
(function (ChainTypes) {
|
|
13
13
|
ChainTypes["Ethereum"] = "ethereum";
|
|
14
14
|
ChainTypes["Bitcoin"] = "bitcoin";
|
|
15
|
+
ChainTypes["Cosmos"] = "cosmos";
|
|
15
16
|
})(ChainTypes = exports.ChainTypes || (exports.ChainTypes = {}));
|
|
16
17
|
var NetworkTypes;
|
|
17
18
|
(function (NetworkTypes) {
|
|
@@ -19,6 +20,10 @@ var NetworkTypes;
|
|
|
19
20
|
NetworkTypes["TESTNET"] = "TESTNET";
|
|
20
21
|
NetworkTypes["ETH_ROPSTEN"] = "ETH_ROPSTEN";
|
|
21
22
|
NetworkTypes["ETH_RINKEBY"] = "ETH_RINKEBY";
|
|
23
|
+
NetworkTypes["COSMOSHUB_MAINNET"] = "COSMOSHUB_MAINNET";
|
|
24
|
+
NetworkTypes["COSMOSHUB_VEGA"] = "COSMOSHUB_VEGA";
|
|
25
|
+
NetworkTypes["OSMOSIS_MAINNET"] = "OSMOSIS_MAINNET";
|
|
26
|
+
NetworkTypes["OSMOSIS_TESTNET"] = "OSMOSIS_TESTNET";
|
|
22
27
|
})(NetworkTypes = exports.NetworkTypes || (exports.NetworkTypes = {}));
|
|
23
28
|
var UtxoAccountType;
|
|
24
29
|
(function (UtxoAccountType) {
|
package/dist/market.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare enum HistoryTimeframe {
|
|
|
14
14
|
}
|
|
15
15
|
export declare type HistoryData = {
|
|
16
16
|
price: number;
|
|
17
|
-
date:
|
|
17
|
+
date: number;
|
|
18
18
|
};
|
|
19
19
|
export declare type PriceHistoryArgs = {
|
|
20
20
|
caip19: string;
|
|
@@ -24,11 +24,10 @@ export declare type MarketDataArgs = {
|
|
|
24
24
|
caip19: string;
|
|
25
25
|
};
|
|
26
26
|
export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
|
|
27
|
-
export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData>;
|
|
27
|
+
export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData | null>;
|
|
28
28
|
export declare type PriceHistoryType = (args: PriceHistoryArgs) => Promise<HistoryData[]>;
|
|
29
29
|
export declare type FindAllMarketArgs = {
|
|
30
|
-
|
|
31
|
-
perPage: number;
|
|
30
|
+
count: number;
|
|
32
31
|
};
|
|
33
32
|
export declare type MarketCapResult = {
|
|
34
33
|
[k: string]: MarketData;
|