GitXplorerGitXplorer
o

IBC-ERC20

public
2 stars
3 forks
0 issues

Commits

List of commits on branch main.
Unverified
674693698eac0492c0c053dbc5374a581aa6e8a8

update readme

AAaronZgl committed 2 years ago
Verified
79592c6e87873d03534485cc5d54d885213de890

Merge pull request #4 from okex/aaron/changeMintToTransfer

AAaronZgl committed 2 years ago
Unverified
d73937f1ec8e9d7aca06de60a0fc8c8d0d0d6e38

update abi

AAaronZgl committed 2 years ago
Unverified
a66d0a3bc584e38556523a266c00b7686b7b3259

change mint to transfer

AAaronZgl committed 2 years ago
Unverified
6102812fe7264e14b0a68ad457ccadf8ba308b21

update README and add audit report

AAaronZgl committed 2 years ago
Verified
041cf7f6d33da7fd991a412481ae3ab3023214aa

Merge pull request #3 from okex/aaron/update-MockNativeERC20

AAaronZgl committed 2 years ago

README

The README file for this repository.

IBC-ERC20

Project Overview

The IBC-ERC20 contract mainly serves the IBC function of OKC. When there is a new cross-chain asset from another chain to OKC through the IBC protocol, OKC will automatically deploy a corresponding ERC20 contract for the asset, including:

  • contracts/ModuleERC20.sol
  • contracts/ModuleERC20Proxy.sol

At the same time, if there are native ERC20 assets deployed on OKC and want to cross to other chains through the IBC protocol, the ERC20 needs to inherit the following contracts:

  • contracts/nativeERC20/INativeERC20.sol

Contract description:

  1. ERC20.sol: Basic ERC20 implementation, the parent contract of the ModuleERC20 contract.
  2. ModuleERC20.sol: Inherited the ERC20 contract, and implemented the methods and events for IBC protocol.
  3. ModuleERC20Proxy: The proxy contract of ModuleERC20 implements basic proxy functions.
  4. INativeERC20.sol: It defines the basic functions that OKC's native ERC20 needs to implement for IBC protocol.