@xchainjs/xchain-thorchain 3.0.2 → 3.0.4
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/lib/const.d.ts +3 -3
- package/lib/index.esm.js +7 -5
- package/lib/index.js +7 -5
- package/package.json +1 -1
package/lib/const.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const RUNE_DECIMAL = 8;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const RUNE_DENOM = "rune";
|
|
15
15
|
/**
|
|
16
|
-
* Denomination of the
|
|
16
|
+
* Denomination of the TCY asset
|
|
17
17
|
*/
|
|
18
18
|
export declare const TCY_DENOM = "tcy";
|
|
19
19
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const TCY_DENOM = "tcy";
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const RUNE_TICKER = "RUNE";
|
|
23
23
|
/**
|
|
24
|
-
* Ticker symbol for the
|
|
24
|
+
* Ticker symbol for the TCY asset
|
|
25
25
|
*/
|
|
26
26
|
export declare const TCY_TICKER = "TCY";
|
|
27
27
|
/**
|
|
@@ -45,7 +45,7 @@ export declare const THORChain: "THOR";
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const AssetRuneNative: Asset;
|
|
47
47
|
/**
|
|
48
|
-
* Native asset representation for
|
|
48
|
+
* Native asset representation for TCY in Thorchain
|
|
49
49
|
*/
|
|
50
50
|
export declare const AssetTCY: TokenAsset;
|
|
51
51
|
/**
|
package/lib/index.esm.js
CHANGED
|
@@ -3106,7 +3106,7 @@ const getDenom = (asset) => {
|
|
|
3106
3106
|
return assetToString(asset).toLowerCase();
|
|
3107
3107
|
if (isTCYAsset(asset))
|
|
3108
3108
|
return TCY_DENOM;
|
|
3109
|
-
return asset.
|
|
3109
|
+
return assetToString(asset).toLowerCase();
|
|
3110
3110
|
};
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Get chain id from node url
|
|
@@ -3219,7 +3219,7 @@ const RUNE_DECIMAL = 8;
|
|
|
3219
3219
|
*/
|
|
3220
3220
|
const RUNE_DENOM = 'rune';
|
|
3221
3221
|
/**
|
|
3222
|
-
* Denomination of the
|
|
3222
|
+
* Denomination of the TCY asset
|
|
3223
3223
|
*/
|
|
3224
3224
|
const TCY_DENOM = 'tcy';
|
|
3225
3225
|
/**
|
|
@@ -3227,7 +3227,7 @@ const TCY_DENOM = 'tcy';
|
|
|
3227
3227
|
*/
|
|
3228
3228
|
const RUNE_TICKER = 'RUNE';
|
|
3229
3229
|
/**
|
|
3230
|
-
* Ticker symbol for the
|
|
3230
|
+
* Ticker symbol for the TCY asset
|
|
3231
3231
|
*/
|
|
3232
3232
|
const TCY_TICKER = 'TCY';
|
|
3233
3233
|
/**
|
|
@@ -3256,7 +3256,7 @@ const AssetRuneNative = {
|
|
|
3256
3256
|
type: AssetType.NATIVE,
|
|
3257
3257
|
};
|
|
3258
3258
|
/**
|
|
3259
|
-
* Native asset representation for
|
|
3259
|
+
* Native asset representation for TCY in Thorchain
|
|
3260
3260
|
*/
|
|
3261
3261
|
const AssetTCY = {
|
|
3262
3262
|
chain: THORChain,
|
|
@@ -3714,7 +3714,9 @@ class ClientKeystore extends Client {
|
|
|
3714
3714
|
gas: gasLimit.toString(),
|
|
3715
3715
|
}, memo);
|
|
3716
3716
|
}
|
|
3717
|
-
catch (
|
|
3717
|
+
catch (e) {
|
|
3718
|
+
console.warn(e instanceof Error ? e.message : String(e));
|
|
3719
|
+
}
|
|
3718
3720
|
}
|
|
3719
3721
|
throw Error('No clients available. Can not sign and broadcast deposit transaction');
|
|
3720
3722
|
});
|
package/lib/index.js
CHANGED
|
@@ -3132,7 +3132,7 @@ const getDenom = (asset) => {
|
|
|
3132
3132
|
return xchainUtil.assetToString(asset).toLowerCase();
|
|
3133
3133
|
if (isTCYAsset(asset))
|
|
3134
3134
|
return TCY_DENOM;
|
|
3135
|
-
return asset.
|
|
3135
|
+
return xchainUtil.assetToString(asset).toLowerCase();
|
|
3136
3136
|
};
|
|
3137
3137
|
/**
|
|
3138
3138
|
* Get chain id from node url
|
|
@@ -3245,7 +3245,7 @@ const RUNE_DECIMAL = 8;
|
|
|
3245
3245
|
*/
|
|
3246
3246
|
const RUNE_DENOM = 'rune';
|
|
3247
3247
|
/**
|
|
3248
|
-
* Denomination of the
|
|
3248
|
+
* Denomination of the TCY asset
|
|
3249
3249
|
*/
|
|
3250
3250
|
const TCY_DENOM = 'tcy';
|
|
3251
3251
|
/**
|
|
@@ -3253,7 +3253,7 @@ const TCY_DENOM = 'tcy';
|
|
|
3253
3253
|
*/
|
|
3254
3254
|
const RUNE_TICKER = 'RUNE';
|
|
3255
3255
|
/**
|
|
3256
|
-
* Ticker symbol for the
|
|
3256
|
+
* Ticker symbol for the TCY asset
|
|
3257
3257
|
*/
|
|
3258
3258
|
const TCY_TICKER = 'TCY';
|
|
3259
3259
|
/**
|
|
@@ -3282,7 +3282,7 @@ const AssetRuneNative = {
|
|
|
3282
3282
|
type: xchainUtil.AssetType.NATIVE,
|
|
3283
3283
|
};
|
|
3284
3284
|
/**
|
|
3285
|
-
* Native asset representation for
|
|
3285
|
+
* Native asset representation for TCY in Thorchain
|
|
3286
3286
|
*/
|
|
3287
3287
|
const AssetTCY = {
|
|
3288
3288
|
chain: THORChain,
|
|
@@ -3740,7 +3740,9 @@ class ClientKeystore extends Client {
|
|
|
3740
3740
|
gas: gasLimit.toString(),
|
|
3741
3741
|
}, memo);
|
|
3742
3742
|
}
|
|
3743
|
-
catch (
|
|
3743
|
+
catch (e) {
|
|
3744
|
+
console.warn(e instanceof Error ? e.message : String(e));
|
|
3745
|
+
}
|
|
3744
3746
|
}
|
|
3745
3747
|
throw Error('No clients available. Can not sign and broadcast deposit transaction');
|
|
3746
3748
|
});
|