apenft-js-tron 2.0.9 → 2.1.0-beta.1
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.d.ts +9 -0
- package/dist/index.js +32 -0
- package/dist/src/abi/APENFT721.json +632 -0
- package/dist/src/abi/APENFTExchange.json +1601 -0
- package/dist/src/abi/APENFTSharedAsset.json +1045 -0
- package/dist/src/abi/AuthenticatedProxy.json +274 -0
- package/dist/src/abi/ERC1155.json +418 -0
- package/dist/src/abi/ERC20.json +178 -0
- package/dist/src/abi/ERC20AssetProxy.json +213 -0
- package/dist/src/abi/ERC721v3.json +446 -0
- package/dist/src/abi/ExchangeHelper.json +1766 -0
- package/dist/src/abi/FactoryContract.json +4 -0
- package/dist/src/config.d.ts +57 -0
- package/dist/src/config.js +76 -0
- package/dist/src/queryAPI/graphql/accountApi.d.ts +11 -0
- package/dist/src/queryAPI/graphql/accountApi.js +148 -0
- package/dist/src/queryAPI/graphql/assetApi.d.ts +15 -0
- package/dist/src/queryAPI/graphql/assetApi.js +204 -0
- package/dist/src/queryAPI/graphql/base.d.ts +37 -0
- package/dist/src/queryAPI/graphql/base.js +65 -0
- package/dist/src/queryAPI/graphql/collectionApi.d.ts +11 -0
- package/dist/src/queryAPI/graphql/collectionApi.js +148 -0
- package/dist/src/queryAPI/graphql/gql/account.d.ts +6 -0
- package/dist/src/queryAPI/graphql/gql/account.js +16 -0
- package/dist/src/queryAPI/graphql/gql/asset.d.ts +10 -0
- package/dist/src/queryAPI/graphql/gql/asset.js +20 -0
- package/dist/src/queryAPI/graphql/gql/collection.d.ts +6 -0
- package/dist/src/queryAPI/graphql/gql/collection.js +16 -0
- package/dist/src/queryAPI/graphql/gql/fragments.d.ts +8 -0
- package/dist/src/queryAPI/graphql/gql/fragments.js +17 -0
- package/dist/src/queryAPI/graphql/gql/ranking.d.ts +1 -0
- package/dist/src/queryAPI/graphql/gql/ranking.js +11 -0
- package/dist/src/queryAPI/graphql/index.d.ts +11 -0
- package/dist/src/queryAPI/graphql/index.js +17 -0
- package/dist/src/queryAPI/graphql/rankingApi.d.ts +6 -0
- package/dist/src/queryAPI/graphql/rankingApi.js +78 -0
- package/dist/src/queryAPI/index.d.ts +58 -0
- package/dist/src/queryAPI/index.js +771 -0
- package/dist/src/queryAPI/restful/base.d.ts +50 -0
- package/dist/src/queryAPI/restful/base.js +223 -0
- package/dist/src/queryAPI/restful/index.d.ts +1 -0
- package/dist/src/queryAPI/restful/index.js +2 -0
- package/dist/src/queryAPI/restful/queryAPI.d.ts +26 -0
- package/dist/src/queryAPI/restful/queryAPI.js +44 -0
- package/dist/src/schemas/common/ERC1155/index.d.ts +7 -0
- package/dist/src/schemas/common/ERC1155/index.js +140 -0
- package/dist/src/schemas/common/ERC20/index.d.ts +6 -0
- package/dist/src/schemas/common/ERC20/index.js +132 -0
- package/dist/src/schemas/common/ERC721/index.d.ts +5 -0
- package/dist/src/schemas/common/ERC721/index.js +128 -0
- package/dist/src/schemas/common/Element/exchange.d.ts +9 -0
- package/dist/src/schemas/common/Element/exchange.js +520 -0
- package/dist/src/schemas/common/Element/registry.d.ts +4 -0
- package/dist/src/schemas/common/Element/registry.js +29 -0
- package/dist/src/schemas/common/ens.d.ts +7 -0
- package/dist/src/schemas/common/ens.js +29 -0
- package/dist/src/schemas/index.d.ts +18 -0
- package/dist/src/schemas/index.js +82 -0
- package/dist/src/schemas/schemasFunctions.d.ts +24 -0
- package/dist/src/schemas/schemasFunctions.js +170 -0
- package/dist/src/schemas/shasta/index.d.ts +1 -0
- package/dist/src/schemas/shasta/index.js +7 -0
- package/dist/src/schemas/tron/index.d.ts +1 -0
- package/dist/src/schemas/tron/index.js +7 -0
- package/dist/src/tokens/index.d.ts +4 -0
- package/dist/src/tokens/index.js +9 -0
- package/dist/src/tokens/shasta/index.d.ts +1 -0
- package/dist/src/tokens/shasta/index.js +6 -0
- package/dist/src/tokens/tron/index.d.ts +1 -0
- package/dist/src/tokens/tron/index.js +6 -0
- package/dist/src/tradeAPI/account.d.ts +33 -0
- package/dist/src/tradeAPI/account.js +533 -0
- package/dist/src/tradeAPI/approve.d.ts +3 -0
- package/dist/src/tradeAPI/approve.js +108 -0
- package/dist/src/tradeAPI/base.d.ts +40 -0
- package/dist/src/tradeAPI/base.js +214 -0
- package/dist/src/tradeAPI/contractSchemas.d.ts +28 -0
- package/dist/src/tradeAPI/contractSchemas.js +313 -0
- package/dist/src/tradeAPI/contracts.d.ts +29 -0
- package/dist/src/tradeAPI/contracts.js +99 -0
- package/dist/src/tradeAPI/index.d.ts +25 -0
- package/dist/src/tradeAPI/index.js +343 -0
- package/dist/src/tradeAPI/nft.d.ts +42 -0
- package/dist/src/tradeAPI/nft.js +285 -0
- package/dist/src/tradeAPI/orders.d.ts +69 -0
- package/dist/src/tradeAPI/orders.js +266 -0
- package/dist/src/tradeAPI/ordersApi.d.ts +54 -0
- package/dist/src/tradeAPI/ordersApi.js +217 -0
- package/dist/src/utils/Abi.d.ts +18 -0
- package/dist/src/utils/Abi.js +473 -0
- package/dist/src/utils/PromiEvent.d.ts +21 -0
- package/dist/src/utils/PromiEvent.js +44 -0
- package/dist/src/utils/check.d.ts +25 -0
- package/dist/src/utils/check.js +626 -0
- package/dist/src/utils/constants.d.ts +22 -0
- package/dist/src/utils/constants.js +55 -0
- package/dist/src/utils/error.d.ts +20 -0
- package/dist/src/utils/error.js +172 -0
- package/dist/src/utils/fees.d.ts +40 -0
- package/dist/src/utils/fees.js +155 -0
- package/dist/src/utils/helper.d.ts +23 -0
- package/dist/src/utils/helper.js +440 -0
- package/dist/src/utils/makeOrder.d.ts +80 -0
- package/dist/src/utils/makeOrder.js +595 -0
- package/dist/src/utils/types.d.ts +541 -0
- package/dist/src/utils/types.js +167 -0
- package/dist/src/utils/utils.d.ts +1 -0
- package/dist/src/utils/utils.js +21 -0
- package/package.json +56 -56
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { APENFTOrders } from './src/tradeAPI/index';
|
|
2
|
+
export { APENFTQuery } from './src/queryAPI/index';
|
|
3
|
+
export { initApprove } from './src/tradeAPI/approve';
|
|
4
|
+
export { Network, MakeOrderType, APENFTSchemaName, OrderSide, AssetSortBy, CollectionTradeTrendFilterDays, EventType, CollectionSortBy, AssetListCollectionTypes, AssetStatus, Category, } from './src/utils/types';
|
|
5
|
+
export { AssetFactory } from './src/tradeAPI/nft';
|
|
6
|
+
export type { APIConfig } from './src/utils/types';
|
|
7
|
+
export { toBaseUnitAmount, getSchemaList, makeBigNumber, } from './src/utils/helper';
|
|
8
|
+
export { NULL_ADDRESS } from './src/utils/constants';
|
|
9
|
+
export { APENFTError } from './src/utils/error';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APENFTError = exports.NULL_ADDRESS = exports.makeBigNumber = exports.getSchemaList = exports.toBaseUnitAmount = exports.AssetFactory = exports.Category = exports.AssetStatus = exports.AssetListCollectionTypes = exports.CollectionSortBy = exports.EventType = exports.CollectionTradeTrendFilterDays = exports.AssetSortBy = exports.OrderSide = exports.APENFTSchemaName = exports.MakeOrderType = exports.Network = exports.initApprove = exports.APENFTQuery = exports.APENFTOrders = void 0;
|
|
4
|
+
var index_1 = require("./src/tradeAPI/index");
|
|
5
|
+
Object.defineProperty(exports, "APENFTOrders", { enumerable: true, get: function () { return index_1.APENFTOrders; } });
|
|
6
|
+
var index_2 = require("./src/queryAPI/index");
|
|
7
|
+
Object.defineProperty(exports, "APENFTQuery", { enumerable: true, get: function () { return index_2.APENFTQuery; } });
|
|
8
|
+
var approve_1 = require("./src/tradeAPI/approve");
|
|
9
|
+
Object.defineProperty(exports, "initApprove", { enumerable: true, get: function () { return approve_1.initApprove; } });
|
|
10
|
+
var types_1 = require("./src/utils/types");
|
|
11
|
+
Object.defineProperty(exports, "Network", { enumerable: true, get: function () { return types_1.Network; } });
|
|
12
|
+
Object.defineProperty(exports, "MakeOrderType", { enumerable: true, get: function () { return types_1.MakeOrderType; } });
|
|
13
|
+
Object.defineProperty(exports, "APENFTSchemaName", { enumerable: true, get: function () { return types_1.APENFTSchemaName; } });
|
|
14
|
+
Object.defineProperty(exports, "OrderSide", { enumerable: true, get: function () { return types_1.OrderSide; } });
|
|
15
|
+
Object.defineProperty(exports, "AssetSortBy", { enumerable: true, get: function () { return types_1.AssetSortBy; } });
|
|
16
|
+
Object.defineProperty(exports, "CollectionTradeTrendFilterDays", { enumerable: true, get: function () { return types_1.CollectionTradeTrendFilterDays; } });
|
|
17
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return types_1.EventType; } });
|
|
18
|
+
Object.defineProperty(exports, "CollectionSortBy", { enumerable: true, get: function () { return types_1.CollectionSortBy; } });
|
|
19
|
+
Object.defineProperty(exports, "AssetListCollectionTypes", { enumerable: true, get: function () { return types_1.AssetListCollectionTypes; } });
|
|
20
|
+
Object.defineProperty(exports, "AssetStatus", { enumerable: true, get: function () { return types_1.AssetStatus; } });
|
|
21
|
+
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return types_1.Category; } });
|
|
22
|
+
var nft_1 = require("./src/tradeAPI/nft");
|
|
23
|
+
Object.defineProperty(exports, "AssetFactory", { enumerable: true, get: function () { return nft_1.AssetFactory; } });
|
|
24
|
+
// for APENFT market
|
|
25
|
+
var helper_1 = require("./src/utils/helper");
|
|
26
|
+
Object.defineProperty(exports, "toBaseUnitAmount", { enumerable: true, get: function () { return helper_1.toBaseUnitAmount; } });
|
|
27
|
+
Object.defineProperty(exports, "getSchemaList", { enumerable: true, get: function () { return helper_1.getSchemaList; } });
|
|
28
|
+
Object.defineProperty(exports, "makeBigNumber", { enumerable: true, get: function () { return helper_1.makeBigNumber; } });
|
|
29
|
+
var constants_1 = require("./src/utils/constants");
|
|
30
|
+
Object.defineProperty(exports, "NULL_ADDRESS", { enumerable: true, get: function () { return constants_1.NULL_ADDRESS; } });
|
|
31
|
+
var error_1 = require("./src/utils/error");
|
|
32
|
+
Object.defineProperty(exports, "APENFTError", { enumerable: true, get: function () { return error_1.APENFTError; } });
|