@metamask/tron-wallet-snap 1.33.1 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -7,666 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [1.33.1]
11
-
12
- ### Fixed
13
-
14
- - Persist chain parameter cache across Snap restarts ([#365](https://github.com/MetaMask/snap-tron-wallet/pull/365))
15
- - Fix `useCacheUntil` so it reuses still-valid `StateCache` entries after the Snap is recreated.
16
-
17
- ## [1.33.0]
18
-
19
- ### Changed
20
-
21
- - Align transaction-status polling with Tron's 3 second block time, while preserving the existing 15-second tracking window ([#364](https://github.com/MetaMask/snap-tron-wallet/pull/364))
22
-
23
- ## [1.32.0]
24
-
25
- ### Changed
26
-
27
- - Improved Tron dApp transaction confirmations to show estimated energy and bandwidth usage ([#355](https://github.com/MetaMask/snap-tron-wallet/pull/355))
28
- - Prevent confirmation when the account does not have enough `TRX` to cover the transaction value plus required fees.
29
-
30
- ## [1.31.0]
31
-
32
- ### Changed
33
-
34
- - Use a `37 TRX` fallback fee when the network fee cannot be estimated for a transaction ([#344](https://github.com/MetaMask/snap-tron-wallet/pull/344))
35
-
36
- ## [1.30.0]
37
-
38
- ### Changed
39
-
40
- - Increase cronjob interval for account syncing from 30s to 60s ([#356](https://github.com/MetaMask/snap-tron-wallet/pull/356))
41
-
42
- ## [1.29.1]
43
-
44
- ### Fixed
45
-
46
- - Loosen price API validation ([#353](https://github.com/MetaMask/snap-tron-wallet/pull/353))
47
- - The API response validation refused new fields when Price API service upgrades.
48
-
49
- ## [1.29.0]
50
-
51
- ### Changed
52
-
53
- - Make computeFee fail-safe on TronGrid failure ([#343](https://github.com/MetaMask/snap-tron-wallet/pull/343))
54
- - Remove dApp transaction payload modification related to refresh ([#342](https://github.com/MetaMask/snap-tron-wallet/pull/342))
55
- - Resolve token metadata for log-reconstructed TRC20 transfers [2/3] ([#338](https://github.com/MetaMask/snap-tron-wallet/pull/338))
56
- - Add TRC20 transfer event log parser [1/3] ([#337](https://github.com/MetaMask/snap-tron-wallet/pull/337))
57
-
58
- ## [1.28.0]
59
-
60
- ### Added
61
-
62
- - Filter spam TRC10/TRC20 token by excluding received token transactions whose token has no price data ([#332](https://github.com/MetaMask/snap-tron-wallet/pull/332))
63
-
64
- ### Changed
65
-
66
- - Track error in signAndSendTransaction method of SendService ([#323](https://github.com/MetaMask/snap-tron-wallet/pull/323))
67
- - Track errors in FeeCalculationService ([#318](https://github.com/MetaMask/snap-tron-wallet/pull/318))
68
-
69
- ## [1.27.0]
70
-
71
- ### Changed
72
-
73
- - TRC-20 approvals are now classified as `TransactionType.TokenApprove` ([#328](https://github.com/MetaMask/snap-tron-wallet/pull/328))
74
- - Approvals were previously classified as `TransactionType.Unknown`.
75
- - chore: track errors in trackEvent handler of SnapClient WPN-366 ([#319](https://github.com/MetaMask/snap-tron-wallet/pull/319))
76
-
77
- ## [1.26.0]
78
-
79
- ### Added
80
-
81
- - Add `signProofOfOwnership` client request method ([#327](https://github.com/MetaMask/snap-tron-wallet/pull/327))
82
- - This method silently signs `metamask:proof-of-ownership:<nonce>:<address>` messages with the account's secp256k1 key via TronWeb's `signMessageV2`
83
- - Add support for `keyring_createAccounts` method to enable batch account creation. ([#308](https://github.com/MetaMask/snap-tron-wallet/pull/308))
84
-
85
- ## [1.25.8]
86
-
87
- ### Fixed
88
-
89
- - Removed `snap_trackError` permission from snap manifest ([#320](https://github.com/MetaMask/snap-tron-wallet/pull/320))
90
- - This permission was causing errors during snap installation and is not necessary for the snap's functionality.
91
-
92
- ## [1.25.7]
93
-
94
- ### Added
95
-
96
- - Add `SnapClient.trackError` wrapper around `snap_trackError` for reporting errors to Sentry ([#311](https://github.com/MetaMask/snap-tron-wallet/pull/311))
97
- - Add `trackError` call in `scanTransaction` method of `TransactionScanService` ([#314](https://github.com/MetaMask/snap-tron-wallet/pull/314))
98
- - Add `trackError` calls `handle` methods of `ClientRequestHandler` ([#315](https://github.com/MetaMask/snap-tron-wallet/pull/315))
99
-
100
- ### Changed
101
-
102
- - Add `FetchStatus.Loading` in `FetchStatus` enum to represent first fetching state and add `isFetchStatusLoadingOrFetching` helper ([#302](https://github.com/MetaMask/snap-tron-wallet/pull/302))
103
- - Make Confirm button stay enabled after the first security scan even during refresh ([#302](https://github.com/MetaMask/snap-tron-wallet/pull/302))
104
-
105
- ## [1.25.6]
106
-
107
- ### Added
108
-
109
- - Filter native TRX receive spam from transaction history ([#301](https://github.com/MetaMask/snap-tron-wallet/pull/301))
110
-
111
- ### Fixed
112
-
113
- - Refresh stale TRON transaction expiration and reference block metadata before confirmation security scans, signing, and broadcasting ([#299](https://github.com/MetaMask/snap-tron-wallet/pull/299))
114
-
115
- ## [1.25.5]
116
-
117
- ### Fixed
118
-
119
- - Validate transaction `owner_address` against the signer address derived from the persisted account before signing or broadcasting ([#297](https://github.com/MetaMask/snap-tron-wallet/pull/297))
120
-
121
- ## [1.25.4]
122
-
123
- ### Changed
124
-
125
- - Validate that account IDs passed to `keyring_setSelectedAccounts` belong to the snap, rejecting unknown IDs with `InvalidParamsError` ([#298](https://github.com/MetaMask/snap-tron-wallet/pull/298))
126
- - Simplify `SnapClient` interface methods by removing defensive `*IfExists` wrappers and aligning with the Solana snap's approach ([#257](https://github.com/MetaMask/snap-tron-wallet/pull/257))
127
- - Bump `@metamask/keyring-api` to `^22.0.0`. ([#295](https://github.com/MetaMask/snap-tron-wallet/pull/295))
128
- - Bump `@metamask/keyring-snap-sdk` to `^8.0.0`. ([#295](https://github.com/MetaMask/snap-tron-wallet/pull/295))
129
-
130
- ## [1.25.3]
131
-
132
- ### Fixed
133
-
134
- - Token balances now update correctly after a swap or transfer. ([#292](https://github.com/MetaMask/snap-tron-wallet/pull/292))
135
- - Remove interface ID after it is no longer needed ([#284](https://github.com/MetaMask/snap-tron-wallet/pull/284))
136
-
137
- ## [1.25.2]
138
-
139
- ### Fixed
140
-
141
- - Relax Trongrid `internal_transactions` validation to avoid sync failures on sparse legacy payloads ([#289](https://github.com/MetaMask/snap-tron-wallet/pull/289))
142
- - Handle TRC10 token identifiers correctly in the current Trongrid account-history transaction flow, without mis-parsing endpoint-specific `asset_name` formats ([#289](https://github.com/MetaMask/snap-tron-wallet/pull/289))
143
- - Decouple assets and transactions synchronization so one failure does not prevent the other from completing ([#289](https://github.com/MetaMask/snap-tron-wallet/pull/289))
144
-
145
- ## [1.25.1]
146
-
147
- ### Fixed
148
-
149
- - Correctly display token icon size when sending TRC20 tokens ([#262](https://github.com/MetaMask/snap-tron-wallet/pull/262))
150
- - Correctly display decimal amount sent in confirmation dialog ([#264](https://github.com/MetaMask/snap-tron-wallet/pull/264))
151
- - Confirm `fee_limit` is always present when building transaction ([#280](https://github.com/MetaMask/snap-tron-wallet/pull/280))
152
- - Include memo fee (1 TRX) in fee estimation logic ([#281](https://github.com/MetaMask/snap-tron-wallet/pull/281))
153
- - Handle NFT asset types in transaction scan simulation ([#285](https://github.com/MetaMask/snap-tron-wallet/pull/285))
154
-
155
- ## [1.25.0]
156
-
157
- ### Changed
158
-
159
- - Optimize account discovery by using a lightweight activity check (`limit=1`) instead of fetching full transaction history ([#252](https://github.com/MetaMask/snap-tron-wallet/pull/252))
160
-
161
- ### Fixed
162
-
163
- - Avoid `onAmountInput` fee estimation failures by skipping fee validation until a recipient address is available ([#259](https://github.com/MetaMask/snap-tron-wallet/pull/259))
164
- - Assert transaction structure at all entry points, rejecting malformed transactions ([#237](https://github.com/MetaMask/snap-tron-wallet/pull/237))
165
- - Disable scanning of unsupported contract types, preventing incorrect security alerts from blocking user flows ([#238](https://github.com/MetaMask/snap-tron-wallet/pull/238))
166
- - Supported transactions are those single-contract interaction transactions of the following types: `TransferContract`, `CreateSmartContract`, `TriggerSmartContract`.
167
- - Unsupported transactions will show empty estimated changes and allow the user to proceed without blocking the confirmation.
168
- - Correctly fetch and return staking rewards ([#242](https://github.com/MetaMask/snap-tron-wallet/pull/242))
169
- - Fix revert simulation error when sending TRC20 tokens ([#261](https://github.com/MetaMask/snap-tron-wallet/pull/261))
170
- - Fix infinite loading during fee estimation ([#258](https://github.com/MetaMask/snap-tron-wallet/pull/258))
171
- - The issue was caused by a deadlock during cache updates of chain parameters.
172
-
173
- ## [1.24.0]
174
-
175
- ### Added
176
-
177
- - Implement `claimUnstakedTrx` client request method ([#231](https://github.com/MetaMask/snap-tron-wallet/pull/231))
178
- - Implement `claimTrxStakingRewards` client request method ([#232](https://github.com/MetaMask/snap-tron-wallet/pull/232))
179
- - Add confirmation dialog to `claimUnstakedTrx` method ([#236](https://github.com/MetaMask/snap-tron-wallet/pull/236))
180
-
181
- ### Fixed
182
-
183
- - Always extract special assets to prevent stale balances when amounts drop to zero ([#234](https://github.com/MetaMask/snap-tron-wallet/pull/234))
184
- - Add confirmation dialog to `claimUnstakedTrx` method ([#236](https://github.com/MetaMask/snap-tron-wallet/pull/236))
185
-
186
- ## [1.23.1]
187
-
188
- ### Changed
189
-
190
- - Tweak asset symbols for the 3 new staking special assets: "In Lock Period" TRX, "Ready for Withdrawal" TRX and "Staking Rewards" TRX ([#227](https://github.com/MetaMask/snap-tron-wallet/pull/227))
191
-
192
- ## [1.23.0]
193
-
194
- ### Added
195
-
196
- - Add "Ready for Withdrawal" TRX as a special asset to display unstaked TRX that has completed the withdrawal period and is ready to be claimed ([#208](https://github.com/MetaMask/snap-tron-wallet/pull/208))
197
- - Add "Staking Rewards" TRX asset to display unclaimed voting rewards ([#209](https://github.com/MetaMask/snap-tron-wallet/pull/209))
198
- - Return "In Lock Period" TRX as a special asset showing TRX that is unstaked but still in the 14-day lock period ([#210](https://github.com/MetaMask/snap-tron-wallet/pull/210))
199
-
200
- ## [1.22.1]
201
-
202
- ### Fixed
203
-
204
- - Correct account discovery by using address-based activity checks instead of account IDs ([#206](https://github.com/MetaMask/snap-tron-wallet/pull/206))
205
-
206
- ## [1.22.0]
207
-
208
- ### Added
209
-
210
- - Support fetching TRC20 token balances for inactive accounts using fallback endpoint ([#190](https://github.com/MetaMask/snap-tron-wallet/pull/190))
211
- - Add security scanning for tokens sends ([#205](https://github.com/MetaMask/snap-tron-wallet/pull/205))
212
-
213
- ### Fixed
214
-
215
- - Decode hex-encoded TRC10 token names and symbols from Full Node API responses ([#187](https://github.com/MetaMask/snap-tron-wallet/pull/187))
216
- - Gracefully handle dismissed interface contexts during background refresh operations ([#188](https://github.com/MetaMask/snap-tron-wallet/pull/188))
217
- - Add spent bandwidth from staking as part of the calculation of current bandwidth levels. For both energy and bandwidth, clamp the result between maximum and 0 to avoid negative values ([#197](https://github.com/MetaMask/snap-tron-wallet/pull/197))
218
-
219
- ## [1.21.1]
220
-
221
- ### Fixed
222
-
223
- - Sent transactions stuck on `pending` state ([#194](https://github.com/MetaMask/snap-tron-wallet/pull/194))
224
-
225
- ## [1.21.0]
226
-
227
- ### Fixed
228
-
229
- - Handle extreme token amounts to prevent NaN and scientific notation in estimated changes ([#191](https://github.com/MetaMask/snap-tron-wallet/pull/191))
230
- - Consider contract deployer's energy when calculating fees ([#192](https://github.com/MetaMask/snap-tron-wallet/pull/192))
231
-
232
- ## [1.20.0]
233
-
234
- ### Added
235
-
236
- - Support estimating network fees with contract energy sharing mechanism ([#181](https://github.com/MetaMask/snap-tron-wallet/pull/181))
237
-
238
- ### Changed
239
-
240
- - Optimize data synchronization to avoid duplicate API requests ([#173](https://github.com/MetaMask/snap-tron-wallet/pull/173))
241
- - Cache chain parameters until they expire ([#171](https://github.com/MetaMask/snap-tron-wallet/pull/171))
242
-
243
- ### Fixed
244
-
245
- - Add pre-confirmation validation to `confirmSend` flow ([#179](https://github.com/MetaMask/snap-tron-wallet/pull/179))
246
- - Validates that the user has enough funds to cover both the amount and all associated fees (bandwidth, energy, account activation) before showing the confirmation dialog.
247
- - Fix missing values in simulation API request ([#176](https://github.com/MetaMask/snap-tron-wallet/pull/176))
248
- - The wrong parameters sent to the simulation API were causing inaccurate estimations and false negatives.
249
- - Ensure integer amounts are passed to TronWeb's functions that involve `SUN` ([#178](https://github.com/MetaMask/snap-tron-wallet/pull/178))
250
- - Correct inaccurate energy estimation for system contracts ([#172](https://github.com/MetaMask/snap-tron-wallet/pull/172))
251
- - Correct mapping of `approve` type transactions ([#177](https://github.com/MetaMask/snap-tron-wallet/pull/177))
252
-
253
- ## [1.19.3]
254
-
255
- ### Fixed
256
-
257
- - Normalize locale string when showing simulation estimated changes ([#169](https://github.com/MetaMask/snap-tron-wallet/pull/169))
258
-
259
- ## [1.19.2]
260
-
261
- ### Added
262
-
263
- - Display error message coming from transaction simulations ([#166](https://github.com/MetaMask/snap-tron-wallet/pull/166))
264
-
265
- ## [1.19.1]
266
-
267
- ### Changed
268
-
269
- - Remove convertion layer for images displayed in Snaps UI ([#162](https://github.com/MetaMask/snap-tron-wallet/pull/162))
270
-
271
- ### Fixed
272
-
273
- - Finalised word transformed to us-en ([#164](https://github.com/MetaMask/snap-tron-wallet/pull/164))
274
- - Signing messages of 3 characters or less ([#161](https://github.com/MetaMask/snap-tron-wallet/pull/161))
275
-
276
- ## [1.19.0]
277
-
278
- ### Fixed
279
-
280
- - Always include TRX fee as first result on `computeFee` ([#159](https://github.com/MetaMask/snap-tron-wallet/pull/159))
281
- - Ignore `visible` in `handleComputeFee` field ([#158](https://github.com/MetaMask/snap-tron-wallet/pull/158))
282
- - Address unsubmitable swaps from Bridgers ([#157](https://github.com/MetaMask/snap-tron-wallet/pull/157))
283
-
284
- ## [1.18.0]
285
-
286
- ### Added
287
-
288
- - Add optional `srNodeAddress` param to `confirmStake` ([#154](https://github.com/MetaMask/snap-tron-wallet/pull/154))
289
- - Implement token filtering by minimum USD value in `AssetsService` ([#152](https://github.com/MetaMask/snap-tron-wallet/pull/152))
290
-
291
- ### Fixed
292
-
293
- - Use `sha256` from MM utils and remove pkey usage ([#151](https://github.com/MetaMask/snap-tron-wallet/pull/151))
294
-
295
- ## [1.17.0]
296
-
297
- ### Added
298
-
299
- - Map TRC10 transaction history with metadata fetched onchain ([#141](https://github.com/MetaMask/snap-tron-wallet/pull/141))
300
-
301
- ### Fixed
302
-
303
- - Address all `minor` level audit findings ([#149](https://github.com/MetaMask/snap-tron-wallet/pull/149))
304
- - Address all `major` level audit findings ([#148](https://github.com/MetaMask/snap-tron-wallet/pull/148))
305
- - Exclude permissive origins and permissions ([#145](https://github.com/MetaMask/snap-tron-wallet/pull/145))
306
-
307
- ## [1.16.1]
308
-
309
- ### Fixed
310
-
311
- - Dapp connectivity confirmations ([#146](https://github.com/MetaMask/snap-tron-wallet/pull/146))
312
-
313
- ## [1.16.0]
10
+ ## [3.0.0]
314
11
 
315
12
  ### Added
316
13
 
317
- - Integrate Blockaid transaction simulation ([#139](https://github.com/MetaMask/snap-tron-wallet/pull/139))
318
-
319
- ### Fixed
320
-
321
- - Enhance FeeCalculatorService with fallback energy estimation to `feeLimit` ([#142](https://github.com/MetaMask/snap-tron-wallet/pull/142))
322
- - Audit fixes ([#140](https://github.com/MetaMask/snap-tron-wallet/pull/140))
323
- - Stop signing transactions before user confirmation ([#138](https://github.com/MetaMask/snap-tron-wallet/pull/138))
324
-
325
- ## [1.15.1]
326
-
327
- ### Changed
328
-
329
- - Bump `keyring-api` to version 21.3.0 ([#136](https://github.com/MetaMask/snap-tron-wallet/pull/136))
330
-
331
- ## [1.15.0]
332
-
333
- ### Added
334
-
335
- - Added `feeLimit` option for energy calculation in FeeCalculatorService ([#132](https://github.com/MetaMask/snap-tron-wallet/pull/132))
336
- - Added `signTransaction` confirmation ([#131](https://github.com/MetaMask/snap-tron-wallet/pull/131))
337
- - Added `signMessage` confirmation ([#130](https://github.com/MetaMask/snap-tron-wallet/pull/130))
338
- - Allocate Tron power to Consensys' SR node ([#129](https://github.com/MetaMask/snap-tron-wallet/pull/129))
339
- - Added compute staking fee ([#112](https://github.com/MetaMask/snap-tron-wallet/pull/112))
340
-
341
- ### Fixed
342
-
343
- - `signTransaction` not rebuilding Tron transactions correctly after receiving them as input ([#128](https://github.com/MetaMask/snap-tron-wallet/pull/128))
344
- - `computeFee` does not consider account activations ([#127](https://github.com/MetaMask/snap-tron-wallet/pull/127))
345
- - Remove validation key from WalletService ([#126](https://github.com/MetaMask/snap-tron-wallet/pull/126))
346
-
347
- ## [1.14.0]
348
-
349
- ### Added
350
-
351
- - Dapp connectivity methods (`sign{Message/Transaction}`) ([#124](https://github.com/MetaMask/snap-tron-wallet/pull/124))
352
- - Client `signRewardsMessage` ([#119](https://github.com/MetaMask/snap-tron-wallet/pull/119))
353
-
354
- ### Changed
355
-
356
- - Improve Send flow amount validation with fee estimation ([#123](https://github.com/MetaMask/snap-tron-wallet/pull/123))
14
+ - **BREAKING** Implement Keyring API v2 (`KeyringSnapRpc` interface) ([#56](https://github.com/MetaMask/internal-snaps/pull/56), [#101](https://github.com/MetaMask/internal-snaps/pull/101), [#105](https://github.com/MetaMask/internal-snaps/pull/105))
357
15
 
358
16
  ### Fixed
359
17
 
360
- - Det `isDev` to false ([#122](https://github.com/MetaMask/snap-tron-wallet/pull/122))
18
+ - Disclose the mandatory 9999 TRX `WitnessCreateContract` account-upgrade burn on confirmation ([#73](https://github.com/MetaMask/internal-snaps/pull/73))
361
19
 
362
- ## [1.13.0]
20
+ ## [2.0.0]
363
21
 
364
22
  ### Changed
365
23
 
366
- - Ensure only safe concurrent state operations ([#116](https://github.com/MetaMask/snap-tron-wallet/pull/116))
367
-
368
- ## [1.12.1]
369
-
370
- ### Fixed
371
-
372
- - Continuous synchronization of accounts not starting until we locked and unlocked the client ([#117](https://github.com/MetaMask/snap-tron-wallet/pull/117))
373
- - Could not send TRC20 tokens where decimals were `18` ([#115](https://github.com/MetaMask/snap-tron-wallet/pull/115))
374
-
375
- ## [1.12.0]
376
-
377
- ### Changed
378
-
379
- - `computeFee` not calling `triggerConstantContract` with accurate parameters ([#113](https://github.com/MetaMask/snap-tron-wallet/pull/113))
380
-
381
- ## [1.11.0]
382
-
383
- ### Added
384
-
385
- - Pending transaction when executing ([#110](https://github.com/MetaMask/snap-tron-wallet/pull/110))
386
-
387
- ## [1.10.1]
388
-
389
- ### Fixed
390
-
391
- - `computeFee` error ([#108](https://github.com/MetaMask/snap-tron-wallet/pull/108))
392
- - Map freeze/unfreeze txs ([#107](https://github.com/MetaMask/snap-tron-wallet/pull/107))
393
-
394
- ## [1.10.0]
395
-
396
- ### Fixed
397
-
398
- - Compute fee accuracy ([#103](https://github.com/MetaMask/snap-tron-wallet/pull/103))
399
- - Fix `getAccount` and `listAccounts` ([#105](https://github.com/MetaMask/snap-tron-wallet/pull/105))
400
- - Don't remove tron resources from assets ([#104](https://github.com/MetaMask/snap-tron-wallet/pull/104))
401
-
402
- ## [1.9.1]
403
-
404
- ### Fixed
405
-
406
- - Use available `triggerConstantContract` instead of `estimateEnergy` ([#101](https://github.com/MetaMask/snap-tron-wallet/pull/101))
407
- - Use mutex for state blob modifications ([#93](https://github.com/MetaMask/snap-tron-wallet/pull/93))
408
-
409
- ## [1.9.0]
410
-
411
- ### Added
412
-
413
- - Track transaction when executed and map `failed` and `swap` transactions ([#98](https://github.com/MetaMask/snap-tron-wallet/pull/98))
414
-
415
- ### Fixed
416
-
417
- - Dont allow clients requesting assets for tesnets ([#99](https://github.com/MetaMask/snap-tron-wallet/pull/99))
418
-
419
- ## [1.8.1]
420
-
421
- ### Added
422
-
423
- - Bandwidth and Energy confirmation logos ([#95](https://github.com/MetaMask/snap-tron-wallet/pull/95))
424
-
425
- ### Fixed
426
-
427
- - `computeFee` was returning in SUN and inaccurate values ([#84](https://github.com/MetaMask/snap-tron-wallet/pull/84))
428
-
429
- ## [1.8.0]
430
-
431
- ### Added
432
-
433
- - Confirmation UI ([#86](https://github.com/MetaMask/snap-tron-wallet/pull/86))
434
- - Transactions analytics ([#90](https://github.com/MetaMask/snap-tron-wallet/pull/90))
435
- - Add `from` and `to` to confirmation ([#88](https://github.com/MetaMask/snap-tron-wallet/pull/88))
436
-
437
- ### Fixed
438
-
439
- - Remove logs ([#87](https://github.com/MetaMask/snap-tron-wallet/pull/87))
440
-
441
- ## [1.7.4]
442
-
443
- ### Fixed
444
-
445
- - Unstake method was doing incorrect input validation ([#82](https://github.com/MetaMask/snap-tron-wallet/pull/82))
446
-
447
- ## [1.7.3]
448
-
449
- ### Added
450
-
451
- - Use Infura urls ([#75](https://github.com/MetaMask/snap-tron-wallet/pull/75))
452
-
453
- ## [1.7.2]
454
-
455
- ### Added
456
-
457
- - Use Infura for all API dependencies ([#75](https://github.com/MetaMask/snap-tron-wallet/pull/75))
458
-
459
- ### Fixed
460
-
461
- - Return transaction history fees in TRX not in SUN ([#77](https://github.com/MetaMask/snap-tron-wallet/pull/77))
462
- - `computeFee` method needs to reconstruct Tron transactions the same way `signAndSendTransaction` does ([#77](https://github.com/MetaMask/snap-tron-wallet/pull/77))
463
- - Adjust decimals when sending TRC20 tokens ([#76](https://github.com/MetaMask/snap-tron-wallet/pull/76))
464
-
465
- ## [1.7.1]
466
-
467
- ### Changed
468
-
469
- - Remove unused "Localnet" ([#73](https://github.com/MetaMask/snap-tron-wallet/pull/73))
470
-
471
- ### Fixed
472
-
473
- - Incorrect staked Tron amount due to not counting delegated TRX ([#73](https://github.com/MetaMask/snap-tron-wallet/pull/73))
474
- - No initialized placeholder TRX value, nor special assets (Bandwidth, Energy) on accounts without TRX ([#73](https://github.com/MetaMask/snap-tron-wallet/pull/73))
475
- - Staking methods need to convert amounts to sun ([#71](https://github.com/MetaMask/snap-tron-wallet/pull/71))
476
-
477
- ## [1.7.0]
478
-
479
- ### Changed
480
-
481
- - Add `options` to the unstake method ([#69](https://github.com/MetaMask/snap-tron-wallet/pull/69))
482
-
483
- ## [1.6.1]
484
-
485
- ### Fixed
486
-
487
- - Use the correct `index` field instead of `groupIndex` for account creation ([#67](https://github.com/MetaMask/snap-tron-wallet/pull/67))
488
-
489
- ## [1.6.0]
490
-
491
- ### Added
492
-
493
- - Implement `setSelectedAccounts` handler ([#63](https://github.com/MetaMask/snap-tron-wallet/pull/63))
494
-
495
- ### Fixed
496
-
497
- - Adjust `timestamp` fields' precision to be in seconds, not milliseconds ([#64](https://github.com/MetaMask/snap-tron-wallet/pull/64))
498
-
499
- ## [1.5.4]
500
-
501
- ### Fixed
502
-
503
- - Use the correct hexadecimal format private key (excluding the `0x` prefix) when using TronWeb ([#61](https://github.com/MetaMask/snap-tron-wallet/pull/61))
504
-
505
- ## [1.5.3]
506
-
507
- ### Fixed
508
-
509
- - Make field `visible` configurable by caller on the `signAndSendTransaction` handler ([#59](https://github.com/MetaMask/snap-tron-wallet/pull/59))
510
-
511
- ## [1.5.2]
512
-
513
- ### Fixed
514
-
515
- - Add missing fields on `signAndSendTransaction`'s payload for Tron ([#57](https://github.com/MetaMask/snap-tron-wallet/pull/57))
516
-
517
- ## [1.5.1]
518
-
519
- ### Changed
520
-
521
- - Send the metadata for the max bandwidth and energy values ([#55](https://github.com/MetaMask/snap-tron-wallet/pull/55))
522
- - Modify `signAndSendTransaction` to properly handle base64 transactions ([#54](https://github.com/MetaMask/snap-tron-wallet/pull/54))
523
-
524
- ## [1.5.0]
525
-
526
- ### Added
527
-
528
- - Implement staking and unstaking handlers ([#46](https://github.com/MetaMask/snap-tron-wallet/pull/46))
529
-
530
- ### Changed
531
-
532
- - Match the new Keyring `createAccount` spec ([#52](https://github.com/MetaMask/snap-tron-wallet/pull/52))
533
- - Implement safe error handling so that the Snap never crashes ([#51](https://github.com/MetaMask/snap-tron-wallet/pull/51))
534
-
535
- ## [1.4.0]
536
-
537
- ### Fixed
538
-
539
- - Edit assets names and balance decimals ([#49](https://github.com/MetaMask/snap-tron-wallet/pull/49))
540
- - Send maximum Bandwidth and Energy as assets ([#42](https://github.com/MetaMask/snap-tron-wallet/pull/42))
541
-
542
- ## [1.3.0]
543
-
544
- ### Added
545
-
546
- - Add missing "sync transactions" background event ([#44](https://github.com/MetaMask/snap-tron-wallet/pull/44))
547
- - Implement account synchronization when transactions happen ([#38](https://github.com/MetaMask/snap-tron-wallet/pull/38))
548
- - Add new required fields to KeyringAccount objects ([#41](https://github.com/MetaMask/snap-tron-wallet/pull/41))
549
- - Implement `computeFee` handler ([#40](https://github.com/MetaMask/snap-tron-wallet/pull/40))
550
-
551
- ## [1.2.0]
552
-
553
- ### Added
554
-
555
- - `signAndSendTransaction` client request ([#34](https://github.com/MetaMask/snap-tron-wallet/pull/34))
556
-
557
- ## [1.1.1]
558
-
559
- ### Added
560
-
561
- - Fetch token metadata from Token API instead of Trongrid ([#31](https://github.com/MetaMask/snap-tron-wallet/pull/31))
562
-
563
- ### Fixed
564
-
565
- - Price and market data request failures from passing Energy, Bandwidth and other unsupported assets to the API calls directly ([#32](https://github.com/MetaMask/snap-tron-wallet/pull/32))
566
-
567
- ## [1.1.0]
568
-
569
- ### Added
570
-
571
- - Implement "Unified Non-EVM Send" spec ([#28](https://github.com/MetaMask/snap-tron-wallet/pull/28))
572
- - Send Staked TRX positions as assets ([#29](https://github.com/MetaMask/snap-tron-wallet/pull/29))
573
- - Send Energy and Bandwidth as assets ([#27](https://github.com/MetaMask/snap-tron-wallet/pull/27))
574
- - Implement `discoverAccounts` keyring method ([#26](https://github.com/MetaMask/snap-tron-wallet/pull/26))
575
- - Support Energy and Bandwidth as transaction history fees ([#25](https://github.com/MetaMask/snap-tron-wallet/pull/25))
576
- - Implement transaction history ([#19](https://github.com/MetaMask/snap-tron-wallet/pull/19))
577
-
578
- ## [1.0.3]
579
-
580
- ### Changed
581
-
582
- - Clean unnecessary values ([#22](https://github.com/MetaMask/snap-tron-wallet/pull/22))
583
-
584
- ## [1.0.2]
585
-
586
- ### Changed
587
-
588
- - Release config update
589
-
590
- ## [1.0.1]
591
-
592
- ### Added
593
-
594
- - Enable corepack ([#17](https://github.com/MetaMask/snap-tron-wallet/pull/17))
595
-
596
- ## [1.0.0]
597
-
598
- ### Added
599
-
600
- - Initial release of Tron wallet snap
601
- - Support for TRX and token assets balances ([#12](https://github.com/MetaMask/snap-tron-wallet/pull/12))
24
+ - **BREAKING:** Re-licensed split into LICENSE.MIT or LICENSE.APACHE2 files (SPDX expression unchanged) ([#75](https://github.com/MetaMask/internal-snaps/pull/75))
25
+ - This package was migrated from [snap-tron-wallet](https://github.com/MetaMask/snap-tron-wallet). See the source repository for the original [changelog](https://github.com/MetaMask/snap-tron-wallet/blob/main/packages/snap/CHANGELOG.md)
26
+ - Bump `@metamask/keyring-api` from `^23.2.0` to `^23.7.0` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
27
+ - Bump `@metamask/keyring-snap-sdk` from `^8.0.0` to `^9.2.1` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
28
+ - Bump `@metamask/snaps-cli` from `^8.3.0` to `^8.4.1` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
29
+ - Bump `@metamask/snaps-sdk` from `^11.1.1` to `^11.2.0` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
30
+ - Bump `@metamask/superstruct` from `^3.2.1` to `^3.4.1` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
602
31
 
603
- [Unreleased]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.33.1...HEAD
604
- [1.33.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.33.0...v1.33.1
605
- [1.33.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.32.0...v1.33.0
606
- [1.32.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.31.0...v1.32.0
607
- [1.31.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.30.0...v1.31.0
608
- [1.30.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.29.1...v1.30.0
609
- [1.29.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.29.0...v1.29.1
610
- [1.29.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.28.0...v1.29.0
611
- [1.28.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.27.0...v1.28.0
612
- [1.27.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.26.0...v1.27.0
613
- [1.26.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.8...v1.26.0
614
- [1.25.8]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.7...v1.25.8
615
- [1.25.7]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.6...v1.25.7
616
- [1.25.6]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.5...v1.25.6
617
- [1.25.5]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.4...v1.25.5
618
- [1.25.4]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.3...v1.25.4
619
- [1.25.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.2...v1.25.3
620
- [1.25.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.1...v1.25.2
621
- [1.25.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.25.0...v1.25.1
622
- [1.25.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.24.0...v1.25.0
623
- [1.24.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.23.1...v1.24.0
624
- [1.23.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.23.0...v1.23.1
625
- [1.23.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.22.1...v1.23.0
626
- [1.22.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.22.0...v1.22.1
627
- [1.22.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.21.1...v1.22.0
628
- [1.21.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.21.0...v1.21.1
629
- [1.21.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.20.0...v1.21.0
630
- [1.20.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.19.3...v1.20.0
631
- [1.19.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.19.2...v1.19.3
632
- [1.19.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.19.1...v1.19.2
633
- [1.19.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.19.0...v1.19.1
634
- [1.19.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.18.0...v1.19.0
635
- [1.18.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.17.0...v1.18.0
636
- [1.17.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.16.1...v1.17.0
637
- [1.16.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.16.0...v1.16.1
638
- [1.16.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.15.1...v1.16.0
639
- [1.15.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.15.0...v1.15.1
640
- [1.15.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.14.0...v1.15.0
641
- [1.14.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.13.0...v1.14.0
642
- [1.13.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.12.1...v1.13.0
643
- [1.12.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.12.0...v1.12.1
644
- [1.12.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.11.0...v1.12.0
645
- [1.11.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.10.1...v1.11.0
646
- [1.10.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.10.0...v1.10.1
647
- [1.10.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.9.1...v1.10.0
648
- [1.9.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.9.0...v1.9.1
649
- [1.9.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.8.1...v1.9.0
650
- [1.8.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.8.0...v1.8.1
651
- [1.8.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.7.4...v1.8.0
652
- [1.7.4]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.7.3...v1.7.4
653
- [1.7.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.7.2...v1.7.3
654
- [1.7.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.7.1...v1.7.2
655
- [1.7.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.7.0...v1.7.1
656
- [1.7.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.6.1...v1.7.0
657
- [1.6.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.6.0...v1.6.1
658
- [1.6.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.5.4...v1.6.0
659
- [1.5.4]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.5.3...v1.5.4
660
- [1.5.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.5.2...v1.5.3
661
- [1.5.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.5.1...v1.5.2
662
- [1.5.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.5.0...v1.5.1
663
- [1.5.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.4.0...v1.5.0
664
- [1.4.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.3.0...v1.4.0
665
- [1.3.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.2.0...v1.3.0
666
- [1.2.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.1.1...v1.2.0
667
- [1.1.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.1.0...v1.1.1
668
- [1.1.0]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.3...v1.1.0
669
- [1.0.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.2...v1.0.3
670
- [1.0.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.1...v1.0.2
671
- [1.0.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.0...v1.0.1
672
- [1.0.0]: https://github.com/MetaMask/snap-tron-wallet/releases/tag/v1.0.0
32
+ [Unreleased]: https://github.com/MetaMask/internal-snaps/compare/@metamask/tron-wallet-snap@3.0.0...HEAD
33
+ [3.0.0]: https://github.com/MetaMask/internal-snaps/compare/@metamask/tron-wallet-snap@2.0.0...@metamask/tron-wallet-snap@3.0.0
34
+ [2.0.0]: https://github.com/MetaMask/internal-snaps/releases/tag/@metamask/tron-wallet-snap@2.0.0