@mento-protocol/mento-sdk 1.0.6 → 1.0.8

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/esm/mento.js CHANGED
@@ -66,8 +66,8 @@ export class Mento {
66
66
  * Get tradable pairs for backwards compatibility
67
67
  * @returns an array of Asset pairs
68
68
  */
69
- getTradablePairs() {
70
- return __awaiter(this, arguments, void 0, function* ({ cached = true, } = {}) {
69
+ getTradablePairs({ cached = true, } = {}) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
71
  return (yield this.getTradablePairsWithPath({ cached })).map((pair) => pair.assets);
72
72
  });
73
73
  }
@@ -128,8 +128,8 @@ export class Mento {
128
128
  * the two Asset objects, and an array of exchange details for each hop.
129
129
  * @returns An array of TradablePair objects representing available trade routes.
130
130
  */
131
- getTradablePairsWithPath() {
132
- return __awaiter(this, arguments, void 0, function* ({ cached = true, } = {}) {
131
+ getTradablePairsWithPath({ cached = true, } = {}) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
133
  // Get tradable pairs from cache if available.
134
134
  if (cached) {
135
135
  const value = getCachedTradablePairs(yield getChainId(this.signerOrProvider));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mento-protocol/mento-sdk",
3
3
  "description": "Official SDK for interacting with the Mento Protocol",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "license": "MIT",
6
6
  "author": "Mento Labs",
7
7
  "keywords": [