@airgap/ethereum 0.13.8-beta.8 → 0.13.8-beta.9

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 (54) hide show
  1. package/package.json +4 -4
  2. package/v1/index.d.ts +2 -6
  3. package/v1/index.js +1 -11
  4. package/v1/index.js.map +1 -1
  5. package/v1/module/ERC20Tokens.d.ts +3 -0
  6. package/v1/module/ERC20Tokens.js +815 -0
  7. package/v1/module/ERC20Tokens.js.map +1 -0
  8. package/v1/module/EthereumModule.d.ts +11 -5
  9. package/v1/module/EthereumModule.js +114 -21
  10. package/v1/module/EthereumModule.js.map +1 -1
  11. package/v1/protocol/EthereumBaseProtocol.d.ts +28 -16
  12. package/v1/protocol/EthereumBaseProtocol.js +137 -17
  13. package/v1/protocol/EthereumBaseProtocol.js.map +1 -1
  14. package/v1/protocol/EthereumProtocol.d.ts +2 -2
  15. package/v1/protocol/EthereumProtocol.js +1 -250
  16. package/v1/protocol/EthereumProtocol.js.map +1 -1
  17. package/v1/protocol/erc20/ERC20Token.d.ts +3 -1
  18. package/v1/protocol/erc20/ERC20Token.js +22 -6
  19. package/v1/protocol/erc20/ERC20Token.js.map +1 -1
  20. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +3 -1
  21. package/v1/serializer/v3/schemas/converter/transaction-converter.js +56 -5
  22. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -1
  23. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum-typed.d.ts +1 -1
  24. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum.d.ts +1 -1
  25. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum-typed.json +1 -5
  26. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum.json +1 -5
  27. package/v1/serializer/v3/serializer-companion.d.ts +13 -0
  28. package/v1/serializer/v3/serializer-companion.js +190 -0
  29. package/v1/serializer/v3/serializer-companion.js.map +1 -0
  30. package/v1/serializer/v3/validators/transaction-validator.d.ts +1 -4
  31. package/v1/serializer/v3/validators/transaction-validator.js +1 -10
  32. package/v1/serializer/v3/validators/transaction-validator.js.map +1 -1
  33. package/v1/types/transaction.d.ts +2 -0
  34. package/v1/module/ERC20Module.d.ts +0 -9
  35. package/v1/module/ERC20Module.js +0 -69
  36. package/v1/module/ERC20Module.js.map +0 -1
  37. package/v1/module/EthereumBaseModule.d.ts +0 -13
  38. package/v1/module/EthereumBaseModule.js +0 -83
  39. package/v1/module/EthereumBaseModule.js.map +0 -1
  40. package/v1/module/EthereumClassicModule.d.ts +0 -7
  41. package/v1/module/EthereumClassicModule.js +0 -32
  42. package/v1/module/EthereumClassicModule.js.map +0 -1
  43. package/v1/module/EthereumRopstenModule.d.ts +0 -7
  44. package/v1/module/EthereumRopstenModule.js +0 -32
  45. package/v1/module/EthereumRopstenModule.js.map +0 -1
  46. package/v1/protocol/EthereumClassicProtocol.d.ts +0 -8
  47. package/v1/protocol/EthereumClassicProtocol.js +0 -87
  48. package/v1/protocol/EthereumClassicProtocol.js.map +0 -1
  49. package/v1/protocol/EthereumRopstenProtocol.d.ts +0 -8
  50. package/v1/protocol/EthereumRopstenProtocol.js +0 -64
  51. package/v1/protocol/EthereumRopstenProtocol.js.map +0 -1
  52. package/v1/utils/transaction.d.ts +0 -3
  53. package/v1/utils/transaction.js +0 -29
  54. package/v1/utils/transaction.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/ethereum",
3
- "version": "0.13.8-beta.8",
3
+ "version": "0.13.8-beta.9",
4
4
  "description": "The @airgap/ethereum is an Ethereum implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -36,9 +36,9 @@
36
36
  "@metamask/eth-sig-util": "4.0.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@airgap/coinlib-core": "^0.13.8-beta.7",
40
- "@airgap/module-kit": "^0.13.8-beta.7",
41
- "@airgap/serializer": "^0.13.8-beta.7"
39
+ "@airgap/coinlib-core": "^0.13.8-beta.6",
40
+ "@airgap/module-kit": "^0.13.8-beta.6",
41
+ "@airgap/serializer": "^0.13.8-beta.6"
42
42
  },
43
43
  "localDependencies": {
44
44
  "ethereumjs-tx": "1.3.7",
package/v1/index.d.ts CHANGED
@@ -1,14 +1,10 @@
1
1
  import { EtherscanBlockExplorer } from './block-explorer/EtherscanBlockExplorer';
2
- import { EthereumClassicModule } from './module/EthereumClassicModule';
3
2
  import { EthereumModule } from './module/EthereumModule';
4
- import { EthereumRopstenModule } from './module/EthereumRopstenModule';
5
3
  import { createERC20Token, ERC20Token } from './protocol/erc20/ERC20Token';
6
- import { createEthereumClassicProtocol, createEthereumClassicProtocolOptions, EthereumClassicProtocol } from './protocol/EthereumClassicProtocol';
7
4
  import { createEthereumProtocol, createEthereumProtocolOptions, EthereumProtocol } from './protocol/EthereumProtocol';
8
- import { createEthereumRopstenProtocol, createEthereumRopstenProtocolOptions, EthereumRopstenProtocol } from './protocol/EthereumRopstenProtocol';
9
5
  import { ERC20TokenMetadata, EthereumProtocolNetwork, EthereumProtocolOptions, EthereumUnits } from './types/protocol';
10
6
  import { EthereumRawUnsignedTransaction, EthereumSignedTransaction, EthereumTransactionCursor, EthereumTypedUnsignedTransaction, EthereumUnsignedTransaction } from './types/transaction';
11
- export { EthereumModule, EthereumClassicModule, EthereumRopstenModule };
12
- export { EthereumProtocol, createEthereumProtocol, createEthereumProtocolOptions, EthereumClassicProtocol, createEthereumClassicProtocol, createEthereumClassicProtocolOptions, EthereumRopstenProtocol, createEthereumRopstenProtocol, createEthereumRopstenProtocolOptions, ERC20Token, createERC20Token };
7
+ export { EthereumModule };
8
+ export { EthereumProtocol, createEthereumProtocol, createEthereumProtocolOptions, ERC20Token, createERC20Token };
13
9
  export { EtherscanBlockExplorer };
14
10
  export { EthereumUnits, EthereumProtocolNetwork, EthereumProtocolOptions, ERC20TokenMetadata, EthereumUnsignedTransaction, EthereumTypedUnsignedTransaction, EthereumRawUnsignedTransaction, EthereumSignedTransaction, EthereumTransactionCursor };
package/v1/index.js CHANGED
@@ -1,23 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EtherscanBlockExplorer = exports.createERC20Token = exports.createEthereumRopstenProtocolOptions = exports.createEthereumRopstenProtocol = exports.createEthereumClassicProtocolOptions = exports.createEthereumClassicProtocol = exports.createEthereumProtocolOptions = exports.createEthereumProtocol = exports.EthereumRopstenModule = exports.EthereumClassicModule = exports.EthereumModule = void 0;
3
+ exports.EtherscanBlockExplorer = exports.createERC20Token = exports.createEthereumProtocolOptions = exports.createEthereumProtocol = exports.EthereumModule = void 0;
4
4
  var EtherscanBlockExplorer_1 = require("./block-explorer/EtherscanBlockExplorer");
5
5
  Object.defineProperty(exports, "EtherscanBlockExplorer", { enumerable: true, get: function () { return EtherscanBlockExplorer_1.EtherscanBlockExplorer; } });
6
- var EthereumClassicModule_1 = require("./module/EthereumClassicModule");
7
- Object.defineProperty(exports, "EthereumClassicModule", { enumerable: true, get: function () { return EthereumClassicModule_1.EthereumClassicModule; } });
8
6
  var EthereumModule_1 = require("./module/EthereumModule");
9
7
  Object.defineProperty(exports, "EthereumModule", { enumerable: true, get: function () { return EthereumModule_1.EthereumModule; } });
10
- var EthereumRopstenModule_1 = require("./module/EthereumRopstenModule");
11
- Object.defineProperty(exports, "EthereumRopstenModule", { enumerable: true, get: function () { return EthereumRopstenModule_1.EthereumRopstenModule; } });
12
8
  var ERC20Token_1 = require("./protocol/erc20/ERC20Token");
13
9
  Object.defineProperty(exports, "createERC20Token", { enumerable: true, get: function () { return ERC20Token_1.createERC20Token; } });
14
- var EthereumClassicProtocol_1 = require("./protocol/EthereumClassicProtocol");
15
- Object.defineProperty(exports, "createEthereumClassicProtocol", { enumerable: true, get: function () { return EthereumClassicProtocol_1.createEthereumClassicProtocol; } });
16
- Object.defineProperty(exports, "createEthereumClassicProtocolOptions", { enumerable: true, get: function () { return EthereumClassicProtocol_1.createEthereumClassicProtocolOptions; } });
17
10
  var EthereumProtocol_1 = require("./protocol/EthereumProtocol");
18
11
  Object.defineProperty(exports, "createEthereumProtocol", { enumerable: true, get: function () { return EthereumProtocol_1.createEthereumProtocol; } });
19
12
  Object.defineProperty(exports, "createEthereumProtocolOptions", { enumerable: true, get: function () { return EthereumProtocol_1.createEthereumProtocolOptions; } });
20
- var EthereumRopstenProtocol_1 = require("./protocol/EthereumRopstenProtocol");
21
- Object.defineProperty(exports, "createEthereumRopstenProtocol", { enumerable: true, get: function () { return EthereumRopstenProtocol_1.createEthereumRopstenProtocol; } });
22
- Object.defineProperty(exports, "createEthereumRopstenProtocolOptions", { enumerable: true, get: function () { return EthereumRopstenProtocol_1.createEthereumRopstenProtocolOptions; } });
23
13
  //# sourceMappingURL=index.js.map
package/v1/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,kFAAgF;AA+CvE,uGA/CA,+CAAsB,OA+CA;AA9C/B,wEAAsE;AA0B7C,sGA1BhB,6CAAqB,OA0BgB;AAzB9C,0DAAwD;AAyB/C,+FAzBA,+BAAc,OAyBA;AAxBvB,wEAAsE;AAwBtB,sGAxBvC,6CAAqB,OAwBuC;AAvBrE,0DAA0E;AAsCxE,iGAtCO,6BAAgB,OAsCP;AArClB,8EAI2C;AA2BzC,8GA9BA,uDAA6B,OA8BA;AAC7B,qHA9BA,8DAAoC,OA8BA;AA3BtC,gEAAqH;AAuBnH,uGAvBO,yCAAsB,OAuBP;AACtB,8GAxB+B,gDAA6B,OAwB/B;AAvB/B,8EAI2C;AAwBzC,8GA3BA,uDAA6B,OA2BA;AAC7B,qHA3BA,8DAAoC,OA2BA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,kFAAgF;AAuBvE,uGAvBA,+CAAsB,OAuBA;AAtB/B,0DAAwD;AAc/C,+FAdA,+BAAc,OAcA;AAbvB,0DAA0E;AAiBoB,iGAjBrF,6BAAgB,OAiBqF;AAhB9G,gEAAqH;AAgB1F,uGAhBlB,yCAAsB,OAgBkB;AAAE,8GAhBlB,gDAA6B,OAgBkB"}
@@ -0,0 +1,3 @@
1
+ import { ERC20TokenMetadata } from '../types/protocol';
2
+ export declare const erc20Tokens: Record<string, ERC20TokenMetadata>;
3
+ export declare const erc20TokensIdentifiers: string[];