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

2.0.7 • Public • Published

Etherspot Solidity 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

Package Sidebar

Install

npm i @etherspot/contracts

Weekly Downloads

1,044

Version

2.0.7

License

MIT

Unpacked Size

98 MB

Total Files

1896

Last publish

Collaborators

  • etherspot-dev
  • staszek