carbon-js-sdk 0.3.58 → 0.3.59

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.
@@ -394,6 +394,9 @@ class TokenClient {
394
394
  return undefined;
395
395
  }
396
396
  const tokenDenom = cdpDenom.replace(regexCdpDenom, "");
397
+ if (TokenClient.isPoolToken(tokenDenom)) {
398
+ return this.poolTokens[tokenDenom];
399
+ }
397
400
  return this.tokenForDenom(tokenDenom);
398
401
  }
399
402
  reloadWrapperMap() {
package/lib/util/gov.d.ts CHANGED
@@ -17,6 +17,7 @@ export declare enum ProposalTypes {
17
17
  SetCommitmentCurve = "/Switcheo.carbon.liquiditypool.SetCommitmentCurveProposal",
18
18
  UpdateMarket = "/Switcheo.carbon.market.UpdateMarketProposal",
19
19
  SettlementPrice = "/Switcheo.carbon.pricing.SettlementPriceProposal",
20
+ ClientUpdateProposal = "/ibc.core.client.v1.ClientUpdateProposal",
20
21
  CreateGroup = "/Switcheo.carbon.coin.CreateGroupProposal",
21
22
  UpdateGroup = "/Switcheo.carbon.coin.UpdateGroupProposal",
22
23
  RegisterToGroup = "/Switcheo.carbon.coin.RegisterToGroupProposal",
package/lib/util/gov.js CHANGED
@@ -6,6 +6,7 @@ const distribution_1 = require("../codec/cosmos/distribution/v1beta1/distributio
6
6
  const gov_1 = require("../codec/cosmos/gov/v1beta1/gov");
7
7
  const params_1 = require("../codec/cosmos/params/v1beta1/params");
8
8
  const upgrade_1 = require("../codec/cosmos/upgrade/v1beta1/upgrade");
9
+ const client_1 = require("../codec/ibc/core/client/v1/client");
9
10
  var ProposalTypes;
10
11
  (function (ProposalTypes) {
11
12
  ProposalTypes["ParameterChange"] = "/cosmos.params.v1beta1.ParameterChangeProposal";
@@ -25,6 +26,7 @@ var ProposalTypes;
25
26
  ProposalTypes["SetCommitmentCurve"] = "/Switcheo.carbon.liquiditypool.SetCommitmentCurveProposal";
26
27
  ProposalTypes["UpdateMarket"] = "/Switcheo.carbon.market.UpdateMarketProposal";
27
28
  ProposalTypes["SettlementPrice"] = "/Switcheo.carbon.pricing.SettlementPriceProposal";
29
+ ProposalTypes["ClientUpdateProposal"] = "/ibc.core.client.v1.ClientUpdateProposal";
28
30
  ProposalTypes["CreateGroup"] = "/Switcheo.carbon.coin.CreateGroupProposal";
29
31
  ProposalTypes["UpdateGroup"] = "/Switcheo.carbon.coin.UpdateGroupProposal";
30
32
  ProposalTypes["RegisterToGroup"] = "/Switcheo.carbon.coin.RegisterToGroupProposal";
@@ -76,6 +78,8 @@ const decodeContent = (content) => {
76
78
  return Object.assign(Object.assign({}, content), { value: codec_1.SettlementPriceProposal.decode(content.value) });
77
79
  case ProposalTypes.UpdateMarket:
78
80
  return Object.assign(Object.assign({}, content), { value: codec_1.UpdateMarketProposal.decode(content.value) });
81
+ case ProposalTypes.ClientUpdateProposal:
82
+ return Object.assign(Object.assign({}, content), { value: client_1.ClientUpdateProposal.decode(content.value) });
79
83
  default:
80
84
  return exports.emptyProposal;
81
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.3.58",
3
+ "version": "0.3.59",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",