@bolt-liquidity-hq/cosmwasm-client 0.1.0-beta.12 → 0.1.0-beta.13

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/index.d.cts CHANGED
@@ -269,16 +269,30 @@ declare class BoltCosmWasmClient extends BaseClient<OfflineSigner, ExecuteResult
269
269
  getAllBaseAssetsLiquidity(): Promise<Record<Address, BaseLiquidityDetails>>;
270
270
  /** @inheritdoc */
271
271
  getAllQuotesByUser(address: Address): Promise<Record<Address, Coin[]>>;
272
- /** @inheritdoc */
273
- getPoolByBaseAsset(baseDenom: string): Promise<Pool>;
272
+ /**
273
+ * @inheritdoc
274
+ *
275
+ * @remarks
276
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
277
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
278
+ * by their base asset in the current CosmWasm architecture.
279
+ */
280
+ getPoolByDenom(baseDenom: string): Promise<Pool>;
274
281
  /** @inheritdoc */
275
282
  getAllPools(): Promise<Pool[]>;
276
283
  /** @inheritdoc */
277
284
  getPoolConfig(poolContractAddress: Address): Promise<PoolConfig>;
278
285
  /** @inheritdoc */
279
286
  getAssets(): Promise<Asset[]>;
280
- /** @inheritdoc */
281
- getPoolConfigByBaseAsset(baseDenom: string): Promise<PoolConfig>;
287
+ /**
288
+ * @inheritdoc
289
+ *
290
+ * @remarks
291
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
292
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
293
+ * by their base asset in the current CosmWasm architecture.
294
+ */
295
+ getPoolConfigByDenom(baseDenom: string): Promise<PoolConfig>;
282
296
  /**
283
297
  * @inheritdoc
284
298
  *
package/dist/index.d.ts CHANGED
@@ -269,16 +269,30 @@ declare class BoltCosmWasmClient extends BaseClient<OfflineSigner, ExecuteResult
269
269
  getAllBaseAssetsLiquidity(): Promise<Record<Address, BaseLiquidityDetails>>;
270
270
  /** @inheritdoc */
271
271
  getAllQuotesByUser(address: Address): Promise<Record<Address, Coin[]>>;
272
- /** @inheritdoc */
273
- getPoolByBaseAsset(baseDenom: string): Promise<Pool>;
272
+ /**
273
+ * @inheritdoc
274
+ *
275
+ * @remarks
276
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
277
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
278
+ * by their base asset in the current CosmWasm architecture.
279
+ */
280
+ getPoolByDenom(baseDenom: string): Promise<Pool>;
274
281
  /** @inheritdoc */
275
282
  getAllPools(): Promise<Pool[]>;
276
283
  /** @inheritdoc */
277
284
  getPoolConfig(poolContractAddress: Address): Promise<PoolConfig>;
278
285
  /** @inheritdoc */
279
286
  getAssets(): Promise<Asset[]>;
280
- /** @inheritdoc */
281
- getPoolConfigByBaseAsset(baseDenom: string): Promise<PoolConfig>;
287
+ /**
288
+ * @inheritdoc
289
+ *
290
+ * @remarks
291
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
292
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
293
+ * by their base asset in the current CosmWasm architecture.
294
+ */
295
+ getPoolConfigByDenom(baseDenom: string): Promise<PoolConfig>;
282
296
  /**
283
297
  * @inheritdoc
284
298
  *
package/dist/index.js CHANGED
@@ -5809,12 +5809,13 @@ var BoltCosmWasmClient = class extends BaseClient {
5809
5809
  let defaultContracts;
5810
5810
  let defaultNativeTokenDenom;
5811
5811
  let assetsConfig;
5812
+ const isEnvironmentMainnet = environment === "mainnet";
5812
5813
  switch (chain) {
5813
5814
  case "archway":
5814
- defaultChainConfig = environment === "mainnet" ? ArchwayMainnetChainConfig : ArchwayTestnetChainConfig;
5815
- defaultContracts = environment === "mainnet" ? ArchwayMainnetContracts : ArchwayTestnetContracts;
5816
- defaultNativeTokenDenom = environment === "mainnet" ? ArchwayMainnetNativeTokenDenom : ArchwayTestnetNativeTokenDenom;
5817
- assetsConfig = environment === "mainnet" ? ArchwayMainnetAssets : ArchwayTestnetAssets;
5815
+ defaultChainConfig = isEnvironmentMainnet ? ArchwayMainnetChainConfig : ArchwayTestnetChainConfig;
5816
+ defaultContracts = isEnvironmentMainnet ? ArchwayMainnetContracts : ArchwayTestnetContracts;
5817
+ defaultNativeTokenDenom = isEnvironmentMainnet ? ArchwayMainnetNativeTokenDenom : ArchwayTestnetNativeTokenDenom;
5818
+ assetsConfig = isEnvironmentMainnet ? ArchwayMainnetAssets : ArchwayTestnetAssets;
5818
5819
  break;
5819
5820
  default:
5820
5821
  throw new InvalidTypeError("A valid value of CosmWasmChain", chain);
@@ -5964,8 +5965,15 @@ var BoltCosmWasmClient = class extends BaseClient {
5964
5965
  async getAllQuotesByUser(address) {
5965
5966
  return await getAllQuotesForUser(this, address);
5966
5967
  }
5967
- /** @inheritdoc */
5968
- async getPoolByBaseAsset(baseDenom) {
5968
+ /**
5969
+ * @inheritdoc
5970
+ *
5971
+ * @remarks
5972
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
5973
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
5974
+ * by their base asset in the current CosmWasm architecture.
5975
+ */
5976
+ async getPoolByDenom(baseDenom) {
5969
5977
  return await getPoolForBase(this, baseDenom);
5970
5978
  }
5971
5979
  /** @inheritdoc */
@@ -5980,8 +5988,15 @@ var BoltCosmWasmClient = class extends BaseClient {
5980
5988
  async getAssets() {
5981
5989
  return await getAssets(this);
5982
5990
  }
5983
- /** @inheritdoc */
5984
- async getPoolConfigByBaseAsset(baseDenom) {
5991
+ /**
5992
+ * @inheritdoc
5993
+ *
5994
+ * @remarks
5995
+ * In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
5996
+ * The optional `quoteDenom` parameter is ignored as pools are uniquely identified
5997
+ * by their base asset in the current CosmWasm architecture.
5998
+ */
5999
+ async getPoolConfigByDenom(baseDenom) {
5985
6000
  return await getSettlementConfigForBase(this, baseDenom);
5986
6001
  }
5987
6002
  /**