Catalog npm
PACKAGE EXPLORERView in registry

@0xsequence/erc20-meta-token

npm

General ERC20 to ERC1155 Token Wrapper Contract

erc1155erc20ethereumtoken
Versions collected13
Direct dependencies2From release 4.0.2
Last observed21 Oct, 10:16 UTC

README

Current package documentation

@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

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

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.

Licensed under Apache-2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 13

Collected releases
VersionPublishedDirect dependenciesOpen version
4.0.2Registry latest11 Aug 20232
4.0.15 Apr 20232
0.0.0-202304044 Apr 20232
0.0.0-202304023 Apr 20232
4.0.020 Mar 20232
3.2.010 Nov 20212
3.1.010 Nov 20212
3.0.516 Mar 20212
3.0.416 Mar 20212
3.0.316 Mar 20211
3.0.216 Mar 20211
3.0.115 Mar 20211
3.0.015 Mar 20211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xsequence/erc20-meta-token

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:cb9d0b2160e5ab825d07964730915cf754c5a406d12ebb15fde21ea7f04e0a60