Skip to content

Commit 4dc966a

Browse files
committed
first draft of btc-swap
1 parent 8f5b63b commit 4dc966a

11 files changed

+1095
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib

.eslintrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ecmaFeatures": {
3+
},
4+
"env": {
5+
"browser": true,
6+
"es6": true,
7+
"node": true
8+
},
9+
"rules": {
10+
"curly": 0,
11+
"quotes": 0,
12+
"strict": 0
13+
}
14+
}

Gruntfile.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = function(grunt) {
2+
grunt.initConfig({
3+
"babel": {
4+
options: {
5+
sourceMap: true
6+
},
7+
dist: {
8+
files: {
9+
"lib/btcswap.js": "src/btcswap.js",
10+
"lib/abi.js": "src/abi.js"
11+
}
12+
}
13+
}
14+
});
15+
grunt.loadNpmTasks('grunt-babel');
16+
grunt.registerTask("default", ["babel"]);
17+
};

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Ethereum BTC Swap
2+
3+
```
4+
npm install btcswap
5+
```
6+
7+
```
8+
var btcswap = require('btcswap');
9+
var btcSwap = new btcswap({
10+
address: "0x3e38d51065df2f08dc2ee858a1090c0c56c93bd6",
11+
host: "localhost:8545",
12+
from: "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826"
13+
});
14+
```

lib/abi.js

+72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/abi.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)