@mento-protocol/mento-sdk 1.13.0 → 1.14.0

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // This file is auto-generated. Do not edit manually.
3
- // Generated on 2025-10-02T13:52:20.427Z
3
+ // Generated on 2025-10-02T13:54:45.876Z
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.tokens11142220 = void 0;
6
6
  exports.tokens11142220 = [
@@ -53,15 +53,15 @@ export declare const TOKEN_ADDRESSES_BY_CHAIN: {
53
53
  };
54
54
  /**
55
55
  * Helper function to get token address by symbol for a specific chain
56
- * @param chainId - The chain ID
57
56
  * @param symbol - The token symbol
57
+ * @param chainId - The chain ID
58
58
  * @returns The token address or undefined if not found
59
59
  */
60
- export declare function getTokenAddress(chainId: number, symbol: TokenSymbol): string | undefined;
60
+ export declare function getTokenAddress(symbol: TokenSymbol, chainId: number): string | undefined;
61
61
  /**
62
62
  * Helper function to find a token by symbol in the cached tokens
63
- * @param chainId - The chain ID
64
63
  * @param symbol - The token symbol to search for
64
+ * @param chainId - The chain ID
65
65
  * @returns The token object or undefined if not found
66
66
  */
67
- export declare function findTokenBySymbol(chainId: number, symbol: string): Token | undefined;
67
+ export declare function findTokenBySymbol(symbol: string, chainId: number): Token | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // This file is auto-generated. Do not edit manually.
3
- // Generated on 2025-10-02T13:52:20.430Z
3
+ // Generated on 2025-10-02T13:54:45.878Z
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
6
6
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -185,22 +185,22 @@ exports.TOKEN_ADDRESSES_BY_CHAIN = {
185
185
  };
186
186
  /**
187
187
  * Helper function to get token address by symbol for a specific chain
188
- * @param chainId - The chain ID
189
188
  * @param symbol - The token symbol
189
+ * @param chainId - The chain ID
190
190
  * @returns The token address or undefined if not found
191
191
  */
192
- function getTokenAddress(chainId, symbol) {
192
+ function getTokenAddress(symbol, chainId) {
193
193
  var _a;
194
194
  return (_a = exports.TOKEN_ADDRESSES_BY_CHAIN[chainId]) === null || _a === void 0 ? void 0 : _a[symbol];
195
195
  }
196
196
  exports.getTokenAddress = getTokenAddress;
197
197
  /**
198
198
  * Helper function to find a token by symbol in the cached tokens
199
- * @param chainId - The chain ID
200
199
  * @param symbol - The token symbol to search for
200
+ * @param chainId - The chain ID
201
201
  * @returns The token object or undefined if not found
202
202
  */
203
- function findTokenBySymbol(chainId, symbol) {
203
+ function findTokenBySymbol(symbol, chainId) {
204
204
  const tokens = getCachedTokensSync(chainId);
205
205
  return tokens.find((token) => token.symbol === symbol);
206
206
  }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- // Generated on 2025-10-02T13:52:20.427Z
2
+ // Generated on 2025-10-02T13:54:45.876Z
3
3
  export const tokens11142220 = [
4
4
  {
5
5
  "address": "0x9883d788d40F1C7595a780ed881Ea833C7743B4B",
@@ -53,15 +53,15 @@ export declare const TOKEN_ADDRESSES_BY_CHAIN: {
53
53
  };
54
54
  /**
55
55
  * Helper function to get token address by symbol for a specific chain
56
- * @param chainId - The chain ID
57
56
  * @param symbol - The token symbol
57
+ * @param chainId - The chain ID
58
58
  * @returns The token address or undefined if not found
59
59
  */
60
- export declare function getTokenAddress(chainId: number, symbol: TokenSymbol): string | undefined;
60
+ export declare function getTokenAddress(symbol: TokenSymbol, chainId: number): string | undefined;
61
61
  /**
62
62
  * Helper function to find a token by symbol in the cached tokens
63
- * @param chainId - The chain ID
64
63
  * @param symbol - The token symbol to search for
64
+ * @param chainId - The chain ID
65
65
  * @returns The token object or undefined if not found
66
66
  */
67
- export declare function findTokenBySymbol(chainId: number, symbol: string): Token | undefined;
67
+ export declare function findTokenBySymbol(symbol: string, chainId: number): Token | undefined;
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- // Generated on 2025-10-02T13:52:20.430Z
2
+ // Generated on 2025-10-02T13:54:45.878Z
3
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
5
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -157,21 +157,21 @@ export const TOKEN_ADDRESSES_BY_CHAIN = {
157
157
  };
158
158
  /**
159
159
  * Helper function to get token address by symbol for a specific chain
160
- * @param chainId - The chain ID
161
160
  * @param symbol - The token symbol
161
+ * @param chainId - The chain ID
162
162
  * @returns The token address or undefined if not found
163
163
  */
164
- export function getTokenAddress(chainId, symbol) {
164
+ export function getTokenAddress(symbol, chainId) {
165
165
  var _a;
166
166
  return (_a = TOKEN_ADDRESSES_BY_CHAIN[chainId]) === null || _a === void 0 ? void 0 : _a[symbol];
167
167
  }
168
168
  /**
169
169
  * Helper function to find a token by symbol in the cached tokens
170
- * @param chainId - The chain ID
171
170
  * @param symbol - The token symbol to search for
171
+ * @param chainId - The chain ID
172
172
  * @returns The token object or undefined if not found
173
173
  */
174
- export function findTokenBySymbol(chainId, symbol) {
174
+ export function findTokenBySymbol(symbol, chainId) {
175
175
  const tokens = getCachedTokensSync(chainId);
176
176
  return tokens.find((token) => token.symbol === symbol);
177
177
  }
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.13.0",
4
+ "version": "1.14.0",
5
5
  "license": "MIT",
6
6
  "author": "Mento Labs",
7
7
  "keywords": [