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.
Files changed (109) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/dist/index.js +32 -0
  3. package/dist/src/abi/APENFT721.json +632 -0
  4. package/dist/src/abi/APENFTExchange.json +1601 -0
  5. package/dist/src/abi/APENFTSharedAsset.json +1045 -0
  6. package/dist/src/abi/AuthenticatedProxy.json +274 -0
  7. package/dist/src/abi/ERC1155.json +418 -0
  8. package/dist/src/abi/ERC20.json +178 -0
  9. package/dist/src/abi/ERC20AssetProxy.json +213 -0
  10. package/dist/src/abi/ERC721v3.json +446 -0
  11. package/dist/src/abi/ExchangeHelper.json +1766 -0
  12. package/dist/src/abi/FactoryContract.json +4 -0
  13. package/dist/src/config.d.ts +57 -0
  14. package/dist/src/config.js +76 -0
  15. package/dist/src/queryAPI/graphql/accountApi.d.ts +11 -0
  16. package/dist/src/queryAPI/graphql/accountApi.js +148 -0
  17. package/dist/src/queryAPI/graphql/assetApi.d.ts +15 -0
  18. package/dist/src/queryAPI/graphql/assetApi.js +204 -0
  19. package/dist/src/queryAPI/graphql/base.d.ts +37 -0
  20. package/dist/src/queryAPI/graphql/base.js +65 -0
  21. package/dist/src/queryAPI/graphql/collectionApi.d.ts +11 -0
  22. package/dist/src/queryAPI/graphql/collectionApi.js +148 -0
  23. package/dist/src/queryAPI/graphql/gql/account.d.ts +6 -0
  24. package/dist/src/queryAPI/graphql/gql/account.js +16 -0
  25. package/dist/src/queryAPI/graphql/gql/asset.d.ts +10 -0
  26. package/dist/src/queryAPI/graphql/gql/asset.js +20 -0
  27. package/dist/src/queryAPI/graphql/gql/collection.d.ts +6 -0
  28. package/dist/src/queryAPI/graphql/gql/collection.js +16 -0
  29. package/dist/src/queryAPI/graphql/gql/fragments.d.ts +8 -0
  30. package/dist/src/queryAPI/graphql/gql/fragments.js +17 -0
  31. package/dist/src/queryAPI/graphql/gql/ranking.d.ts +1 -0
  32. package/dist/src/queryAPI/graphql/gql/ranking.js +11 -0
  33. package/dist/src/queryAPI/graphql/index.d.ts +11 -0
  34. package/dist/src/queryAPI/graphql/index.js +17 -0
  35. package/dist/src/queryAPI/graphql/rankingApi.d.ts +6 -0
  36. package/dist/src/queryAPI/graphql/rankingApi.js +78 -0
  37. package/dist/src/queryAPI/index.d.ts +58 -0
  38. package/dist/src/queryAPI/index.js +771 -0
  39. package/dist/src/queryAPI/restful/base.d.ts +50 -0
  40. package/dist/src/queryAPI/restful/base.js +223 -0
  41. package/dist/src/queryAPI/restful/index.d.ts +1 -0
  42. package/dist/src/queryAPI/restful/index.js +2 -0
  43. package/dist/src/queryAPI/restful/queryAPI.d.ts +26 -0
  44. package/dist/src/queryAPI/restful/queryAPI.js +44 -0
  45. package/dist/src/schemas/common/ERC1155/index.d.ts +7 -0
  46. package/dist/src/schemas/common/ERC1155/index.js +140 -0
  47. package/dist/src/schemas/common/ERC20/index.d.ts +6 -0
  48. package/dist/src/schemas/common/ERC20/index.js +132 -0
  49. package/dist/src/schemas/common/ERC721/index.d.ts +5 -0
  50. package/dist/src/schemas/common/ERC721/index.js +128 -0
  51. package/dist/src/schemas/common/Element/exchange.d.ts +9 -0
  52. package/dist/src/schemas/common/Element/exchange.js +520 -0
  53. package/dist/src/schemas/common/Element/registry.d.ts +4 -0
  54. package/dist/src/schemas/common/Element/registry.js +29 -0
  55. package/dist/src/schemas/common/ens.d.ts +7 -0
  56. package/dist/src/schemas/common/ens.js +29 -0
  57. package/dist/src/schemas/index.d.ts +18 -0
  58. package/dist/src/schemas/index.js +82 -0
  59. package/dist/src/schemas/schemasFunctions.d.ts +24 -0
  60. package/dist/src/schemas/schemasFunctions.js +170 -0
  61. package/dist/src/schemas/shasta/index.d.ts +1 -0
  62. package/dist/src/schemas/shasta/index.js +7 -0
  63. package/dist/src/schemas/tron/index.d.ts +1 -0
  64. package/dist/src/schemas/tron/index.js +7 -0
  65. package/dist/src/tokens/index.d.ts +4 -0
  66. package/dist/src/tokens/index.js +9 -0
  67. package/dist/src/tokens/shasta/index.d.ts +1 -0
  68. package/dist/src/tokens/shasta/index.js +6 -0
  69. package/dist/src/tokens/tron/index.d.ts +1 -0
  70. package/dist/src/tokens/tron/index.js +6 -0
  71. package/dist/src/tradeAPI/account.d.ts +33 -0
  72. package/dist/src/tradeAPI/account.js +533 -0
  73. package/dist/src/tradeAPI/approve.d.ts +3 -0
  74. package/dist/src/tradeAPI/approve.js +108 -0
  75. package/dist/src/tradeAPI/base.d.ts +40 -0
  76. package/dist/src/tradeAPI/base.js +214 -0
  77. package/dist/src/tradeAPI/contractSchemas.d.ts +28 -0
  78. package/dist/src/tradeAPI/contractSchemas.js +313 -0
  79. package/dist/src/tradeAPI/contracts.d.ts +29 -0
  80. package/dist/src/tradeAPI/contracts.js +99 -0
  81. package/dist/src/tradeAPI/index.d.ts +25 -0
  82. package/dist/src/tradeAPI/index.js +343 -0
  83. package/dist/src/tradeAPI/nft.d.ts +42 -0
  84. package/dist/src/tradeAPI/nft.js +285 -0
  85. package/dist/src/tradeAPI/orders.d.ts +69 -0
  86. package/dist/src/tradeAPI/orders.js +266 -0
  87. package/dist/src/tradeAPI/ordersApi.d.ts +54 -0
  88. package/dist/src/tradeAPI/ordersApi.js +217 -0
  89. package/dist/src/utils/Abi.d.ts +18 -0
  90. package/dist/src/utils/Abi.js +473 -0
  91. package/dist/src/utils/PromiEvent.d.ts +21 -0
  92. package/dist/src/utils/PromiEvent.js +44 -0
  93. package/dist/src/utils/check.d.ts +25 -0
  94. package/dist/src/utils/check.js +626 -0
  95. package/dist/src/utils/constants.d.ts +22 -0
  96. package/dist/src/utils/constants.js +55 -0
  97. package/dist/src/utils/error.d.ts +20 -0
  98. package/dist/src/utils/error.js +172 -0
  99. package/dist/src/utils/fees.d.ts +40 -0
  100. package/dist/src/utils/fees.js +155 -0
  101. package/dist/src/utils/helper.d.ts +23 -0
  102. package/dist/src/utils/helper.js +440 -0
  103. package/dist/src/utils/makeOrder.d.ts +80 -0
  104. package/dist/src/utils/makeOrder.js +595 -0
  105. package/dist/src/utils/types.d.ts +541 -0
  106. package/dist/src/utils/types.js +167 -0
  107. package/dist/src/utils/utils.d.ts +1 -0
  108. package/dist/src/utils/utils.js +21 -0
  109. package/package.json +56 -56
@@ -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; } });