apenft-js-tron 2.1.3-beta.2 → 2.1.3-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/dist/src/tradeAPI/account.js +2 -1
- package/dist/src/utils/check.js +1 -1
- package/index.ts +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { APENFTQuery } from './src/queryAPI/index';
|
|
|
3
3
|
export { initApprove } from './src/tradeAPI/approve';
|
|
4
4
|
export { Network, MakeOrderType, APENFTSchemaName, OrderSide, AssetSortBy, CollectionTradeTrendFilterDays, EventType, CollectionSortBy, AssetListCollectionTypes, AssetStatus, Category, } from './src/utils/types';
|
|
5
5
|
export { AssetFactory } from './src/tradeAPI/nft';
|
|
6
|
+
debugger;
|
|
6
7
|
// for APENFT market
|
|
7
8
|
export { toBaseUnitAmount, getSchemaList, makeBigNumber, } from './src/utils/helper';
|
|
8
9
|
export { NULL_ADDRESS } from './src/utils/constants';
|
|
@@ -19,7 +19,8 @@ export class Account extends ContractSchemas {
|
|
|
19
19
|
}
|
|
20
20
|
async getTokenApprove(paymentToken, basePrice) {
|
|
21
21
|
const allowance = await this.checkTokenTransferProxy(paymentToken.address);
|
|
22
|
-
|
|
22
|
+
debugger;
|
|
23
|
+
const isApprove = new BigNumber(allowance).gte(basePrice);
|
|
23
24
|
const balances = await this.getTokenBalances(paymentToken.address);
|
|
24
25
|
return {
|
|
25
26
|
isApprove,
|
package/dist/src/utils/check.js
CHANGED
|
@@ -123,7 +123,7 @@ export async function checkOrder(contract, order) {
|
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
125
125
|
export async function checkMatchOrder(contract, buy, sell) {
|
|
126
|
-
const equalPrice = sell.basePrice.gte(buy.basePrice);
|
|
126
|
+
const equalPrice = new BigNumber(sell.basePrice).gte(buy.basePrice);
|
|
127
127
|
if (!equalPrice) {
|
|
128
128
|
throw new APENFTError({ code: '1201' });
|
|
129
129
|
}
|
package/index.ts
CHANGED