增加中心化物品在market购买的接口

This commit is contained in:
CounterFire2023 2023-06-15 19:11:42 +08:00
parent efcdf59dc8
commit 614908cd72

View File

@ -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