Skip to content

Commit

Permalink
fix: removed depracated gateway token manager type (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin852 authored Dec 5, 2024
1 parent ba87c8e commit c19eb13
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Token Manager Types

There are different [types](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/interfaces/ITokenManagerType.sol#L10) of token managers available for developers to offer different types of integrations to ITS. These are; `nativeInterchain`, `mintBurnFrom`, `lockUnlock`, `lockUnlockFee`, `mintBurn`, and `gateway`.
There are different [types](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/interfaces/ITokenManagerType.sol#L10) of token managers available for developers to offer different types of integrations to ITS. These are; `nativeInterchain`, `mintBurnFrom`, `lockUnlock`, `lockUnlockFee`, and `mintBurn`.

Each of these types correspond to an `enum` value. When [deploying a token manager](https://github.com/axelarnetwork/interchain-token-service/blob/7df851d8a4ec4df819961d704bf3067ee8d37521/contracts/InterchainTokenService.sol#L286) developers must pass in the [corresponding value](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/InterchainTokenService.sol#L289) for their desired token manager type.

Expand All @@ -13,7 +13,6 @@ Each of these types correspond to an `enum` value. When [deploying a token manag
`Lock/Unlock`: `2`
`Lock/UnlockFee`: `3`
`Mint/Burn`: `4`
`Gateway`: `5`

### Native Interchain Token

Expand Down Expand Up @@ -45,10 +44,6 @@ The `mint/burn` token manager type is the most common token manager type used fo

For more details checkout this [Mint/Burn example](https://github.com/axelarnetwork/axelar-examples/tree/main/examples/evm/its-custom-token)

### Gateway

For tokens that will be connected with the AxelarGateway this Gateway manager type is also available. It will allow tokens to be sent cross-chain via the `callContractWithToken()` function

## Flow Limits

Token Managers handle the flow limits for a token's ITS integration. A `flowLimit` is a set amount that controls the amount in which a token can be sent in/out of a given blockchain. This can have a variety of different usecases including for security emergencies on a given chain where you want to restrict the flow of your token for that particular blockchain.
Expand Down

0 comments on commit c19eb13

Please sign in to comment.