@mento-protocol/mento-sdk 3.0.0-rc.1 → 3.1.0-beta.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.
@@ -27,6 +27,47 @@ const celoSepolia = (0, viem_1.defineChain)({
27
27
  },
28
28
  testnet: true,
29
29
  });
30
+ const monadTestnet = (0, viem_1.defineChain)({
31
+ id: 10143,
32
+ name: 'Monad Testnet',
33
+ nativeCurrency: {
34
+ decimals: 18,
35
+ name: 'MON',
36
+ symbol: 'MON',
37
+ },
38
+ rpcUrls: {
39
+ default: {
40
+ http: ['https://testnet-rpc.monad.xyz'],
41
+ },
42
+ },
43
+ blockExplorers: {
44
+ default: {
45
+ name: 'Monad Explorer',
46
+ url: 'https://testnet.monadexplorer.com',
47
+ },
48
+ },
49
+ testnet: true,
50
+ });
51
+ const monad = (0, viem_1.defineChain)({
52
+ id: 143,
53
+ name: 'Monad',
54
+ nativeCurrency: {
55
+ decimals: 18,
56
+ name: 'MON',
57
+ symbol: 'MON',
58
+ },
59
+ rpcUrls: {
60
+ default: {
61
+ http: ['https://rpc.monad.xyz'],
62
+ },
63
+ },
64
+ blockExplorers: {
65
+ default: {
66
+ name: 'Monad Explorer',
67
+ url: 'https://monadvision.com',
68
+ },
69
+ },
70
+ });
30
71
  /**
31
72
  * Get the default RPC URL for a given chain ID
32
73
  * @param chainId - The chain ID
@@ -39,6 +80,10 @@ function getDefaultRpcUrl(chainId) {
39
80
  return 'https://forno.celo.org';
40
81
  case chainId_1.ChainId.CELO_SEPOLIA:
41
82
  return 'https://forno.celo-sepolia.celo-testnet.org';
83
+ case chainId_1.ChainId.MONAD_TESTNET:
84
+ return 'https://testnet-rpc.monad.xyz';
85
+ case chainId_1.ChainId.MONAD:
86
+ return 'https://rpc.monad.xyz';
42
87
  default:
43
88
  throw new Error(`Unsupported chain ID: ${chainId}`);
44
89
  }
@@ -55,6 +100,10 @@ function getChainConfig(chainId) {
55
100
  return chains_1.celo;
56
101
  case chainId_1.ChainId.CELO_SEPOLIA:
57
102
  return celoSepolia;
103
+ case chainId_1.ChainId.MONAD_TESTNET:
104
+ return monadTestnet;
105
+ case chainId_1.ChainId.MONAD:
106
+ return monad;
58
107
  default:
59
108
  throw new Error(`Unsupported chain ID: ${chainId}`);
60
109
  }
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": "3.0.0-rc.1",
4
+ "version": "3.1.0-beta.0",
5
5
  "license": "MIT",
6
6
  "author": "Mento Labs",
7
7
  "keywords": [