@airgap/ethereum 0.13.11-beta.0 → 0.13.11-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 (157) hide show
  1. package/package.json +11 -9
  2. package/airgap-coinlib-ethereum.min.js +0 -117080
  3. package/index.d.ts +0 -1
  4. package/index.js +0 -18
  5. package/index.js.map +0 -1
  6. package/v0/index.d.ts +0 -12
  7. package/v0/index.js +0 -39
  8. package/v0/index.js.map +0 -1
  9. package/v0/protocol/BaseEthereumProtocol.d.ts +0 -98
  10. package/v0/protocol/BaseEthereumProtocol.js +0 -939
  11. package/v0/protocol/BaseEthereumProtocol.js.map +0 -1
  12. package/v0/protocol/EthereumAddress.d.ts +0 -8
  13. package/v0/protocol/EthereumAddress.js +0 -43
  14. package/v0/protocol/EthereumAddress.js.map +0 -1
  15. package/v0/protocol/EthereumChainIDs.d.ts +0 -1
  16. package/v0/protocol/EthereumChainIDs.js +0 -340
  17. package/v0/protocol/EthereumChainIDs.js.map +0 -1
  18. package/v0/protocol/EthereumClassicProtocol.d.ts +0 -6
  19. package/v0/protocol/EthereumClassicProtocol.js +0 -30
  20. package/v0/protocol/EthereumClassicProtocol.js.map +0 -1
  21. package/v0/protocol/EthereumCryptoClient.d.ts +0 -12
  22. package/v0/protocol/EthereumCryptoClient.js +0 -148
  23. package/v0/protocol/EthereumCryptoClient.js.map +0 -1
  24. package/v0/protocol/EthereumProtocol.d.ts +0 -10
  25. package/v0/protocol/EthereumProtocol.js +0 -34
  26. package/v0/protocol/EthereumProtocol.js.map +0 -1
  27. package/v0/protocol/EthereumProtocolOptions.d.ts +0 -46
  28. package/v0/protocol/EthereumProtocolOptions.js +0 -150
  29. package/v0/protocol/EthereumProtocolOptions.js.map +0 -1
  30. package/v0/protocol/EthereumRopstenProtocol.d.ts +0 -6
  31. package/v0/protocol/EthereumRopstenProtocol.js +0 -30
  32. package/v0/protocol/EthereumRopstenProtocol.js.map +0 -1
  33. package/v0/protocol/EthereumTypes.d.ts +0 -14
  34. package/v0/protocol/EthereumTypes.js +0 -3
  35. package/v0/protocol/EthereumTypes.js.map +0 -1
  36. package/v0/protocol/clients/info-clients/EtherscanInfoClient.d.ts +0 -8
  37. package/v0/protocol/clients/info-clients/EtherscanInfoClient.js +0 -195
  38. package/v0/protocol/clients/info-clients/EtherscanInfoClient.js.map +0 -1
  39. package/v0/protocol/clients/info-clients/InfoClient.d.ts +0 -8
  40. package/v0/protocol/clients/info-clients/InfoClient.js +0 -11
  41. package/v0/protocol/clients/info-clients/InfoClient.js.map +0 -1
  42. package/v0/protocol/clients/node-clients/AirGapNodeClient.d.ts +0 -41
  43. package/v0/protocol/clients/node-clients/AirGapNodeClient.js +0 -353
  44. package/v0/protocol/clients/node-clients/AirGapNodeClient.js.map +0 -1
  45. package/v0/protocol/clients/node-clients/NodeClient.d.ts +0 -17
  46. package/v0/protocol/clients/node-clients/NodeClient.js +0 -11
  47. package/v0/protocol/clients/node-clients/NodeClient.js.map +0 -1
  48. package/v0/protocol/erc20/ERC20.d.ts +0 -3
  49. package/v0/protocol/erc20/ERC20.js +0 -9
  50. package/v0/protocol/erc20/ERC20.js.map +0 -1
  51. package/v0/protocol/erc20/GenericERC20.d.ts +0 -32
  52. package/v0/protocol/erc20/GenericERC20.js +0 -335
  53. package/v0/protocol/erc20/GenericERC20.js.map +0 -1
  54. package/v0/protocol/utils/utils.d.ts +0 -13
  55. package/v0/protocol/utils/utils.js +0 -140
  56. package/v0/protocol/utils/utils.js.map +0 -1
  57. package/v0/serializer/schemas/v2/transaction-sign-request-ethereum.json +0 -50
  58. package/v0/serializer/schemas/v2/transaction-sign-response-ethereum.json +0 -19
  59. package/v0/serializer/schemas/v3/transaction-sign-request-ethereum-typed.json +0 -38
  60. package/v0/serializer/schemas/v3/transaction-sign-request-ethereum.json +0 -50
  61. package/v0/serializer/schemas/v3/transaction-sign-response-ethereum.json +0 -19
  62. package/v0/serializer/validators/transaction-validator.d.ts +0 -15
  63. package/v0/serializer/validators/transaction-validator.js +0 -96
  64. package/v0/serializer/validators/transaction-validator.js.map +0 -1
  65. package/v0/serializer/validators/validators.d.ts +0 -1
  66. package/v0/serializer/validators/validators.js +0 -78
  67. package/v0/serializer/validators/validators.js.map +0 -1
  68. package/v0/types/signed-transaction-ethereum.d.ts +0 -5
  69. package/v0/types/signed-transaction-ethereum.js +0 -3
  70. package/v0/types/signed-transaction-ethereum.js.map +0 -1
  71. package/v0/types/transaction-ethereum.d.ts +0 -14
  72. package/v0/types/transaction-ethereum.js +0 -3
  73. package/v0/types/transaction-ethereum.js.map +0 -1
  74. package/v0/types/unsigned-transaction-ethereum-typed.d.ts +0 -11
  75. package/v0/types/unsigned-transaction-ethereum-typed.js +0 -3
  76. package/v0/types/unsigned-transaction-ethereum-typed.js.map +0 -1
  77. package/v0/types/unsigned-transaction-ethereum.d.ts +0 -15
  78. package/v0/types/unsigned-transaction-ethereum.js +0 -3
  79. package/v0/types/unsigned-transaction-ethereum.js.map +0 -1
  80. package/v1/block-explorer/EtherscanBlockExplorer.d.ts +0 -9
  81. package/v1/block-explorer/EtherscanBlockExplorer.js +0 -74
  82. package/v1/block-explorer/EtherscanBlockExplorer.js.map +0 -1
  83. package/v1/clients/crypto/EthereumCryptoClient.d.ts +0 -7
  84. package/v1/clients/crypto/EthereumCryptoClient.js +0 -147
  85. package/v1/clients/crypto/EthereumCryptoClient.js.map +0 -1
  86. package/v1/clients/info/EthereumInfoClient.d.ts +0 -15
  87. package/v1/clients/info/EthereumInfoClient.js +0 -11
  88. package/v1/clients/info/EthereumInfoClient.js.map +0 -1
  89. package/v1/clients/info/EtherscanInfoClient.d.ts +0 -7
  90. package/v1/clients/info/EtherscanInfoClient.js +0 -165
  91. package/v1/clients/info/EtherscanInfoClient.js.map +0 -1
  92. package/v1/clients/node/AirGapNodeClient.d.ts +0 -41
  93. package/v1/clients/node/AirGapNodeClient.js +0 -351
  94. package/v1/clients/node/AirGapNodeClient.js.map +0 -1
  95. package/v1/clients/node/EthereumNodeClient.d.ts +0 -17
  96. package/v1/clients/node/EthereumNodeClient.js +0 -11
  97. package/v1/clients/node/EthereumNodeClient.js.map +0 -1
  98. package/v1/data/EthereumAddress.d.ts +0 -7
  99. package/v1/data/EthereumAddress.js +0 -46
  100. package/v1/data/EthereumAddress.js.map +0 -1
  101. package/v1/index.d.ts +0 -10
  102. package/v1/index.js +0 -13
  103. package/v1/index.js.map +0 -1
  104. package/v1/module/ERC20Tokens.d.ts +0 -3
  105. package/v1/module/ERC20Tokens.js +0 -815
  106. package/v1/module/ERC20Tokens.js.map +0 -1
  107. package/v1/module/EthereumModule.d.ts +0 -13
  108. package/v1/module/EthereumModule.js +0 -125
  109. package/v1/module/EthereumModule.js.map +0 -1
  110. package/v1/module.d.ts +0 -3
  111. package/v1/module.js +0 -24
  112. package/v1/module.js.map +0 -1
  113. package/v1/protocol/EthereumBaseProtocol.d.ts +0 -83
  114. package/v1/protocol/EthereumBaseProtocol.js +0 -866
  115. package/v1/protocol/EthereumBaseProtocol.js.map +0 -1
  116. package/v1/protocol/EthereumChainIds.d.ts +0 -1
  117. package/v1/protocol/EthereumChainIds.js +0 -340
  118. package/v1/protocol/EthereumChainIds.js.map +0 -1
  119. package/v1/protocol/EthereumProtocol.d.ts +0 -8
  120. package/v1/protocol/EthereumProtocol.js +0 -64
  121. package/v1/protocol/EthereumProtocol.js.map +0 -1
  122. package/v1/protocol/erc20/ERC20Token.d.ts +0 -8
  123. package/v1/protocol/erc20/ERC20Token.js +0 -421
  124. package/v1/protocol/erc20/ERC20Token.js.map +0 -1
  125. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +0 -12
  126. package/v1/serializer/v3/schemas/converter/transaction-converter.js +0 -80
  127. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +0 -1
  128. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum-typed.d.ts +0 -10
  129. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum-typed.js +0 -3
  130. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum-typed.js.map +0 -1
  131. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum.d.ts +0 -14
  132. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum.js +0 -3
  133. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum.js.map +0 -1
  134. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-ethereum.d.ts +0 -3
  135. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-ethereum.js +0 -3
  136. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-ethereum.js.map +0 -1
  137. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum-typed.json +0 -41
  138. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum.json +0 -58
  139. package/v1/serializer/v3/schemas/generated/transaction-sign-response-ethereum.json +0 -19
  140. package/v1/serializer/v3/serializer-companion.d.ts +0 -13
  141. package/v1/serializer/v3/serializer-companion.js +0 -190
  142. package/v1/serializer/v3/serializer-companion.js.map +0 -1
  143. package/v1/serializer/v3/validators/transaction-validator.d.ts +0 -7
  144. package/v1/serializer/v3/validators/transaction-validator.js +0 -71
  145. package/v1/serializer/v3/validators/transaction-validator.js.map +0 -1
  146. package/v1/types/protocol.d.ts +0 -32
  147. package/v1/types/protocol.js +0 -3
  148. package/v1/types/protocol.js.map +0 -1
  149. package/v1/types/transaction.d.ts +0 -24
  150. package/v1/types/transaction.js +0 -3
  151. package/v1/types/transaction.js.map +0 -1
  152. package/v1/utils/EthereumUtils.d.ts +0 -13
  153. package/v1/utils/EthereumUtils.js +0 -140
  154. package/v1/utils/EthereumUtils.js.map +0 -1
  155. package/v1/utils/key.d.ts +0 -5
  156. package/v1/utils/key.js +0 -88
  157. package/v1/utils/key.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/ethereum",
3
- "version": "0.13.11-beta.0",
3
+ "version": "0.13.11-beta.1",
4
4
  "description": "The @airgap/ethereum is an Ethereum implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -17,6 +17,10 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
+ "main": "dist/index.js",
21
+ "files": [
22
+ "dist"
23
+ ],
20
24
  "scripts": {
21
25
  "build": "rm -rf ./dist && node scripts/node-module-es-module-interop.js && tsc && node scripts/copy-files-after-build.js",
22
26
  "build-scripts": "tsc scripts/*.ts",
@@ -24,22 +28,20 @@
24
28
  "lint:prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
25
29
  "lint-ci": "tslint -t json -o ../../lint-reports/ethereum.json --project . || true",
26
30
  "lint-ci:prettier": "prettier \"src/**/*.ts\" \"test/**/*.ts\" --list-different",
27
- "test": "TS_NODE_PROJECT='./test/tsconfig.json' nyc mocha --bail --require ts-node/register --require source-map-support/register --full-trace --delay --timeout 40000 ./test/**/**.spec.ts",
31
+ "test": "TS_NODE_PROJECT='./test/tsconfig.json' nyc mocha --bail --require ts-node/register --require tsconfig-paths/register --require source-map-support/register --full-trace --delay --timeout 40000 ./test/**/**.spec.ts",
28
32
  "test-ci": "nyc --reporter=lcov npm test",
29
- "test-legacy": "npm run build && mocha --full-trace --timeout 40000 ./test/**/**.spec.js",
30
- "browserify": "browserify ./dist/index.js -p realpathify -s airgapCoinLibEthereum > ./dist/airgap-coinlib-ethereum.min.js"
33
+ "browserify": "browserify ./dist/index.js -s airgapCoinLibEthereum > ./dist/airgap-coinlib-ethereum.min.js"
31
34
  },
32
35
  "author": "Papers GmbH <contact@papers.ch> (https://papers.ch)",
33
36
  "dependencies": {
37
+ "@airgap/coinlib-core": "*",
38
+ "@airgap/crypto": "*",
39
+ "@airgap/module-kit": "*",
40
+ "@airgap/serializer": "*",
34
41
  "@ethereumjs/common": "2.6.0",
35
42
  "@ethereumjs/tx": "3.4.0",
36
43
  "@metamask/eth-sig-util": "4.0.0"
37
44
  },
38
- "peerDependencies": {
39
- "@airgap/coinlib-core": "^0.13.10",
40
- "@airgap/module-kit": "^0.13.10",
41
- "@airgap/serializer": "^0.13.10"
42
- },
43
45
  "localDependencies": {
44
46
  "ethereumjs-tx": "1.3.7",
45
47
  "ethereumjs-util": "5.2.0"