EIP.tools

EIP.tools

SupersededStandard:

CAIP-21: Asset Reference for the ERC20 Asset Namespace

Authors
Created2020-06-23
Discussion Linkhttps://github.com/ChainAgnostic/CAIPs/pull/19
Requires

Markdown

https://raw.githubusercontent.com/ChainAgnostic/CA...

EIP-GPT summary

Contents
Simple SummaryAbstractMotivationSpecificationERC20 Asset NamespaceAsset Reference DefinitionRationaleBackwards CompatibilityTest CasesCopyright

Simple Summary

This document is about the details of the ERC20 asset namespace and reference for CAIP-19.

Abstract

In CAIP-19 a general asset identification scheme is defined. This is the implementation of CAIP-19 for ERC20 (referencing erc20 tokens).

Motivation

See CAIP-19.

Specification

ERC20 Asset Namespace

The asset namespace is called "erc20" as in ERC20. It reference erc20 tokens in the eip155 namespace (see CAIP3).

Asset Reference Definition

The Asset Reference format is the smart contract address of the erc20 token in the current chain_id.

Rationale

The smart contract address strives for uniqueness for any erc20 tokens in the chain_id scope.

Backwards Compatibility

Not applicable

Test Cases

This is a list of manually composed examples

# DAI Token
eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f

# REQ Token
eip155:1/erc20:0x8f8221afbb33998d8584a2b05749ba73c37a938a

Copyright and related rights waived via CC0.

EIP.tools

EIP.tools

Search, read, and map Ethereum improvement proposals, ERCs, RIPs, and CAIPs from one focused interface.

Farcaster
by @apoorveth