axelarnetwork / support

Your source for support with the Axelar Network
3 stars 1 forks source link

InterchainTokenService: deploy a token manager for a custom interchain token #125

Closed rya-sge closed 1 week ago

rya-sge commented 3 weeks ago

Goal: Create a custom Interchain Token. The original tokens are deployed on various different chains supported by Axelar.

The tutorial in the documentation indicates:

Call deployTokenManager() to deploy a token manager for your token.The token manager operator will be of type bytes, and the token address will be an address.

Problem: The function takes 6 arguments (salt, destinationChain, tokenManagerType, params, gasvalue and tokenId)

a) For gasValue, how can I know the value to put inside ? b) If I have correctly understood, params is made of two types: bytes for the token manager operator and address for the token address. Is it correct ?

Best!

Olanetsoft commented 2 weeks ago

Hello @rya-sge, thanks for reaching out.

a. For gasValue, you can pass in 0 as this is used for multichain calls; in your case, it's not required. b. Yes, you are correct. See an example here with ethers.

If you have any other questions, let me know, and I will be happy to help.