From 450242b46d526b735d8ada58c4689fd33d18006e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Sant=C3=A1ngelo?= Date: Thu, 22 Feb 2018 14:30:05 +0100 Subject: [PATCH] chore: Build contracts --- src/contracts/index.js | 43 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/contracts/index.js b/src/contracts/index.js index 17e5a3c..29e43d9 100644 --- a/src/contracts/index.js +++ b/src/contracts/index.js @@ -280,7 +280,48 @@ Object.assign( MANAToken.prototype ) -Object.assign(Marketplace.prototype, {}, Marketplace.prototype) +Object.assign( + Marketplace.prototype, + { + setOwnerCut: function(ownerCut, ...args) { + return this.transaction('setOwnerCut', ownerCut, ...args) + }, + cancelOrder: function(assetId, ...args) { + return this.transaction('cancelOrder', assetId, ...args) + }, + auctionList: function(input0, ...args) { + return this.call('auctionList', input0, ...args) + }, + ownerCutPercentage: function(...args) { + return this.call('ownerCutPercentage', ...args) + }, + owner: function(...args) { + return this.call('owner', ...args) + }, + executeOrder: function(assetId, ...args) { + return this.transaction('executeOrder', assetId, ...args) + }, + createOrder: function(assetId, priceInWei, expiresAt, ...args) { + return this.transaction( + 'createOrder', + assetId, + priceInWei, + expiresAt, + ...args + ) + }, + publicationFeeInWei: function(...args) { + return this.call('publicationFeeInWei', ...args) + }, + setPublicationFee: function(publicationFee, ...args) { + return this.transaction('setPublicationFee', publicationFee, ...args) + }, + transferOwnership: function(newOwner, ...args) { + return this.transaction('transferOwnership', newOwner, ...args) + } + }, + Marketplace.prototype +) Object.assign( ReturnMANA.prototype,