Catalog npm
Back to packageRELEASE DETAILS

3.0.5

npm

@0xsequence/erc20-meta-token

General ERC20 to ERC1155 Token Wrapper Contract

erc1155erc20ethereumtoken
Published16 Mar 2021
Direct dependencies2
Transitive dependenciesNot calculated

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.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xsequence/erc-1155
Environment
{
  "local_name": "@0xsequence/erc-1155",
  "alias": false,
  "peer_metadata": null
}
^3.0.4runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.0.32peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "67291d0ee4dd9a7161714a612dc9f982e773bc3b",
  "tarball": "https://registry.npmjs.org/@0xsequence/erc20-meta-token/-/erc20-meta-token-3.0.5.tgz",
  "fileCount": 84,
  "integrity": "sha512-/huCxtb8nXWfFbGsoS3T/f+/xYf4gw1bcc8+vdXy5IvY5GeyskfIaaW5IQnpeIBM5IIzg66kqUplXLDpyjZN1w==",
  "signatures": [
    {
      "sig": "MEYCIQDLuWJoIt80fNOWhP9Eh7xPSRSuiQfTtKWQJIYTQCK8DwIhAP4r6tgV0eDWqqeCK9IHs4dmoOzLM14ue0BhZ4sTgyu7",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 723825,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUQbWCRA9TVsSAnZWagAAJ0sQAKHiDrdlQ/h0v2jaWz2A\nopUHgaF4KyAgkKaKg61e4f1yK6MWLQ4y0Ojlnmbz222VneU7eoKyZq+46YIz\nHV0rO76Hoaq9ref3+sEiytWjXs49a00dxy3wuwZb/iEPdFskfoGt57A/PE2w\nytsGG5sV5AlCGl+aJYmmdg74oD3T22vIODXqfvhL8ccKwIBbUC66jlHjo7qU\nE1vTa3wok5ni5kWJQYTZVCB6xCsewf/Wq8vlvlFdKCG5jV9i7m8gLxIbh7nu\nYmwAmLV/lv6hVPHBIExxrfR+d2pPB2Z11dN1cogYHtl5Wk111P1zOc32P/3h\nrsk9aUmQ9nMc526kC8EvPCpq/EzMw6hNr68s60MTfjqv8Dgm0OrhFMwILioY\nJyHkhwdPFi9wMvSeTjyL8SKGzuRC5Xkik441YF/yssR5/AV8nfjKJFo6qT2+\n2n+9suQPeYCesupIugmHHq+n332NfSHnKwVHrKYmM2hPudQr9AOP247caRTM\nuSSvmhWR+Pm0ovOgBlzs7xpmjuCkrFlfFI9kijjQxeFGz9xDK1ooyanJlW42\n+AbFn9tWXRa5pI4ic+QM2dtFq/qfSy3uEL2PrdWoSeVqampnCy2BdjLv9i/z\nPwb3D2hUmj/uzxx5M4gLyMAPTEio/9qGjktlhec2OBej1SwXkiwajmDy3CUy\nuf9Z\r\n=YqTN\r\n-----END PGP SIGNATURE-----\r\n"
}

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_version:7f716df2e51e7875c48183ec2100efb87bcc014bb7c48dffbcb1d5aa2bed162c

Other collected versions

4.0.211 Aug4.0.15 Apr0.0.0-202304044 Apr0.0.0-202304023 Apr4.0.020 Mar3.2.010 NovView all collected versions →