Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etherspot/etherspot-contracts
Etherspot Solidity contracts
https://github.com/etherspot/etherspot-contracts
backend etherspot smart-contracts solidity
Last synced: 2 days ago
JSON representation
Etherspot Solidity contracts
- Host: GitHub
- URL: https://github.com/etherspot/etherspot-contracts
- Owner: etherspot
- License: mit
- Created: 2020-03-22T12:22:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T09:19:35.000Z (10 months ago)
- Last Synced: 2025-01-23T06:12:53.287Z (9 days ago)
- Topics: backend, etherspot, smart-contracts, solidity
- Language: TypeScript
- Homepage:
- Size: 13.4 MB
- Stars: 87
- Watchers: 10
- Forks: 13
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Etherspot Solidity contracts
[![NPM version][npm-image]][npm-url]
## Installation
```bash
$ npm i @etherspot/contracts -S
```## Usage
### Javascript
```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
```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;import "@etherspot/contracts/src/gateway/GatewayRecipient.sol";
// ...
```## License
MIT
[npm-image]: https://badge.fury.io/js/%40etherspot%2Fcontracts.svg
[npm-url]: https://npmjs.org/package/@etherspot/contracts