# @0xsequence/erc20-meta-token

> General ERC20 to ERC1155 Token Wrapper Contract

Latest version **4.0.2** (published 2023-08-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @0xsequence/erc20-meta-token
pnpm add @0xsequence/erc20-meta-token
yarn add @0xsequence/erc20-meta-token
bun add @0xsequence/erc20-meta-token
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2023-08-11 |
| First published | 2021-03-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 680.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 206 |
| Maintainers | milkytaste, naivesheep, pkieltyka, phabc, agusx1211, acrylix |
| Keywords | token, ERC20, ERC1155, ethereum |

## Links

- npm: https://www.npmjs.com/package/@0xsequence/erc20-meta-token
- Repository: https://github.com/0xsequence/erc20-meta-token
- Homepage: https://sequence.build
- Issues: https://github.com/0xsequence/erc20-meta-token/issues
- npm.io page: https://npm.io/package/@0xsequence/erc20-meta-token

## Dependencies (1)

- [@0xsequence/erc-1155](https://npm.io/package/@0xsequence/erc-1155.md) ^4.0.2

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 4.0.2 (latest) — 2023-08-11
- 4.0.1 — 2023-04-05
- 0.0.0-20230404 — 2023-04-04
- 0.0.0-20230402 — 2023-04-03
- 4.0.0 — 2023-03-20
- 3.2.0 — 2021-11-10
- 3.1.0 — 2021-11-10
- 3.0.5 — 2021-03-16
- 3.0.4 — 2021-03-16
- 3.0.3 — 2021-03-16
- 3.0.2 — 2021-03-16
- 3.0.1 — 2021-03-15
- 3.0.0 — 2021-03-15

## README

@0xsequence/erc20-meta-token
============================

General ERC20 to ERC1155 Token Wrapper Contract.

Allows any ERC-20 token to be wrapped inside of an ERC-1155 contract, and thereby allows
an ERC-20 token to function as an ERC-1155 contract.

For more information see, [github.com/0xsequence/erc20-meta-token](https://github.com/0xsequence/erc20-meta-token)


## Getting started

### Install

`yarn add @0xsequence/erc20-meta-token` or `npm install @0xsequence/erc20-meta-token`

### Contract Verification

`yarn verify --network {NETWORK_NAME} "{CONTRACT_NAME}={CONTRACT_ADDRESS}"`

### Usage from Solidity

```solidity
pragma solidity ^0.8.0;

import '@0xsequence/erc20-meta-token/contracts/interfaces/IMetaERC20Wrapper.sol';

contract ContractA {
  //...
  function f(address wrapperAddress, address ERC20tokenAddress, uint256 amount) public {
    IMetaERC20Wrapper(wrapperAddress).deposit(ERC20tokenAddress, amount);
  }
}
```

## NOTES

`@0xsequence/erc20-meta-token` includes the following files in its package distribution:

* `artifacts` -- hardhat output of contract compilation
* `typings` -- ethers v5 typings for easier interfacing with the contract abis


## LICENSE

Copyright (c) 2017-present [Horizon Blockchain Games Inc](https://horizon.io).

Licensed under [Apache-2.0](https://github.com/0xsequence/erc-1155/blob/master/LICENSE)

---
_Source: https://npm.io/package/@0xsequence/erc20-meta-token · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
