@chainflip/utils 0.8.15 → 0.8.16
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 +0 -20
- package/dist/chainflip.d.cts +1 -2
- package/dist/chainflip.d.ts +1 -2
- package/dist/chainflip.js +1 -3
- package/dist/{chunk-WGOAWQFT.js → chunk-4DFBUXHM.js} +0 -19
- package/dist/consts.cjs +4 -0
- package/dist/consts.js +4 -0
- package/dist/tickMath.cjs +0 -18
- package/dist/tickMath.js +1 -1
- package/package.json +1 -1
package/dist/chainflip.cjs
CHANGED
|
@@ -35,7 +35,6 @@ __export(chainflip_exports, {
|
|
|
35
35
|
getInternalAssets: () => getInternalAssets,
|
|
36
36
|
internalAssetToRpcAsset: () => internalAssetToRpcAsset,
|
|
37
37
|
isValidAssetAndChain: () => isValidAssetAndChain,
|
|
38
|
-
orderedChainflipAssets: () => orderedChainflipAssets,
|
|
39
38
|
readAssetValue: () => readAssetValue,
|
|
40
39
|
rpcAssets: () => rpcAssets
|
|
41
40
|
});
|
|
@@ -80,24 +79,6 @@ function readAssetValue(map, asset) {
|
|
|
80
79
|
const chainValues = map[assetConstants[asset].chain];
|
|
81
80
|
return chainValues[assetConstants[asset].symbol];
|
|
82
81
|
}
|
|
83
|
-
function requireAllChainflipAssets(assets) {
|
|
84
|
-
return assets;
|
|
85
|
-
}
|
|
86
|
-
var orderedChainflipAssets = requireAllChainflipAssets([
|
|
87
|
-
"Btc",
|
|
88
|
-
"Eth",
|
|
89
|
-
"Sol",
|
|
90
|
-
"Usdt",
|
|
91
|
-
"Usdc",
|
|
92
|
-
"Flip",
|
|
93
|
-
"SolUsdc",
|
|
94
|
-
"ArbUsdc",
|
|
95
|
-
"ArbEth",
|
|
96
|
-
"Dot",
|
|
97
|
-
"HubDot",
|
|
98
|
-
"HubUsdt",
|
|
99
|
-
"HubUsdc"
|
|
100
|
-
]);
|
|
101
82
|
var assetConstants = {
|
|
102
83
|
Eth: {
|
|
103
84
|
chain: "Ethereum",
|
|
@@ -332,7 +313,6 @@ function getInternalAssets({
|
|
|
332
313
|
getInternalAssets,
|
|
333
314
|
internalAssetToRpcAsset,
|
|
334
315
|
isValidAssetAndChain,
|
|
335
|
-
orderedChainflipAssets,
|
|
336
316
|
readAssetValue,
|
|
337
317
|
rpcAssets
|
|
338
318
|
});
|
package/dist/chainflip.d.cts
CHANGED
|
@@ -54,7 +54,6 @@ type UncheckedAssetAndChain = {
|
|
|
54
54
|
declare function readAssetValue<T>(map: ChainAssetMap<T>, asset: ChainflipAsset | BaseChainflipAsset): T;
|
|
55
55
|
declare function readAssetValue<T>(map: BaseChainAssetMap<T>, asset: BaseChainflipAsset): T;
|
|
56
56
|
declare function readAssetValue<T>(map: ChainAssetMap<T> | BaseChainAssetMap<T>, asset: BaseChainflipAsset): T;
|
|
57
|
-
declare const orderedChainflipAssets: ("Usdc" | "Usdt" | "Flip" | "Eth" | "Dot" | "Btc" | "ArbUsdc" | "ArbEth" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc")[];
|
|
58
57
|
declare const assetConstants: {
|
|
59
58
|
readonly Eth: {
|
|
60
59
|
readonly chain: "Ethereum";
|
|
@@ -222,4 +221,4 @@ declare function getInternalAssets(data: {
|
|
|
222
221
|
destAsset: ChainflipAsset | null;
|
|
223
222
|
};
|
|
224
223
|
|
|
225
|
-
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,
|
|
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 };
|
package/dist/chainflip.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ type UncheckedAssetAndChain = {
|
|
|
54
54
|
declare function readAssetValue<T>(map: ChainAssetMap<T>, asset: ChainflipAsset | BaseChainflipAsset): T;
|
|
55
55
|
declare function readAssetValue<T>(map: BaseChainAssetMap<T>, asset: BaseChainflipAsset): T;
|
|
56
56
|
declare function readAssetValue<T>(map: ChainAssetMap<T> | BaseChainAssetMap<T>, asset: BaseChainflipAsset): T;
|
|
57
|
-
declare const orderedChainflipAssets: ("Usdc" | "Usdt" | "Flip" | "Eth" | "Dot" | "Btc" | "ArbUsdc" | "ArbEth" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc")[];
|
|
58
57
|
declare const assetConstants: {
|
|
59
58
|
readonly Eth: {
|
|
60
59
|
readonly chain: "Ethereum";
|
|
@@ -222,4 +221,4 @@ declare function getInternalAssets(data: {
|
|
|
222
221
|
destAsset: ChainflipAsset | null;
|
|
223
222
|
};
|
|
224
223
|
|
|
225
|
-
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,
|
|
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 };
|
package/dist/chainflip.js
CHANGED
|
@@ -14,10 +14,9 @@ import {
|
|
|
14
14
|
getInternalAssets,
|
|
15
15
|
internalAssetToRpcAsset,
|
|
16
16
|
isValidAssetAndChain,
|
|
17
|
-
orderedChainflipAssets,
|
|
18
17
|
readAssetValue,
|
|
19
18
|
rpcAssets
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4DFBUXHM.js";
|
|
21
20
|
export {
|
|
22
21
|
addressTypes,
|
|
23
22
|
assetConstants,
|
|
@@ -34,7 +33,6 @@ export {
|
|
|
34
33
|
getInternalAssets,
|
|
35
34
|
internalAssetToRpcAsset,
|
|
36
35
|
isValidAssetAndChain,
|
|
37
|
-
orderedChainflipAssets,
|
|
38
36
|
readAssetValue,
|
|
39
37
|
rpcAssets
|
|
40
38
|
};
|
|
@@ -39,24 +39,6 @@ function readAssetValue(map, asset) {
|
|
|
39
39
|
const chainValues = map[assetConstants[asset].chain];
|
|
40
40
|
return chainValues[assetConstants[asset].symbol];
|
|
41
41
|
}
|
|
42
|
-
function requireAllChainflipAssets(assets) {
|
|
43
|
-
return assets;
|
|
44
|
-
}
|
|
45
|
-
var orderedChainflipAssets = requireAllChainflipAssets([
|
|
46
|
-
"Btc",
|
|
47
|
-
"Eth",
|
|
48
|
-
"Sol",
|
|
49
|
-
"Usdt",
|
|
50
|
-
"Usdc",
|
|
51
|
-
"Flip",
|
|
52
|
-
"SolUsdc",
|
|
53
|
-
"ArbUsdc",
|
|
54
|
-
"ArbEth",
|
|
55
|
-
"Dot",
|
|
56
|
-
"HubDot",
|
|
57
|
-
"HubUsdt",
|
|
58
|
-
"HubUsdc"
|
|
59
|
-
]);
|
|
60
42
|
var assetConstants = {
|
|
61
43
|
Eth: {
|
|
62
44
|
chain: "Ethereum",
|
|
@@ -285,7 +267,6 @@ export {
|
|
|
285
267
|
chainflipNetworks,
|
|
286
268
|
addressTypes,
|
|
287
269
|
readAssetValue,
|
|
288
|
-
orderedChainflipAssets,
|
|
289
270
|
assetConstants,
|
|
290
271
|
chainConstants,
|
|
291
272
|
internalAssetToRpcAsset,
|
package/dist/consts.cjs
CHANGED
|
@@ -60,6 +60,10 @@ var brokerAliasMap = {
|
|
|
60
60
|
name: "Chainflip Swapping",
|
|
61
61
|
twitter: "@Chainflip"
|
|
62
62
|
},
|
|
63
|
+
cFJySAo3RbrtKWWb9J86jqnfTjpDCXAQ4bcJR9kt6S37i7eey: {
|
|
64
|
+
name: "swap.chainflip.io",
|
|
65
|
+
twitter: "@Chainflip"
|
|
66
|
+
},
|
|
63
67
|
cFN1AfNQBEBCkuNAV37WWw34bCAdiW5e5sHTY4LaaRWiBSh7B: {
|
|
64
68
|
name: "BlockSwap",
|
|
65
69
|
twitter: "@BlockswapBot"
|
package/dist/consts.js
CHANGED
|
@@ -26,6 +26,10 @@ var brokerAliasMap = {
|
|
|
26
26
|
name: "Chainflip Swapping",
|
|
27
27
|
twitter: "@Chainflip"
|
|
28
28
|
},
|
|
29
|
+
cFJySAo3RbrtKWWb9J86jqnfTjpDCXAQ4bcJR9kt6S37i7eey: {
|
|
30
|
+
name: "swap.chainflip.io",
|
|
31
|
+
twitter: "@Chainflip"
|
|
32
|
+
},
|
|
29
33
|
cFN1AfNQBEBCkuNAV37WWw34bCAdiW5e5sHTY4LaaRWiBSh7B: {
|
|
30
34
|
name: "BlockSwap",
|
|
31
35
|
twitter: "@BlockswapBot"
|
package/dist/tickMath.cjs
CHANGED
|
@@ -74,24 +74,6 @@ var chainflipChains = [
|
|
|
74
74
|
"Solana",
|
|
75
75
|
"Assethub"
|
|
76
76
|
];
|
|
77
|
-
function requireAllChainflipAssets(assets) {
|
|
78
|
-
return assets;
|
|
79
|
-
}
|
|
80
|
-
var orderedChainflipAssets = requireAllChainflipAssets([
|
|
81
|
-
"Btc",
|
|
82
|
-
"Eth",
|
|
83
|
-
"Sol",
|
|
84
|
-
"Usdt",
|
|
85
|
-
"Usdc",
|
|
86
|
-
"Flip",
|
|
87
|
-
"SolUsdc",
|
|
88
|
-
"ArbUsdc",
|
|
89
|
-
"ArbEth",
|
|
90
|
-
"Dot",
|
|
91
|
-
"HubDot",
|
|
92
|
-
"HubUsdt",
|
|
93
|
-
"HubUsdc"
|
|
94
|
-
]);
|
|
95
77
|
var assetConstants = {
|
|
96
78
|
Eth: {
|
|
97
79
|
chain: "Ethereum",
|
package/dist/tickMath.js
CHANGED