Protocol supported tokens require a Token Handler be deployed. The Token Handler connects the token to the protocol and the Application Manager, providing the ability to configure rules. It is recommended that the Token Handler is deployed prior to the token. See below for details.

Index

Prerequisites

The following steps must already be completed on the target chain:

  1. The Protocol has been deployed
  2. You have deployed an Application Manager
  3. You have created at least one Application Administrator role in the Application Manager.

ERC20 Token Handler Deployment

  1. Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER and DEPLOYMENT_OWNER_KEY are used by the deployment script.
  2. Run a script to deploy the Handler:
forge script script/clientScripts/DeployERC20Handler.s.sol --ffi --broadcast --rpc-url $ETH_RPC_URL
  1. Run a script to configure the Handler:
forge script script/clientScripts/DeployERC20HandlerPt2.s.sol --ffi --broadcast --rpc-url $ETH_RPC_URL

ERC721 Token Handler Deployment

  1. Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER and DEPLOYMENT_OWNER_KEY are used by the deployment script.
  2. Run a script to deploy the Handler:
forge script script/clientScripts/DeployERC721Handler.s.sol --ffi --broadcast
  1. Run a script to configure the Handler:
forge script script/clientScripts/DeployERC721HandlerPt2.s.sol --ffi --broadcast