@metamask/tron-wallet-snap 1.0.3

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 ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [1.0.3]
11
+
12
+ ### Changed
13
+
14
+ - Clean unnecessary values ([#22](https://github.com/MetaMask/snap-tron-wallet/pull/22))
15
+
16
+ ## [1.0.2]
17
+
18
+ ### Changed
19
+
20
+ - Release config update
21
+
22
+ ## [1.0.1]
23
+
24
+ ### Added
25
+
26
+ - Enable corepack ([#17](https://github.com/MetaMask/snap-tron-wallet/pull/17))
27
+
28
+ ## [1.0.0]
29
+
30
+ ### Added
31
+
32
+ - Initial release of Tron wallet snap
33
+ - Support for TRX and token assets balances ([#12](https://github.com/MetaMask/snap-tron-wallet/pull/12))
34
+
35
+ [Unreleased]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.3...HEAD
36
+ [1.0.3]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.2...v1.0.3
37
+ [1.0.2]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.1...v1.0.2
38
+ [1.0.1]: https://github.com/MetaMask/snap-tron-wallet/compare/v1.0.0...v1.0.1
39
+ [1.0.0]: https://github.com/MetaMask/snap-tron-wallet/releases/tag/v1.0.0
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Tron Snap
2
+
3
+ ## Configuration
4
+
5
+ Rename `.env.example` to `.env`
6
+ Configurations are setup though `.env`,
7
+
8
+ ## API:
9
+
10
+ ### `keyring_createAccount`
11
+
12
+ example:
13
+
14
+ ```typescript
15
+ provider.request({
16
+ method: 'wallet_invokeKeyring',
17
+ params: {
18
+ snapId,
19
+ request: {
20
+ method: 'keyring_createAccount',
21
+ params: {
22
+ scope: 'bip122:000000000933ea01ad0ee984209779ba', // the CAIP-2 chain ID of the network
23
+ addressType: 'bip122:p2wpkh', // the CAIP-like address type
24
+ },
25
+ },
26
+ },
27
+ });
28
+ ```