Has anyone deployed custom child token using fxportal custom token contracts?

I am trying to deploy custom FxChildTunnelContract using fx–portal’s examples. I am not sure about the steps. Can someone help?

Let’s see. Can you link to the examples please?

Yes, it’s possible to deploy a custom child token using FXPortal custom token contracts, but there are a few things to keep in mind:

  1. Understand the base contract: FXPortal provides a standard ERC-20 or ERC-721 template. Your child token inherits this, so make sure you customize only what’s allowed.

  2. Deployment process:

    • Fork or use the provided custom token contract.

    • Update parameters like name, symbol, and supply.

    • Deploy via the FXPortal deployment script or your preferred environment (e.g., Hardhat or Remix).

  3. Bridging considerations: If you plan to bridge the token to other chains via FXPortal, ensure that the contract follows their bridge compatibility rules (like mint and burn functions for bridging).

  4. Testing first: Always test on a testnet before deploying on mainnet. FXPortal has testnet support, and this helps prevent mistakes with minting or supply logic.

  5. Community tip: Check if there are existing deployed examples in the FXPortal docs or GitHub repo. Seeing working contracts can save a lot of trial and error.

Hi Farjmand,

Deploying a custom FxChildTunnel can be confusing at first. You’ll want to deploy the child tunnel on the child chain first, then deploy the root tunnel and map both contracts via the FxPortal manager. Also make sure your child token correctly implements the required mint/burn logic for deposits and withdrawals.

For additional context and walkthrough-style references on complex contract deployments, developer references can be helpful when working through custom FxPortal setups.

Hope this helps.