Connect your tokens to the App Manager
The Token Handler contract connects a token to the protocol and the Application Manager, providing the ability to configure rules. You must deploy a token handler for each token you want to connect to the protocol.
The following steps must already be completed on the target chain:
The Protocol has been deployed
You have deployed an Application Manager
You have created at least one Application Administrator role in the Application Manager
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-20 token must be deployed. Update the APPLICATION_ERC20_ADDRESS
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-20 token must be deployed. Update the APPLICATION_ERC20_ADDRESS
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-721 token must be deployed. Update the APPLICATION_ERC721_ADDRESS_1
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.
Connect your tokens to the App Manager
The Token Handler contract connects a token to the protocol and the Application Manager, providing the ability to configure rules. You must deploy a token handler for each token you want to connect to the protocol.
The following steps must already be completed on the target chain:
The Protocol has been deployed
You have deployed an Application Manager
You have created at least one Application Administrator role in the Application Manager
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-20 token must be deployed. Update the APPLICATION_ERC20_ADDRESS
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-20 token must be deployed. Update the APPLICATION_ERC20_ADDRESS
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.
Ensure the environment variables are set correctly. The DEPLOYMENT_OWNER
and DEPLOYMENT_OWNER_KEY
are used by the deployment script.
Deploy the token handler:
Before you run the next script your ERC-721 token must be deployed. Update the APPLICATION_ERC721_ADDRESS_1
value within your .env
file with the address of your token. After updating this value, run the source .env
command. Now you’re ready to run the next script.