@metamask/transaction-controller 18.2.0 → 18.3.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 (38) hide show
  1. package/CHANGELOG.md +362 -0
  2. package/dist/TransactionController.d.ts +8 -4
  3. package/dist/TransactionController.d.ts.map +1 -1
  4. package/dist/TransactionController.js +15 -3
  5. package/dist/TransactionController.js.map +1 -1
  6. package/package.json +2 -2
  7. package/dist/EtherscanRemoteTransactionSource.d.ts +0 -15
  8. package/dist/EtherscanRemoteTransactionSource.d.ts.map +0 -1
  9. package/dist/EtherscanRemoteTransactionSource.js +0 -122
  10. package/dist/EtherscanRemoteTransactionSource.js.map +0 -1
  11. package/dist/IncomingTransactionHelper.d.ts +0 -25
  12. package/dist/IncomingTransactionHelper.d.ts.map +0 -1
  13. package/dist/IncomingTransactionHelper.js +0 -198
  14. package/dist/IncomingTransactionHelper.js.map +0 -1
  15. package/dist/etherscan.d.ts +0 -64
  16. package/dist/etherscan.d.ts.map +0 -1
  17. package/dist/etherscan.js +0 -109
  18. package/dist/etherscan.js.map +0 -1
  19. package/dist/external-transactions.d.ts +0 -10
  20. package/dist/external-transactions.d.ts.map +0 -1
  21. package/dist/external-transactions.js +0 -36
  22. package/dist/external-transactions.js.map +0 -1
  23. package/dist/history.d.ts +0 -15
  24. package/dist/history.d.ts.map +0 -1
  25. package/dist/history.js +0 -75
  26. package/dist/history.js.map +0 -1
  27. package/dist/mocks/txsMock.d.ts +0 -64
  28. package/dist/mocks/txsMock.d.ts.map +0 -1
  29. package/dist/mocks/txsMock.js +0 -515
  30. package/dist/mocks/txsMock.js.map +0 -1
  31. package/dist/transaction-type.d.ts +0 -14
  32. package/dist/transaction-type.d.ts.map +0 -1
  33. package/dist/transaction-type.js +0 -114
  34. package/dist/transaction-type.js.map +0 -1
  35. package/dist/utils.d.ts +0 -72
  36. package/dist/utils.d.ts.map +0 -1
  37. package/dist/utils.js +0 -235
  38. package/dist/utils.js.map +0 -1
@@ -1,515 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.txsInStateWithOutdatedStatusAndGasDataMock = exports.txsInStateWithOutdatedGasDataMock = exports.txsInStateWithOutdatedStatusMock = exports.txsInStateMock = exports.tokenTxsMock = exports.ethTxsMock = void 0;
4
- const TransactionController_1 = require("../TransactionController");
5
- const ethTxsMock = (ethTxHash) => [
6
- {
7
- blockNumber: '4535101',
8
- confirmations: '10',
9
- contractAddress: '',
10
- cumulativeGasUsed: '120607',
11
- from: '0xe46abaf75cfbff815c0b7ffed6f02b0760ea27f1',
12
- gas: '335208',
13
- gasPrice: '10000000000',
14
- gasUsed: '21000',
15
- hash: ethTxHash,
16
- input: '0x',
17
- isError: '0',
18
- nonce: '9',
19
- timeStamp: '1543596286',
20
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
21
- transactionIndex: '2',
22
- txreceipt_status: '1',
23
- value: '100000000000000000',
24
- },
25
- {
26
- blockNumber: '4535108',
27
- confirmations: '3',
28
- contractAddress: '',
29
- cumulativeGasUsed: '693910',
30
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
31
- gas: '335208',
32
- gasPrice: '20000000000',
33
- gasUsed: '21000',
34
- hash: '0x342e9d73e10004af41d04973339fc7219dbadcbb5629730cfe65e9f9cb15ff92',
35
- input: '0x',
36
- isError: '0',
37
- nonce: '0',
38
- timeStamp: '1543596378',
39
- to: '0xb2d191b6fe03c5b8a1ab249cfe88c37553357a23',
40
- transactionIndex: '12',
41
- txreceipt_status: '1',
42
- value: '50000000000000000',
43
- },
44
- {
45
- blockNumber: '4535105',
46
- confirmations: '4',
47
- contractAddress: '',
48
- cumulativeGasUsed: '693910',
49
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
50
- gas: '335208',
51
- gasPrice: '20000000000',
52
- gasUsed: '21000',
53
- hash: '0x342e9d73e10004af41d04973339fc7219dbadcbb5629730cfe65e9f9cb15ff91',
54
- input: '0x',
55
- isError: '0',
56
- nonce: '1',
57
- timeStamp: '1543596356',
58
- transactionIndex: '13',
59
- txreceipt_status: '1',
60
- value: '50000000000000000',
61
- },
62
- {
63
- blockNumber: '4535106',
64
- confirmations: '4',
65
- contractAddress: '',
66
- cumulativeGasUsed: '693910',
67
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
68
- gas: '335208',
69
- gasPrice: '20000000000',
70
- gasUsed: '21000',
71
- hash: '0x342e9d73e10004af41d04973139fc7219dbadcbb5629730cfe65e9f9cb15ff91',
72
- input: '0x11',
73
- isError: '0',
74
- nonce: '3',
75
- timeStamp: '1543596356',
76
- to: '0xb2d191b6fe03c5b8a1ab249cfe88c37553357a23',
77
- transactionIndex: '13',
78
- txreceipt_status: '1',
79
- value: '50000000000000000',
80
- },
81
- ];
82
- exports.ethTxsMock = ethTxsMock;
83
- const tokenTxsMock = (tokenTxHash) => [
84
- {
85
- blockNumber: '8222239',
86
- timeStamp: '1564091067',
87
- hash: tokenTxHash,
88
- nonce: '2329',
89
- blockHash: '0x3c30a9be9aea7be13caad419444140c11839d72e70479ec7e9c6d8bd08c533bc',
90
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
91
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
92
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
93
- value: '0',
94
- tokenName: 'Sai Stablecoin v1.0',
95
- tokenSymbol: 'SAI',
96
- tokenDecimal: '18',
97
- transactionIndex: '69',
98
- gas: '624874',
99
- gasPrice: '20000000000',
100
- gasUsed: '21000',
101
- cumulativeGasUsed: '3203881',
102
- input: 'deprecated',
103
- confirmations: '3659676',
104
- },
105
- {
106
- blockNumber: '8222250',
107
- timeStamp: '1564091247',
108
- hash: '0xdcd1c8bee545d3f76d80b20a23ad44276ba2e376681228eb4570cf3518491279',
109
- nonce: '2330',
110
- blockHash: '0x16986dd66bedb20a5b846ec2b6c0ecaa62f1c4b51fac58c1326101fd9126dd82',
111
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
112
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
113
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
114
- value: '0',
115
- tokenName: 'Sai Stablecoin v1.0',
116
- tokenSymbol: 'SAI',
117
- tokenDecimal: '18',
118
- transactionIndex: '40',
119
- gas: '594268',
120
- gasPrice: '20000000000',
121
- gasUsed: '579268',
122
- cumulativeGasUsed: '2009011',
123
- input: 'deprecated',
124
- confirmations: '3659665',
125
- },
126
- {
127
- blockNumber: '8223771',
128
- timeStamp: '1564111652',
129
- hash: '0x070369e6f560b0deca52e050ff1a961fa7b688bbec5cea08435921c9d9b0f52e',
130
- nonce: '2333',
131
- blockHash: '0x0aff8b36881be99df6d176d7c64c2171672c0483684a10c112d2c90fefe30a0a',
132
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
133
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
134
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
135
- value: '0',
136
- tokenName: 'Sai Stablecoin v1.0',
137
- tokenSymbol: 'SAI',
138
- tokenDecimal: '18',
139
- transactionIndex: '132',
140
- gas: '583810',
141
- gasPrice: '6000000000',
142
- gasUsed: '568810',
143
- cumulativeGasUsed: '6956245',
144
- input: 'deprecated',
145
- confirmations: '3658144',
146
- },
147
- {
148
- blockNumber: '8224850',
149
- timeStamp: '1564126442',
150
- hash: '0x8ef20ec9597c8c2e945bcc76d2668e5d3bb088b081fe8c5b5af2e1cbd315a20f',
151
- nonce: '31',
152
- blockHash: '0xb80d4d861ecb7a3cb14e591c0aaeb226842d0267772affa2acc1a590c7535647',
153
- from: '0x6c70e3563cef0c6835703bb2664c9f59a92353e4',
154
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
155
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
156
- value: '10000000000000000000',
157
- tokenName: 'Sai Stablecoin v1.0',
158
- tokenSymbol: 'SAI',
159
- tokenDecimal: '18',
160
- transactionIndex: '169',
161
- gas: '78447',
162
- gasPrice: '2000000000',
163
- gasUsed: '52298',
164
- cumulativeGasUsed: '7047823',
165
- input: 'deprecated',
166
- confirmations: '3657065',
167
- },
168
- {
169
- blockNumber: '8228053',
170
- timeStamp: '1564168901',
171
- hash: '0xa0f2d7b558bb3cc28fa568f6feb8ed30eb28a01a674d7c0d4ae603fc691e6020',
172
- nonce: '2368',
173
- blockHash: '0x62c515ea049842c968ca67499f47a32a11394364d319d9c9cc0a0211652a7294',
174
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
175
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
176
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
177
- value: '0',
178
- tokenName: 'Sai Stablecoin v1.0',
179
- tokenSymbol: 'SAI',
180
- tokenDecimal: '18',
181
- transactionIndex: '43',
182
- gas: '567156',
183
- gasPrice: '3000000000',
184
- gasUsed: '552156',
185
- cumulativeGasUsed: '3048261',
186
- input: 'deprecated',
187
- confirmations: '3653862',
188
- },
189
- {
190
- blockNumber: '8315335',
191
- timeStamp: '1565339223',
192
- hash: '0x464df60fe00b6dd04c9e8ab341d02af9b10a619d2fcd60fd2971f10edf12118f',
193
- nonce: '206760',
194
- blockHash: '0x98275388ef6708debe35ac7bf2e30143c9b1fd9e0e457ca03598fc1f4209e273',
195
- from: '0x00cfbbaf7ddb3a1476767101c12a0162e241fbad',
196
- contractAddress: '0x4dc3643dbc642b72c158e7f3d2ff232df61cb6ce',
197
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
198
- value: '100000000000000000',
199
- tokenName: 'Amber',
200
- tokenSymbol: 'AMB',
201
- tokenDecimal: '18',
202
- transactionIndex: '186',
203
- gas: '60000',
204
- gasPrice: '2000000000',
205
- gasUsed: '52108',
206
- cumulativeGasUsed: '7490707',
207
- input: 'deprecated',
208
- confirmations: '3566580',
209
- },
210
- {
211
- blockNumber: '8350846',
212
- timeStamp: '1565815049',
213
- hash: '0xc0682327ad3efd56dfa33e8206b4e09efad4e419a6191076069d217e3ee2341f',
214
- nonce: '2506',
215
- blockHash: '0xd0aa3c0e319fdfeb21b0192cf77b9760b8668060a5977a5f10f8413531083afa',
216
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
217
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
218
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
219
- value: '4',
220
- tokenName: 'Sai Stablecoin v1.0',
221
- tokenSymbol: 'SAI',
222
- tokenDecimal: '18',
223
- transactionIndex: '48',
224
- gas: '578737',
225
- gasPrice: '3000000000',
226
- gasUsed: '518737',
227
- cumulativeGasUsed: '2848015',
228
- input: 'deprecated',
229
- confirmations: '3531069',
230
- },
231
- {
232
- blockNumber: '8350859',
233
- timeStamp: '1565815221',
234
- hash: '0x989ea9f3ee576fa43957f44363e839adf1a4a397c3d8392a4f7cbbf7949fd0ae',
235
- nonce: '2',
236
- blockHash: '0xb9cf1d29c665c052e3831b5754903e539c5b0b1d33b8bcab6cd2d450764d601f',
237
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
238
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
239
- to: '0x09cabec1ead1c0ba254b09efb3ee13841712be14',
240
- value: '10000000000000000000',
241
- tokenName: 'Sai Stablecoin v1.0',
242
- tokenSymbol: 'SAI',
243
- tokenDecimal: '18',
244
- transactionIndex: '31',
245
- gas: '60734',
246
- gasPrice: '1000000000',
247
- gasUsed: '54745',
248
- cumulativeGasUsed: '7833857',
249
- input: 'deprecated',
250
- confirmations: '3531056',
251
- },
252
- {
253
- blockNumber: '8679548',
254
- timeStamp: '1570244087',
255
- hash: '0xc0016b89b3b525b30d73f242653b0d80ec3ebf285376dff5bb52cef3261498b2',
256
- nonce: '3',
257
- blockHash: '0x1ceb2f8b83087f010773e2acf63d1526633c8a884bd1980f118a1bba576be69f',
258
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
259
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
260
- to: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
261
- value: '0',
262
- tokenName: 'Sai Stablecoin v1.0',
263
- tokenSymbol: 'SAI',
264
- tokenDecimal: '18',
265
- transactionIndex: '56',
266
- gas: '993379',
267
- gasPrice: '1440000000',
268
- gasUsed: '647253',
269
- cumulativeGasUsed: '3562204',
270
- input: 'deprecated',
271
- confirmations: '3202367',
272
- },
273
- {
274
- blockNumber: '8679548',
275
- timeStamp: '1570244087',
276
- hash: '0xc0016b89b3b525b30d73f242653b0d80ec3ebf285376dff5bb52cef3261498b2',
277
- nonce: '3',
278
- blockHash: '0x1ceb2f8b83087f010773e2acf63d1526633c8a884bd1980f118a1bba576be69f',
279
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
280
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
281
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
282
- value: '0',
283
- tokenName: 'Sai Stablecoin v1.0',
284
- tokenSymbol: 'SAI',
285
- tokenDecimal: '18',
286
- transactionIndex: '56',
287
- gas: '993379',
288
- gasPrice: '1440000000',
289
- gasUsed: '647253',
290
- cumulativeGasUsed: '3562204',
291
- input: 'deprecated',
292
- confirmations: '3202367',
293
- },
294
- {
295
- blockNumber: '8694142',
296
- timeStamp: '1570440625',
297
- hash: '0xd8397138bb93d56e50d01e92a9eae99ebd3ae28844acdaa4663976a5501116cf',
298
- nonce: '2837',
299
- blockHash: '0xba45dd64e71e146066af9b6d2dd3bc5d72f4a3399148c155dced74c139fc3c51',
300
- from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',
301
- contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',
302
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
303
- value: '0',
304
- tokenName: 'Sai Stablecoin v1.0',
305
- tokenSymbol: 'SAI',
306
- tokenDecimal: '18',
307
- transactionIndex: '217',
308
- gas: '600632',
309
- gasPrice: '9000000000',
310
- gasUsed: '570632',
311
- cumulativeGasUsed: '9023725',
312
- input: 'deprecated',
313
- confirmations: '3187773',
314
- },
315
- {
316
- blockNumber: '10877041',
317
- timeStamp: '1600310867',
318
- hash: '0xc8bd16b6b41b4c24849eb6869702e1489c808cb5b125b01f084e38fefcb5ea77',
319
- nonce: '4',
320
- blockHash: '0x7fa16a022bcf1f69c2d7adf6bd7d3f058e808eec5c66aaa910dfa8016a5333d1',
321
- from: '0x090d4613473dee047c3f2706764f49e0821d256e',
322
- contractAddress: '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',
323
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
324
- value: '400000000000000000000',
325
- tokenName: 'Uniswap',
326
- tokenSymbol: 'UNI',
327
- tokenDecimal: '18',
328
- transactionIndex: '42',
329
- gas: '90038',
330
- gasPrice: '550000000000',
331
- gasUsed: '81853',
332
- cumulativeGasUsed: '3163540',
333
- input: 'deprecated',
334
- confirmations: '1004874',
335
- },
336
- {
337
- blockNumber: '10877897',
338
- timeStamp: '1600321973',
339
- hash: '0xa7162489faef826ee77862ed5210b01726524f09428f69842118dad394842d62',
340
- nonce: '6',
341
- blockHash: '0xa74eb9d16f65f307dde4ce58c813c981b28f242edf1090ee2ac42caac9dccaca',
342
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
343
- contractAddress: '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',
344
- to: '0x5e736f1f25992b2cad20ded179a52823d3d24b26',
345
- value: '400000000000000000000',
346
- tokenName: 'Uniswap',
347
- tokenSymbol: 'UNI',
348
- tokenDecimal: '18',
349
- transactionIndex: '86',
350
- gas: '60759',
351
- gasPrice: '640000000000',
352
- gasUsed: '25506',
353
- cumulativeGasUsed: '4408393',
354
- input: 'deprecated',
355
- confirmations: '1004018',
356
- },
357
- ];
358
- exports.tokenTxsMock = tokenTxsMock;
359
- const txsInStateMock = (ethTxHash, tokenTxHash) => [
360
- {
361
- id: 'token-transaction-id',
362
- chainId: '1',
363
- status: TransactionController_1.TransactionStatus.confirmed,
364
- time: 1615497996125,
365
- transaction: {
366
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
367
- data: '0x',
368
- gas: '624874',
369
- gasPrice: '20000000000',
370
- gasUsed: '21000',
371
- nonce: '0x12',
372
- to: '0x881d40237659c251811cec9c364ef91dc08d300c',
373
- value: '0x0',
374
- },
375
- transactionHash: tokenTxHash,
376
- toSmartContract: true,
377
- },
378
- {
379
- id: 'eth-transaction-id',
380
- chainId: '1',
381
- status: TransactionController_1.TransactionStatus.confirmed,
382
- time: 1615497996125,
383
- transaction: {
384
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
385
- data: '0x',
386
- gas: '0x51d68',
387
- gasPrice: '0x2540be400',
388
- gasUsed: '0x5208',
389
- nonce: '0x12',
390
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
391
- value: '100000000000000000',
392
- },
393
- transactionHash: ethTxHash,
394
- toSmartContract: false,
395
- },
396
- ];
397
- exports.txsInStateMock = txsInStateMock;
398
- const txsInStateWithOutdatedStatusMock = (ethTxHash, tokenTxHash) => [
399
- {
400
- id: 'token-transaction-id',
401
- chainId: '1',
402
- status: TransactionController_1.TransactionStatus.rejected,
403
- time: 1615497996125,
404
- transaction: {
405
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
406
- data: '0x',
407
- gas: '624874',
408
- gasPrice: '20000000000',
409
- gasUsed: '21000',
410
- nonce: '0x12',
411
- to: '0x881d40237659c251811cec9c364ef91dc08d300c',
412
- value: '0x0',
413
- },
414
- transactionHash: tokenTxHash,
415
- toSmartContract: true,
416
- },
417
- {
418
- id: 'eth-transaction-id',
419
- chainId: '1',
420
- status: TransactionController_1.TransactionStatus.rejected,
421
- time: 1615497996125,
422
- transaction: {
423
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
424
- data: '0x',
425
- gas: '0x51d68',
426
- gasPrice: '0x2540be400',
427
- gasUsed: '0x5208',
428
- nonce: '0x12',
429
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
430
- value: '100000000000000000',
431
- },
432
- transactionHash: ethTxHash,
433
- toSmartContract: false,
434
- },
435
- ];
436
- exports.txsInStateWithOutdatedStatusMock = txsInStateWithOutdatedStatusMock;
437
- const txsInStateWithOutdatedGasDataMock = (ethTxHash, tokenTxHash) => [
438
- {
439
- id: 'token-transaction-id',
440
- chainId: '1',
441
- status: TransactionController_1.TransactionStatus.confirmed,
442
- time: 1615497996125,
443
- transaction: {
444
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
445
- data: '0x',
446
- gas: '624874',
447
- gasPrice: '20000000000',
448
- gasUsed: undefined,
449
- nonce: '0x12',
450
- to: '0x881d40237659c251811cec9c364ef91dc08d300c',
451
- value: '0x0',
452
- },
453
- transactionHash: tokenTxHash,
454
- toSmartContract: true,
455
- },
456
- {
457
- id: 'eth-transaction-id',
458
- chainId: '1',
459
- status: TransactionController_1.TransactionStatus.confirmed,
460
- time: 1615497996125,
461
- transaction: {
462
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
463
- data: '0x',
464
- gas: '0x51d68',
465
- gasPrice: '0x2540be400',
466
- gasUsed: undefined,
467
- nonce: '0x12',
468
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
469
- value: '100000000000000000',
470
- },
471
- transactionHash: ethTxHash,
472
- toSmartContract: false,
473
- },
474
- ];
475
- exports.txsInStateWithOutdatedGasDataMock = txsInStateWithOutdatedGasDataMock;
476
- const txsInStateWithOutdatedStatusAndGasDataMock = (ethTxHash, tokenTxHash) => [
477
- {
478
- id: 'token-transaction-id',
479
- chainId: '1',
480
- status: TransactionController_1.TransactionStatus.rejected,
481
- time: 1615497996125,
482
- transaction: {
483
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
484
- data: '0x',
485
- gas: '624874',
486
- gasPrice: '20000000000',
487
- gasUsed: undefined,
488
- nonce: '0x12',
489
- to: '0x881d40237659c251811cec9c364ef91dc08d300c',
490
- value: '0x0',
491
- },
492
- transactionHash: tokenTxHash,
493
- toSmartContract: true,
494
- },
495
- {
496
- id: 'eth-transaction-id',
497
- chainId: '1',
498
- status: TransactionController_1.TransactionStatus.rejected,
499
- time: 1615497996125,
500
- transaction: {
501
- from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
502
- data: '0x',
503
- gas: '0x51d68',
504
- gasPrice: '0x2540be400',
505
- gasUsed: undefined,
506
- nonce: '0x12',
507
- to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',
508
- value: '100000000000000000',
509
- },
510
- transactionHash: ethTxHash,
511
- toSmartContract: false,
512
- },
513
- ];
514
- exports.txsInStateWithOutdatedStatusAndGasDataMock = txsInStateWithOutdatedStatusAndGasDataMock;
515
- //# sourceMappingURL=txsMock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"txsMock.js","sourceRoot":"","sources":["../../src/mocks/txsMock.ts"],"names":[],"mappings":";;;AAAA,oEAA8E;AAEvE,MAAM,UAAU,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC;IAC/C;QACE,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,QAAQ;QAC3B,IAAI,EAAE,4CAA4C;QAClD,GAAG,EAAE,QAAQ;QACb,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,GAAG;QACZ,KAAK,EAAE,GAAG;QACV,SAAS,EAAE,YAAY;QACvB,EAAE,EAAE,4CA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AM,EAAE,yCAAiB,CAAC,QAAQ;QAClC,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE;YACX,IAAI,EAAE,4CAA4C;YAClD,IAAI,EAAE,IAAI;YACV,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,MAAM;YACb,EAAE,EAAE,4CAA4C;YAChD,KAAK,EAAE,oBAAoB;SAC5B;QACD,eAAe,EAAE,SAAS;QAC1B,eAAe,EAAE,KAAK;KACvB;CACF,CAAC;AAxCW,QAAA,0CAA0C,8CAwCrD","sourcesContent":["import { TransactionMeta, TransactionStatus } from '../TransactionController';\n\nexport const ethTxsMock = (ethTxHash: string) => [\n {\n blockNumber: '4535101',\n confirmations: '10',\n contractAddress: '',\n cumulativeGasUsed: '120607',\n from: '0xe46abaf75cfbff815c0b7ffed6f02b0760ea27f1',\n gas: '335208',\n gasPrice: '10000000000',\n gasUsed: '21000',\n hash: ethTxHash,\n input: '0x',\n isError: '0',\n nonce: '9',\n timeStamp: '1543596286',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n transactionIndex: '2',\n txreceipt_status: '1',\n value: '100000000000000000',\n },\n {\n blockNumber: '4535108',\n confirmations: '3',\n contractAddress: '',\n cumulativeGasUsed: '693910',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n gas: '335208',\n gasPrice: '20000000000',\n gasUsed: '21000',\n hash: '0x342e9d73e10004af41d04973339fc7219dbadcbb5629730cfe65e9f9cb15ff92',\n input: '0x',\n isError: '0',\n nonce: '0',\n timeStamp: '1543596378',\n to: '0xb2d191b6fe03c5b8a1ab249cfe88c37553357a23',\n transactionIndex: '12',\n txreceipt_status: '1',\n value: '50000000000000000',\n },\n {\n blockNumber: '4535105',\n confirmations: '4',\n contractAddress: '',\n cumulativeGasUsed: '693910',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n gas: '335208',\n gasPrice: '20000000000',\n gasUsed: '21000',\n hash: '0x342e9d73e10004af41d04973339fc7219dbadcbb5629730cfe65e9f9cb15ff91',\n input: '0x',\n isError: '0',\n nonce: '1',\n timeStamp: '1543596356',\n transactionIndex: '13',\n txreceipt_status: '1',\n value: '50000000000000000',\n },\n {\n blockNumber: '4535106',\n confirmations: '4',\n contractAddress: '',\n cumulativeGasUsed: '693910',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n gas: '335208',\n gasPrice: '20000000000',\n gasUsed: '21000',\n hash: '0x342e9d73e10004af41d04973139fc7219dbadcbb5629730cfe65e9f9cb15ff91',\n input: '0x11',\n isError: '0',\n nonce: '3',\n timeStamp: '1543596356',\n to: '0xb2d191b6fe03c5b8a1ab249cfe88c37553357a23',\n transactionIndex: '13',\n txreceipt_status: '1',\n value: '50000000000000000',\n },\n];\n\nexport const tokenTxsMock = (tokenTxHash: string) => [\n {\n blockNumber: '8222239',\n timeStamp: '1564091067',\n hash: tokenTxHash,\n nonce: '2329',\n blockHash:\n '0x3c30a9be9aea7be13caad419444140c11839d72e70479ec7e9c6d8bd08c533bc',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '69',\n gas: '624874',\n gasPrice: '20000000000',\n gasUsed: '21000',\n cumulativeGasUsed: '3203881',\n input: 'deprecated',\n confirmations: '3659676',\n },\n {\n blockNumber: '8222250',\n timeStamp: '1564091247',\n hash: '0xdcd1c8bee545d3f76d80b20a23ad44276ba2e376681228eb4570cf3518491279',\n nonce: '2330',\n blockHash:\n '0x16986dd66bedb20a5b846ec2b6c0ecaa62f1c4b51fac58c1326101fd9126dd82',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '40',\n gas: '594268',\n gasPrice: '20000000000',\n gasUsed: '579268',\n cumulativeGasUsed: '2009011',\n input: 'deprecated',\n confirmations: '3659665',\n },\n {\n blockNumber: '8223771',\n timeStamp: '1564111652',\n hash: '0x070369e6f560b0deca52e050ff1a961fa7b688bbec5cea08435921c9d9b0f52e',\n nonce: '2333',\n blockHash:\n '0x0aff8b36881be99df6d176d7c64c2171672c0483684a10c112d2c90fefe30a0a',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '132',\n gas: '583810',\n gasPrice: '6000000000',\n gasUsed: '568810',\n cumulativeGasUsed: '6956245',\n input: 'deprecated',\n confirmations: '3658144',\n },\n {\n blockNumber: '8224850',\n timeStamp: '1564126442',\n hash: '0x8ef20ec9597c8c2e945bcc76d2668e5d3bb088b081fe8c5b5af2e1cbd315a20f',\n nonce: '31',\n blockHash:\n '0xb80d4d861ecb7a3cb14e591c0aaeb226842d0267772affa2acc1a590c7535647',\n from: '0x6c70e3563cef0c6835703bb2664c9f59a92353e4',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '10000000000000000000',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '169',\n gas: '78447',\n gasPrice: '2000000000',\n gasUsed: '52298',\n cumulativeGasUsed: '7047823',\n input: 'deprecated',\n confirmations: '3657065',\n },\n {\n blockNumber: '8228053',\n timeStamp: '1564168901',\n hash: '0xa0f2d7b558bb3cc28fa568f6feb8ed30eb28a01a674d7c0d4ae603fc691e6020',\n nonce: '2368',\n blockHash:\n '0x62c515ea049842c968ca67499f47a32a11394364d319d9c9cc0a0211652a7294',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '43',\n gas: '567156',\n gasPrice: '3000000000',\n gasUsed: '552156',\n cumulativeGasUsed: '3048261',\n input: 'deprecated',\n confirmations: '3653862',\n },\n {\n blockNumber: '8315335',\n timeStamp: '1565339223',\n hash: '0x464df60fe00b6dd04c9e8ab341d02af9b10a619d2fcd60fd2971f10edf12118f',\n nonce: '206760',\n blockHash:\n '0x98275388ef6708debe35ac7bf2e30143c9b1fd9e0e457ca03598fc1f4209e273',\n from: '0x00cfbbaf7ddb3a1476767101c12a0162e241fbad',\n contractAddress: '0x4dc3643dbc642b72c158e7f3d2ff232df61cb6ce',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '100000000000000000',\n tokenName: 'Amber',\n tokenSymbol: 'AMB',\n tokenDecimal: '18',\n transactionIndex: '186',\n gas: '60000',\n gasPrice: '2000000000',\n gasUsed: '52108',\n cumulativeGasUsed: '7490707',\n input: 'deprecated',\n confirmations: '3566580',\n },\n {\n blockNumber: '8350846',\n timeStamp: '1565815049',\n hash: '0xc0682327ad3efd56dfa33e8206b4e09efad4e419a6191076069d217e3ee2341f',\n nonce: '2506',\n blockHash:\n '0xd0aa3c0e319fdfeb21b0192cf77b9760b8668060a5977a5f10f8413531083afa',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '4',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '48',\n gas: '578737',\n gasPrice: '3000000000',\n gasUsed: '518737',\n cumulativeGasUsed: '2848015',\n input: 'deprecated',\n confirmations: '3531069',\n },\n {\n blockNumber: '8350859',\n timeStamp: '1565815221',\n hash: '0x989ea9f3ee576fa43957f44363e839adf1a4a397c3d8392a4f7cbbf7949fd0ae',\n nonce: '2',\n blockHash:\n '0xb9cf1d29c665c052e3831b5754903e539c5b0b1d33b8bcab6cd2d450764d601f',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x09cabec1ead1c0ba254b09efb3ee13841712be14',\n value: '10000000000000000000',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '31',\n gas: '60734',\n gasPrice: '1000000000',\n gasUsed: '54745',\n cumulativeGasUsed: '7833857',\n input: 'deprecated',\n confirmations: '3531056',\n },\n {\n blockNumber: '8679548',\n timeStamp: '1570244087',\n hash: '0xc0016b89b3b525b30d73f242653b0d80ec3ebf285376dff5bb52cef3261498b2',\n nonce: '3',\n blockHash:\n '0x1ceb2f8b83087f010773e2acf63d1526633c8a884bd1980f118a1bba576be69f',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '56',\n gas: '993379',\n gasPrice: '1440000000',\n gasUsed: '647253',\n cumulativeGasUsed: '3562204',\n input: 'deprecated',\n confirmations: '3202367',\n },\n {\n blockNumber: '8679548',\n timeStamp: '1570244087',\n hash: '0xc0016b89b3b525b30d73f242653b0d80ec3ebf285376dff5bb52cef3261498b2',\n nonce: '3',\n blockHash:\n '0x1ceb2f8b83087f010773e2acf63d1526633c8a884bd1980f118a1bba576be69f',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '56',\n gas: '993379',\n gasPrice: '1440000000',\n gasUsed: '647253',\n cumulativeGasUsed: '3562204',\n input: 'deprecated',\n confirmations: '3202367',\n },\n {\n blockNumber: '8694142',\n timeStamp: '1570440625',\n hash: '0xd8397138bb93d56e50d01e92a9eae99ebd3ae28844acdaa4663976a5501116cf',\n nonce: '2837',\n blockHash:\n '0xba45dd64e71e146066af9b6d2dd3bc5d72f4a3399148c155dced74c139fc3c51',\n from: '0xdfa6edae2ec0cf1d4a60542422724a48195a5071',\n contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '0',\n tokenName: 'Sai Stablecoin v1.0',\n tokenSymbol: 'SAI',\n tokenDecimal: '18',\n transactionIndex: '217',\n gas: '600632',\n gasPrice: '9000000000',\n gasUsed: '570632',\n cumulativeGasUsed: '9023725',\n input: 'deprecated',\n confirmations: '3187773',\n },\n {\n blockNumber: '10877041',\n timeStamp: '1600310867',\n hash: '0xc8bd16b6b41b4c24849eb6869702e1489c808cb5b125b01f084e38fefcb5ea77',\n nonce: '4',\n blockHash:\n '0x7fa16a022bcf1f69c2d7adf6bd7d3f058e808eec5c66aaa910dfa8016a5333d1',\n from: '0x090d4613473dee047c3f2706764f49e0821d256e',\n contractAddress: '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '400000000000000000000',\n tokenName: 'Uniswap',\n tokenSymbol: 'UNI',\n tokenDecimal: '18',\n transactionIndex: '42',\n gas: '90038',\n gasPrice: '550000000000',\n gasUsed: '81853',\n cumulativeGasUsed: '3163540',\n input: 'deprecated',\n confirmations: '1004874',\n },\n {\n blockNumber: '10877897',\n timeStamp: '1600321973',\n hash: '0xa7162489faef826ee77862ed5210b01726524f09428f69842118dad394842d62',\n nonce: '6',\n blockHash:\n '0xa74eb9d16f65f307dde4ce58c813c981b28f242edf1090ee2ac42caac9dccaca',\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n contractAddress: '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',\n to: '0x5e736f1f25992b2cad20ded179a52823d3d24b26',\n value: '400000000000000000000',\n tokenName: 'Uniswap',\n tokenSymbol: 'UNI',\n tokenDecimal: '18',\n transactionIndex: '86',\n gas: '60759',\n gasPrice: '640000000000',\n gasUsed: '25506',\n cumulativeGasUsed: '4408393',\n input: 'deprecated',\n confirmations: '1004018',\n },\n];\n\nexport const txsInStateMock = (\n ethTxHash: string,\n tokenTxHash: string,\n): TransactionMeta[] => [\n {\n id: 'token-transaction-id',\n chainId: '1',\n status: TransactionStatus.confirmed,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '624874',\n gasPrice: '20000000000',\n gasUsed: '21000',\n nonce: '0x12',\n to: '0x881d40237659c251811cec9c364ef91dc08d300c',\n value: '0x0',\n },\n transactionHash: tokenTxHash,\n toSmartContract: true,\n },\n {\n id: 'eth-transaction-id',\n chainId: '1',\n status: TransactionStatus.confirmed,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '0x51d68',\n gasPrice: '0x2540be400',\n gasUsed: '0x5208',\n nonce: '0x12',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '100000000000000000',\n },\n transactionHash: ethTxHash,\n toSmartContract: false,\n },\n];\n\nexport const txsInStateWithOutdatedStatusMock = (\n ethTxHash: string,\n tokenTxHash: string,\n): TransactionMeta[] => [\n {\n id: 'token-transaction-id',\n chainId: '1',\n status: TransactionStatus.rejected,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '624874',\n gasPrice: '20000000000',\n gasUsed: '21000',\n nonce: '0x12',\n to: '0x881d40237659c251811cec9c364ef91dc08d300c',\n value: '0x0',\n },\n transactionHash: tokenTxHash,\n toSmartContract: true,\n },\n {\n id: 'eth-transaction-id',\n chainId: '1',\n status: TransactionStatus.rejected,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '0x51d68',\n gasPrice: '0x2540be400',\n gasUsed: '0x5208',\n nonce: '0x12',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '100000000000000000',\n },\n transactionHash: ethTxHash,\n toSmartContract: false,\n },\n];\n\nexport const txsInStateWithOutdatedGasDataMock = (\n ethTxHash: string,\n tokenTxHash: string,\n): TransactionMeta[] => [\n {\n id: 'token-transaction-id',\n chainId: '1',\n status: TransactionStatus.confirmed,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '624874',\n gasPrice: '20000000000',\n gasUsed: undefined,\n nonce: '0x12',\n to: '0x881d40237659c251811cec9c364ef91dc08d300c',\n value: '0x0',\n },\n transactionHash: tokenTxHash,\n toSmartContract: true,\n },\n {\n id: 'eth-transaction-id',\n chainId: '1',\n status: TransactionStatus.confirmed,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '0x51d68',\n gasPrice: '0x2540be400',\n gasUsed: undefined,\n nonce: '0x12',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '100000000000000000',\n },\n transactionHash: ethTxHash,\n toSmartContract: false,\n },\n];\n\nexport const txsInStateWithOutdatedStatusAndGasDataMock = (\n ethTxHash: string,\n tokenTxHash: string,\n): TransactionMeta[] => [\n {\n id: 'token-transaction-id',\n chainId: '1',\n status: TransactionStatus.rejected,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '624874',\n gasPrice: '20000000000',\n gasUsed: undefined,\n nonce: '0x12',\n to: '0x881d40237659c251811cec9c364ef91dc08d300c',\n value: '0x0',\n },\n transactionHash: tokenTxHash,\n toSmartContract: true,\n },\n {\n id: 'eth-transaction-id',\n chainId: '1',\n status: TransactionStatus.rejected,\n time: 1615497996125,\n transaction: {\n from: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n data: '0x',\n gas: '0x51d68',\n gasPrice: '0x2540be400',\n gasUsed: undefined,\n nonce: '0x12',\n to: '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207',\n value: '100000000000000000',\n },\n transactionHash: ethTxHash,\n toSmartContract: false,\n },\n];\n"]}
@@ -1,14 +0,0 @@
1
- import type EthQuery from '@metamask/eth-query';
2
- import type { InferTransactionTypeResult, TransactionParams } from './types';
3
- export declare const ESTIMATE_GAS_ERROR = "eth_estimateGas rpc method error";
4
- /**
5
- * Determines the type of the transaction by analyzing the txParams.
6
- * It will never return TRANSACTION_TYPE_CANCEL or TRANSACTION_TYPE_RETRY as these
7
- * represent specific events that we specify manually at transaction creation.
8
- *
9
- * @param txParams - Parameters for the transaction.
10
- * @param ethQuery - EthQuery instance.
11
- * @returns A object with the transaction type and the contract code response in Hex.
12
- */
13
- export declare function determineTransactionType(txParams: TransactionParams, ethQuery: EthQuery): Promise<InferTransactionTypeResult>;
14
- //# sourceMappingURL=transaction-type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-type.d.ts","sourceRoot":"","sources":["../src/transaction-type.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAGhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG7E,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAMrE;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,0BAA0B,CAAC,CAiCrC"}