carbon-js-sdk 0.3.46 → 0.3.48

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.
@@ -365,12 +365,12 @@ class TokenClient {
365
365
  }
366
366
  getCarbonIbcTokens() {
367
367
  const swthTokens = ibc_1.swthIbcWhitelist.map((chainId) => {
368
- var _a, _b;
368
+ var _a, _b, _c;
369
369
  const blockchain = util_1.IBCUtils.BlockchainMap[chainId];
370
370
  const carbonBlockchain = util_1.IBCUtils.ChainIdBlockchainMap[blockchain !== null && blockchain !== void 0 ? blockchain : ""];
371
371
  const blockchainNum = (_a = util_1.BlockchainUtils.CHAIN_IDS[carbonBlockchain !== null && carbonBlockchain !== void 0 ? carbonBlockchain : ""]) !== null && _a !== void 0 ? _a : 0;
372
- const swthChannel = ibc_1.swthChannels[chainId];
373
- const assetDenom = util_1.IBCUtils.makeIBCMinimalDenom((_b = swthChannel.dstChannel) !== null && _b !== void 0 ? _b : "channel-0", KeplrAccount_1.default.SWTH_CURRENCY.coinMinimalDenom);
372
+ const swthChannel = (_b = ibc_1.swthChannels[chainId]) === null || _b === void 0 ? void 0 : _b.ibc;
373
+ const assetDenom = util_1.IBCUtils.makeIBCMinimalDenom((_c = swthChannel === null || swthChannel === void 0 ? void 0 : swthChannel.dstChannel) !== null && _c !== void 0 ? _c : "channel-0", KeplrAccount_1.default.SWTH_CURRENCY.coinMinimalDenom);
374
374
  return {
375
375
  id: assetDenom,
376
376
  creator: "",
@@ -509,8 +509,9 @@ class TokenClient {
509
509
  setCommonAssetConfig() {
510
510
  // whitelisted ibc tokens
511
511
  ibc_1.ibcWhitelist.forEach((chainId) => {
512
+ var _a;
512
513
  const currencies = util_1.IBCUtils.EmbedChainInfos[chainId].currencies;
513
- const channelObj = ibc_1.swthChannels[chainId];
514
+ const channelObj = (_a = ibc_1.swthChannels[chainId]) === null || _a === void 0 ? void 0 : _a.ibc;
514
515
  currencies.forEach((asset) => {
515
516
  var _a, _b;
516
517
  const channel = asset.coinMinimalDenom !== "swth" ? (_a = channelObj === null || channelObj === void 0 ? void 0 : channelObj.sourceChannel) !== null && _a !== void 0 ? _a : "channel-0" : (_b = channelObj === null || channelObj === void 0 ? void 0 : channelObj.dstChannel) !== null && _b !== void 0 ? _b : "channel-0";
@@ -339,6 +339,7 @@ export declare const TxTypes: {
339
339
  MsgSetWrapperMappingResponse: string;
340
340
  MsgDeleteWrapperMapping: string;
341
341
  MsgDeleteWrapperMappingResponse: string;
342
+ MsgExecuteContract: string;
342
343
  };
343
344
  export { Block } from "./misc/block";
344
345
  export { Message } from "./misc/message";
@@ -444,3 +445,4 @@ export { SettlementPriceProposal, SettlementPriceParams } from "./pricing/propos
444
445
  export { QueryPriceTokenRequest, QueryPriceTokenResponse, QueryPriceSetRequest, QueryPriceSetResponse, QueryAllPriceSetRequest, QueryAllPriceSetResponse, QueryRateRequest, QueryRateResponse, QueryParamsRequest as QueryPricingParamsRequest, QueryParamsResponse as QueryPricingParamsResponse, QueryTokenPriceRequest, QueryTokenPriceResponse, QueryTokenPriceAllRequest, QueryTokenPriceAllResponse } from "./pricing/query";
445
446
  export { ParamsV2130 } from "./pricing/legacy";
446
447
  export { PriceUpdateEvent, TokenPriceUpdateEvent, SetImpactBandEvent, SetSmoothenBandEvent, SetStaleIndexAllowanceEvent, SetBackfillTimeIntervalEvent } from "./pricing/event";
448
+ export { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";