增加中心化物品在market购买的接口
This commit is contained in:
parent
efcdf59dc8
commit
614908cd72
@ -283,9 +283,6 @@ function beginPay(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
// ======= end of pay =======
|
// ======= end of pay =======
|
||||||
// ======= begin of market =======
|
|
||||||
// TODO::
|
|
||||||
// ======= end of market =======
|
|
||||||
// ======= begin of transaction history =======
|
// ======= begin of transaction history =======
|
||||||
function ethHistory(funId, start, limit) {
|
function ethHistory(funId, start, limit) {
|
||||||
promiseCb(funId, jc.wallet.historySvr.ethRecords(start, limit));
|
promiseCb(funId, jc.wallet.historySvr.ethRecords(start, limit));
|
||||||
@ -452,7 +449,33 @@ function marketBuy(funId, orderId, estimate) {
|
|||||||
(v) => JSON.stringify(v)
|
(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
|
// end of market
|
||||||
|
|
||||||
// begin of mall
|
// begin of mall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user