@mento-protocol/mento-sdk 1.15.1 → 1.15.4

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.
@@ -16,39 +16,34 @@ export declare function getCachedTokens(chainId: number): Promise<readonly Token
16
16
  */
17
17
  export declare function getCachedTokensSync(chainId: number): readonly Token[];
18
18
  /**
19
- * Type-safe token symbols available across all chains
19
+ * Token symbol enum for type-safe access across all chains
20
20
  * Note: Not all tokens are available on all chains - check TOKEN_ADDRESSES_BY_CHAIN
21
21
  */
22
- export type TokenSymbol = 'BridgedEUROC' | 'BridgedUSDC' | 'CELO' | 'PUSO' | 'USDC' | 'USDT' | 'USD₮' | 'axlEUROC' | 'axlUSDC' | 'cAUD' | 'cCAD' | 'cCHF' | 'cCOP' | 'cEUR' | 'cGBP' | 'cGHS' | 'cJPY' | 'cKES' | 'cNGN' | 'cREAL' | 'cUSD' | 'cZAR' | 'eXOF';
23
- /**
24
- * Enum-like object for accessing token symbols
25
- * Use this in consuming packages: TokenSymbol.CELO, TokenSymbol.cUSD, etc.
26
- */
27
- export declare const TokenSymbol: {
28
- readonly BridgedEUROC: "BridgedEUROC";
29
- readonly BridgedUSDC: "BridgedUSDC";
30
- readonly CELO: "CELO";
31
- readonly PUSO: "PUSO";
32
- readonly USDC: "USDC";
33
- readonly USDT: "USDT";
34
- readonly USD_: "USD₮";
35
- readonly axlEUROC: "axlEUROC";
36
- readonly axlUSDC: "axlUSDC";
37
- readonly cAUD: "cAUD";
38
- readonly cCAD: "cCAD";
39
- readonly cCHF: "cCHF";
40
- readonly cCOP: "cCOP";
41
- readonly cEUR: "cEUR";
42
- readonly cGBP: "cGBP";
43
- readonly cGHS: "cGHS";
44
- readonly cJPY: "cJPY";
45
- readonly cKES: "cKES";
46
- readonly cNGN: "cNGN";
47
- readonly cREAL: "cREAL";
48
- readonly cUSD: "cUSD";
49
- readonly cZAR: "cZAR";
50
- readonly eXOF: "eXOF";
51
- };
22
+ export declare enum TokenSymbol {
23
+ BridgedEUROC = "BridgedEUROC",
24
+ BridgedUSDC = "BridgedUSDC",
25
+ CELO = "CELO",
26
+ PUSO = "PUSO",
27
+ USDC = "USDC",
28
+ USDT = "USDT",
29
+ USD_ = "USD\u20AE",
30
+ axlEUROC = "axlEUROC",
31
+ axlUSDC = "axlUSDC",
32
+ cAUD = "cAUD",
33
+ cCAD = "cCAD",
34
+ cCHF = "cCHF",
35
+ cCOP = "cCOP",
36
+ cEUR = "cEUR",
37
+ cGBP = "cGBP",
38
+ cGHS = "cGHS",
39
+ cJPY = "cJPY",
40
+ cKES = "cKES",
41
+ cNGN = "cNGN",
42
+ cREAL = "cREAL",
43
+ cUSD = "cUSD",
44
+ cZAR = "cZAR",
45
+ eXOF = "eXOF"
46
+ }
52
47
  /**
53
48
  * Token addresses mapped by chain ID and symbol
54
49
  * Use this for type-safe token address lookups
@@ -56,17 +51,3 @@ export declare const TokenSymbol: {
56
51
  export declare const TOKEN_ADDRESSES_BY_CHAIN: {
57
52
  [chainId: number]: Partial<Record<TokenSymbol, string>>;
58
53
  };
59
- /**
60
- * Helper function to get token address by symbol for a specific chain
61
- * @param symbol - The token symbol
62
- * @param chainId - The chain ID
63
- * @returns The token address or undefined if not found
64
- */
65
- export declare function getTokenAddress(symbol: TokenSymbol, chainId: number): string | undefined;
66
- /**
67
- * Helper function to find a token by symbol in the cached tokens
68
- * @param symbol - The token symbol to search for
69
- * @param chainId - The chain ID
70
- * @returns The token object or undefined if not found
71
- */
72
- 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-06T11:40:10.818Z
3
+ // Generated on 2025-10-06T16:08:43.519Z
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);
@@ -34,7 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  });
35
35
  };
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.findTokenBySymbol = exports.getTokenAddress = exports.TOKEN_ADDRESSES_BY_CHAIN = exports.TokenSymbol = exports.getCachedTokensSync = exports.getCachedTokens = void 0;
37
+ exports.TOKEN_ADDRESSES_BY_CHAIN = exports.TokenSymbol = exports.getCachedTokensSync = exports.getCachedTokens = void 0;
38
38
  /**
39
39
  * Gets cached tokens for a specific chain ID
40
40
  * @param chainId - The chain ID to get cached tokens for
@@ -82,34 +82,35 @@ function getCachedTokensSync(chainId) {
82
82
  }
83
83
  exports.getCachedTokensSync = getCachedTokensSync;
84
84
  /**
85
- * Enum-like object for accessing token symbols
86
- * Use this in consuming packages: TokenSymbol.CELO, TokenSymbol.cUSD, etc.
85
+ * Token symbol enum for type-safe access across all chains
86
+ * Note: Not all tokens are available on all chains - check TOKEN_ADDRESSES_BY_CHAIN
87
87
  */
88
- exports.TokenSymbol = {
89
- BridgedEUROC: 'BridgedEUROC',
90
- BridgedUSDC: 'BridgedUSDC',
91
- CELO: 'CELO',
92
- PUSO: 'PUSO',
93
- USDC: 'USDC',
94
- USDT: 'USDT',
95
- USD_: 'USD₮',
96
- axlEUROC: 'axlEUROC',
97
- axlUSDC: 'axlUSDC',
98
- cAUD: 'cAUD',
99
- cCAD: 'cCAD',
100
- cCHF: 'cCHF',
101
- cCOP: 'cCOP',
102
- cEUR: 'cEUR',
103
- cGBP: 'cGBP',
104
- cGHS: 'cGHS',
105
- cJPY: 'cJPY',
106
- cKES: 'cKES',
107
- cNGN: 'cNGN',
108
- cREAL: 'cREAL',
109
- cUSD: 'cUSD',
110
- cZAR: 'cZAR',
111
- eXOF: 'eXOF',
112
- };
88
+ var TokenSymbol;
89
+ (function (TokenSymbol) {
90
+ TokenSymbol["BridgedEUROC"] = "BridgedEUROC";
91
+ TokenSymbol["BridgedUSDC"] = "BridgedUSDC";
92
+ TokenSymbol["CELO"] = "CELO";
93
+ TokenSymbol["PUSO"] = "PUSO";
94
+ TokenSymbol["USDC"] = "USDC";
95
+ TokenSymbol["USDT"] = "USDT";
96
+ TokenSymbol["USD_"] = "USD\u20AE";
97
+ TokenSymbol["axlEUROC"] = "axlEUROC";
98
+ TokenSymbol["axlUSDC"] = "axlUSDC";
99
+ TokenSymbol["cAUD"] = "cAUD";
100
+ TokenSymbol["cCAD"] = "cCAD";
101
+ TokenSymbol["cCHF"] = "cCHF";
102
+ TokenSymbol["cCOP"] = "cCOP";
103
+ TokenSymbol["cEUR"] = "cEUR";
104
+ TokenSymbol["cGBP"] = "cGBP";
105
+ TokenSymbol["cGHS"] = "cGHS";
106
+ TokenSymbol["cJPY"] = "cJPY";
107
+ TokenSymbol["cKES"] = "cKES";
108
+ TokenSymbol["cNGN"] = "cNGN";
109
+ TokenSymbol["cREAL"] = "cREAL";
110
+ TokenSymbol["cUSD"] = "cUSD";
111
+ TokenSymbol["cZAR"] = "cZAR";
112
+ TokenSymbol["eXOF"] = "eXOF";
113
+ })(TokenSymbol = exports.TokenSymbol || (exports.TokenSymbol = {}));
113
114
  /**
114
115
  * Token addresses mapped by chain ID and symbol
115
116
  * Use this for type-safe token address lookups
@@ -182,25 +183,3 @@ exports.TOKEN_ADDRESSES_BY_CHAIN = {
182
183
  USDT: '0xCA53d9b72646B254d29EBeEb4c5cde7BB4bb59e0',
183
184
  },
184
185
  };
185
- /**
186
- * Helper function to get token address by symbol for a specific chain
187
- * @param symbol - The token symbol
188
- * @param chainId - The chain ID
189
- * @returns The token address or undefined if not found
190
- */
191
- function getTokenAddress(symbol, chainId) {
192
- var _a;
193
- return (_a = exports.TOKEN_ADDRESSES_BY_CHAIN[chainId]) === null || _a === void 0 ? void 0 : _a[symbol];
194
- }
195
- exports.getTokenAddress = getTokenAddress;
196
- /**
197
- * Helper function to find a token by symbol in the cached tokens
198
- * @param symbol - The token symbol to search for
199
- * @param chainId - The chain ID
200
- * @returns The token object or undefined if not found
201
- */
202
- function findTokenBySymbol(symbol, chainId) {
203
- const tokens = getCachedTokensSync(chainId);
204
- return tokens.find((token) => token.symbol === symbol);
205
- }
206
- exports.findTokenBySymbol = findTokenBySymbol;
@@ -4,6 +4,7 @@ import { Address, TradingLimit, TradingLimitsConfig, TradingLimitsState } from '
4
4
  import { Identifier } from './constants/addresses';
5
5
  import { TokenSymbol } from './constants/tokens';
6
6
  import { TradablePairWithSpread } from './constants/tradablePairs';
7
+ export { TokenSymbol } from './constants/tokens';
7
8
  export interface Exchange {
8
9
  providerAddr: Address;
9
10
  id: string;
package/dist/cjs/mento.js CHANGED
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
32
  });
10
33
  };
11
34
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Mento = void 0;
35
+ exports.Mento = exports.TokenSymbol = void 0;
13
36
  const mento_core_ts_1 = require("@mento-protocol/mento-core-ts");
14
37
  const ethers_1 = require("ethers");
15
38
  const limits_1 = require("./limits");
@@ -19,6 +42,9 @@ const mento_router_ts_1 = require("mento-router-ts");
19
42
  const addresses_1 = require("./constants/addresses");
20
43
  const tradablePairs_1 = require("./constants/tradablePairs");
21
44
  const routeUtils_1 = require("./routeUtils");
45
+ // Re-export TokenSymbol for use in auto-generated files and consuming packages
46
+ var tokens_1 = require("./constants/tokens");
47
+ Object.defineProperty(exports, "TokenSymbol", { enumerable: true, get: function () { return tokens_1.TokenSymbol; } });
22
48
  class Mento {
23
49
  /**
24
50
  * This constructor is private, use the static create or createWithParams methods
@@ -172,7 +198,7 @@ class Mento {
172
198
  * @throws Error if no cached tokens are available for the current chain or if chainId is not yet initialized
173
199
  */
174
200
  getTokens() {
175
- if (this.cachedChainId === null) {
201
+ if (!this.cachedChainId) {
176
202
  throw new Error('Chain ID not yet initialized. Use Mento.create() to initialize the SDK, or use getTokensAsync() instead.');
177
203
  }
178
204
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -193,8 +219,7 @@ class Mento {
193
219
  return __awaiter(this, void 0, void 0, function* () {
194
220
  // If cached is true, try to use the static cache first
195
221
  if (cached) {
196
- // eslint-disable-next-line @typescript-eslint/no-var-requires
197
- const { getCachedTokens } = require('./constants/tokens');
222
+ const { getCachedTokens } = yield Promise.resolve().then(() => __importStar(require('./constants/tokens')));
198
223
  const chainId = yield this.chainId();
199
224
  const cachedTokens = yield getCachedTokens(chainId);
200
225
  if (cachedTokens) {
@@ -626,7 +651,7 @@ class Mento {
626
651
  }
627
652
  chainId() {
628
653
  return __awaiter(this, void 0, void 0, function* () {
629
- if (this.cachedChainId == null) {
654
+ if (!this.cachedChainId) {
630
655
  this.cachedChainId = yield (0, utils_1.getChainId)(this.signerOrProvider);
631
656
  }
632
657
  return this.cachedChainId;
@@ -1,7 +1,7 @@
1
1
  import { BigNumberish, providers, Signer } from 'ethers';
2
2
  import { TokenSymbol } from './constants';
3
3
  import { Address } from './interfaces';
4
- import { TradablePair } from './mento';
4
+ import { Token, TradablePair } from './mento';
5
5
  /**
6
6
  * Gets the chain ID from a signer or provider
7
7
  * @param signerOrProvider an ethers provider or signer
@@ -56,5 +56,18 @@ export declare function increaseAllowance(tokenAddr: string, spender: string, am
56
56
  * @param symbol the token symbol to find (case-insensitive)
57
57
  * @returns the token address if found, null otherwise
58
58
  */
59
- export declare function findTokenBySymbolInTradablePairs(pairs: readonly TradablePair[], symbol: string): string | null;
60
- export declare function capitalize(str: string): string;
59
+ export declare function findTokenAddressBySymbolInTradablePairs(symbol: TokenSymbol, pairs: readonly TradablePair[]): Address | null;
60
+ export declare function capitalize(str: string): string; /**
61
+ * Helper function to get token address by symbol for a specific chain
62
+ * @param symbol - The token symbol
63
+ * @param chainId - The chain ID
64
+ * @returns The token address or undefined if not found
65
+ */
66
+ export declare function getTokenAddress(symbol: TokenSymbol, chainId: number): string | undefined;
67
+ /**
68
+ * Helper function to find a token by symbol in the cached tokens
69
+ * @param symbol - The token symbol to search for
70
+ * @param chainId - The chain ID
71
+ * @returns The token object or undefined if not found
72
+ */
73
+ export declare function findTokenBySymbol(symbol: string, chainId: number): Token | undefined;
package/dist/cjs/utils.js CHANGED
@@ -9,8 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.capitalize = exports.findTokenBySymbolInTradablePairs = exports.increaseAllowance = exports.getDecimalsFromTokenAddress = exports.getNameFromTokenAddress = exports.getSymbolFromTokenAddress = exports.validateSignerOrProvider = exports.validateSigner = exports.getChainId = void 0;
12
+ exports.findTokenBySymbol = exports.getTokenAddress = exports.capitalize = exports.findTokenAddressBySymbolInTradablePairs = exports.increaseAllowance = exports.getDecimalsFromTokenAddress = exports.getNameFromTokenAddress = exports.getSymbolFromTokenAddress = exports.validateSignerOrProvider = exports.validateSigner = exports.getChainId = void 0;
13
13
  const ethers_1 = require("ethers");
14
+ const tokens_1 = require("./constants/tokens");
14
15
  /**
15
16
  * Gets the chain ID from a signer or provider
16
17
  * @param signerOrProvider an ethers provider or signer
@@ -123,18 +124,35 @@ exports.increaseAllowance = increaseAllowance;
123
124
  * @param symbol the token symbol to find (case-insensitive)
124
125
  * @returns the token address if found, null otherwise
125
126
  */
126
- function findTokenBySymbolInTradablePairs(pairs, symbol) {
127
- for (const pair of pairs) {
128
- for (const asset of pair.assets) {
129
- if (asset.symbol.toLowerCase() === symbol.toLowerCase()) {
130
- return asset.address;
131
- }
132
- }
133
- }
134
- return null;
127
+ function findTokenAddressBySymbolInTradablePairs(symbol, pairs) {
128
+ var _a, _b;
129
+ return ((_b = (_a = pairs
130
+ .flatMap((pair) => pair.assets)
131
+ .find((asset) => asset.symbol.toLowerCase() === symbol.toLowerCase())) === null || _a === void 0 ? void 0 : _a.address) !== null && _b !== void 0 ? _b : null);
135
132
  }
136
- exports.findTokenBySymbolInTradablePairs = findTokenBySymbolInTradablePairs;
133
+ exports.findTokenAddressBySymbolInTradablePairs = findTokenAddressBySymbolInTradablePairs;
137
134
  function capitalize(str) {
138
135
  return str.charAt(0).toUpperCase() + str.slice(1);
139
- }
136
+ } /**
137
+ * Helper function to get token address by symbol for a specific chain
138
+ * @param symbol - The token symbol
139
+ * @param chainId - The chain ID
140
+ * @returns The token address or undefined if not found
141
+ */
140
142
  exports.capitalize = capitalize;
143
+ function getTokenAddress(symbol, chainId) {
144
+ var _a;
145
+ return (_a = tokens_1.TOKEN_ADDRESSES_BY_CHAIN[chainId]) === null || _a === void 0 ? void 0 : _a[symbol];
146
+ }
147
+ exports.getTokenAddress = getTokenAddress;
148
+ /**
149
+ * Helper function to find a token by symbol in the cached tokens
150
+ * @param symbol - The token symbol to search for
151
+ * @param chainId - The chain ID
152
+ * @returns The token object or undefined if not found
153
+ */
154
+ function findTokenBySymbol(symbol, chainId) {
155
+ const tokens = (0, tokens_1.getCachedTokensSync)(chainId);
156
+ return tokens.find((token) => token.symbol === symbol);
157
+ }
158
+ exports.findTokenBySymbol = findTokenBySymbol;
@@ -1,124 +1,125 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- // Generated on 2025-10-06T11:40:10.815Z
2
+ // Generated on 2025-10-06T16:08:43.517Z
3
+ import { TokenSymbol } from '../mento';
3
4
  export const tokens11142220 = [
4
5
  {
5
- "address": "0x9883d788d40F1C7595a780ed881Ea833C7743B4B",
6
- "symbol": "axlEUROC",
7
- "name": "Mento Mock axlEUROC",
8
- "decimals": 18
6
+ address: '0x9883d788d40F1C7595a780ed881Ea833C7743B4B',
7
+ symbol: TokenSymbol.axlEUROC,
8
+ name: 'Mento Mock axlEUROC',
9
+ decimals: 18,
9
10
  },
10
11
  {
11
- "address": "0x6285De9DA7C1d329C0451628638908915002d9d1",
12
- "symbol": "axlUSDC",
13
- "name": "Mento Mock axlUSDC",
14
- "decimals": 18
12
+ address: '0x6285De9DA7C1d329C0451628638908915002d9d1',
13
+ symbol: TokenSymbol.axlUSDC,
14
+ name: 'Mento Mock axlUSDC',
15
+ decimals: 18,
15
16
  },
16
17
  {
17
- "address": "0x5873Faeb42F3563dcD77F0fbbdA818E6d6DA3139",
18
- "symbol": "cAUD",
19
- "name": "Celo Australian Dollar",
20
- "decimals": 18
18
+ address: '0x5873Faeb42F3563dcD77F0fbbdA818E6d6DA3139',
19
+ symbol: TokenSymbol.cAUD,
20
+ name: 'Celo Australian Dollar',
21
+ decimals: 18,
21
22
  },
22
23
  {
23
- "address": "0xF151c9a13b78C84f93f50B8b3bC689fedc134F60",
24
- "symbol": "cCAD",
25
- "name": "Celo Canadian Dollar",
26
- "decimals": 18
24
+ address: '0xF151c9a13b78C84f93f50B8b3bC689fedc134F60',
25
+ symbol: TokenSymbol.cCAD,
26
+ name: 'Celo Canadian Dollar',
27
+ decimals: 18,
27
28
  },
28
29
  {
29
- "address": "0x284E9b7B623eAE866914b7FA0eB720C2Bb3C2980",
30
- "symbol": "cCHF",
31
- "name": "Celo Swiss Franc",
32
- "decimals": 18
30
+ address: '0x284E9b7B623eAE866914b7FA0eB720C2Bb3C2980',
31
+ symbol: TokenSymbol.cCHF,
32
+ name: 'Celo Swiss Franc',
33
+ decimals: 18,
33
34
  },
34
35
  {
35
- "address": "0x5F8d55c3627d2dc0a2B4afa798f877242F382F67",
36
- "symbol": "cCOP",
37
- "name": "Celo Colombian Peso",
38
- "decimals": 18
36
+ address: '0x5F8d55c3627d2dc0a2B4afa798f877242F382F67',
37
+ symbol: TokenSymbol.cCOP,
38
+ name: 'Celo Colombian Peso',
39
+ decimals: 18,
39
40
  },
40
41
  {
41
- "address": "0x471EcE3750Da237f93B8E339c536989b8978a438",
42
- "symbol": "CELO",
43
- "name": "Celo native asset",
44
- "decimals": 18
42
+ address: '0x471EcE3750Da237f93B8E339c536989b8978a438',
43
+ symbol: TokenSymbol.CELO,
44
+ name: 'Celo native asset',
45
+ decimals: 18,
45
46
  },
46
47
  {
47
- "address": "0xA99dC247d6b7B2E3ab48a1fEE101b83cD6aCd82a",
48
- "symbol": "cEUR",
49
- "name": "Celo Euro",
50
- "decimals": 18
48
+ address: '0xA99dC247d6b7B2E3ab48a1fEE101b83cD6aCd82a',
49
+ symbol: TokenSymbol.cEUR,
50
+ name: 'Celo Euro',
51
+ decimals: 18,
51
52
  },
52
53
  {
53
- "address": "0x85F5181Abdbf0e1814Fc4358582Ae07b8eBA3aF3",
54
- "symbol": "cGBP",
55
- "name": "Celo British Pound",
56
- "decimals": 18
54
+ address: '0x85F5181Abdbf0e1814Fc4358582Ae07b8eBA3aF3',
55
+ symbol: TokenSymbol.cGBP,
56
+ name: 'Celo British Pound',
57
+ decimals: 18,
57
58
  },
58
59
  {
59
- "address": "0x5e94B8C872bD47BC4255E60ECBF44D5E66e7401C",
60
- "symbol": "cGHS",
61
- "name": "Celo Ghanaian Cedi",
62
- "decimals": 18
60
+ address: '0x5e94B8C872bD47BC4255E60ECBF44D5E66e7401C',
61
+ symbol: TokenSymbol.cGHS,
62
+ name: 'Celo Ghanaian Cedi',
63
+ decimals: 18,
63
64
  },
64
65
  {
65
- "address": "0x85Bee67D435A39f7467a8a9DE34a5B73D25Df426",
66
- "symbol": "cJPY",
67
- "name": "Celo Japanese Yen",
68
- "decimals": 18
66
+ address: '0x85Bee67D435A39f7467a8a9DE34a5B73D25Df426',
67
+ symbol: TokenSymbol.cJPY,
68
+ name: 'Celo Japanese Yen',
69
+ decimals: 18,
69
70
  },
70
71
  {
71
- "address": "0xC7e4635651E3e3Af82b61d3E23c159438daE3BbF",
72
- "symbol": "cKES",
73
- "name": "Celo Kenyan Shilling",
74
- "decimals": 18
72
+ address: '0xC7e4635651E3e3Af82b61d3E23c159438daE3BbF',
73
+ symbol: TokenSymbol.cKES,
74
+ name: 'Celo Kenyan Shilling',
75
+ decimals: 18,
75
76
  },
76
77
  {
77
- "address": "0x3d5ae86F34E2a82771496D140daFAEf3789dF888",
78
- "symbol": "cNGN",
79
- "name": "Celo Nigerian Naira",
80
- "decimals": 18
78
+ address: '0x3d5ae86F34E2a82771496D140daFAEf3789dF888',
79
+ symbol: TokenSymbol.cNGN,
80
+ name: 'Celo Nigerian Naira',
81
+ decimals: 18,
81
82
  },
82
83
  {
83
- "address": "0x2294298942fdc79417DE9E0D740A4957E0e7783a",
84
- "symbol": "cREAL",
85
- "name": "Celo Brazilian Real",
86
- "decimals": 18
84
+ address: '0x2294298942fdc79417DE9E0D740A4957E0e7783a',
85
+ symbol: TokenSymbol.cREAL,
86
+ name: 'Celo Brazilian Real',
87
+ decimals: 18,
87
88
  },
88
89
  {
89
- "address": "0xdE9e4C3ce781b4bA68120d6261cbad65ce0aB00b",
90
- "symbol": "cUSD",
91
- "name": "Celo Dollar",
92
- "decimals": 18
90
+ address: '0xdE9e4C3ce781b4bA68120d6261cbad65ce0aB00b',
91
+ symbol: TokenSymbol.cUSD,
92
+ name: 'Celo Dollar',
93
+ decimals: 18,
93
94
  },
94
95
  {
95
- "address": "0x10CCfB235b0E1Ed394bACE4560C3ed016697687e",
96
- "symbol": "cZAR",
97
- "name": "Celo South African Rand",
98
- "decimals": 18
96
+ address: '0x10CCfB235b0E1Ed394bACE4560C3ed016697687e',
97
+ symbol: TokenSymbol.cZAR,
98
+ name: 'Celo South African Rand',
99
+ decimals: 18,
99
100
  },
100
101
  {
101
- "address": "0x5505b70207aE3B826c1A7607F19F3Bf73444A082",
102
- "symbol": "eXOF",
103
- "name": "ECO CFA",
104
- "decimals": 18
102
+ address: '0x5505b70207aE3B826c1A7607F19F3Bf73444A082',
103
+ symbol: TokenSymbol.eXOF,
104
+ name: 'ECO CFA',
105
+ decimals: 18,
105
106
  },
106
107
  {
107
- "address": "0x0352976d940a2C3FBa0C3623198947Ee1d17869E",
108
- "symbol": "PUSO",
109
- "name": "PUSO",
110
- "decimals": 18
108
+ address: '0x0352976d940a2C3FBa0C3623198947Ee1d17869E',
109
+ symbol: TokenSymbol.PUSO,
110
+ name: 'PUSO',
111
+ decimals: 18,
111
112
  },
112
113
  {
113
- "address": "0xBD63e46Be8eF8D89dFde3054E7b9ECAEb8Ad83e9",
114
- "symbol": "USDC",
115
- "name": "Mento Mock USDC",
116
- "decimals": 18
114
+ address: '0xBD63e46Be8eF8D89dFde3054E7b9ECAEb8Ad83e9',
115
+ symbol: TokenSymbol.USDC,
116
+ name: 'Mento Mock USDC',
117
+ decimals: 18,
117
118
  },
118
119
  {
119
- "address": "0xCA53d9b72646B254d29EBeEb4c5cde7BB4bb59e0",
120
- "symbol": "USDT",
121
- "name": "Mento Mock USDT",
122
- "decimals": 18
123
- }
120
+ address: '0xCA53d9b72646B254d29EBeEb4c5cde7BB4bb59e0',
121
+ symbol: TokenSymbol.USDT,
122
+ name: 'Mento Mock USDT',
123
+ decimals: 18,
124
+ },
124
125
  ];