@airgap/ethereum 0.13.8-beta.6 → 0.13.8-beta.7

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 (39) hide show
  1. package/package.json +4 -4
  2. package/v1/index.d.ts +1 -3
  3. package/v1/index.js +1 -7
  4. package/v1/index.js.map +1 -1
  5. package/v1/module/EthereumModule.d.ts +4 -3
  6. package/v1/module/EthereumModule.js +11 -4
  7. package/v1/module/EthereumModule.js.map +1 -1
  8. package/v1/protocol/EthereumBaseProtocol.d.ts +28 -16
  9. package/v1/protocol/EthereumBaseProtocol.js +132 -14
  10. package/v1/protocol/EthereumBaseProtocol.js.map +1 -1
  11. package/v1/protocol/EthereumProtocol.d.ts +2 -2
  12. package/v1/protocol/EthereumProtocol.js +1 -257
  13. package/v1/protocol/EthereumProtocol.js.map +1 -1
  14. package/v1/protocol/erc20/ERC20Token.d.ts +3 -1
  15. package/v1/protocol/erc20/ERC20Token.js +15 -6
  16. package/v1/protocol/erc20/ERC20Token.js.map +1 -1
  17. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +3 -1
  18. package/v1/serializer/v3/schemas/converter/transaction-converter.js +56 -5
  19. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -1
  20. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum-typed.d.ts +1 -1
  21. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-ethereum.d.ts +1 -1
  22. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum-typed.json +1 -5
  23. package/v1/serializer/v3/schemas/generated/transaction-sign-request-ethereum.json +1 -5
  24. package/v1/serializer/v3/serializer-companion.d.ts +13 -0
  25. package/v1/serializer/v3/serializer-companion.js +190 -0
  26. package/v1/serializer/v3/serializer-companion.js.map +1 -0
  27. package/v1/serializer/v3/validators/transaction-validator.d.ts +1 -4
  28. package/v1/serializer/v3/validators/transaction-validator.js +1 -10
  29. package/v1/serializer/v3/validators/transaction-validator.js.map +1 -1
  30. package/v1/types/transaction.d.ts +2 -0
  31. package/v1/protocol/EthereumClassicProtocol.d.ts +0 -8
  32. package/v1/protocol/EthereumClassicProtocol.js +0 -87
  33. package/v1/protocol/EthereumClassicProtocol.js.map +0 -1
  34. package/v1/protocol/EthereumRopstenProtocol.d.ts +0 -8
  35. package/v1/protocol/EthereumRopstenProtocol.js +0 -64
  36. package/v1/protocol/EthereumRopstenProtocol.js.map +0 -1
  37. package/v1/utils/transaction.d.ts +0 -3
  38. package/v1/utils/transaction.js +0 -29
  39. package/v1/utils/transaction.js.map +0 -1
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.EthereumV3SerializerCompanion = void 0;
40
+ var coinlib_core_1 = require("@airgap/coinlib-core");
41
+ var errors_1 = require("@airgap/coinlib-core/errors");
42
+ var serializer_1 = require("@airgap/serializer");
43
+ var transaction_converter_1 = require("./schemas/converter/transaction-converter");
44
+ var transaction_validator_1 = require("./validators/transaction-validator");
45
+ var ethereumTransactionSignRequest = require('./schemas/generated/transaction-sign-request-ethereum.json');
46
+ var ethereumTypedTransactionSignRequest = require('./schemas/generated/transaction-sign-request-ethereum-typed.json');
47
+ var ethereumTransactionSignResponse = require('./schemas/generated/transaction-sign-response-ethereum.json');
48
+ var EthereumV3SerializerCompanion = /** @class */ (function () {
49
+ function EthereumV3SerializerCompanion() {
50
+ this.schemas = [
51
+ {
52
+ type: serializer_1.IACMessageType.TransactionSignRequest,
53
+ schema: { schema: ethereumTransactionSignRequest },
54
+ protocolIdentifier: coinlib_core_1.MainProtocolSymbols.ETH
55
+ },
56
+ {
57
+ type: serializer_1.IACMessageType.TransactionSignRequest,
58
+ schema: { schema: ethereumTypedTransactionSignRequest },
59
+ protocolIdentifier: coinlib_core_1.MainProtocolSymbols.ETH
60
+ },
61
+ {
62
+ type: serializer_1.IACMessageType.TransactionSignResponse,
63
+ schema: { schema: ethereumTransactionSignResponse },
64
+ protocolIdentifier: coinlib_core_1.MainProtocolSymbols.ETH
65
+ },
66
+ {
67
+ type: serializer_1.IACMessageType.TransactionSignRequest,
68
+ schema: { schema: ethereumTransactionSignRequest },
69
+ protocolIdentifier: coinlib_core_1.SubProtocolSymbols.ETH_ERC20
70
+ },
71
+ {
72
+ type: serializer_1.IACMessageType.TransactionSignResponse,
73
+ schema: { schema: ethereumTransactionSignResponse },
74
+ protocolIdentifier: coinlib_core_1.SubProtocolSymbols.ETH_ERC20
75
+ }
76
+ ];
77
+ this.ethereumTransactionValidator = new transaction_validator_1.EthereumTransactionValidator();
78
+ }
79
+ EthereumV3SerializerCompanion.prototype.toTransactionSignRequest = function (identifier, unsignedTransaction, publicKey, callbackUrl) {
80
+ return __awaiter(this, void 0, void 0, function () {
81
+ return __generator(this, function (_a) {
82
+ switch (identifier) {
83
+ case coinlib_core_1.MainProtocolSymbols.ETH:
84
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20:
85
+ return [2 /*return*/, (0, transaction_converter_1.ethereumUnsignedTransactionToRequest)(unsignedTransaction, publicKey, callbackUrl)];
86
+ default:
87
+ throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
88
+ }
89
+ return [2 /*return*/];
90
+ });
91
+ });
92
+ };
93
+ EthereumV3SerializerCompanion.prototype.fromTransactionSignRequest = function (identifier, transactionSignRequest) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ return __generator(this, function (_a) {
96
+ switch (identifier) {
97
+ case coinlib_core_1.MainProtocolSymbols.ETH:
98
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20:
99
+ return [2 /*return*/, (0, transaction_converter_1.ethereumTransactionSignRequestToUnsigned)(transactionSignRequest)];
100
+ default:
101
+ throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
102
+ }
103
+ return [2 /*return*/];
104
+ });
105
+ });
106
+ };
107
+ EthereumV3SerializerCompanion.prototype.validateTransactionSignRequest = function (identifier, transactionSignRequest) {
108
+ return __awaiter(this, void 0, void 0, function () {
109
+ var _a, _b;
110
+ return __generator(this, function (_c) {
111
+ switch (_c.label) {
112
+ case 0:
113
+ _a = identifier;
114
+ switch (_a) {
115
+ case coinlib_core_1.MainProtocolSymbols.ETH: return [3 /*break*/, 1];
116
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20: return [3 /*break*/, 1];
117
+ }
118
+ return [3 /*break*/, 4];
119
+ case 1:
120
+ _c.trys.push([1, 3, , 4]);
121
+ return [4 /*yield*/, this.ethereumTransactionValidator.validateUnsignedTransaction(transactionSignRequest)];
122
+ case 2:
123
+ _c.sent();
124
+ return [2 /*return*/, true];
125
+ case 3:
126
+ _b = _c.sent();
127
+ return [2 /*return*/, false];
128
+ case 4: throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
129
+ }
130
+ });
131
+ });
132
+ };
133
+ EthereumV3SerializerCompanion.prototype.toTransactionSignResponse = function (identifier, signedTransaction, accountIdentifier) {
134
+ return __awaiter(this, void 0, void 0, function () {
135
+ return __generator(this, function (_a) {
136
+ switch (identifier) {
137
+ case coinlib_core_1.MainProtocolSymbols.ETH:
138
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20:
139
+ return [2 /*return*/, (0, transaction_converter_1.ethereumSignedTransactionToResponse)(signedTransaction, accountIdentifier)];
140
+ default:
141
+ throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
142
+ }
143
+ return [2 /*return*/];
144
+ });
145
+ });
146
+ };
147
+ EthereumV3SerializerCompanion.prototype.fromTransactionSignResponse = function (identifier, transactionSignResponse) {
148
+ return __awaiter(this, void 0, void 0, function () {
149
+ return __generator(this, function (_a) {
150
+ switch (identifier) {
151
+ case coinlib_core_1.MainProtocolSymbols.ETH:
152
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20:
153
+ return [2 /*return*/, (0, transaction_converter_1.ethereumTransactionSignResponseToSigned)(transactionSignResponse)];
154
+ default:
155
+ throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
156
+ }
157
+ return [2 /*return*/];
158
+ });
159
+ });
160
+ };
161
+ EthereumV3SerializerCompanion.prototype.validateTransactionSignResponse = function (identifier, transactionSignResponse) {
162
+ return __awaiter(this, void 0, void 0, function () {
163
+ var _a, _b;
164
+ return __generator(this, function (_c) {
165
+ switch (_c.label) {
166
+ case 0:
167
+ _a = identifier;
168
+ switch (_a) {
169
+ case coinlib_core_1.MainProtocolSymbols.ETH: return [3 /*break*/, 1];
170
+ case coinlib_core_1.SubProtocolSymbols.ETH_ERC20: return [3 /*break*/, 1];
171
+ }
172
+ return [3 /*break*/, 4];
173
+ case 1:
174
+ _c.trys.push([1, 3, , 4]);
175
+ return [4 /*yield*/, this.ethereumTransactionValidator.validateSignedTransaction(transactionSignResponse)];
176
+ case 2:
177
+ _c.sent();
178
+ return [2 /*return*/, true];
179
+ case 3:
180
+ _b = _c.sent();
181
+ return [2 /*return*/, false];
182
+ case 4: throw new errors_1.UnsupportedError(coinlib_core_1.Domain.ETHEREUM, "Protocol ".concat(identifier, " not supported"));
183
+ }
184
+ });
185
+ });
186
+ };
187
+ return EthereumV3SerializerCompanion;
188
+ }());
189
+ exports.EthereumV3SerializerCompanion = EthereumV3SerializerCompanion;
190
+ //# sourceMappingURL=serializer-companion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializer-companion.js","sourceRoot":"","sources":["../../../../src/v1/serializer/v3/serializer-companion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsF;AACt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G;wBACE,MAAM,IAAI,yBAAgB,CAAC,qBAAM,CAAC,QAAQ,EAAE,mBAAY,UAAU,mBAAgB,CAAC,CAAA;iBACtF;;;;KACF;IAEY,mEAA2B,GAAxC,UACE,UAAkB,EAClB,uBAAgD;;;gBAEhD,QAAQ,UAAU,EAAE;oBAClB,KAAK,kCAAmB,CAAC,GAAG,CAAC;oBAC7B,KAAK,iCAAkB,CAAC,SAAS;wBAC/B,sBAAO,IAAA,+DAAuC,EAAC,uBAAuB,CAAC,EAAA;oBACzE;wBACE,MAAM,IAAI,yBAAgB,CAAC,qBAAM,CAAC,QAAQ,EAAE,mBAAY,UAAU,mBAAgB,CAAC,CAAA;iBACtF;;;;KACF;IAEY,uEAA+B,GAA5C,UAA6C,UAAkB,EAAE,uBAAgD;;;;;;wBACvG,KAAA,UAAU,CAAA;;iCACX,kCAAmB,CAAC,GAAG,CAAC,CAAxB,wBAAuB;iCACvB,iCAAkB,CAAC,SAAS,CAAC,CAA7B,wBAA4B;;;;;wBAE7B,qBAAM,IAAI,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,EAAA;;wBAA1F,SAA0F,CAAA;wBAE1F,sBAAO,IAAI,EAAA;;;wBAEX,sBAAO,KAAK,EAAA;4BAGd,MAAM,IAAI,yBAAgB,CAAC,qBAAM,CAAC,QAAQ,EAAE,mBAAY,UAAU,mBAAgB,CAAC,CAAA;;;;KAExF;IACH,oCAAC;AAAD,CAAC,AArHD,IAqHC;AArHY,sEAA6B"}
@@ -1,10 +1,7 @@
1
- import { TransactionValidator, TransactionValidatorFactory, TransactionValidatorV2 } from '@airgap/serializer';
1
+ import { TransactionValidator, TransactionValidatorV2 } from '@airgap/serializer';
2
2
  import { EthereumTransactionSignRequest } from '../schemas/definitions/transaction-sign-request-ethereum';
3
3
  import { EthereumTransactionSignResponse } from '../schemas/definitions/transaction-sign-response-ethereum';
4
4
  export declare class EthereumTransactionValidator implements TransactionValidator, TransactionValidatorV2 {
5
5
  validateUnsignedTransaction(request: EthereumTransactionSignRequest): Promise<any>;
6
6
  validateSignedTransaction(signedTx: EthereumTransactionSignResponse): any;
7
7
  }
8
- export declare class EthereumTransactionValidatorFactory implements TransactionValidatorFactory<EthereumTransactionValidator> {
9
- create(): EthereumTransactionValidator;
10
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EthereumTransactionValidatorFactory = exports.EthereumTransactionValidator = void 0;
3
+ exports.EthereumTransactionValidator = void 0;
4
4
  // tslint:disable: max-classes-per-file
5
5
  var validate_1 = require("@airgap/coinlib-core/dependencies/src/validate.js-0.13.1/validate");
6
6
  var serializer_1 = require("@airgap/serializer");
@@ -68,13 +68,4 @@ var EthereumTransactionValidator = /** @class */ (function () {
68
68
  return EthereumTransactionValidator;
69
69
  }());
70
70
  exports.EthereumTransactionValidator = EthereumTransactionValidator;
71
- var EthereumTransactionValidatorFactory = /** @class */ (function () {
72
- function EthereumTransactionValidatorFactory() {
73
- }
74
- EthereumTransactionValidatorFactory.prototype.create = function () {
75
- return new EthereumTransactionValidator();
76
- };
77
- return EthereumTransactionValidatorFactory;
78
- }());
79
- exports.EthereumTransactionValidatorFactory = EthereumTransactionValidatorFactory;
80
71
  //# sourceMappingURL=transaction-validator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-validator.js","sourceRoot":"","sources":["../../../../../src/v1/serializer/v3/validators/transaction-validator.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,8FAAyF;AACzF,iDAAkI;AAMlI,IAAM,8BAA8B,GAAG;IACrC,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;KAC5B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;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A;QAEtB,OAAO,IAAA,gBAAK,EAAC,WAAW,EAAE,8BAA8B,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAChF,CAAC;IACM,gEAAyB,GAAhC,UAAiC,QAAyC;QACxE,OAAO,IAAA,gBAAK,EAAC,QAAQ,EAAE,4BAA4B,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAC3E,CAAC;IACH,mCAAC;AAAD,CAAC,AAVD,IAUC;AAVY,oEAA4B;AAYzC;IAAA;IAIA,CAAC;IAHQ,oDAAM,GAAb;QACE,OAAO,IAAI,4BAA4B,EAAE,CAAA;IAC3C,CAAC;IACH,0CAAC;AAAD,CAAC,AAJD,IAIC;AAJY,kFAAmC"}
1
+ {"version":3,"file":"transaction-validator.js","sourceRoot":"","sources":["../../../../../src/v1/serializer/v3/validators/transaction-validator.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,8FAAyF;AACzF,iDAAqG;AAKrG,IAAM,8BAA8B,GAAG;IACrC,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;KAC5B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;KAC5B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;KAC5B;IACD,EAAE,EAAE;QACF,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,qBAAqB,EAAE,IAAI;QAC3B,MAAM,EAAE;YACN,OAAO,EAAE,qBAAqB;YAC9B,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,iCAAiC;S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@
1
1
  import { SignedTransaction, TransactionCursor, UnsignedTransaction } from '@airgap/module-kit';
2
2
  export interface EthereumRawUnsignedTransaction extends UnsignedTransaction {
3
+ ethereumType: 'raw';
3
4
  nonce: string;
4
5
  gasPrice: string;
5
6
  gasLimit: string;
@@ -9,6 +10,7 @@ export interface EthereumRawUnsignedTransaction extends UnsignedTransaction {
9
10
  data: string;
10
11
  }
11
12
  export interface EthereumTypedUnsignedTransaction extends UnsignedTransaction {
13
+ ethereumType: 'typed';
12
14
  serialized: string;
13
15
  derivationPath: string;
14
16
  masterFingerprint: string;
@@ -1,8 +0,0 @@
1
- import { RecursivePartial } from '@airgap/module-kit';
2
- import { EthereumProtocolNetwork, EthereumProtocolOptions } from '../types/protocol';
3
- import * as EthereumBaseProtocol from './EthereumBaseProtocol';
4
- export interface EthereumClassicProtocol extends EthereumBaseProtocol.EthereumBaseProtocol {
5
- }
6
- export declare function createEthereumClassicProtocol(options?: RecursivePartial<EthereumProtocolOptions>): EthereumClassicProtocol;
7
- export declare const ETHEREUM_CLASSIC_MAINNET_PROTOCOL_NETWORK: EthereumProtocolNetwork;
8
- export declare function createEthereumClassicProtocolOptions(network?: Partial<EthereumProtocolNetwork>): EthereumProtocolOptions;
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
- if (k2 === undefined) k2 = k;
30
- var desc = Object.getOwnPropertyDescriptor(m, k);
31
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
- desc = { enumerable: true, get: function() { return m[k]; } };
33
- }
34
- Object.defineProperty(o, k2, desc);
35
- }) : (function(o, m, k, k2) {
36
- if (k2 === undefined) k2 = k;
37
- o[k2] = m[k];
38
- }));
39
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
40
- Object.defineProperty(o, "default", { enumerable: true, value: v });
41
- }) : function(o, v) {
42
- o["default"] = v;
43
- });
44
- var __importStar = (this && this.__importStar) || function (mod) {
45
- if (mod && mod.__esModule) return mod;
46
- var result = {};
47
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
48
- __setModuleDefault(result, mod);
49
- return result;
50
- };
51
- Object.defineProperty(exports, "__esModule", { value: true });
52
- exports.createEthereumClassicProtocolOptions = exports.ETHEREUM_CLASSIC_MAINNET_PROTOCOL_NETWORK = exports.createEthereumClassicProtocol = void 0;
53
- var EtherscanInfoClient_1 = require("../clients/info/EtherscanInfoClient");
54
- var AirGapNodeClient_1 = require("../clients/node/AirGapNodeClient");
55
- var EthereumBaseProtocol = __importStar(require("./EthereumBaseProtocol"));
56
- // Implementation
57
- var EthereumClassicProtocolImpl = /** @class */ (function (_super) {
58
- __extends(EthereumClassicProtocolImpl, _super);
59
- function EthereumClassicProtocolImpl(options) {
60
- if (options === void 0) { options = {}; }
61
- var completeOptions = createEthereumClassicProtocolOptions(options.network);
62
- return _super.call(this, new AirGapNodeClient_1.AirGapNodeClient(completeOptions.network.rpcUrl), new EtherscanInfoClient_1.EtherscanInfoClient(completeOptions.network.blockExplorerApi), completeOptions) || this;
63
- }
64
- return EthereumClassicProtocolImpl;
65
- }(EthereumBaseProtocol.DefaultEthereumBaseProtocolImpl));
66
- // Factory
67
- function createEthereumClassicProtocol(options) {
68
- if (options === void 0) { options = {}; }
69
- return new EthereumClassicProtocolImpl(options);
70
- }
71
- exports.createEthereumClassicProtocol = createEthereumClassicProtocol;
72
- exports.ETHEREUM_CLASSIC_MAINNET_PROTOCOL_NETWORK = {
73
- name: 'Mainnet',
74
- type: 'mainnet',
75
- rpcUrl: 'https://mew.epool.io',
76
- chainId: 61,
77
- blockExplorerApi: 'https://classic.trustwalletapp.com'
78
- };
79
- var DEFAULT_ETHEREUM_CLASSIC_PROTOCOL_NETWORK = exports.ETHEREUM_CLASSIC_MAINNET_PROTOCOL_NETWORK;
80
- function createEthereumClassicProtocolOptions(network) {
81
- if (network === void 0) { network = {}; }
82
- return {
83
- network: __assign(__assign({}, DEFAULT_ETHEREUM_CLASSIC_PROTOCOL_NETWORK), network)
84
- };
85
- }
86
- exports.createEthereumClassicProtocolOptions = createEthereumClassicProtocolOptions;
87
- //# sourceMappingURL=EthereumClassicProtocol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EthereumClassicProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/EthereumClassicProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2EAAyE;AACzE,qEAAmE;AAGnE,2EAA8D;AAM9D,iBAAiB;AAEjB;IAA0C,+CAAoD;IAC5F,qCAAmB,OAAuD;QAAvD,wBAAA,EAAA,YAAuD;QACxE,IAAM,eAAe,GAA4B,oCAAoC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;eAEtG,kBACE,IAAI,mCAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EACpD,IAAI,yCAAmB,CAAC,eAAe,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACjE,eAAe,CAChB;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAVD,CAA0C,oBAAoB,CAAC,+BAA+B,GAU7F;AAED,UAAU;AAEV,SAAgB,6BAA6B,CAAC,OAAuD;IAAvD,wBAAA,EAAA,YAAuD;IACnG,OAAO,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAA;AACjD,CAAC;AAFD,sEAEC;AAEY,QAAA,yCAAyC,GAA4B;IAChF,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,sBAAsB;IAC9B,OAAO,EAAE,EAAE;IACX,gBAAgB,EAAE,oCAAoC;CACvD,CAAA;AAED,IAAM,yCAAyC,GAA4B,iDAAyC,CAAA;AAEpH,SAAgB,oCAAoC,CAAC,OAA8C;IAA9C,wBAAA,EAAA,YAA8C;IACjG,OAAO;QACL,OAAO,wBAAO,yCAAyC,GAAK,OAAO,CAAE;KACtE,CAAA;AACH,CAAC;AAJD,oFAIC"}
@@ -1,8 +0,0 @@
1
- import { RecursivePartial } from '@airgap/module-kit';
2
- import { EthereumProtocolNetwork, EthereumProtocolOptions } from '../types/protocol';
3
- import { EthereumBaseProtocol } from './EthereumBaseProtocol';
4
- export interface EthereumRopstenProtocol extends EthereumBaseProtocol {
5
- }
6
- export declare function createEthereumRopstenProtocol(options?: RecursivePartial<EthereumProtocolOptions>): EthereumRopstenProtocol;
7
- export declare const ETHEREUM_ROPSTEN_MAINNET_PROTOCOL_NETWORK: EthereumProtocolNetwork;
8
- export declare function createEthereumRopstenProtocolOptions(network?: Partial<EthereumProtocolNetwork>): EthereumProtocolOptions;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.createEthereumRopstenProtocolOptions = exports.ETHEREUM_ROPSTEN_MAINNET_PROTOCOL_NETWORK = exports.createEthereumRopstenProtocol = void 0;
30
- var EtherscanInfoClient_1 = require("../clients/info/EtherscanInfoClient");
31
- var AirGapNodeClient_1 = require("../clients/node/AirGapNodeClient");
32
- var EthereumBaseProtocol_1 = require("./EthereumBaseProtocol");
33
- // Implementation
34
- var EthereumRopstenProtocolImpl = /** @class */ (function (_super) {
35
- __extends(EthereumRopstenProtocolImpl, _super);
36
- function EthereumRopstenProtocolImpl(options) {
37
- if (options === void 0) { options = {}; }
38
- var completeOptions = createEthereumRopstenProtocolOptions(options.network);
39
- return _super.call(this, new AirGapNodeClient_1.AirGapNodeClient(completeOptions.network.rpcUrl), new EtherscanInfoClient_1.EtherscanInfoClient(completeOptions.network.blockExplorerApi), completeOptions) || this;
40
- }
41
- return EthereumRopstenProtocolImpl;
42
- }(EthereumBaseProtocol_1.DefaultEthereumBaseProtocolImpl));
43
- // Factory
44
- function createEthereumRopstenProtocol(options) {
45
- if (options === void 0) { options = {}; }
46
- return new EthereumRopstenProtocolImpl(options);
47
- }
48
- exports.createEthereumRopstenProtocol = createEthereumRopstenProtocol;
49
- exports.ETHEREUM_ROPSTEN_MAINNET_PROTOCOL_NETWORK = {
50
- name: 'Mainnet',
51
- type: 'mainnet',
52
- rpcUrl: 'https://ropsten.infura.io',
53
- chainId: 3,
54
- blockExplorerApi: 'https://api-ropsten.etherscan.io/'
55
- };
56
- var DEFAULT_ETHEREUM_ROPSTEN_PROTOCOL_NETWORK = exports.ETHEREUM_ROPSTEN_MAINNET_PROTOCOL_NETWORK;
57
- function createEthereumRopstenProtocolOptions(network) {
58
- if (network === void 0) { network = {}; }
59
- return {
60
- network: __assign(__assign({}, DEFAULT_ETHEREUM_ROPSTEN_PROTOCOL_NETWORK), network)
61
- };
62
- }
63
- exports.createEthereumRopstenProtocolOptions = createEthereumRopstenProtocolOptions;
64
- //# sourceMappingURL=EthereumRopstenProtocol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EthereumRopstenProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/EthereumRopstenProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2EAAyE;AACzE,qEAAmE;AAGnE,+DAA8F;AAM9F,iBAAiB;AAEjB;IAA0C,+CAA+B;IACvE,qCAAmB,OAAuD;QAAvD,wBAAA,EAAA,YAAuD;QACxE,IAAM,eAAe,GAA4B,oCAAoC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;eAEtG,kBACE,IAAI,mCAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EACpD,IAAI,yCAAmB,CAAC,eAAe,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACjE,eAAe,CAChB;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAVD,CAA0C,sDAA+B,GAUxE;AAED,UAAU;AAEV,SAAgB,6BAA6B,CAAC,OAAuD;IAAvD,wBAAA,EAAA,YAAuD;IACnG,OAAO,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAA;AACjD,CAAC;AAFD,sEAEC;AAEY,QAAA,yCAAyC,GAA4B;IAChF,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,2BAA2B;IACnC,OAAO,EAAE,CAAC;IACV,gBAAgB,EAAE,mCAAmC;CACtD,CAAA;AAED,IAAM,yCAAyC,GAA4B,iDAAyC,CAAA;AAEpH,SAAgB,oCAAoC,CAAC,OAA8C;IAA9C,wBAAA,EAAA,YAA8C;IACjG,OAAO;QACL,OAAO,wBAAO,yCAAyC,GAAK,OAAO,CAAE;KACtE,CAAA;AACH,CAAC;AAJD,oFAIC"}
@@ -1,3 +0,0 @@
1
- import { EthereumRawUnsignedTransaction, EthereumTypedUnsignedTransaction, EthereumUnsignedTransaction } from '../types/transaction';
2
- export declare function isRawUnsignedTransaction(transaction: EthereumUnsignedTransaction): transaction is EthereumRawUnsignedTransaction;
3
- export declare function isTypedUnsignedTransaction(transaction: EthereumUnsignedTransaction): transaction is EthereumTypedUnsignedTransaction;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isTypedUnsignedTransaction = exports.isRawUnsignedTransaction = void 0;
4
- var interface_1 = require("@airgap/module-kit/utils/interface");
5
- var rawUnsignedTransactionSchema = {
6
- chainId: 'required',
7
- data: 'required',
8
- gasLimit: 'required',
9
- gasPrice: 'required',
10
- nonce: 'required',
11
- to: 'required',
12
- type: 'required',
13
- value: 'required'
14
- };
15
- var typedUnsignedTransactionSchema = {
16
- derivationPath: 'required',
17
- masterFingerprint: 'required',
18
- serialized: 'required',
19
- type: 'required'
20
- };
21
- function isRawUnsignedTransaction(transaction) {
22
- return (0, interface_1.implementsInterface)(transaction, rawUnsignedTransactionSchema);
23
- }
24
- exports.isRawUnsignedTransaction = isRawUnsignedTransaction;
25
- function isTypedUnsignedTransaction(transaction) {
26
- return (0, interface_1.implementsInterface)(transaction, typedUnsignedTransactionSchema);
27
- }
28
- exports.isTypedUnsignedTransaction = isTypedUnsignedTransaction;
29
- //# sourceMappingURL=transaction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/v1/utils/transaction.ts"],"names":[],"mappings":";;;AAAA,gEAAgF;AAIhF,IAAM,4BAA4B,GAA2C;IAC3E,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,UAAU;IACjB,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;CAClB,CAAA;AAED,IAAM,8BAA8B,GAA6C;IAC/E,cAAc,EAAE,UAAU;IAC1B,iBAAiB,EAAE,UAAU;IAC7B,UAAU,EAAE,UAAU;IACtB,IAAI,EAAE,UAAU;CACjB,CAAA;AAED,SAAgB,wBAAwB,CAAC,WAAwC;IAC/E,OAAO,IAAA,+BAAmB,EAAC,WAAW,EAAE,4BAA4B,CAAC,CAAA;AACvE,CAAC;AAFD,4DAEC;AAED,SAAgB,0BAA0B,CAAC,WAAwC;IACjF,OAAO,IAAA,+BAAmB,EAAC,WAAW,EAAE,8BAA8B,CAAC,CAAA;AACzE,CAAC;AAFD,gEAEC"}