@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.
- package/dist/cjs/constants/tokens.11142220.js +1 -1
- package/dist/cjs/constants/tokens.d.ts +4 -4
- package/dist/cjs/constants/tokens.js +5 -5
- package/dist/esm/constants/tokens.11142220.js +1 -1
- package/dist/esm/constants/tokens.d.ts +4 -4
- package/dist/esm/constants/tokens.js +5 -5
- package/package.json +1 -1
|
@@ -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:
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
203
|
+
function findTokenBySymbol(symbol, chainId) {
|
|
204
204
|
const tokens = getCachedTokensSync(chainId);
|
|
205
205
|
return tokens.find((token) => token.symbol === symbol);
|
|
206
206
|
}
|
|
@@ -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(
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
174
|
+
export function findTokenBySymbol(symbol, chainId) {
|
|
175
175
|
const tokens = getCachedTokensSync(chainId);
|
|
176
176
|
return tokens.find((token) => token.symbol === symbol);
|
|
177
177
|
}
|