diff --git a/stablepay-sdk/src/contexts/chains.js b/stablepay-sdk/src/contexts/chains.js index 082a205..cfd9df8 100644 --- a/stablepay-sdk/src/contexts/chains.js +++ b/stablepay-sdk/src/contexts/chains.js @@ -22,26 +22,6 @@ export const mordor = defineChain({ testnet: true, }); -export const milkomeda = defineChain({ - id: 2001, - name: 'Milkomeda C1 Mainnet', - network: 'milkomeda', - nativeCurrency: { - decimals: 18, - name: 'Milkomeda ADA', - symbol: 'mADA', - }, - rpcUrls: { - default: { - http: ['https://rpc-mainnet-cardano-evm.c1.milkomeda.com'], - }, - }, - blockExplorers: { - default: { name: 'Milkomeda Explorer', url: 'https://explorer-mainnet-cardano-evm.c1.milkomeda.com' }, - }, - testnet: false, -}); - export const etcMainnet = defineChain({ id: 61, name: 'Ethereum Classic', @@ -68,8 +48,6 @@ export const getChainByNetworkKey = (networkKey) => { return sepolia; case 'ethereum-classic': return etcMainnet; - case 'milkomeda-mainnet': - return milkomeda; default: return null; } @@ -101,18 +79,6 @@ export const getChainConfigForWallet = (networkKey) => { rpcUrls: ['https://etc.rivet.link'], blockExplorerUrls: ['https://blockscout.com/etc/mainnet'], }; - case 'milkomeda-mainnet': - return { - chainId: `0x${milkomeda.id.toString(16)}`, - chainName: 'Milkomeda C1 Mainnet', - nativeCurrency: { - name: 'Milkomeda ADA', - symbol: 'mADA', - decimals: 18, - }, - rpcUrls: ['https://rpc-mainnet-cardano-evm.c1.milkomeda.com'], - blockExplorerUrls: ['https://explorer-mainnet-cardano-evm.c1.milkomeda.com'], - }; default: return null; } diff --git a/stablepay-sdk/src/core/Transaction.js b/stablepay-sdk/src/core/Transaction.js index eb72988..6a949ad 100644 --- a/stablepay-sdk/src/core/Transaction.js +++ b/stablepay-sdk/src/core/Transaction.js @@ -32,7 +32,6 @@ export class Transaction { console.error('[Transaction] Error fetching contract details:', contractError); if (contractError.message && contractError.message.includes('execution reverted')) { const getNetworkInfo = (uri) => { - if (uri.includes('milkomeda')) return { name: 'Milkomeda', chainId: '2001' }; if (uri.includes('mordor')) return { name: 'Mordor Testnet', chainId: '63' }; if (uri.includes('sepolia')) return { name: 'Sepolia', chainId: '11155111' }; if (uri.includes('etc.rivet.link')) return { name: 'Ethereum Classic', chainId: '61' }; @@ -54,7 +53,6 @@ export class Transaction { console.error('[Transaction] Error initializing transaction:', error); if (error.message && (error.message.includes('CONNECTION ERROR') || error.message.includes('ERR_NAME_NOT_RESOLVED'))) { const getNetworkName = (uri) => { - if (uri.includes('milkomeda')) return 'Milkomeda'; if (uri.includes('mordor')) return 'Mordor'; if (uri.includes('sepolia')) return 'Sepolia'; return 'the selected network'; diff --git a/stablepay-sdk/src/utils/config.js b/stablepay-sdk/src/utils/config.js index 241ce96..567aa02 100644 --- a/stablepay-sdk/src/utils/config.js +++ b/stablepay-sdk/src/utils/config.js @@ -19,25 +19,6 @@ export const networksConfig = { }, feeUI: 0 }, - 'milkomeda-mainnet': { - uri: 'https://rpc-mainnet-cardano-evm.c1.milkomeda.com', - chainId: 2001, - djedAddress: '0x67A30B399F5Ed499C1a6Bc0358FA6e42Ea4BCe76', - tokens: { - stablecoin: { - symbol: 'MOD', - address: '0xcbA90fB1003b9D1bc6a2b66257D2585011b004e9', - decimals: 18, - isDirectTransfer: true - }, - native: { - symbol: 'mADA', - decimals: 18, - isNative: true - } - }, - feeUI: 0 - }, 'ethereum-classic': { uri: 'https://etc.rivet.link', chainId: 61,