@chainflip/utils 2.1.2-beta.4 → 2.1.2-beta.5
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 +10 -3
- package/dist/chainflip.d.cts +3 -5
- package/dist/chainflip.d.mts +3 -5
- package/dist/chainflip.mjs +11 -3
- package/package.json +1 -1
package/dist/chainflip.cjs
CHANGED
|
@@ -139,8 +139,16 @@ const anyAssetConstants = {
|
|
|
139
139
|
decimals: 10
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
const assetSymbols =
|
|
143
|
-
|
|
142
|
+
const assetSymbols = [
|
|
143
|
+
"BTC",
|
|
144
|
+
"DOT",
|
|
145
|
+
"ETH",
|
|
146
|
+
"FLIP",
|
|
147
|
+
"SOL",
|
|
148
|
+
"USDC",
|
|
149
|
+
"USDT",
|
|
150
|
+
"WBTC"
|
|
151
|
+
];
|
|
144
152
|
const chainConstants = {
|
|
145
153
|
Ethereum: {
|
|
146
154
|
chainflipAssets: [
|
|
@@ -431,7 +439,6 @@ function isAnyChainflipChain(chain) {
|
|
|
431
439
|
//#endregion
|
|
432
440
|
exports.addressTypes = addressTypes;
|
|
433
441
|
exports.anyAssetConstants = anyAssetConstants;
|
|
434
|
-
exports.anyAssetSymbols = anyAssetSymbols;
|
|
435
442
|
exports.anyChainConstants = anyChainConstants;
|
|
436
443
|
exports.anyInternalAssetToRpcAsset = anyInternalAssetToRpcAsset;
|
|
437
444
|
exports.assetConstants = assetConstants;
|
package/dist/chainflip.d.cts
CHANGED
|
@@ -224,10 +224,8 @@ declare const anyAssetConstants: {
|
|
|
224
224
|
readonly decimals: 6;
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
type AnyAssetSymbol = (typeof anyAssetConstants)[AnyChainflipAsset]['symbol'];
|
|
230
|
-
declare const anyAssetSymbols: AnyAssetSymbol[];
|
|
227
|
+
declare const assetSymbols: readonly ["BTC", "DOT", "ETH", "FLIP", "SOL", "USDC", "USDT", "WBTC"];
|
|
228
|
+
type AssetSymbol = (typeof assetSymbols)[number];
|
|
231
229
|
declare const chainConstants: {
|
|
232
230
|
readonly Ethereum: {
|
|
233
231
|
readonly chainflipAssets: ["Eth", "Flip", "Usdc", "Usdt", "Wbtc"];
|
|
@@ -368,4 +366,4 @@ declare function isChainflipChain(chain: string): chain is ChainflipChain;
|
|
|
368
366
|
declare function isLegacyChainflipChain(chain: string): chain is LegacyChainflipChain;
|
|
369
367
|
declare function isAnyChainflipChain(chain: string): chain is AnyChainflipChain;
|
|
370
368
|
//#endregion
|
|
371
|
-
export { AddressType, AnyAddressType, AnyAssetAndChain, AnyAssetOfChain,
|
|
369
|
+
export { AddressType, AnyAddressType, AnyAssetAndChain, AnyAssetOfChain, AnyBaseAssetAndChain, AnyBaseChainAssetMap, AnyBaseChainflipAsset, AnyChainAssetMap, AnyChainMap, AnyChainflipAsset, AnyChainflipChain, AnyInternalAssetMap, AnyUncheckedAssetAndChain, AssetAndChain, AssetOfChain, AssetSymbol, BaseAssetAndChain, BaseChainAssetMap, BaseChainflipAsset, ChainAssetMap, ChainMap, ChainflipAsset, ChainflipChain, ChainflipEvmChain, ChainflipNetwork, InternalAssetMap, LegacyAddressType, LegacyChainflipAsset, LegacyChainflipChain, NonDeprecatedBaseChainflipAsset, PriceAsset, UncheckedAssetAndChain, addressTypes, anyAssetConstants, anyChainConstants, anyInternalAssetToRpcAsset, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssetToPriceAssetMap, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getAnyInternalAsset, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isAnyChainflipAsset, isAnyChainflipChain, isChainflipAsset, isChainflipChain, isLegacyChainflipAsset, isLegacyChainflipChain, isValidAssetAndChain, legacyAddressTypes, legacyChainflipAssets, legacyChainflipChains, priceAssets, readAssetValue };
|
package/dist/chainflip.d.mts
CHANGED
|
@@ -224,10 +224,8 @@ declare const anyAssetConstants: {
|
|
|
224
224
|
readonly decimals: 6;
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
type AnyAssetSymbol = (typeof anyAssetConstants)[AnyChainflipAsset]['symbol'];
|
|
230
|
-
declare const anyAssetSymbols: AnyAssetSymbol[];
|
|
227
|
+
declare const assetSymbols: readonly ["BTC", "DOT", "ETH", "FLIP", "SOL", "USDC", "USDT", "WBTC"];
|
|
228
|
+
type AssetSymbol = (typeof assetSymbols)[number];
|
|
231
229
|
declare const chainConstants: {
|
|
232
230
|
readonly Ethereum: {
|
|
233
231
|
readonly chainflipAssets: ["Eth", "Flip", "Usdc", "Usdt", "Wbtc"];
|
|
@@ -368,4 +366,4 @@ declare function isChainflipChain(chain: string): chain is ChainflipChain;
|
|
|
368
366
|
declare function isLegacyChainflipChain(chain: string): chain is LegacyChainflipChain;
|
|
369
367
|
declare function isAnyChainflipChain(chain: string): chain is AnyChainflipChain;
|
|
370
368
|
//#endregion
|
|
371
|
-
export { AddressType, AnyAddressType, AnyAssetAndChain, AnyAssetOfChain,
|
|
369
|
+
export { AddressType, AnyAddressType, AnyAssetAndChain, AnyAssetOfChain, AnyBaseAssetAndChain, AnyBaseChainAssetMap, AnyBaseChainflipAsset, AnyChainAssetMap, AnyChainMap, AnyChainflipAsset, AnyChainflipChain, AnyInternalAssetMap, AnyUncheckedAssetAndChain, AssetAndChain, AssetOfChain, AssetSymbol, BaseAssetAndChain, BaseChainAssetMap, BaseChainflipAsset, ChainAssetMap, ChainMap, ChainflipAsset, ChainflipChain, ChainflipEvmChain, ChainflipNetwork, InternalAssetMap, LegacyAddressType, LegacyChainflipAsset, LegacyChainflipChain, NonDeprecatedBaseChainflipAsset, PriceAsset, UncheckedAssetAndChain, addressTypes, anyAssetConstants, anyChainConstants, anyInternalAssetToRpcAsset, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssetToPriceAssetMap, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getAnyInternalAsset, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isAnyChainflipAsset, isAnyChainflipChain, isChainflipAsset, isChainflipChain, isLegacyChainflipAsset, isLegacyChainflipChain, isValidAssetAndChain, legacyAddressTypes, legacyChainflipAssets, legacyChainflipChains, priceAssets, readAssetValue };
|
package/dist/chainflip.mjs
CHANGED
|
@@ -137,8 +137,16 @@ const anyAssetConstants = {
|
|
|
137
137
|
decimals: 10
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
const assetSymbols =
|
|
141
|
-
|
|
140
|
+
const assetSymbols = [
|
|
141
|
+
"BTC",
|
|
142
|
+
"DOT",
|
|
143
|
+
"ETH",
|
|
144
|
+
"FLIP",
|
|
145
|
+
"SOL",
|
|
146
|
+
"USDC",
|
|
147
|
+
"USDT",
|
|
148
|
+
"WBTC"
|
|
149
|
+
];
|
|
142
150
|
const chainConstants = {
|
|
143
151
|
Ethereum: {
|
|
144
152
|
chainflipAssets: [
|
|
@@ -427,4 +435,4 @@ function isAnyChainflipChain(chain) {
|
|
|
427
435
|
}
|
|
428
436
|
|
|
429
437
|
//#endregion
|
|
430
|
-
export { addressTypes, anyAssetConstants,
|
|
438
|
+
export { addressTypes, anyAssetConstants, anyChainConstants, anyInternalAssetToRpcAsset, assetConstants, assetContractId, assetSymbols, baseChainflipAssets, chainConstants, chainContractId, chainflipAssetToPriceAssetMap, chainflipAssets, chainflipChains, chainflipEvmChains, chainflipNetworks, getAnyInternalAsset, getInternalAsset, getInternalAssets, internalAssetToRpcAsset, isAnyChainflipAsset, isAnyChainflipChain, isChainflipAsset, isChainflipChain, isLegacyChainflipAsset, isLegacyChainflipChain, isValidAssetAndChain, legacyAddressTypes, legacyChainflipAssets, legacyChainflipChains, priceAssets, readAssetValue };
|