@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.
- package/.editorconfig +9 -0
- package/.eslintrc.json +19 -0
- package/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.prettierrc +8 -0
- package/.releaserc +10 -0
- package/.vscode/settings.json +3 -0
- package/LICENSE +674 -0
- package/commitlint.config.js +3 -0
- package/coverage/clover.xml +280 -0
- package/coverage/coverage-final.json +12 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/collection/index.html +116 -0
- package/coverage/lcov-report/collection/index.ts.html +559 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +161 -0
- package/coverage/lcov-report/interactions/index.html +116 -0
- package/coverage/lcov-report/interactions/index.ts.html +775 -0
- package/coverage/lcov-report/nft/index.html +116 -0
- package/coverage/lcov-report/nft/index.ts.html +379 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/utils/SmartContractAbis.ts.html +331 -0
- package/coverage/lcov-report/utils/SmartContractService.ts.html +136 -0
- package/coverage/lcov-report/utils/api.ts.html +484 -0
- package/coverage/lcov-report/utils/const.ts.html +163 -0
- package/coverage/lcov-report/utils/getActivity.ts.html +250 -0
- package/coverage/lcov-report/utils/helpers.ts.html +127 -0
- package/coverage/lcov-report/utils/index.html +221 -0
- package/coverage/lcov-report/utils/regex.ts.html +106 -0
- package/coverage/lcov-report/utils/scCalls.ts.html +229 -0
- package/coverage/lcov.info +525 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +64 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1279 -0
- package/docs/classes/collection.CollectionModule.html +232 -0
- package/docs/classes/interactions.SCInteraction.html +370 -0
- package/docs/classes/nft.NFTModule.html +208 -0
- package/docs/classes/utils_SmartContractAbis.SmartContractAbis.html +198 -0
- package/docs/classes/utils_api.APIClient.html +212 -0
- package/docs/classes/utils_scCalls.ContractQueryRunner.html +129 -0
- package/docs/enums/types_collection.FieldsToSelect.html +186 -0
- package/docs/enums/types_collection.Marketplace.html +102 -0
- package/docs/enums/types_collection.SearchOrderBy.html +130 -0
- package/docs/enums/types_trading.OrderByTradingActivity.html +102 -0
- package/docs/enums/types_trading.SelectFieldsTradingActivity.html +144 -0
- package/docs/enums/utils_api.Chain.html +88 -0
- package/docs/functions/utils_SmartContractService.getSmartContract.html +77 -0
- package/docs/functions/utils_getActivity.getActivity.html +89 -0
- package/docs/functions/utils_helpers.getIdentifierFromColAndNonce.html +76 -0
- package/docs/functions/utils_helpers.nonceToHex.html +74 -0
- package/docs/functions/utils_regex.isValidCollectionTicker.html +74 -0
- package/docs/functions/utils_regex.isValidNftIdentifier.html +74 -0
- package/docs/index.html +55 -0
- package/docs/interfaces/types_collection.AttributeData.html +99 -0
- package/docs/interfaces/types_collection.Filter.html +157 -0
- package/docs/interfaces/types_collection.GlobalOffer.html +176 -0
- package/docs/interfaces/types_collection.ICollectionAttributes.html +85 -0
- package/docs/interfaces/types_collection.ICollectionProfile.html +263 -0
- package/docs/interfaces/types_collection.IMintInfo.html +155 -0
- package/docs/interfaces/types_collection.ISocials.html +127 -0
- package/docs/interfaces/types_collection.MetadataAttribute.html +92 -0
- package/docs/interfaces/types_collection.SearchNFTs.html +127 -0
- package/docs/interfaces/types_collection.SearchNFTsArgs.html +225 -0
- package/docs/interfaces/types_collection.SearchNFTsResponse.html +132 -0
- package/docs/interfaces/types_collection.TradingActivity.html +232 -0
- package/docs/interfaces/types_collection.TraitValues.html +85 -0
- package/docs/interfaces/types_nft.GameData.html +92 -0
- package/docs/interfaces/types_nft.NFTAttribute.html +127 -0
- package/docs/interfaces/types_nft.NFTMetadata.html +104 -0
- package/docs/interfaces/types_nft.NftData.html +253 -0
- package/docs/interfaces/types_nft.NftValue.html +106 -0
- package/docs/interfaces/types_nft.OffersInfo.html +169 -0
- package/docs/interfaces/types_nft.OriginalMedia.html +92 -0
- package/docs/interfaces/types_nft.SaleInfoNft.html +211 -0
- package/docs/interfaces/types_trading.TradincActivityArgs.html +225 -0
- package/docs/interfaces/types_trading.TradingActivityQueryFilter.html +151 -0
- package/docs/interfaces/types_trading.TradingActivityResponse.html +106 -0
- package/docs/modules/collection.html +71 -0
- package/docs/modules/interactions.html +71 -0
- package/docs/modules/nft.html +71 -0
- package/docs/modules/types.html +189 -0
- package/docs/modules/types_collection.html +104 -0
- package/docs/modules/types_interactions.html +69 -0
- package/docs/modules/types_nft.html +85 -0
- package/docs/modules/types_trading.html +82 -0
- package/docs/modules/utils_SmartContractAbis.html +71 -0
- package/docs/modules/utils_SmartContractService.html +71 -0
- package/docs/modules/utils_api.html +76 -0
- package/docs/modules/utils_const.html +95 -0
- package/docs/modules/utils_getActivity.html +71 -0
- package/docs/modules/utils_helpers.html +73 -0
- package/docs/modules/utils_regex.html +73 -0
- package/docs/modules/utils_scCalls.html +71 -0
- package/docs/modules.html +76 -0
- package/docs/types/types_interactions.Offer.html +89 -0
- package/docs/variables/utils_const.API_URL.html +76 -0
- package/docs/variables/utils_const.API_URL_DEV.html +76 -0
- package/docs/variables/utils_const.DR_SC.html +76 -0
- package/docs/variables/utils_const.FM_SC.html +76 -0
- package/docs/variables/utils_const.KG_SC.html +76 -0
- package/docs/variables/utils_const.Manager_SC.html +76 -0
- package/docs/variables/utils_const.Manager_SC_DEV.html +76 -0
- package/docs/variables/utils_const.P2P_SC.html +76 -0
- package/docs/variables/utils_const.P2P_SC_DEV.html +76 -0
- package/docs/variables/utils_const.Staking_SC.html +76 -0
- package/docs/variables/utils_const.Staking_SC_DEV.html +76 -0
- package/docs/variables/utils_const.XOXNO_SC.html +76 -0
- package/docs/variables/utils_const.XOXNO_SC_DEV.html +76 -0
- package/jest.config.js +7 -0
- package/package.json +74 -0
- package/src/collection/__tests__/collection.test.ts +100 -0
- package/src/collection/index.ts +158 -0
- package/src/index.ts +20 -0
- package/src/interactions/__tests__/market.test.ts +92 -0
- package/src/interactions/index.ts +228 -0
- package/src/nft/__tests__/nft.test.ts +84 -0
- package/src/nft/index.ts +98 -0
- package/src/types/collection.d.ts +267 -0
- package/src/types/index.ts +3 -0
- package/src/types/interactions.d.ts +16 -0
- package/src/types/nft.d.ts +100 -0
- package/src/types/trading.d.ts +95 -0
- package/src/utils/SmartContractAbis.ts +82 -0
- package/src/utils/SmartContractService.ts +17 -0
- package/src/utils/api.ts +133 -0
- package/src/utils/const.ts +26 -0
- package/src/utils/getActivity.ts +55 -0
- package/src/utils/helpers.ts +14 -0
- package/src/utils/regex.ts +7 -0
- package/src/utils/scCalls.ts +48 -0
- package/tsconfig.json +13 -0
- package/webpack.config.js +28 -0
package/.editorconfig
ADDED
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
package/.releaserc
ADDED