diff --git a/Data/js/main.js b/Data/js/main.js index 13b4b80..24e114f 100644 --- a/Data/js/main.js +++ b/Data/js/main.js @@ -283,9 +283,6 @@ function beginPay( ); } // ======= end of pay ======= -// ======= begin of market ======= -// TODO:: -// ======= end of market ======= // ======= begin of transaction history ======= function ethHistory(funId, start, limit) { promiseCb(funId, jc.wallet.historySvr.ethRecords(start, limit)); @@ -452,7 +449,33 @@ function marketBuy(funId, orderId, estimate) { (v) => JSON.stringify(v) ); } - +// buy item of game from market +function gameMarketBuy( + funId, + orderId, + seller, + currency, + price, + startTime, + saltNonce, + signature, + estimate +) { + promiseCb( + funId, + jc.wallet.jcStandard.gameMarketBuy({ + orderId, + seller, + currency, + price, + startTime, + saltNonce, + signature, + estimate, + }), + (v) => JSON.stringify(v) + ); +} // end of market // begin of mall