@metahero/contracts
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Metahero contracts

License MIT

Installation

$ npm i @metahero/contracts

Usage

import { 
  ContractNames, 
  NetworkChainIds, 
  getContractAddress, 
} from '@metahero/contracts';

console.log(
  'MetaheroToken address on BNB Smart Chain:',
  getContractAddress(
    ContractNames.MetaheroToken,  // 'MetaheroToken'
  ),
);

console.log(
  'MetaheroToken address on BNB Smart Chain testnet:',
  getContractAddress(
    ContractNames.MetaheroToken,  // 'MetaheroToken'
    NetworkChainIds.BnbTest,      // 97
  ),
);

License

MIT

Package Sidebar

Install

npm i @metahero/contracts

Homepage

metahero.io

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

6.49 kB

Total Files

10

Last publish

Collaborators

  • staszek