@xoxno/sdk-js 0.0.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 (137) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintrc.json +19 -0
  3. package/.github/workflows/npm-publish-github-packages.yml +36 -0
  4. package/.prettierrc +8 -0
  5. package/.releaserc +10 -0
  6. package/.vscode/settings.json +3 -0
  7. package/LICENSE +674 -0
  8. package/commitlint.config.js +3 -0
  9. package/coverage/clover.xml +280 -0
  10. package/coverage/coverage-final.json +12 -0
  11. package/coverage/lcov-report/base.css +224 -0
  12. package/coverage/lcov-report/block-navigation.js +87 -0
  13. package/coverage/lcov-report/collection/index.html +116 -0
  14. package/coverage/lcov-report/collection/index.ts.html +559 -0
  15. package/coverage/lcov-report/favicon.png +0 -0
  16. package/coverage/lcov-report/index.html +161 -0
  17. package/coverage/lcov-report/interactions/index.html +116 -0
  18. package/coverage/lcov-report/interactions/index.ts.html +775 -0
  19. package/coverage/lcov-report/nft/index.html +116 -0
  20. package/coverage/lcov-report/nft/index.ts.html +379 -0
  21. package/coverage/lcov-report/prettify.css +1 -0
  22. package/coverage/lcov-report/prettify.js +2 -0
  23. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  24. package/coverage/lcov-report/sorter.js +196 -0
  25. package/coverage/lcov-report/utils/SmartContractAbis.ts.html +331 -0
  26. package/coverage/lcov-report/utils/SmartContractService.ts.html +136 -0
  27. package/coverage/lcov-report/utils/api.ts.html +484 -0
  28. package/coverage/lcov-report/utils/const.ts.html +163 -0
  29. package/coverage/lcov-report/utils/getActivity.ts.html +250 -0
  30. package/coverage/lcov-report/utils/helpers.ts.html +127 -0
  31. package/coverage/lcov-report/utils/index.html +221 -0
  32. package/coverage/lcov-report/utils/regex.ts.html +106 -0
  33. package/coverage/lcov-report/utils/scCalls.ts.html +229 -0
  34. package/coverage/lcov.info +525 -0
  35. package/docs/.nojekyll +1 -0
  36. package/docs/assets/highlight.css +64 -0
  37. package/docs/assets/main.js +58 -0
  38. package/docs/assets/search.js +1 -0
  39. package/docs/assets/style.css +1279 -0
  40. package/docs/classes/collection.CollectionModule.html +232 -0
  41. package/docs/classes/interactions.SCInteraction.html +370 -0
  42. package/docs/classes/nft.NFTModule.html +208 -0
  43. package/docs/classes/utils_SmartContractAbis.SmartContractAbis.html +198 -0
  44. package/docs/classes/utils_api.APIClient.html +212 -0
  45. package/docs/classes/utils_scCalls.ContractQueryRunner.html +129 -0
  46. package/docs/enums/types_collection.FieldsToSelect.html +186 -0
  47. package/docs/enums/types_collection.Marketplace.html +102 -0
  48. package/docs/enums/types_collection.SearchOrderBy.html +130 -0
  49. package/docs/enums/types_trading.OrderByTradingActivity.html +102 -0
  50. package/docs/enums/types_trading.SelectFieldsTradingActivity.html +144 -0
  51. package/docs/enums/utils_api.Chain.html +88 -0
  52. package/docs/functions/utils_SmartContractService.getSmartContract.html +77 -0
  53. package/docs/functions/utils_getActivity.getActivity.html +89 -0
  54. package/docs/functions/utils_helpers.getIdentifierFromColAndNonce.html +76 -0
  55. package/docs/functions/utils_helpers.nonceToHex.html +74 -0
  56. package/docs/functions/utils_regex.isValidCollectionTicker.html +74 -0
  57. package/docs/functions/utils_regex.isValidNftIdentifier.html +74 -0
  58. package/docs/index.html +55 -0
  59. package/docs/interfaces/types_collection.AttributeData.html +99 -0
  60. package/docs/interfaces/types_collection.Filter.html +157 -0
  61. package/docs/interfaces/types_collection.GlobalOffer.html +176 -0
  62. package/docs/interfaces/types_collection.ICollectionAttributes.html +85 -0
  63. package/docs/interfaces/types_collection.ICollectionProfile.html +263 -0
  64. package/docs/interfaces/types_collection.IMintInfo.html +155 -0
  65. package/docs/interfaces/types_collection.ISocials.html +127 -0
  66. package/docs/interfaces/types_collection.MetadataAttribute.html +92 -0
  67. package/docs/interfaces/types_collection.SearchNFTs.html +127 -0
  68. package/docs/interfaces/types_collection.SearchNFTsArgs.html +225 -0
  69. package/docs/interfaces/types_collection.SearchNFTsResponse.html +132 -0
  70. package/docs/interfaces/types_collection.TradingActivity.html +232 -0
  71. package/docs/interfaces/types_collection.TraitValues.html +85 -0
  72. package/docs/interfaces/types_nft.GameData.html +92 -0
  73. package/docs/interfaces/types_nft.NFTAttribute.html +127 -0
  74. package/docs/interfaces/types_nft.NFTMetadata.html +104 -0
  75. package/docs/interfaces/types_nft.NftData.html +253 -0
  76. package/docs/interfaces/types_nft.NftValue.html +106 -0
  77. package/docs/interfaces/types_nft.OffersInfo.html +169 -0
  78. package/docs/interfaces/types_nft.OriginalMedia.html +92 -0
  79. package/docs/interfaces/types_nft.SaleInfoNft.html +211 -0
  80. package/docs/interfaces/types_trading.TradincActivityArgs.html +225 -0
  81. package/docs/interfaces/types_trading.TradingActivityQueryFilter.html +151 -0
  82. package/docs/interfaces/types_trading.TradingActivityResponse.html +106 -0
  83. package/docs/modules/collection.html +71 -0
  84. package/docs/modules/interactions.html +71 -0
  85. package/docs/modules/nft.html +71 -0
  86. package/docs/modules/types.html +189 -0
  87. package/docs/modules/types_collection.html +104 -0
  88. package/docs/modules/types_interactions.html +69 -0
  89. package/docs/modules/types_nft.html +85 -0
  90. package/docs/modules/types_trading.html +82 -0
  91. package/docs/modules/utils_SmartContractAbis.html +71 -0
  92. package/docs/modules/utils_SmartContractService.html +71 -0
  93. package/docs/modules/utils_api.html +76 -0
  94. package/docs/modules/utils_const.html +95 -0
  95. package/docs/modules/utils_getActivity.html +71 -0
  96. package/docs/modules/utils_helpers.html +73 -0
  97. package/docs/modules/utils_regex.html +73 -0
  98. package/docs/modules/utils_scCalls.html +71 -0
  99. package/docs/modules.html +76 -0
  100. package/docs/types/types_interactions.Offer.html +89 -0
  101. package/docs/variables/utils_const.API_URL.html +76 -0
  102. package/docs/variables/utils_const.API_URL_DEV.html +76 -0
  103. package/docs/variables/utils_const.DR_SC.html +76 -0
  104. package/docs/variables/utils_const.FM_SC.html +76 -0
  105. package/docs/variables/utils_const.KG_SC.html +76 -0
  106. package/docs/variables/utils_const.Manager_SC.html +76 -0
  107. package/docs/variables/utils_const.Manager_SC_DEV.html +76 -0
  108. package/docs/variables/utils_const.P2P_SC.html +76 -0
  109. package/docs/variables/utils_const.P2P_SC_DEV.html +76 -0
  110. package/docs/variables/utils_const.Staking_SC.html +76 -0
  111. package/docs/variables/utils_const.Staking_SC_DEV.html +76 -0
  112. package/docs/variables/utils_const.XOXNO_SC.html +76 -0
  113. package/docs/variables/utils_const.XOXNO_SC_DEV.html +76 -0
  114. package/jest.config.js +7 -0
  115. package/package.json +74 -0
  116. package/src/collection/__tests__/collection.test.ts +100 -0
  117. package/src/collection/index.ts +158 -0
  118. package/src/index.ts +20 -0
  119. package/src/interactions/__tests__/market.test.ts +92 -0
  120. package/src/interactions/index.ts +228 -0
  121. package/src/nft/__tests__/nft.test.ts +84 -0
  122. package/src/nft/index.ts +98 -0
  123. package/src/types/collection.d.ts +267 -0
  124. package/src/types/index.ts +3 -0
  125. package/src/types/interactions.d.ts +16 -0
  126. package/src/types/nft.d.ts +100 -0
  127. package/src/types/trading.d.ts +95 -0
  128. package/src/utils/SmartContractAbis.ts +82 -0
  129. package/src/utils/SmartContractService.ts +17 -0
  130. package/src/utils/api.ts +133 -0
  131. package/src/utils/const.ts +26 -0
  132. package/src/utils/getActivity.ts +55 -0
  133. package/src/utils/helpers.ts +14 -0
  134. package/src/utils/regex.ts +7 -0
  135. package/src/utils/scCalls.ts +48 -0
  136. package/tsconfig.json +13 -0
  137. package/webpack.config.js +28 -0
package/.editorconfig ADDED
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
package/.eslintrc.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "parser": "@typescript-eslint/parser",
3
+ "plugins": ["@typescript-eslint", "prettier"],
4
+ "extends": [
5
+ "eslint:recommended",
6
+ "plugin:@typescript-eslint/recommended",
7
+ "plugin:prettier/recommended"
8
+ ],
9
+ "rules": {
10
+ "prettier/prettier": "error",
11
+ "@typescript-eslint/explicit-function-return-type": "off",
12
+ "@typescript-eslint/no-explicit-any": "off"
13
+ },
14
+ "env": {
15
+ "node": true,
16
+ "es6": true
17
+ }
18
+ }
19
+
@@ -0,0 +1,36 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 16
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-gpr:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ permissions:
25
+ contents: read
26
+ packages: write
27
+ steps:
28
+ - uses: actions/checkout@v3
29
+ - uses: actions/setup-node@v3
30
+ with:
31
+ node-version: 16
32
+ registry-url: https://npm.pkg.github.com/
33
+ - run: npm ci
34
+ - run: npm publish
35
+ env:
36
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
package/.prettierrc ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "trailingComma": "es5",
3
+ "tabWidth": 2,
4
+ "semi": true,
5
+ "singleQuote": true,
6
+ "printWidth": 80
7
+ }
8
+
package/.releaserc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "plugins": [
3
+ "@semantic-release/commit-analyzer",
4
+ "@semantic-release/release-notes-generator",
5
+ "@semantic-release/changelog",
6
+ "@semantic-release/npm",
7
+ "@semantic-release/git"
8
+ ],
9
+ "preset": "angular"
10
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "livePreview.defaultPreviewPath": "/docs/index.html"
3
+ }