@xchainjs/xchain-thorchain 2.0.13 → 2.0.15

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/index.js CHANGED
@@ -127755,6 +127755,7 @@ function requireMsgCompiled () {
127755
127755
  * @property {string|null} [ticker] Asset ticker
127756
127756
  * @property {boolean|null} [synth] Asset synth
127757
127757
  * @property {boolean|null} [trade] Asset trade
127758
+ * @property {boolean|null} [secured] Asset secured
127758
127759
  */
127759
127760
 
127760
127761
  /**
@@ -127812,6 +127813,14 @@ function requireMsgCompiled () {
127812
127813
  */
127813
127814
  Asset.prototype.trade = false;
127814
127815
 
127816
+ /**
127817
+ * Asset secured.
127818
+ * @member {boolean} secured
127819
+ * @memberof common.Asset
127820
+ * @instance
127821
+ */
127822
+ Asset.prototype.secured = false;
127823
+
127815
127824
  /**
127816
127825
  * Creates a new Asset instance using the specified properties.
127817
127826
  * @function create
@@ -127846,6 +127855,8 @@ function requireMsgCompiled () {
127846
127855
  writer.uint32(/* id 4, wireType 0 =*/32).bool(message.synth);
127847
127856
  if (message.trade != null && Object.hasOwnProperty.call(message, "trade"))
127848
127857
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.trade);
127858
+ if (message.secured != null && Object.hasOwnProperty.call(message, "secured"))
127859
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.secured);
127849
127860
  return writer;
127850
127861
  };
127851
127862
 
@@ -127895,6 +127906,9 @@ function requireMsgCompiled () {
127895
127906
  case 5:
127896
127907
  message.trade = reader.bool();
127897
127908
  break;
127909
+ case 6:
127910
+ message.secured = reader.bool();
127911
+ break;
127898
127912
  default:
127899
127913
  reader.skipType(tag & 7);
127900
127914
  break;
@@ -127945,6 +127959,9 @@ function requireMsgCompiled () {
127945
127959
  if (message.trade != null && message.hasOwnProperty("trade"))
127946
127960
  if (typeof message.trade !== "boolean")
127947
127961
  return "trade: boolean expected";
127962
+ if (message.secured != null && message.hasOwnProperty("secured"))
127963
+ if (typeof message.secured !== "boolean")
127964
+ return "secured: boolean expected";
127948
127965
  return null;
127949
127966
  };
127950
127967
 
@@ -127970,6 +127987,8 @@ function requireMsgCompiled () {
127970
127987
  message.synth = Boolean(object.synth);
127971
127988
  if (object.trade != null)
127972
127989
  message.trade = Boolean(object.trade);
127990
+ if (object.secured != null)
127991
+ message.secured = Boolean(object.secured);
127973
127992
  return message;
127974
127993
  };
127975
127994
 
@@ -127992,6 +128011,7 @@ function requireMsgCompiled () {
127992
128011
  object.ticker = "";
127993
128012
  object.synth = false;
127994
128013
  object.trade = false;
128014
+ object.secured = false;
127995
128015
  }
127996
128016
  if (message.chain != null && message.hasOwnProperty("chain"))
127997
128017
  object.chain = message.chain;
@@ -128003,6 +128023,8 @@ function requireMsgCompiled () {
128003
128023
  object.synth = message.synth;
128004
128024
  if (message.trade != null && message.hasOwnProperty("trade"))
128005
128025
  object.trade = message.trade;
128026
+ if (message.secured != null && message.hasOwnProperty("secured"))
128027
+ object.secured = message.secured;
128006
128028
  return object;
128007
128029
  };
128008
128030
 
@@ -130712,6 +130734,8 @@ const getDenom = (asset) => {
130712
130734
  return RUNE_DENOM;
130713
130735
  if (xchainUtil.isSynthAsset(asset))
130714
130736
  return xchainUtil.assetToString(asset).toLowerCase();
130737
+ if (xchainUtil.isSecuredAsset(asset))
130738
+ return xchainUtil.assetToString(asset).toLowerCase();
130715
130739
  return asset.symbol.toLowerCase();
130716
130740
  };
130717
130741
  /**
@@ -131077,6 +131101,17 @@ class ClientKeystore extends Client {
131077
131101
  const address = bech32$1.encode(this.prefix, words);
131078
131102
  return address;
131079
131103
  }
131104
+ /**
131105
+ * Get the Account frmom Address.
131106
+ * @param {number | undefined} walletIndex The index of the address derivation path. Default is 0.
131107
+ * @returns {Account} The Account holder details or error if account does not exist
131108
+ */
131109
+ getAccountDetails(walletIndex) {
131110
+ return __awaiter(this, void 0, void 0, function* () {
131111
+ const account = yield this.getAccount(this.getAddress(walletIndex));
131112
+ return account;
131113
+ });
131114
+ }
131080
131115
  /**
131081
131116
  * Returns the private key associated with an index
131082
131117
  *