From ba87c8efdf3b04ecc42b155d961c2fbab4b7c4c7 Mon Sep 17 00:00:00 2001 From: Idris Olubisi Date: Thu, 5 Dec 2024 17:58:20 +0000 Subject: [PATCH] fix: update instances of "erc20" to use standard "erc-20" (#1263) --- public/samples/interchain-token-custom.sol | 2 +- ...deployed-across-multiple-chains-into-interchain-tokens.mdx | 2 +- .../send-tokens/interchain-tokens/integrate-custom-token.mdx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/samples/interchain-token-custom.sol b/public/samples/interchain-token-custom.sol index f33f86c2b..54cb3bee7 100644 --- a/public/samples/interchain-token-custom.sol +++ b/public/samples/interchain-token-custom.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; -// more suited than OZ ERC20 for proxying because it doesn't require constructor parameters +// more suited than OZ ERC-20 for proxying because it doesn't require constructor parameters import {ERC20} from "@axelar-network/interchain-token-service/contracts/token-implementations/ERC20.sol"; import {IERC20BurnableMintable} from "@axelar-network/interchain-token-service/interfaces/IERC20BurnableMintable.sol"; diff --git a/src/content/docs/dev/send-tokens/interchain-tokens/developer-guides/link-custom-tokens-deployed-across-multiple-chains-into-interchain-tokens.mdx b/src/content/docs/dev/send-tokens/interchain-tokens/developer-guides/link-custom-tokens-deployed-across-multiple-chains-into-interchain-tokens.mdx index 37f3138c4..e3673e34a 100644 --- a/src/content/docs/dev/send-tokens/interchain-tokens/developer-guides/link-custom-tokens-deployed-across-multiple-chains-into-interchain-tokens.mdx +++ b/src/content/docs/dev/send-tokens/interchain-tokens/developer-guides/link-custom-tokens-deployed-across-multiple-chains-into-interchain-tokens.mdx @@ -24,7 +24,7 @@ You will need: Deploy the following `SimpleCustomToken` on the Fantom and Polygon testnets. -This code utilizes OpenZeppelin's libraries to create a custom ERC20 token with functionalities for minting, burning, and access control. The token includes a minter role, which enables designated addresses to mint or burn tokens. Additionally, it incorporates ERC20Permit for gasless transactions. The contract starts with a predefined supply of tokens minted to the deployer's address and establishes roles for a default administrator and minter: +This code utilizes OpenZeppelin's libraries to create a custom ERC-20 token with functionalities for minting, burning, and access control. The token includes a minter role, which enables designated addresses to mint or burn tokens. Additionally, it incorporates ERC20Permit for gasless transactions. The contract starts with a predefined supply of tokens minted to the deployer's address and establishes roles for a default administrator and minter: ```solidity diff --git a/src/content/docs/dev/send-tokens/interchain-tokens/integrate-custom-token.mdx b/src/content/docs/dev/send-tokens/interchain-tokens/integrate-custom-token.mdx index d2062a2e4..de99cc9c3 100644 --- a/src/content/docs/dev/send-tokens/interchain-tokens/integrate-custom-token.mdx +++ b/src/content/docs/dev/send-tokens/interchain-tokens/integrate-custom-token.mdx @@ -39,7 +39,7 @@ contract MyInterchainToken is ERC20, ERC20Burnable { } ``` -This token is a simple implementation of an ERC20 token but includes the critical functionality needed to integrate with ITS: the ability to `mint()` and `burn()` tokens. ITS interacts with these functions when bridging tokens between chains. +This token is a simple implementation of an ERC-20 token but includes the critical functionality needed to integrate with ITS: the ability to `mint()` and `burn()` tokens. ITS interacts with these functions when bridging tokens between chains. You also have the option to inherit from the [InterchainTokenStandard](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/interchain-token/InterchainTokenStandard.sol#L12) so that your token has cross-chain functionality built-in, such as the `interchainTransfer()` function. @@ -71,7 +71,7 @@ The [`transferMintership()`](https://github.com/axelarnetwork/interchain-token-s ## Send Token using Interchain Transfer Function -An Interchain Token is an ERC20 that is connected to [ITS](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/InterchainTokenService.sol) upon deployment comes built-in with the `interchainTransfer()` function, which allows users to bridge their token between any blockchain to which it is deployed. Take a look at the diagram below to see how the `interchainTransfer()` function works. +An Interchain Token is an ERC-20 that is connected to [ITS](https://github.com/axelarnetwork/interchain-token-service/blob/main/contracts/InterchainTokenService.sol) upon deployment comes built-in with the `interchainTransfer()` function, which allows users to bridge their token between any blockchain to which it is deployed. Take a look at the diagram below to see how the `interchainTransfer()` function works. This diagram is interactive click on the function names!