Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dragonereum/dragonereum-contracts

Dragonereum smart contracts
https://github.com/dragonereum/dragonereum-contracts

dapp ethereum ethereum-contract ethereum-dapp smart-contracts solidity web3

Last synced: 28 days ago
JSON representation

Dragonereum smart contracts

Awesome Lists containing this project

README

        

## How to use with Truffle

### Installation
```bash
npm install @dragonereum/contracts
```

### Usage example
```js
import contract from 'truffle-contract';

import Getter from '@dragonereum/contracts/dist/Getter.json';
// or
import { Getter } from '@dragonereum/contracts';

const getter = contract(Getter);

getter.setProvider(window.ethereum);
```

## How to run tests
```bash
npm run test
```