@shapeshiftoss/types 5.0.0 → 6.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 +0 -24
- package/dist/base.js +1 -26
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -6,28 +6,12 @@ export declare type BIP44Params = {
|
|
|
6
6
|
isChange?: boolean;
|
|
7
7
|
index?: number;
|
|
8
8
|
};
|
|
9
|
-
export declare enum ChainTypes {
|
|
10
|
-
Ethereum = "ethereum",
|
|
11
|
-
Bitcoin = "bitcoin",
|
|
12
|
-
Cosmos = "cosmos",
|
|
13
|
-
Osmosis = "osmosis"
|
|
14
|
-
}
|
|
15
9
|
export declare enum KnownChainIds {
|
|
16
10
|
EthereumMainnet = "eip155:1",
|
|
17
11
|
BitcoinMainnet = "bip122:000000000019d6689c085ae165831e93",
|
|
18
12
|
CosmosMainnet = "cosmos:cosmoshub-4",
|
|
19
13
|
OsmosisMainnet = "cosmos:osmosis-1"
|
|
20
14
|
}
|
|
21
|
-
export declare enum NetworkTypes {
|
|
22
|
-
MAINNET = "MAINNET",
|
|
23
|
-
TESTNET = "TESTNET",
|
|
24
|
-
ETH_ROPSTEN = "ETH_ROPSTEN",
|
|
25
|
-
ETH_RINKEBY = "ETH_RINKEBY",
|
|
26
|
-
COSMOSHUB_MAINNET = "COSMOSHUB_MAINNET",
|
|
27
|
-
COSMOSHUB_VEGA = "COSMOSHUB_VEGA",
|
|
28
|
-
OSMOSIS_MAINNET = "OSMOSIS_MAINNET",
|
|
29
|
-
OSMOSIS_TESTNET = "OSMOSIS_TESTNET"
|
|
30
|
-
}
|
|
31
15
|
export declare enum WithdrawType {
|
|
32
16
|
DELAYED = 0,
|
|
33
17
|
INSTANT = 1
|
|
@@ -37,19 +21,11 @@ export declare enum UtxoAccountType {
|
|
|
37
21
|
SegwitP2sh = "SegwitP2sh",
|
|
38
22
|
P2pkh = "P2pkh"
|
|
39
23
|
}
|
|
40
|
-
export declare enum AssetDataSource {
|
|
41
|
-
CoinGecko = "coingecko",
|
|
42
|
-
YearnFinance = "yearnfinance"
|
|
43
|
-
}
|
|
44
24
|
export declare type Asset = {
|
|
45
25
|
assetId: string;
|
|
46
26
|
chainId: string;
|
|
47
|
-
/** @deprecated: do not use. This will be removed once consumers have handled it */
|
|
48
|
-
chain?: ChainTypes;
|
|
49
27
|
description?: string;
|
|
50
28
|
isTrustedDescription?: boolean;
|
|
51
|
-
/** @deprecated: do not use. This will be removed once consumers have handled it */
|
|
52
|
-
network?: NetworkTypes;
|
|
53
29
|
symbol: string;
|
|
54
30
|
name: string;
|
|
55
31
|
precision: number;
|
package/dist/base.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/** Common */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SwapperType = exports.
|
|
5
|
-
var ChainTypes;
|
|
6
|
-
(function (ChainTypes) {
|
|
7
|
-
ChainTypes["Ethereum"] = "ethereum";
|
|
8
|
-
ChainTypes["Bitcoin"] = "bitcoin";
|
|
9
|
-
ChainTypes["Cosmos"] = "cosmos";
|
|
10
|
-
ChainTypes["Osmosis"] = "osmosis";
|
|
11
|
-
})(ChainTypes = exports.ChainTypes || (exports.ChainTypes = {}));
|
|
4
|
+
exports.SwapperType = exports.UtxoAccountType = exports.WithdrawType = exports.KnownChainIds = void 0;
|
|
12
5
|
var KnownChainIds;
|
|
13
6
|
(function (KnownChainIds) {
|
|
14
7
|
KnownChainIds["EthereumMainnet"] = "eip155:1";
|
|
@@ -16,17 +9,6 @@ var KnownChainIds;
|
|
|
16
9
|
KnownChainIds["CosmosMainnet"] = "cosmos:cosmoshub-4";
|
|
17
10
|
KnownChainIds["OsmosisMainnet"] = "cosmos:osmosis-1";
|
|
18
11
|
})(KnownChainIds = exports.KnownChainIds || (exports.KnownChainIds = {}));
|
|
19
|
-
var NetworkTypes;
|
|
20
|
-
(function (NetworkTypes) {
|
|
21
|
-
NetworkTypes["MAINNET"] = "MAINNET";
|
|
22
|
-
NetworkTypes["TESTNET"] = "TESTNET";
|
|
23
|
-
NetworkTypes["ETH_ROPSTEN"] = "ETH_ROPSTEN";
|
|
24
|
-
NetworkTypes["ETH_RINKEBY"] = "ETH_RINKEBY";
|
|
25
|
-
NetworkTypes["COSMOSHUB_MAINNET"] = "COSMOSHUB_MAINNET";
|
|
26
|
-
NetworkTypes["COSMOSHUB_VEGA"] = "COSMOSHUB_VEGA";
|
|
27
|
-
NetworkTypes["OSMOSIS_MAINNET"] = "OSMOSIS_MAINNET";
|
|
28
|
-
NetworkTypes["OSMOSIS_TESTNET"] = "OSMOSIS_TESTNET";
|
|
29
|
-
})(NetworkTypes = exports.NetworkTypes || (exports.NetworkTypes = {}));
|
|
30
12
|
var WithdrawType;
|
|
31
13
|
(function (WithdrawType) {
|
|
32
14
|
WithdrawType[WithdrawType["DELAYED"] = 0] = "DELAYED";
|
|
@@ -38,13 +20,6 @@ var UtxoAccountType;
|
|
|
38
20
|
UtxoAccountType["SegwitP2sh"] = "SegwitP2sh";
|
|
39
21
|
UtxoAccountType["P2pkh"] = "P2pkh";
|
|
40
22
|
})(UtxoAccountType = exports.UtxoAccountType || (exports.UtxoAccountType = {}));
|
|
41
|
-
// TODO(0xdef1cafe): remove this, client should not be aware of where data is from
|
|
42
|
-
// Describes the data source for where to get the asset details or asset description.
|
|
43
|
-
var AssetDataSource;
|
|
44
|
-
(function (AssetDataSource) {
|
|
45
|
-
AssetDataSource["CoinGecko"] = "coingecko";
|
|
46
|
-
AssetDataSource["YearnFinance"] = "yearnfinance";
|
|
47
|
-
})(AssetDataSource = exports.AssetDataSource || (exports.AssetDataSource = {}));
|
|
48
23
|
// swapper
|
|
49
24
|
// TODO remove this once web is using the type from swapper
|
|
50
25
|
var SwapperType;
|