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
34 changes: 0 additions & 34 deletions stablepay-sdk/src/contexts/chains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -68,8 +48,6 @@ export const getChainByNetworkKey = (networkKey) => {
return sepolia;
case 'ethereum-classic':
return etcMainnet;
case 'milkomeda-mainnet':
return milkomeda;
default:
return null;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions stablepay-sdk/src/core/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand All @@ -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';
Expand Down
19 changes: 0 additions & 19 deletions stablepay-sdk/src/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down