Skip to content

Commit

Permalink
Merge 4ed8f27 into 804282d
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Jan 19, 2019
2 parents 804282d + 4ed8f27 commit 85987cc
Showing 1 changed file with 1 addition and 83 deletions.
84 changes: 1 addition & 83 deletions lib/web3/methods/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

"use strict";

var Method = require('../method');
var Property = require('../property');

function Swarm(web3) {
Expand All @@ -44,88 +43,7 @@ function Swarm(web3) {
}

var methods = function () {
var blockNetworkRead = new Method({
name: 'blockNetworkRead',
call: 'bzz_blockNetworkRead',
params: 1,
inputFormatter: [null]
});

var syncEnabled = new Method({
name: 'syncEnabled',
call: 'bzz_syncEnabled',
params: 1,
inputFormatter: [null]
});

var swapEnabled = new Method({
name: 'swapEnabled',
call: 'bzz_swapEnabled',
params: 1,
inputFormatter: [null]
});

var download = new Method({
name: 'download',
call: 'bzz_download',
params: 2,
inputFormatter: [null, null]
});

var upload = new Method({
name: 'upload',
call: 'bzz_upload',
params: 2,
inputFormatter: [null, null]
});

var retrieve = new Method({
name: 'retrieve',
call: 'bzz_retrieve',
params: 1,
inputFormatter: [null]
});

var store = new Method({
name: 'store',
call: 'bzz_store',
params: 2,
inputFormatter: [null, null]
});

var get = new Method({
name: 'get',
call: 'bzz_get',
params: 1,
inputFormatter: [null]
});

var put = new Method({
name: 'put',
call: 'bzz_put',
params: 2,
inputFormatter: [null, null]
});

var modify = new Method({
name: 'modify',
call: 'bzz_modify',
params: 4,
inputFormatter: [null, null, null, null]
});

return [
blockNetworkRead,
syncEnabled,
swapEnabled,
download,
upload,
retrieve,
store,
get,
put,
modify
];
return [];
};

var properties = function () {
Expand Down

0 comments on commit 85987cc

Please sign in to comment.