@steemit/steem-js 0.7.11 → 0.8.0

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 (74) hide show
  1. package/README.md +22 -3
  2. package/circle.yml +1 -1
  3. package/config.json +1 -1
  4. package/dist/steem-tests.min.js +4097 -23
  5. package/dist/steem.min.js +2089 -18
  6. package/docker-webpack.config.js +44 -0
  7. package/lib/api/index.js +305 -412
  8. package/lib/api/methods.js +16 -1
  9. package/lib/api/rpc-auth.js +135 -0
  10. package/lib/api/transports/base.js +25 -66
  11. package/lib/api/transports/http.js +114 -129
  12. package/lib/api/transports/index.js +8 -15
  13. package/lib/api/transports/ws.js +107 -207
  14. package/lib/auth/ecc/index.js +9 -9
  15. package/lib/auth/ecc/src/address.js +48 -78
  16. package/lib/auth/ecc/src/aes.js +93 -129
  17. package/lib/auth/ecc/src/brain_key.js +7 -7
  18. package/lib/auth/ecc/src/ecdsa.js +7 -33
  19. package/lib/auth/ecc/src/ecsignature.js +4 -30
  20. package/lib/auth/ecc/src/enforce_types.js +1 -8
  21. package/lib/auth/ecc/src/hash.js +16 -25
  22. package/lib/auth/ecc/src/key_private.js +146 -199
  23. package/lib/auth/ecc/src/key_public.js +130 -202
  24. package/lib/auth/ecc/src/key_utils.js +64 -106
  25. package/lib/auth/ecc/src/signature.js +125 -177
  26. package/lib/auth/index.js +84 -97
  27. package/lib/auth/memo.js +90 -118
  28. package/lib/auth/serializer/index.js +12 -18
  29. package/lib/auth/serializer/src/ChainTypes.js +0 -3
  30. package/lib/auth/serializer/src/convert.js +29 -32
  31. package/lib/auth/serializer/src/error_with_cause.js +22 -37
  32. package/lib/auth/serializer/src/fast_parser.js +54 -74
  33. package/lib/auth/serializer/src/number_utils.js +30 -54
  34. package/lib/auth/serializer/src/object_id.js +37 -62
  35. package/lib/auth/serializer/src/operations.js +597 -689
  36. package/lib/auth/serializer/src/precision.js +55 -73
  37. package/lib/auth/serializer/src/serializer.js +158 -204
  38. package/lib/auth/serializer/src/template.js +13 -8
  39. package/lib/auth/serializer/src/types.js +949 -1102
  40. package/lib/auth/serializer/src/validation.js +268 -328
  41. package/lib/broadcast/helpers.js +61 -98
  42. package/lib/broadcast/index.js +61 -82
  43. package/lib/browser.js +15 -19
  44. package/lib/config.js +16 -38
  45. package/lib/formatter.js +89 -115
  46. package/lib/index.js +19 -17
  47. package/lib/utils.js +4 -9
  48. package/node-18.dockerfile +28 -0
  49. package/package.json +62 -38
  50. package/test/Crypto.js +16 -16
  51. package/test/KeyFormats.js +1 -1
  52. package/test/api.test.js +37 -0
  53. package/test/broadcast.test.js +14 -8
  54. package/test/comment.test.js +17 -3
  55. package/test/operations_test.js +1 -1
  56. package/test/promise-broadcast.test.js +86 -0
  57. package/test/reputation.test.js +68 -0
  58. package/test/smt.test.js +10 -10
  59. package/test-github-workflow.bat +19 -0
  60. package/test-github-workflow.sh +15 -0
  61. package/webpack/makeConfig.js +25 -17
  62. package/.circleci/config.yml +0 -23
  63. package/dist/statistics.html +0 -208
  64. package/dist/steem-tests.min.js.gz +0 -0
  65. package/dist/steem-tests.min.js.map +0 -1
  66. package/dist/steem.min.js.gz +0 -0
  67. package/dist/steem.min.js.map +0 -1
  68. package/lib/auth/ecc/README.md +0 -20
  69. package/lib/auth/ecc/package.json +0 -36
  70. package/lib/auth/serializer/README.md +0 -13
  71. package/lib/auth/serializer/package.json +0 -32
  72. package/node-4.dockerfile +0 -6
  73. package/node-6.dockerfile +0 -6
  74. package/yarn.lock +0 -3336
@@ -1,20 +0,0 @@
1
- # Elliptic curve cryptography functions (ECC)
2
- Private Key, Public Key, Cryptographic Signature, AES, Encryption / Decryption
3
-
4
- ```js
5
- import {Address, Aes, PrivateKey, PublicKey, Signature} from "ecc"
6
- ```
7
-
8
- # Configure
9
- Update `./.npmrc` if you need to change something:
10
- ```bash
11
- ecc:default_address_prefix = STM
12
- ```
13
-
14
- # See Also
15
- * [Config](./config/index.js)
16
- * [Address](./src/address.js)
17
- * [Aes](./src/aes.js)
18
- * [PrivateKey](./src/key_private.js)
19
- * [PublicKey](./src/key_public.js)
20
- * [Signature](./src/signature.js)
@@ -1,36 +0,0 @@
1
- {
2
- "name": "ecc",
3
- "version": "1.0.0",
4
- "description": "Elliptic curve cryptography functions",
5
- "keywords": "ECC, Private Key, Public Key, Cryptographic Signature, AES, Encryption, Decryption",
6
- "main": "index.js",
7
- "config": {
8
- "address_prefix": "STM"
9
- },
10
- "scripts": {
11
- "test": "mocha --compilers js:babel-core/register --recursive",
12
- "test:watch": "npm test -- --watch"
13
- },
14
- "dependencies": {
15
- "bigi": "^1.4.1",
16
- "bs58": "^3.0.0",
17
- "bytebuffer": "^5.0.0",
18
- "crypto-js": "^3.1.5",
19
- "ecurve": "^1.0.2",
20
- "secure-random": "^1.1.1"
21
- },
22
- "author": "cryptonomex",
23
- "license": "BSD-2-Clause-FreeBSD",
24
- "devDependencies": {
25
- "assert": "^1.3.0",
26
- "babel-cli": "^6.2.0",
27
- "babel-core": "^6.2.0",
28
- "babel-preset-es2015": "^6.1.18",
29
- "mocha": "^2.3.4"
30
- },
31
- "_babel": {
32
- "presets": [
33
- "es2015"
34
- ]
35
- }
36
- }
@@ -1,13 +0,0 @@
1
- # About
2
- Binary serialization and deserialization library
3
-
4
- ```js
5
- import {} from "serializer"
6
- ```
7
-
8
- # Configure
9
- Update `./.npmrc` if you need to change something:
10
- ```bash
11
- serializer:hex_dump = false
12
-
13
- ```
@@ -1,32 +0,0 @@
1
- {
2
- "name": "serializer",
3
- "version": "1.0.0",
4
- "description": "Binary serialization and deserialization library",
5
- "main": "index.js",
6
- "config": {
7
- "hex_dump": false
8
- },
9
- "scripts": {
10
- "test": "mocha --compilers js:babel-core/register --recursive",
11
- "test:watch": "npm test -- --watch"
12
- },
13
- "author": "",
14
- "license": "BSD-2-Clause-FreeBSD",
15
- "dependencies": {
16
- "bigi": "^1.4.1",
17
- "bytebuffer": "^5.0.0",
18
- "ecc": "^1.0.0"
19
- },
20
- "devDependencies": {
21
- "assert": "^1.3.0",
22
- "babel-cli": "^6.2.0",
23
- "babel-core": "^6.2.0",
24
- "babel-preset-es2015": "^6.1.18",
25
- "mocha": "^2.3.4"
26
- },
27
- "_babel": {
28
- "presets": [
29
- "es2015"
30
- ]
31
- }
32
- }
package/node-4.dockerfile DELETED
@@ -1,6 +0,0 @@
1
- FROM node:4
2
- ADD ./package.json /steemjs/package.json
3
- WORKDIR /steemjs
4
- RUN npm install
5
- ADD . /steemjs
6
- RUN npm test
package/node-6.dockerfile DELETED
@@ -1,6 +0,0 @@
1
- FROM node:6
2
- ADD ./package.json /steemjs/package.json
3
- WORKDIR /steemjs
4
- RUN npm install
5
- ADD . /steemjs
6
- RUN npm test