axelarnetwork / support

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

Custom Cosmos SDK chain to axelar bridge #44

Closed dekm closed 8 months ago

dekm commented 8 months ago

Hey, Are there docs on how we could utilize Axelar to help us bridge our custom cosmos SDK token to other chains? I went though the process of setting up a contract on a testnet although it was not clear how we could connect this with a token on the Cosmos SDK.

Thanks!

StephenFluin commented 8 months ago

Hey there! If I'm understanding you correctly, you have a token on Cosmos and you want to be able to bridge it to other chains?

We don't have an out of the box example of this, but you can definitely accomplish this using Axelar Network's GMP support on cosmos (depending on the chains you are building on).

The best approach would be to take a look at our Cosmos GMP documentation, then write a smart contract on your source chain and destination chains (I'm guessing EVM?) that knows how to burn/lock your token at the same time as initiating a GMP message to a destination chain. Upon receipt of the message on the destination chain, you simply mint the new tokens to the destination address (after verifying the source of the message).

We have an EVM example of this that might help demonstrate the described architecture.

dekm commented 8 months ago

Thanks, we were not planning.on adding an EVM to our chain. We are adding cosmwasm though. Is this also possible through a wasm smart contract?