@meshsdk/common 1.6.0-alpha.21 → 1.6.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 (84) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/{index.d.mts → index.d.cts} +96 -8
  3. package/dist/index.d.ts +96 -8
  4. package/dist/index.js +1 -1316
  5. package/package.json +28 -9
  6. package/.turbo/turbo-build$colon$docs.log +0 -17
  7. package/.turbo/turbo-build$colon$mesh.log +0 -19
  8. package/.turbo/turbo-build.log +0 -19
  9. package/dist/index.mjs +0 -1189
  10. package/src/constants/cost-models.ts +0 -30
  11. package/src/constants/index.ts +0 -86
  12. package/src/constants/language-views.ts +0 -19
  13. package/src/constants/protocol-parameters.ts +0 -34
  14. package/src/constants/supported-wallets.ts +0 -12
  15. package/src/data/index.ts +0 -5
  16. package/src/data/json/aliases.ts +0 -218
  17. package/src/data/json/constructors.ts +0 -56
  18. package/src/data/json/credentials.ts +0 -77
  19. package/src/data/json/index.ts +0 -33
  20. package/src/data/json/primitives.ts +0 -154
  21. package/src/data/mesh/aliases.ts +0 -85
  22. package/src/data/mesh/constructors.ts +0 -68
  23. package/src/data/mesh/credentials.ts +0 -77
  24. package/src/data/mesh/index.ts +0 -4
  25. package/src/data/mesh/primitives.ts +0 -37
  26. package/src/data/parser.ts +0 -36
  27. package/src/data/time.ts +0 -92
  28. package/src/data/value.ts +0 -70
  29. package/src/index.ts +0 -7
  30. package/src/interfaces/evaluator.ts +0 -5
  31. package/src/interfaces/fetcher.ts +0 -31
  32. package/src/interfaces/index.ts +0 -7
  33. package/src/interfaces/initiator.ts +0 -9
  34. package/src/interfaces/listener.ts +0 -3
  35. package/src/interfaces/serializer.ts +0 -53
  36. package/src/interfaces/signer.ts +0 -12
  37. package/src/interfaces/submitter.ts +0 -3
  38. package/src/types/account-info.ts +0 -7
  39. package/src/types/action.ts +0 -15
  40. package/src/types/asset-extended.ts +0 -9
  41. package/src/types/asset-metadata.ts +0 -102
  42. package/src/types/asset.ts +0 -23
  43. package/src/types/block-info.ts +0 -17
  44. package/src/types/data-signature.ts +0 -4
  45. package/src/types/data.ts +0 -10
  46. package/src/types/deserialized/deserialized-address.ts +0 -6
  47. package/src/types/deserialized/deserialized-script.ts +0 -4
  48. package/src/types/deserialized/index.ts +0 -2
  49. package/src/types/era.ts +0 -1
  50. package/src/types/index.ts +0 -24
  51. package/src/types/message.ts +0 -4
  52. package/src/types/mint.ts +0 -12
  53. package/src/types/native-script.ts +0 -18
  54. package/src/types/network.ts +0 -7
  55. package/src/types/plutus-script.ts +0 -8
  56. package/src/types/pool-params.ts +0 -41
  57. package/src/types/protocol.ts +0 -22
  58. package/src/types/recipient.ts +0 -15
  59. package/src/types/relay.ts +0 -42
  60. package/src/types/token.ts +0 -3
  61. package/src/types/transaction-builder/data.ts +0 -31
  62. package/src/types/transaction-builder/index.ts +0 -73
  63. package/src/types/transaction-builder/mint.ts +0 -11
  64. package/src/types/transaction-builder/output.ts +0 -12
  65. package/src/types/transaction-builder/script.ts +0 -27
  66. package/src/types/transaction-builder/txin.ts +0 -46
  67. package/src/types/transaction-builder/withdrawal.ts +0 -207
  68. package/src/types/transaction-info.ts +0 -11
  69. package/src/types/utxo.ts +0 -16
  70. package/src/types/wallet.ts +0 -6
  71. package/src/utils/asset-fingerprint.ts +0 -11
  72. package/src/utils/bigNum.ts +0 -61
  73. package/src/utils/index.ts +0 -2
  74. package/test/data/json/aliases.test.ts +0 -135
  75. package/test/data/json/constructors.test.ts +0 -38
  76. package/test/data/json/credentials.test.ts +0 -84
  77. package/test/data/json/primitives.test.ts +0 -133
  78. package/test/data/mesh/aliases.test.ts +0 -45
  79. package/test/data/mesh/common.ts +0 -14
  80. package/test/data/mesh/constructors.test.ts +0 -53
  81. package/test/data/mesh/credentials.test.ts +0 -74
  82. package/test/data/mesh/primitives.test.ts +0 -41
  83. package/test/data/value.test.ts +0 -108
  84. package/tsconfig.json +0 -5
package/package.json CHANGED
@@ -1,32 +1,51 @@
1
1
  {
2
2
  "name": "@meshsdk/common",
3
- "version": "1.6.0-alpha.21",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "type": "module",
5
9
  "exports": {
6
10
  ".": {
7
- "import": "./dist/index.mjs",
8
- "require": "./dist/index.js"
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs",
13
+ "types": "./dist/index.d.ts"
9
14
  }
10
15
  },
11
- "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist/**"
18
+ ],
12
19
  "scripts": {
13
- "build:mesh": "tsup src/index.ts --format esm,cjs --dts",
20
+ "build:mesh": "tsup src/index.ts --format esm,cjs --dts --minify",
14
21
  "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
15
22
  "lint": "eslint",
16
23
  "clean": "rm -rf .turbo && rm -rf dist && rm -rf node_modules",
17
24
  "format": "prettier --check . --ignore-path ../../.gitignore",
18
- "build:docs": "typedoc src/index.ts --json ../../apps/docs/src/data/mesh-common.json"
25
+ "build:docs": "typedoc src/index.ts --json ../../apps/docs/src/data/mesh-common.json",
26
+ "test": "jest"
19
27
  },
20
28
  "dependencies": {
21
29
  "@emurgo/cip14-js": "3.0.1",
22
30
  "bip39": "3.1.0"
23
31
  },
24
32
  "devDependencies": {
25
- "@meshsdk/eslint-config": "workspace:*",
26
- "@meshsdk/typescript-config": "workspace:*",
33
+ "@meshsdk/eslint-config": "*",
34
+ "@meshsdk/typescript-config": "*",
27
35
  "eslint": "^8.57.0",
28
36
  "tsup": "^8.0.2",
29
37
  "typescript": "^5.3.3"
30
38
  },
31
- "prettier": "@meshsdk/prettier-config"
39
+ "prettier": "@meshsdk/prettier-config",
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "license": "Apache-2.0",
44
+ "keywords": [
45
+ "cardano",
46
+ "ada",
47
+ "web3",
48
+ "blockchain",
49
+ "sdk"
50
+ ]
32
51
  }
@@ -1,17 +0,0 @@
1
-
2
- > @meshsdk/common@1.6.0-alpha.21 build:docs
3
- > typedoc src/index.ts --json ../../apps/docs/src/data/mesh-common.json
4
-
5
- [warning] The signature mConStr0 has an @param with name "alternative", which was not used
6
- [warning] The signature mConStr1 has an @param with name "alternative", which was not used
7
- [warning] The signature mConStr2 has an @param with name "alternative", which was not used
8
- [warning] MetadataStandard, defined in ./src/types/asset-metadata.ts, is referenced by FungibleAssetMetadata but not included in the documentation
9
- [warning] ALL_NETWORKS, defined in ./src/types/network.ts, is referenced by Network but not included in the documentation
10
- [warning] AudioAssetMetadata, defined in ./src/types/asset-metadata.ts, is referenced by NonFungibleAssetMetadata but not included in the documentation
11
- [warning] SmartAssetMetadata, defined in ./src/types/asset-metadata.ts, is referenced by NonFungibleAssetMetadata but not included in the documentation
12
- [warning] VideoAssetMetadata, defined in ./src/types/asset-metadata.ts, is referenced by NonFungibleAssetMetadata but not included in the documentation
13
- [warning] SometimesPromise, defined in ./src/interfaces/initiator.ts, is referenced by IInitiator.getChangeAddress but not included in the documentation
14
- [warning] SometimesPromise, defined in ./src/interfaces/signer.ts, is referenced by ISigner.signData but not included in the documentation
15
- [info] JSON written to /Users/jingles/Documents/GitHub/mesh-v2/apps/docs/src/data/mesh-common.json
16
- [warning] Found 0 errors and 10 warnings
17
- ⠙
@@ -1,19 +0,0 @@
1
-
2
- > @meshsdk/common@1.6.0-alpha.21 build:mesh
3
- > tsup src/index.ts --format esm,cjs --dts
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.2.3
8
- CLI Target: es2020
9
- ESM Build start
10
- CJS Build start
11
- ESM dist/index.mjs 29.13 KB
12
- ESM ⚡️ Build success in 25ms
13
- CJS dist/index.js 34.16 KB
14
- CJS ⚡️ Build success in 25ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 779ms
17
- DTS dist/index.d.mts 36.23 KB
18
- DTS dist/index.d.ts 36.23 KB
19
- ⠙
@@ -1,19 +0,0 @@
1
-
2
- > @meshsdk/common@0.0.1 build
3
- > tsup src/index.ts --format esm,cjs --dts
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.2.3
8
- CLI Target: es2020
9
- ESM Build start
10
- CJS Build start
11
- CJS dist/index.js 34.16 KB
12
- CJS ⚡️ Build success in 37ms
13
- ESM dist/index.mjs 29.13 KB
14
- ESM ⚡️ Build success in 37ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 897ms
17
- DTS dist/index.d.mts 36.37 KB
18
- DTS dist/index.d.ts 36.37 KB
19
- ⠙