diff --git a/demo/package.json b/demo/package.json index 9023c72..1b4dcac 100644 --- a/demo/package.json +++ b/demo/package.json @@ -10,12 +10,12 @@ }, "dependencies": { "@epoch-protocol/epoch-commons-sdk": "file:../../epoch-commons-sdk", - "@epoch-protocol/epoch-intents-sdk": "^1.0.38", + "@epoch-protocol/epoch-intents-sdk": "1.0.39", "@epoch-protocol/epoch-intent-widget": "file:../", - "@miden-sdk/miden-sdk": "0.16.0", - "@miden-sdk/miden-wallet-adapter-base": "0.16.0", - "@miden-sdk/miden-wallet-adapter-react": "0.16.0", - "@miden-sdk/react": "0.16.0", + "@miden-sdk/miden-sdk": "0.17.3", + "@miden-sdk/miden-wallet-adapter-base": "0.17.3", + "@miden-sdk/miden-wallet-adapter-react": "0.17.3", + "@miden-sdk/react": "0.17.3", "@rainbow-me/rainbowkit": "^2.2.9", "@tanstack/react-query": "^5.90.10", "react": "^18.3.1", diff --git a/demo/src/miden/constants/miden-tokens.ts b/demo/src/miden/constants/miden-tokens.ts index 5a0eb9d..d9803bb 100644 --- a/demo/src/miden/constants/miden-tokens.ts +++ b/demo/src/miden/constants/miden-tokens.ts @@ -13,11 +13,12 @@ import { normalizeMidenIdToHex } from "../services/epoch-bridge"; * (e.g. `mtst1qxxxxxxxxxxxxx_xxxxxx`) resolve correctly. */ const MIDEN_FAUCET_DECIMALS: Record = { - "537c15a622074e91188aa894456c52": 6, // USDC - d17976f0809a8191412f2a126625df: 6, // DAI - "6500ca8c2dd69e9147ab7eafad162c": 6, // USDT - "4a09f13153d9cd114c078bfb62a7ec": 6, // WETH - "5fd2e6fd17712c51404d09c2b847f7": 6, // WBTC + "4cbdcaffe75f0a317482224dae6436": 6, // USDCX + "5b043dcb48d5721106f7a1ceb2b804": 6, // USDC + "d41499b8f142ad9119fd9da357a3b2": 6, // DAI + "0ead4362a745e7d1790d75ea779611": 6, // USDT + "9368815c611d5d517914a2c1f0bc8d": 6, // WETH + "1b22d80328f58c5171f67a85f170a3": 6, // WBTC }; function toMapKey(faucetId: string): string { diff --git a/src/earn/miden.ts b/src/earn/miden.ts index 5337c66..cace151 100644 --- a/src/earn/miden.ts +++ b/src/earn/miden.ts @@ -11,15 +11,10 @@ import type { EpochChain, EpochToken } from "../types"; // are the same values the SDK branches its EVM→Miden intent build on. export { EVM_ZERO_ADDRESS, MIDEN_VIRTUAL_CHAIN_ID }; -/** - * Default Miden testnet faucet — USDC on Miden, the `tokens.USDC.contractAddress.Miden` - * entry in the Epoch graph. Used only as a fallback; the live token lists come from - * {@link getMidenGraphTokens}. (The old value `0x2458e544…` was the MIDEN faucet, not - * USDC — SIO resolves faucets against the graph, so that id NO_QUOTE'd.) - */ +/** Official USDCX faucet used as the default Miden testnet asset. */ export const DEFAULT_MIDEN_FAUCET = { - faucetId: "0x537c15a622074e91188aa894456c52", - symbol: "USDC", + faucetId: "0x4cbdcaffe75f0a317482224dae6436", + symbol: "USDCX", decimals: 6, } as const;