JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35
  • Score
    100M100P100Q58220F
  • License MIT

Base assets contracts

Package Exports

  • @animoca/ethereum-contracts-assets
  • @animoca/ethereum-contracts-assets/test/contracts/token/ERC1155/behaviors/ERC1155.behavior
  • @animoca/ethereum-contracts-assets/test/contracts/token/ERC721/behaviors/ERC721.behavior

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@animoca/ethereum-contracts-assets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Solidity Assets

This project serves as a base dependency for Solidity-based assets contract projects by providing related base contracts, constants, and interfaces.

Table of Contents

Overview

Installation

Install as a module dependency in your host NodeJS project:

npm install --save-dev @animoca/ethereum-contracts-assets

or

yarn add -D @animoca/ethereum-contracts-assets

Usage

Solidity Contracts

Import dependency contracts into your Solidity contracts and derive as needed:

import "@animoca/ethereum-contracts-assets/contracts/{{Contract Group}}/{{Contract}}.sol"

Test and Migration Scripts

Require the NodeJS module dependency in your test and migration scripts as needed:

const { constants, interfaces } = require('@animoca/ethereum-contracts-assets');