Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/client/src/components/WalletDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const WalletDetailsModal = ({
<Text size="sm">Balance: {burnerBalance}</Text>
<Text fontWeight={700} size="sm">
Do not deposit any funds into this account that you are not
willing to lose. We recommend no more than 0.005 ETH at a
willing to lose. We recommend no more than 0.0005 ETH at a
time.
</Text>
<HStack>
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/lib/mud/supportedChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

import { MUDChain, mudFoundry } from '@latticexyz/common/chains';
import { garnet, MUDChain, mudFoundry } from '@latticexyz/common/chains';

import { DEFAULT_CHAIN_ID } from '../web3';

Expand All @@ -37,7 +37,7 @@ export const baseSepolia = {
},
};

const POSSIBLE_SUPPORTED_CHAINS = [baseSepolia, mudFoundry];
const POSSIBLE_SUPPORTED_CHAINS = [baseSepolia, garnet, mudFoundry];

const getSupportedChains = () => {
if (import.meta.env.DEV) {
Expand All @@ -46,7 +46,7 @@ const getSupportedChains = () => {
);
}

return [baseSepolia];
return [garnet];
};

/*
Expand Down
7 changes: 5 additions & 2 deletions packages/client/src/lib/web3/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { garnet } from '@latticexyz/common/chains';
import { anvil, baseSepolia, Chain } from 'wagmi/chains';

export const WALLET_CONNECT_PROJECT_ID = import.meta.env
Expand All @@ -6,14 +7,16 @@ export const WALLET_CONNECT_PROJECT_ID = import.meta.env
export const CHAIN_NAME_TO_ID: { [key: string]: number } = {
Anvil: anvil.id,
'Base Sepolia': baseSepolia.id,
'Garnet Holesky': garnet.id,
};

export const CHAIN_ID_TO_LABEL: { [key: number]: string } = {
[anvil.id]: 'Anvil',
[baseSepolia.id]: 'Base Sepolia',
[garnet.id]: 'Garnet Holesky',
};

const POSSIBLE_SUPPORTED_CHAINS = [baseSepolia, anvil];
const POSSIBLE_SUPPORTED_CHAINS = [baseSepolia, garnet, anvil];

export const DEFAULT_CHAIN_ID = import.meta.env.VITE_CHAIN_ID
? Number(import.meta.env.VITE_CHAIN_ID)
Expand All @@ -26,7 +29,7 @@ const getSupportedChains = (): readonly [Chain, ...Chain[]] => {
) as unknown as [Chain];
}

return [baseSepolia] as const;
return [garnet] as const;
};

export const SUPPORTED_CHAINS: readonly [Chain, ...Chain[]] =
Expand Down
6 changes: 6 additions & 0 deletions packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ libs = ["node_modules", "lib"]

[profile.base-sepolia]
eth_rpc_url = "https://base-sepolia-rpc.publicnode.com"

[profile.garnet]
eth_rpc_url = "https://rpc.garnetchain.com"

[profile.redstone]
eth_rpc_url = "https://rpc.redstonechain.com"
2 changes: 2 additions & 0 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && DEBUG=mud:* mud deploy --forgeScriptOptions=\"--slow --priority-gas-price=1000000\" --profile=mudFoundry && CHAIN_ID=31337",
"deploy:testnet-base": "DEBUG=mud:* mud deploy --forgeScriptOptions=\"--slow --priority-gas-price=1000\" --profile=base-sepolia",
"deploy:garnet": "DEBUG=mud:* mud deploy --profile=garnet --forgeScriptOptions=\"--slow\"",
"deploy:redstone": "DEBUG=mud:* mud deploy --profile=redstone --forgeScriptOptions=\"--slow\"",
"dev": "pnpm run build && DEBUG=mud:* mud deploy --forgeScriptOptions=\"--slow --priority-gas-price=1000000\" --profile=mudFoundry && CHAIN_ID=31337",
"lint": "pnpm run prettier && pnpm run solhint",
"lint:fix": "pnpm run prettier && pnpm lint:sol-tests --fix && yarn lint:sol-logic --fix",
Expand Down
6 changes: 5 additions & 1 deletion packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"17069": {
"address": "0x19ab668185117ca8be439f1912f54b5f9909a98e",
"blockNumber": 5828147
},
"31337": {
"address": "0xecfb9f0e5589122aab499e60b3caa4c7892dac76"
},
"84532": {
"address": "0x3cf01199a18fd3900c49710563177505085371ca",
"blockNumber": 13947614
}
}
}