@shapeshiftoss/types 6.1.0 → 7.0.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 +1 -10
- package/dist/base.js +2 -16
- package/dist/market.d.ts +0 -1
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -8,15 +8,11 @@ export declare type BIP44Params = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare enum KnownChainIds {
|
|
10
10
|
EthereumMainnet = "eip155:1",
|
|
11
|
+
AvalancheMainnet = "eip155:43114",
|
|
11
12
|
BitcoinMainnet = "bip122:000000000019d6689c085ae165831e93",
|
|
12
13
|
CosmosMainnet = "cosmos:cosmoshub-4",
|
|
13
14
|
OsmosisMainnet = "cosmos:osmosis-1"
|
|
14
15
|
}
|
|
15
|
-
export declare enum CoingeckoAssetPlatform {
|
|
16
|
-
Ethereum = "ethereum",
|
|
17
|
-
Cosmos = "cosmos",
|
|
18
|
-
Osmosis = "osmosis"
|
|
19
|
-
}
|
|
20
16
|
export declare enum WithdrawType {
|
|
21
17
|
DELAYED = 0,
|
|
22
18
|
INSTANT = 1
|
|
@@ -40,8 +36,3 @@ export declare type Asset = {
|
|
|
40
36
|
explorerTxLink: string;
|
|
41
37
|
explorerAddressLink: string;
|
|
42
38
|
};
|
|
43
|
-
export declare enum SwapperType {
|
|
44
|
-
Zrx = "0x",
|
|
45
|
-
Thorchain = "Thorchain",
|
|
46
|
-
Test = "Test"
|
|
47
|
-
}
|
package/dist/base.js
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/** Common */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.UtxoAccountType = exports.WithdrawType = exports.KnownChainIds = void 0;
|
|
5
5
|
var KnownChainIds;
|
|
6
6
|
(function (KnownChainIds) {
|
|
7
7
|
KnownChainIds["EthereumMainnet"] = "eip155:1";
|
|
8
|
+
KnownChainIds["AvalancheMainnet"] = "eip155:43114";
|
|
8
9
|
KnownChainIds["BitcoinMainnet"] = "bip122:000000000019d6689c085ae165831e93";
|
|
9
10
|
KnownChainIds["CosmosMainnet"] = "cosmos:cosmoshub-4";
|
|
10
11
|
KnownChainIds["OsmosisMainnet"] = "cosmos:osmosis-1";
|
|
11
12
|
})(KnownChainIds = exports.KnownChainIds || (exports.KnownChainIds = {}));
|
|
12
|
-
// https://api.coingecko.com/api/v3/asset_platforms
|
|
13
|
-
var CoingeckoAssetPlatform;
|
|
14
|
-
(function (CoingeckoAssetPlatform) {
|
|
15
|
-
CoingeckoAssetPlatform["Ethereum"] = "ethereum";
|
|
16
|
-
CoingeckoAssetPlatform["Cosmos"] = "cosmos";
|
|
17
|
-
CoingeckoAssetPlatform["Osmosis"] = "osmosis";
|
|
18
|
-
})(CoingeckoAssetPlatform = exports.CoingeckoAssetPlatform || (exports.CoingeckoAssetPlatform = {}));
|
|
19
13
|
var WithdrawType;
|
|
20
14
|
(function (WithdrawType) {
|
|
21
15
|
WithdrawType[WithdrawType["DELAYED"] = 0] = "DELAYED";
|
|
@@ -27,11 +21,3 @@ var UtxoAccountType;
|
|
|
27
21
|
UtxoAccountType["SegwitP2sh"] = "SegwitP2sh";
|
|
28
22
|
UtxoAccountType["P2pkh"] = "P2pkh";
|
|
29
23
|
})(UtxoAccountType = exports.UtxoAccountType || (exports.UtxoAccountType = {}));
|
|
30
|
-
// swapper
|
|
31
|
-
// TODO remove this once web is using the type from swapper
|
|
32
|
-
var SwapperType;
|
|
33
|
-
(function (SwapperType) {
|
|
34
|
-
SwapperType["Zrx"] = "0x";
|
|
35
|
-
SwapperType["Thorchain"] = "Thorchain";
|
|
36
|
-
SwapperType["Test"] = "Test";
|
|
37
|
-
})(SwapperType = exports.SwapperType || (exports.SwapperType = {}));
|
package/dist/market.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export declare type MarketDataArgs = {
|
|
|
26
26
|
assetId: string;
|
|
27
27
|
};
|
|
28
28
|
export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
|
|
29
|
-
export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData | null>;
|
|
30
29
|
export declare type PriceHistoryType = (args: PriceHistoryArgs) => Promise<HistoryData[]>;
|
|
31
30
|
export declare type FindAllMarketArgs = {
|
|
32
31
|
count: number;
|