@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.cjs +23 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.js +23 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5827,12 +5827,13 @@ var BoltCosmWasmClient = class extends import_core4.BaseClient {
|
|
|
5827
5827
|
let defaultContracts;
|
|
5828
5828
|
let defaultNativeTokenDenom;
|
|
5829
5829
|
let assetsConfig;
|
|
5830
|
+
const isEnvironmentMainnet = environment === "mainnet";
|
|
5830
5831
|
switch (chain) {
|
|
5831
5832
|
case "archway":
|
|
5832
|
-
defaultChainConfig =
|
|
5833
|
-
defaultContracts =
|
|
5834
|
-
defaultNativeTokenDenom =
|
|
5835
|
-
assetsConfig =
|
|
5833
|
+
defaultChainConfig = isEnvironmentMainnet ? ArchwayMainnetChainConfig : ArchwayTestnetChainConfig;
|
|
5834
|
+
defaultContracts = isEnvironmentMainnet ? ArchwayMainnetContracts : ArchwayTestnetContracts;
|
|
5835
|
+
defaultNativeTokenDenom = isEnvironmentMainnet ? ArchwayMainnetNativeTokenDenom : ArchwayTestnetNativeTokenDenom;
|
|
5836
|
+
assetsConfig = isEnvironmentMainnet ? ArchwayMainnetAssets : ArchwayTestnetAssets;
|
|
5836
5837
|
break;
|
|
5837
5838
|
default:
|
|
5838
5839
|
throw new import_core4.InvalidTypeError("A valid value of CosmWasmChain", chain);
|
|
@@ -5982,8 +5983,15 @@ var BoltCosmWasmClient = class extends import_core4.BaseClient {
|
|
|
5982
5983
|
async getAllQuotesByUser(address) {
|
|
5983
5984
|
return await getAllQuotesForUser(this, address);
|
|
5984
5985
|
}
|
|
5985
|
-
/**
|
|
5986
|
-
|
|
5986
|
+
/**
|
|
5987
|
+
* @inheritdoc
|
|
5988
|
+
*
|
|
5989
|
+
* @remarks
|
|
5990
|
+
* In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
|
|
5991
|
+
* The optional `quoteDenom` parameter is ignored as pools are uniquely identified
|
|
5992
|
+
* by their base asset in the current CosmWasm architecture.
|
|
5993
|
+
*/
|
|
5994
|
+
async getPoolByDenom(baseDenom) {
|
|
5987
5995
|
return await getPoolForBase(this, baseDenom);
|
|
5988
5996
|
}
|
|
5989
5997
|
/** @inheritdoc */
|
|
@@ -5998,8 +6006,15 @@ var BoltCosmWasmClient = class extends import_core4.BaseClient {
|
|
|
5998
6006
|
async getAssets() {
|
|
5999
6007
|
return await getAssets(this);
|
|
6000
6008
|
}
|
|
6001
|
-
/**
|
|
6002
|
-
|
|
6009
|
+
/**
|
|
6010
|
+
* @inheritdoc
|
|
6011
|
+
*
|
|
6012
|
+
* @remarks
|
|
6013
|
+
* In the CosmWasm implementation, this method only uses the `baseDenom` parameter.
|
|
6014
|
+
* The optional `quoteDenom` parameter is ignored as pools are uniquely identified
|
|
6015
|
+
* by their base asset in the current CosmWasm architecture.
|
|
6016
|
+
*/
|
|
6017
|
+
async getPoolConfigByDenom(baseDenom) {
|
|
6003
6018
|
return await getSettlementConfigForBase(this, baseDenom);
|
|
6004
6019
|
}
|
|
6005
6020
|
/**
|