Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions demo/src/miden/constants/miden-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import { normalizeMidenIdToHex } from "../services/epoch-bridge";
* (e.g. `mtst1qxxxxxxxxxxxxx_xxxxxx`) resolve correctly.
*/
const MIDEN_FAUCET_DECIMALS: Record<string, number> = {
"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 {
Expand Down
11 changes: 3 additions & 8 deletions src/earn/miden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading