JSPM

  • Created
  • Published
  • Downloads 500
  • Score
    100M100P100Q103478F
  • License MIT

ETHERspot contracts

Package Exports

  • @etherspot/contracts

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 (@etherspot/contracts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ETHERspot contracts

NPM version

Installation

$ npm i @etherspot/contracts -S

Usage

Javascript

import {
  ContractNames, 
  getContractAbi, 
  getContractAddress,
  getContractByteCode, 
} from '@etherspot/contracts'; 

console.log(
  'PersonalAccountRegistry mainnet address:', 
  getContractAddress(ContractNames.PersonalAccountRegistry),
);

console.log(
  'PersonalAccountRegistry görli address:', 
  getContractAddress(ContractNames.PersonalAccountRegistry, '5'),
);

console.log(
  'ERC20Token abi:', 
  getContractAbi(ContractNames.ERC20Token),
);

console.log(
  'Account byte code:',
  getContractByteCode(ContractNames.Account),
);

Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@etherspot/contracts/src/gateway/GatewayRecipient.sol";

// ...

License

MIT