@chainflip/utils 2.1.7-tron-dev.1 → 2.1.7-tron-dev.2
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 +9 -6
- package/dist/chainflip.d.cts +5 -5
- package/dist/chainflip.d.mts +5 -5
- package/dist/chainflip.mjs +9 -6
- package/package.json +1 -1
package/dist/chainflip.cjs
CHANGED
|
@@ -31,13 +31,16 @@ const priceAssets = [
|
|
|
31
31
|
"Fine"
|
|
32
32
|
];
|
|
33
33
|
const baseChainflipAssets = chainflipAssets.filter((asset) => asset !== "Usdc");
|
|
34
|
-
const chainflipEvmChains = [
|
|
34
|
+
const chainflipEvmChains = [
|
|
35
|
+
"Ethereum",
|
|
36
|
+
"Arbitrum",
|
|
37
|
+
"Tron"
|
|
38
|
+
];
|
|
35
39
|
const chainflipChains = [
|
|
36
40
|
...chainflipEvmChains,
|
|
37
41
|
"Bitcoin",
|
|
38
42
|
"Solana",
|
|
39
|
-
"Assethub"
|
|
40
|
-
"Tron"
|
|
43
|
+
"Assethub"
|
|
41
44
|
];
|
|
42
45
|
const legacyChainflipChains = ["Polkadot"];
|
|
43
46
|
const chainflipNetworks = [
|
|
@@ -52,7 +55,7 @@ const addressTypes = [
|
|
|
52
55
|
"Arb",
|
|
53
56
|
"Sol",
|
|
54
57
|
"Hub",
|
|
55
|
-
"
|
|
58
|
+
"Tron"
|
|
56
59
|
];
|
|
57
60
|
const legacyAddressTypes = ["Dot"];
|
|
58
61
|
function readAssetValue(map, asset) {
|
|
@@ -240,7 +243,7 @@ const chainConstants = {
|
|
|
240
243
|
chainflipAssets: ["Trx", "TrxUsdt"],
|
|
241
244
|
assets: ["TRX", "USDT"],
|
|
242
245
|
gasAsset: "Trx",
|
|
243
|
-
addressType: "
|
|
246
|
+
addressType: "Tron",
|
|
244
247
|
blockTimeSeconds: 3
|
|
245
248
|
}
|
|
246
249
|
};
|
|
@@ -337,7 +340,7 @@ const chainContractId = {
|
|
|
337
340
|
Arbitrum: 4,
|
|
338
341
|
Solana: 5,
|
|
339
342
|
Assethub: 6,
|
|
340
|
-
Tron:
|
|
343
|
+
Tron: 7
|
|
341
344
|
};
|
|
342
345
|
const assetContractId = {
|
|
343
346
|
Eth: 1,
|
package/dist/chainflip.d.cts
CHANGED
|
@@ -9,16 +9,16 @@ type PriceAsset = (typeof priceAssets)[number];
|
|
|
9
9
|
type BaseChainflipAsset = Exclude<ChainflipAsset, 'Usdc'>;
|
|
10
10
|
type AnyBaseChainflipAsset = Exclude<AnyChainflipAsset, 'Usdc'>;
|
|
11
11
|
declare const baseChainflipAssets: BaseChainflipAsset[];
|
|
12
|
-
declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum"];
|
|
12
|
+
declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum", "Tron"];
|
|
13
13
|
type ChainflipEvmChain = (typeof chainflipEvmChains)[number];
|
|
14
|
-
declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "
|
|
14
|
+
declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Tron", "Bitcoin", "Solana", "Assethub"];
|
|
15
15
|
type ChainflipChain = (typeof chainflipChains)[number];
|
|
16
16
|
declare const legacyChainflipChains: readonly ["Polkadot"];
|
|
17
17
|
type LegacyChainflipChain = (typeof legacyChainflipChains)[number];
|
|
18
18
|
type AnyChainflipChain = ChainflipChain | LegacyChainflipChain;
|
|
19
19
|
declare const chainflipNetworks: readonly ["backspin", "sisyphos", "perseverance", "mainnet"];
|
|
20
20
|
type ChainflipNetwork = (typeof chainflipNetworks)[number];
|
|
21
|
-
declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "
|
|
21
|
+
declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "Tron"];
|
|
22
22
|
type AddressType = (typeof addressTypes)[number];
|
|
23
23
|
declare const legacyAddressTypes: readonly ["Dot"];
|
|
24
24
|
type LegacyAddressType = (typeof legacyAddressTypes)[number];
|
|
@@ -285,7 +285,7 @@ declare const chainConstants: {
|
|
|
285
285
|
readonly chainflipAssets: ["Trx", "TrxUsdt"];
|
|
286
286
|
readonly assets: ["TRX", "USDT"];
|
|
287
287
|
readonly gasAsset: "Trx";
|
|
288
|
-
readonly addressType: "
|
|
288
|
+
readonly addressType: "Tron";
|
|
289
289
|
readonly blockTimeSeconds: 3;
|
|
290
290
|
};
|
|
291
291
|
};
|
|
@@ -336,7 +336,7 @@ declare const anyChainConstants: {
|
|
|
336
336
|
readonly chainflipAssets: ["Trx", "TrxUsdt"];
|
|
337
337
|
readonly assets: ["TRX", "USDT"];
|
|
338
338
|
readonly gasAsset: "Trx";
|
|
339
|
-
readonly addressType: "
|
|
339
|
+
readonly addressType: "Tron";
|
|
340
340
|
readonly blockTimeSeconds: 3;
|
|
341
341
|
};
|
|
342
342
|
};
|
package/dist/chainflip.d.mts
CHANGED
|
@@ -9,16 +9,16 @@ type PriceAsset = (typeof priceAssets)[number];
|
|
|
9
9
|
type BaseChainflipAsset = Exclude<ChainflipAsset, 'Usdc'>;
|
|
10
10
|
type AnyBaseChainflipAsset = Exclude<AnyChainflipAsset, 'Usdc'>;
|
|
11
11
|
declare const baseChainflipAssets: BaseChainflipAsset[];
|
|
12
|
-
declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum"];
|
|
12
|
+
declare const chainflipEvmChains: readonly ["Ethereum", "Arbitrum", "Tron"];
|
|
13
13
|
type ChainflipEvmChain = (typeof chainflipEvmChains)[number];
|
|
14
|
-
declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "
|
|
14
|
+
declare const chainflipChains: readonly ["Ethereum", "Arbitrum", "Tron", "Bitcoin", "Solana", "Assethub"];
|
|
15
15
|
type ChainflipChain = (typeof chainflipChains)[number];
|
|
16
16
|
declare const legacyChainflipChains: readonly ["Polkadot"];
|
|
17
17
|
type LegacyChainflipChain = (typeof legacyChainflipChains)[number];
|
|
18
18
|
type AnyChainflipChain = ChainflipChain | LegacyChainflipChain;
|
|
19
19
|
declare const chainflipNetworks: readonly ["backspin", "sisyphos", "perseverance", "mainnet"];
|
|
20
20
|
type ChainflipNetwork = (typeof chainflipNetworks)[number];
|
|
21
|
-
declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "
|
|
21
|
+
declare const addressTypes: readonly ["Eth", "Btc", "Arb", "Sol", "Hub", "Tron"];
|
|
22
22
|
type AddressType = (typeof addressTypes)[number];
|
|
23
23
|
declare const legacyAddressTypes: readonly ["Dot"];
|
|
24
24
|
type LegacyAddressType = (typeof legacyAddressTypes)[number];
|
|
@@ -285,7 +285,7 @@ declare const chainConstants: {
|
|
|
285
285
|
readonly chainflipAssets: ["Trx", "TrxUsdt"];
|
|
286
286
|
readonly assets: ["TRX", "USDT"];
|
|
287
287
|
readonly gasAsset: "Trx";
|
|
288
|
-
readonly addressType: "
|
|
288
|
+
readonly addressType: "Tron";
|
|
289
289
|
readonly blockTimeSeconds: 3;
|
|
290
290
|
};
|
|
291
291
|
};
|
|
@@ -336,7 +336,7 @@ declare const anyChainConstants: {
|
|
|
336
336
|
readonly chainflipAssets: ["Trx", "TrxUsdt"];
|
|
337
337
|
readonly assets: ["TRX", "USDT"];
|
|
338
338
|
readonly gasAsset: "Trx";
|
|
339
|
-
readonly addressType: "
|
|
339
|
+
readonly addressType: "Tron";
|
|
340
340
|
readonly blockTimeSeconds: 3;
|
|
341
341
|
};
|
|
342
342
|
};
|
package/dist/chainflip.mjs
CHANGED
|
@@ -29,13 +29,16 @@ const priceAssets = [
|
|
|
29
29
|
"Fine"
|
|
30
30
|
];
|
|
31
31
|
const baseChainflipAssets = chainflipAssets.filter((asset) => asset !== "Usdc");
|
|
32
|
-
const chainflipEvmChains = [
|
|
32
|
+
const chainflipEvmChains = [
|
|
33
|
+
"Ethereum",
|
|
34
|
+
"Arbitrum",
|
|
35
|
+
"Tron"
|
|
36
|
+
];
|
|
33
37
|
const chainflipChains = [
|
|
34
38
|
...chainflipEvmChains,
|
|
35
39
|
"Bitcoin",
|
|
36
40
|
"Solana",
|
|
37
|
-
"Assethub"
|
|
38
|
-
"Tron"
|
|
41
|
+
"Assethub"
|
|
39
42
|
];
|
|
40
43
|
const legacyChainflipChains = ["Polkadot"];
|
|
41
44
|
const chainflipNetworks = [
|
|
@@ -50,7 +53,7 @@ const addressTypes = [
|
|
|
50
53
|
"Arb",
|
|
51
54
|
"Sol",
|
|
52
55
|
"Hub",
|
|
53
|
-
"
|
|
56
|
+
"Tron"
|
|
54
57
|
];
|
|
55
58
|
const legacyAddressTypes = ["Dot"];
|
|
56
59
|
function readAssetValue(map, asset) {
|
|
@@ -238,7 +241,7 @@ const chainConstants = {
|
|
|
238
241
|
chainflipAssets: ["Trx", "TrxUsdt"],
|
|
239
242
|
assets: ["TRX", "USDT"],
|
|
240
243
|
gasAsset: "Trx",
|
|
241
|
-
addressType: "
|
|
244
|
+
addressType: "Tron",
|
|
242
245
|
blockTimeSeconds: 3
|
|
243
246
|
}
|
|
244
247
|
};
|
|
@@ -335,7 +338,7 @@ const chainContractId = {
|
|
|
335
338
|
Arbitrum: 4,
|
|
336
339
|
Solana: 5,
|
|
337
340
|
Assethub: 6,
|
|
338
|
-
Tron:
|
|
341
|
+
Tron: 7
|
|
339
342
|
};
|
|
340
343
|
const assetContractId = {
|
|
341
344
|
Eth: 1,
|