From 614908cd7201dd007cc2c6744f4eb20dcd4995a1 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 15 Jun 2023 19:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=AD=E5=BF=83=E5=8C=96?= =?UTF-8?q?=E7=89=A9=E5=93=81=E5=9C=A8market=E8=B4=AD=E4=B9=B0=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/js/main.js | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) 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