@chainflip/utils 0.8.16 → 0.8.17
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/chainflip.cjs
CHANGED
|
@@ -35,6 +35,7 @@ __export(chainflip_exports, {
|
|
|
35
35
|
getInternalAssets: () => getInternalAssets,
|
|
36
36
|
internalAssetToRpcAsset: () => internalAssetToRpcAsset,
|
|
37
37
|
isValidAssetAndChain: () => isValidAssetAndChain,
|
|
38
|
+
priceAssets: () => priceAssets,
|
|
38
39
|
readAssetValue: () => readAssetValue,
|
|
39
40
|
rpcAssets: () => rpcAssets
|
|
40
41
|
});
|
|
@@ -61,6 +62,7 @@ var chainflipAssets = [
|
|
|
61
62
|
"HubUsdc"
|
|
62
63
|
];
|
|
63
64
|
var assetSymbols = ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
65
|
+
var priceAssets = ["Btc", "Eth", "Sol", "Usdc", "Usdt", "Usd"];
|
|
64
66
|
var rpcAssets = assetSymbols;
|
|
65
67
|
var baseChainflipAssets = chainflipAssets.filter(
|
|
66
68
|
(asset) => asset !== "Usdc"
|
|
@@ -313,6 +315,7 @@ function getInternalAssets({
|
|
|
313
315
|
getInternalAssets,
|
|
314
316
|
internalAssetToRpcAsset,
|
|
315
317
|
isValidAssetAndChain,
|
|
318
|
+
priceAssets,
|
|
316
319
|
readAssetValue,
|
|
317
320
|
rpcAssets
|
|
318
321
|
});
|
package/dist/chainflip.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const chainflipAssets: readonly ["Usdc", "Usdt", "Flip", "Eth", "Dot", "Btc", "ArbUsdc", "ArbEth", "Sol", "SolUsdc", "HubDot", "HubUsdt", "HubUsdc"];
|
|
2
2
|
type ChainflipAsset = (typeof chainflipAssets)[number];
|
|
3
3
|
declare const assetSymbols: readonly ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
4
|
+
declare const priceAssets: readonly ["Btc", "Eth", "Sol", "Usdc", "Usdt", "Usd"];
|
|
5
|
+
type PriceAsset = (typeof priceAssets)[number];
|
|
4
6
|
/** @deprecated use `assetSymbols` instead */
|
|
5
7
|
declare const rpcAssets: readonly ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
6
8
|
type AssetSymbol = (typeof assetSymbols)[number];
|
|
@@ -221,4 +223,4 @@ declare function getInternalAssets(data: {
|
|
|
221
223
|
destAsset: ChainflipAsset | null;
|
|
222
224
|
};
|
|
223
225
|
|
|
224
|
-
export { type AddressType, type AssetAndChain, type AssetOfChain, type AssetSymbol, type BaseAssetAndChain, type BaseChainAssetMap, type BaseChainflipAsset, type ChainAssetMap, type ChainMap, type ChainflipAsset, type ChainflipChain, type ChainflipEvmChain, type ChainflipNetwork, type InternalAssetMap, type RpcAsset, type UncheckedAssetAndChain, addressTypes, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isValidAssetAndChain, readAssetValue, rpcAssets };
|
|
226
|
+
export { type AddressType, type AssetAndChain, type AssetOfChain, type AssetSymbol, type BaseAssetAndChain, type BaseChainAssetMap, type BaseChainflipAsset, type ChainAssetMap, type ChainMap, type ChainflipAsset, type ChainflipChain, type ChainflipEvmChain, type ChainflipNetwork, type InternalAssetMap, type PriceAsset, type RpcAsset, type UncheckedAssetAndChain, addressTypes, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isValidAssetAndChain, priceAssets, readAssetValue, rpcAssets };
|
package/dist/chainflip.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const chainflipAssets: readonly ["Usdc", "Usdt", "Flip", "Eth", "Dot", "Btc", "ArbUsdc", "ArbEth", "Sol", "SolUsdc", "HubDot", "HubUsdt", "HubUsdc"];
|
|
2
2
|
type ChainflipAsset = (typeof chainflipAssets)[number];
|
|
3
3
|
declare const assetSymbols: readonly ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
4
|
+
declare const priceAssets: readonly ["Btc", "Eth", "Sol", "Usdc", "Usdt", "Usd"];
|
|
5
|
+
type PriceAsset = (typeof priceAssets)[number];
|
|
4
6
|
/** @deprecated use `assetSymbols` instead */
|
|
5
7
|
declare const rpcAssets: readonly ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
6
8
|
type AssetSymbol = (typeof assetSymbols)[number];
|
|
@@ -221,4 +223,4 @@ declare function getInternalAssets(data: {
|
|
|
221
223
|
destAsset: ChainflipAsset | null;
|
|
222
224
|
};
|
|
223
225
|
|
|
224
|
-
export { type AddressType, type AssetAndChain, type AssetOfChain, type AssetSymbol, type BaseAssetAndChain, type BaseChainAssetMap, type BaseChainflipAsset, type ChainAssetMap, type ChainMap, type ChainflipAsset, type ChainflipChain, type ChainflipEvmChain, type ChainflipNetwork, type InternalAssetMap, type RpcAsset, type UncheckedAssetAndChain, addressTypes, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isValidAssetAndChain, readAssetValue, rpcAssets };
|
|
226
|
+
export { type AddressType, type AssetAndChain, type AssetOfChain, type AssetSymbol, type BaseAssetAndChain, type BaseChainAssetMap, type BaseChainflipAsset, type ChainAssetMap, type ChainMap, type ChainflipAsset, type ChainflipChain, type ChainflipEvmChain, type ChainflipNetwork, type InternalAssetMap, type PriceAsset, type RpcAsset, type UncheckedAssetAndChain, addressTypes, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isValidAssetAndChain, priceAssets, readAssetValue, rpcAssets };
|
package/dist/chainflip.js
CHANGED
|
@@ -14,9 +14,10 @@ import {
|
|
|
14
14
|
getInternalAssets,
|
|
15
15
|
internalAssetToRpcAsset,
|
|
16
16
|
isValidAssetAndChain,
|
|
17
|
+
priceAssets,
|
|
17
18
|
readAssetValue,
|
|
18
19
|
rpcAssets
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DR3WTOBQ.js";
|
|
20
21
|
export {
|
|
21
22
|
addressTypes,
|
|
22
23
|
assetConstants,
|
|
@@ -33,6 +34,7 @@ export {
|
|
|
33
34
|
getInternalAssets,
|
|
34
35
|
internalAssetToRpcAsset,
|
|
35
36
|
isValidAssetAndChain,
|
|
37
|
+
priceAssets,
|
|
36
38
|
readAssetValue,
|
|
37
39
|
rpcAssets
|
|
38
40
|
};
|
|
@@ -21,6 +21,7 @@ var chainflipAssets = [
|
|
|
21
21
|
"HubUsdc"
|
|
22
22
|
];
|
|
23
23
|
var assetSymbols = ["USDC", "USDT", "FLIP", "DOT", "ETH", "BTC", "SOL"];
|
|
24
|
+
var priceAssets = ["Btc", "Eth", "Sol", "Usdc", "Usdt", "Usd"];
|
|
24
25
|
var rpcAssets = assetSymbols;
|
|
25
26
|
var baseChainflipAssets = chainflipAssets.filter(
|
|
26
27
|
(asset) => asset !== "Usdc"
|
|
@@ -260,6 +261,7 @@ function getInternalAssets({
|
|
|
260
261
|
export {
|
|
261
262
|
chainflipAssets,
|
|
262
263
|
assetSymbols,
|
|
264
|
+
priceAssets,
|
|
263
265
|
rpcAssets,
|
|
264
266
|
baseChainflipAssets,
|
|
265
267
|
chainflipEvmChains,
|
package/dist/tickMath.js
CHANGED