Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Commit dbda8d5

Browse files
committed
Initial commit
0 parents  commit dbda8d5

12 files changed

+117
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
out
2+
node_modules

.jshintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"browserify": true,
3+
"bitwise": false,
4+
"camelcase": false,
5+
"eqeqeq": false,
6+
"freeze": true,
7+
"funcscope": false,
8+
"maxcomplexity": 12, /* our target is 3! */
9+
"maxdepth": 3,
10+
"maxerr": 50,
11+
"nonew": true,
12+
"unused": true,
13+
"undef": true,
14+
"node": true,
15+
"mocha": true,
16+
"esversion": 6,
17+
"predef": [
18+
"console"
19+
]
20+
}

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
node_js:
3+
- "6.5.0"
4+
env:
5+
- CXX=g++-4.8
6+
addons:
7+
apt:
8+
sources:
9+
- ubuntu-toolchain-r-test
10+
packages:
11+
- g++-4.8
12+
notifications:
13+
email: false

Readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Etherscan API
2+
3+
Promised API to access the therscan API

docs/tutorial.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tutorial
2+
3+
The tutorial

index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
const init = require('./lib/init');
3+
4+
5+
module.exports = {
6+
init
7+
};

jsdoc.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"tags": {
3+
"allowUnknownTags": true,
4+
"dictionaries": ["jsdoc","closure"]
5+
},
6+
"source": {
7+
"include": [ "./index.js", "./lib/init.js" ],
8+
"includePattern": ".+\\.js(doc)?$",
9+
"excludePattern": "(^|\\/|\\\\)_"
10+
},
11+
"plugins": [],
12+
"templates": {
13+
"cleverLinks": false,
14+
"monospaceLinks": false
15+
}
16+
}

lib/init.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function () {
2+
return true;
3+
};

package.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "etherscan-api",
3+
"version": "0.0.1",
4+
"description": "",
5+
"main": "index.js",
6+
"readme": "Readme.md",
7+
"scripts": {
8+
"test": "mocha",
9+
"posttest": "npm run lint",
10+
"prebundle": "npm test",
11+
"lint": "jshint lib test",
12+
"docs": "jsdoc -c ./jsdoc.json -R ./Readme.md -u ./docs",
13+
"preversion": "npm run lint",
14+
"postversion": "git push && git push --tags",
15+
"build": "npm run test && npm run docs"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/Michikoid/module-template.git"
20+
},
21+
"author": "",
22+
"license": "ISC",
23+
"bugs": {
24+
"url": "https://github.com/Michikoid/module-template/issues"
25+
},
26+
"homepage": "https://github.com/Michikoid/module-template#readme",
27+
"devDependencies": {
28+
"chai": "^3.5.0",
29+
"mocha": "^3.0.2",
30+
"watch": "^0.19.2",
31+
"jsdoc": "^3.4.0",
32+
"jshint": "^2.9.3"
33+
},
34+
"dependencies": {
35+
36+
}
37+
}

test/fixtures/compile.manifest.json

+1
Large diffs are not rendered by default.

test/fixtures/migrate.manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"contract":"DualIndex","abi":"[]\n","address":"0x737cae1bdce788dbbc6aa89039c990165652981a"}]

test/index-test.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
const assert = require('chai').assert;
3+
describe('index.js', function() {
4+
it('can be required', function( ){
5+
require('../.');
6+
});
7+
it('has init', function( ){
8+
var res = require('../.');
9+
assert.ok(res.init);
10+
});
11+
});

0 commit comments

Comments
 (0)