Skip to content

Commit

Permalink
chore: include devnet config (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Sep 7, 2024
1 parent 0d5657f commit 7159c5b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions packages/app-commons/src/utils/contractIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ export async function getBridgeTokenContracts() {

return bridgeTokenContract;
}

if (FUEL_CHAIN_NAME === 'fuelDevnet') {
const FUEL_TokenContract =
'0x12f300d6d2b286dd5d290b709e0d3d73acc23c87ec10d349d4386b9524d740a1';
const FUEL_TokenAsset = getContractTokenId(FUEL_TokenContract, ETH_ERC20);
const bridgeTokenContract = {
ETH_ERC20,
FUEL_TokenContract,
FUEL_TokenAsset,
FUEL_TokenContractImplementation: undefined, // it will get in the application if it's not provided from configs.
};

return bridgeTokenContract;
}
}
}

Expand Down Expand Up @@ -84,6 +98,17 @@ export async function getBridgeSolidityContracts() {

return bridgeSolidityContracts;
}

if (FUEL_CHAIN_NAME === 'fuelDevnet') {
bridgeSolidityContracts = {
FuelChainState: '0x2e87c41C9B3d932b6DA3C805baEfB7bbe863fCc6',
FuelMessagePortal: '0x768f9459E3339A1F7d59CcF24C80Eb4A711a01FB',
FuelERC20GatewayV4: '0x8B96Ed4aA36041B91a8510A1c644fC72177B5eA0',
FuelERC721Gateway: '0x',
};

return bridgeSolidityContracts;
}
}

return bridgeSolidityContracts;
Expand Down
2 changes: 1 addition & 1 deletion packages/app-explorer/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NEXT_PUBLIC_ALCHEMY_ID=
NEXT_PUBLIC_INFURA_ID=
NEXT_PUBLIC_WALLETCONNECT_ID=
NEXT_PUBLIC_ETH_CHAIN_NAME=foundry # options: foundry, sepolia
NEXT_PUBLIC_FUEL_CHAIN_NAME=fuelLocal # options: fuelLocal, fuelTestnet
NEXT_PUBLIC_FUEL_CHAIN_NAME=fuelLocal # options: fuelLocal, fuelTestnet, fuelDevnet
NEXT_PUBLIC_FUEL_VERSION=0.35.0
NEXT_PUBLIC_IS_PUBLIC_PREVIEW=true
NEXT_PUBLIC_WALLET_INSTALL=https://chrome.google.com/webstore/detail/fuel-wallet/dldjpboieedgcmpkchcjcbijingjcgok
Expand Down

0 comments on commit 7159c5b

Please sign in to comment.