@metamask-previews/tron-wallet-snap 1.20.0-preview-3141b7e

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.
@@ -0,0 +1,107 @@
1
+ {
2
+ "locale": "tr",
3
+ "messages": {
4
+ "confirmation.transaction.title": {
5
+ "message": "İşlem talebi"
6
+ },
7
+ "confirmation.estimatedChanges.title": {
8
+ "message": "Tahmini değişiklikler"
9
+ },
10
+ "confirmation.estimatedChanges.tooltip": {
11
+ "message": "Tahmini değişiklikler bu işlemi gerçekleştirirseniz meydana gelebilecek değişikliklerdir. Bu bir garanti değil, sadece bir tahmindir."
12
+ },
13
+ "confirmation.estimatedChanges.send": {
14
+ "message": "Gönderdiğiniz"
15
+ },
16
+ "confirmation.bandwidthConsumed": {
17
+ "message": "Kullanılan bant genişliği"
18
+ },
19
+ "confirmation.estimatedChanges.receive": {
20
+ "message": "Aldığınız"
21
+ },
22
+ "confirmation.origin": {
23
+ "message": "Talebi gönderen"
24
+ },
25
+ "confirmation.origin.tooltip": {
26
+ "message": "Bu, onayınızı isteyen sitedir."
27
+ },
28
+ "confirmation.from": {
29
+ "message": "Gönderen"
30
+ },
31
+ "confirmation.to": {
32
+ "message": "Alıcı"
33
+ },
34
+ "confirmation.network": {
35
+ "message": "Ağ"
36
+ },
37
+ "confirmation.transactionFee": {
38
+ "message": "Ağ ücreti"
39
+ },
40
+ "confirmation.confirmButton": {
41
+ "message": "Onayla"
42
+ },
43
+ "confirmation.cancelButton": {
44
+ "message": "İptal"
45
+ },
46
+ "confirmation.signMessage.title": {
47
+ "message": "Mesajı imzala"
48
+ },
49
+ "confirmation.signMessage.message": {
50
+ "message": "Mesaj"
51
+ },
52
+ "confirmation.account": {
53
+ "message": "Hesap"
54
+ },
55
+ "confirmation.signTransaction.title": {
56
+ "message": "İşlemi imzala"
57
+ },
58
+ "confirmation.estimatedChanges.notAvailable": {
59
+ "message": "Tahmini değişiklikler mevcut değil"
60
+ },
61
+ "confirmation.estimatedChanges.noChanges": {
62
+ "message": "Tahmini değişiklik yok"
63
+ },
64
+ "confirmation.simulationTitleAPIError": {
65
+ "message": "Bir hata nedeniyle güvenlik uyarılarını kontrol edemedik."
66
+ },
67
+ "confirmation.simulationMessageAPIError": {
68
+ "message": "Yalnızca ilgili her adrese güveniyorsanız devam edin."
69
+ },
70
+ "confirmation.simulationErrorTitle": {
71
+ "message": "Bu işlem simülasyon sırasında geri alındı."
72
+ },
73
+ "confirmation.simulationErrorSubtitle": {
74
+ "message": "{reason}"
75
+ },
76
+ "confirmation.validationErrorTitle": {
77
+ "message": "Bu aldatıcı bir istektir"
78
+ },
79
+ "confirmation.validationErrorSubtitle": {
80
+ "message": "Bu isteği onaylarsanız, dolandırıcılıkla bilinen bir üçüncü taraf tüm varlıklarınızı alacaktır."
81
+ },
82
+ "confirmation.validationErrorLearnMore": {
83
+ "message": "Daha fazla bilgi"
84
+ },
85
+ "confirmation.validationErrorSecurityAdviced": {
86
+ "message": "Güvenlik tavsiyesi sağlayan"
87
+ },
88
+ "transactionScan.errors.unknownError": {
89
+ "message": "Bilinmeyen bir hata oluştu"
90
+ },
91
+ "transactionScan.errors.insufficientBalance": {
92
+ "message": "Yetersiz bakiye"
93
+ },
94
+ "transactionScan.errors.invalidTransaction": {
95
+ "message": "Geçersiz işlem"
96
+ },
97
+ "transactionScan.errors.insufficientFunds": {
98
+ "message": "Yetersiz fon"
99
+ },
100
+ "transactionScan.errors.invalidAddress": {
101
+ "message": "Geçersiz adres"
102
+ },
103
+ "transactionScan.errors.unsupportedEIP712Message": {
104
+ "message": "Desteklenmeyen yöntem"
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "locale": "vi",
3
+ "messages": {
4
+ "confirmation.transaction.title": {
5
+ "message": "Yêu cầu giao dịch"
6
+ },
7
+ "confirmation.estimatedChanges.title": {
8
+ "message": "Thay đổi ước tính"
9
+ },
10
+ "confirmation.estimatedChanges.tooltip": {
11
+ "message": "Thay đổi ước tính là những gì có thể xảy ra nếu bạn thực hiện giao dịch này. Đây chỉ là dự đoán, không phải là đảm bảo."
12
+ },
13
+ "confirmation.estimatedChanges.send": {
14
+ "message": "Bạn gửi"
15
+ },
16
+ "confirmation.bandwidthConsumed": {
17
+ "message": "Băng thông đã sử dụng"
18
+ },
19
+ "confirmation.estimatedChanges.receive": {
20
+ "message": "Bạn nhận được"
21
+ },
22
+ "confirmation.origin": {
23
+ "message": "Yêu cầu từ"
24
+ },
25
+ "confirmation.origin.tooltip": {
26
+ "message": "Đây là trang web yêu cầu xác nhận của bạn."
27
+ },
28
+ "confirmation.from": {
29
+ "message": "Từ"
30
+ },
31
+ "confirmation.to": {
32
+ "message": "Đến"
33
+ },
34
+ "confirmation.network": {
35
+ "message": "Mạng"
36
+ },
37
+ "confirmation.transactionFee": {
38
+ "message": "Phí mạng"
39
+ },
40
+ "confirmation.confirmButton": {
41
+ "message": "Xác nhận"
42
+ },
43
+ "confirmation.cancelButton": {
44
+ "message": "Hủy"
45
+ },
46
+ "confirmation.signMessage.title": {
47
+ "message": "Ký tin nhắn"
48
+ },
49
+ "confirmation.signMessage.message": {
50
+ "message": "Tin nhắn"
51
+ },
52
+ "confirmation.account": {
53
+ "message": "Tài khoản"
54
+ },
55
+ "confirmation.signTransaction.title": {
56
+ "message": "Ký giao dịch"
57
+ },
58
+ "confirmation.estimatedChanges.notAvailable": {
59
+ "message": "Thay đổi ước tính không khả dụng"
60
+ },
61
+ "confirmation.estimatedChanges.noChanges": {
62
+ "message": "Không có thay đổi ước tính"
63
+ },
64
+ "confirmation.simulationTitleAPIError": {
65
+ "message": "Do lỗi, chúng tôi không thể kiểm tra cảnh báo bảo mật."
66
+ },
67
+ "confirmation.simulationMessageAPIError": {
68
+ "message": "Chỉ tiếp tục nếu bạn tin tưởng mọi địa chỉ liên quan."
69
+ },
70
+ "confirmation.simulationErrorTitle": {
71
+ "message": "Giao dịch này đã bị hoàn nguyên trong quá trình mô phỏng."
72
+ },
73
+ "confirmation.simulationErrorSubtitle": {
74
+ "message": "{reason}"
75
+ },
76
+ "confirmation.validationErrorTitle": {
77
+ "message": "Đây là một yêu cầu lừa đảo"
78
+ },
79
+ "confirmation.validationErrorSubtitle": {
80
+ "message": "Nếu bạn phê duyệt yêu cầu này, một bên thứ ba được biết đến với các vụ lừa đảo sẽ lấy tất cả tài sản của bạn."
81
+ },
82
+ "confirmation.validationErrorLearnMore": {
83
+ "message": "Tìm hiểu thêm"
84
+ },
85
+ "confirmation.validationErrorSecurityAdviced": {
86
+ "message": "Tư vấn bảo mật bởi"
87
+ },
88
+ "transactionScan.errors.unknownError": {
89
+ "message": "Đã xảy ra lỗi không xác định"
90
+ },
91
+ "transactionScan.errors.insufficientBalance": {
92
+ "message": "Số dư không đủ"
93
+ },
94
+ "transactionScan.errors.invalidTransaction": {
95
+ "message": "Giao dịch không hợp lệ"
96
+ },
97
+ "transactionScan.errors.insufficientFunds": {
98
+ "message": "Không đủ tiền"
99
+ },
100
+ "transactionScan.errors.invalidAddress": {
101
+ "message": "Địa chỉ không hợp lệ"
102
+ },
103
+ "transactionScan.errors.unsupportedEIP712Message": {
104
+ "message": "Phương thức không được hỗ trợ"
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "locale": "zh",
3
+ "messages": {
4
+ "confirmation.transaction.title": {
5
+ "message": "交易请求"
6
+ },
7
+ "confirmation.estimatedChanges.title": {
8
+ "message": "预计变化"
9
+ },
10
+ "confirmation.estimatedChanges.tooltip": {
11
+ "message": "预期变化是指您完成该交易可能发生的变化。这只是预测,而不是保证。"
12
+ },
13
+ "confirmation.estimatedChanges.send": {
14
+ "message": "您发送"
15
+ },
16
+ "confirmation.bandwidthConsumed": {
17
+ "message": "已用带宽"
18
+ },
19
+ "confirmation.estimatedChanges.receive": {
20
+ "message": "您收到"
21
+ },
22
+ "confirmation.origin": {
23
+ "message": "请求来自"
24
+ },
25
+ "confirmation.origin.tooltip": {
26
+ "message": "这是请求您确认的网站。"
27
+ },
28
+ "confirmation.from": {
29
+ "message": "从"
30
+ },
31
+ "confirmation.to": {
32
+ "message": "到"
33
+ },
34
+ "confirmation.network": {
35
+ "message": "网络"
36
+ },
37
+ "confirmation.transactionFee": {
38
+ "message": "网络费"
39
+ },
40
+ "confirmation.confirmButton": {
41
+ "message": "确认"
42
+ },
43
+ "confirmation.cancelButton": {
44
+ "message": "取消"
45
+ },
46
+ "confirmation.signMessage.title": {
47
+ "message": "签署消息"
48
+ },
49
+ "confirmation.signMessage.message": {
50
+ "message": "消息"
51
+ },
52
+ "confirmation.account": {
53
+ "message": "账户"
54
+ },
55
+ "confirmation.signTransaction.title": {
56
+ "message": "签署交易"
57
+ },
58
+ "confirmation.estimatedChanges.notAvailable": {
59
+ "message": "预计变化不可用"
60
+ },
61
+ "confirmation.estimatedChanges.noChanges": {
62
+ "message": "无预计变化"
63
+ },
64
+ "confirmation.simulationTitleAPIError": {
65
+ "message": "由于错误,我们无法检查安全警报。"
66
+ },
67
+ "confirmation.simulationMessageAPIError": {
68
+ "message": "只有在信任所有相关地址时才继续。"
69
+ },
70
+ "confirmation.simulationErrorTitle": {
71
+ "message": "该交易在模拟过程中被撤销。"
72
+ },
73
+ "confirmation.simulationErrorSubtitle": {
74
+ "message": "{reason}"
75
+ },
76
+ "confirmation.validationErrorTitle": {
77
+ "message": "这是一个欺骗性请求"
78
+ },
79
+ "confirmation.validationErrorSubtitle": {
80
+ "message": "如果您批准此请求,一个以诈骗闻名的第三方将获取您的所有资产。"
81
+ },
82
+ "confirmation.validationErrorLearnMore": {
83
+ "message": "了解更多"
84
+ },
85
+ "confirmation.validationErrorSecurityAdviced": {
86
+ "message": "安全建议提供方"
87
+ },
88
+ "transactionScan.errors.unknownError": {
89
+ "message": "发生了未知错误"
90
+ },
91
+ "transactionScan.errors.insufficientBalance": {
92
+ "message": "余额不足"
93
+ },
94
+ "transactionScan.errors.invalidTransaction": {
95
+ "message": "无效交易"
96
+ },
97
+ "transactionScan.errors.insufficientFunds": {
98
+ "message": "资金不足"
99
+ },
100
+ "transactionScan.errors.invalidAddress": {
101
+ "message": "无效地址"
102
+ },
103
+ "transactionScan.errors.unsupportedEIP712Message": {
104
+ "message": "不支持的方法"
105
+ }
106
+ }
107
+ }
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@metamask-previews/tron-wallet-snap",
3
+ "version": "1.20.0-preview-3141b7e",
4
+ "description": "A Tron wallet Snap.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/MetaMask/snap-tron-wallet.git"
8
+ },
9
+ "license": "(MIT-0 OR Apache-2.0)",
10
+ "main": "./dist/bundle.js",
11
+ "files": [
12
+ "dist/",
13
+ "images/",
14
+ "snap.manifest.json",
15
+ "locales/"
16
+ ],
17
+ "scripts": {
18
+ "allow-scripts": "yarn workspace root allow-scripts",
19
+ "build": "mm-snap build && yarn build:locale && yarn build-preinstalled-snap",
20
+ "build:dev": "ENVIRONMENT=local node scripts/update-manifest-local.js && mm-snap build && yarn build:locale",
21
+ "build:prod": "ENVIRONMENT=production node scripts/update-manifest-local.js && mm-snap build && yarn build:locale && yarn build-preinstalled-snap",
22
+ "build-preinstalled-snap": "node scripts/build-preinstalled-snap.js",
23
+ "build:clean": "yarn clean && yarn build:locale && yarn build",
24
+ "build:locale": "node ./scripts/populate-en-locale.js && prettier 'locales/**/*.json' -w",
25
+ "build:locale:watch": "npx nodemon --watch packages/snap/messages.json --exec \"node ./scripts/populate-en-locale.js && prettier 'locales/**/*.json' -w\"",
26
+ "clean": "rimraf dist",
27
+ "lint": "yarn lint:eslint && yarn lint:misc && yarn lint:deps && yarn lint:types",
28
+ "lint:deps": "depcheck",
29
+ "lint:eslint": "eslint . --cache --ext js,jsx,ts,tsx",
30
+ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
31
+ "lint:misc": "prettier '**/*.json' '**/*.md' --check",
32
+ "lint:types": "tsc --noEmit",
33
+ "format": "prettier '**/*.ts' '**/*.tsx' --write",
34
+ "prepublishOnly": "mm-snap manifest",
35
+ "publish:preview": "yarn npm publish --tag preview",
36
+ "serve": "mm-snap serve",
37
+ "start": "node scripts/update-manifest-local.js && concurrently \"mm-snap watch\" \"yarn build:locale:watch\"",
38
+ "test": "jest --passWithNoTests",
39
+ "test:integration": "./integration-test/run-integration.sh"
40
+ },
41
+ "devDependencies": {
42
+ "@metamask/key-tree": "^10.1.1",
43
+ "@metamask/keyring-api": "^21.3.0",
44
+ "@metamask/keyring-snap-sdk": "^7.1.0",
45
+ "@metamask/snaps-cli": "^8.3.0",
46
+ "@metamask/snaps-jest": "^9.8.0",
47
+ "@metamask/snaps-sdk": "^10.3.0",
48
+ "@metamask/superstruct": "^3.2.1",
49
+ "@metamask/utils": "^11.9.0",
50
+ "@types/jest": "^30.0.0",
51
+ "@types/lodash": "^4.17.20",
52
+ "async-mutex": "^0.5.0",
53
+ "bignumber.js": "^9.3.1",
54
+ "concurrently": "^9.2.0",
55
+ "dotenv": "^17.0.0",
56
+ "ethers": "^6.15.0",
57
+ "jest": "^30.0.3",
58
+ "jest-transform-stub": "2.0.0",
59
+ "lodash": "^4.17.21",
60
+ "prettier": "^3.5.3",
61
+ "tronweb": "patch:tronweb@npm%3A6.1.0#~/.yarn/patches/tronweb-npm-6.1.0-771b242b6a.patch",
62
+ "ts-jest": "^29.4.0"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public",
66
+ "registry": "https://registry.npmjs.org/"
67
+ }
68
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "version": "1.20.0",
3
+ "description": "Manage Tron using MetaMask",
4
+ "proposedName": "Tron",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/MetaMask/snap-tron-wallet.git"
8
+ },
9
+ "source": {
10
+ "shasum": "AmLSMBEsaj1vcN8x4HiMQBi59Coimg5apUYG0ih/94c=",
11
+ "location": {
12
+ "npm": {
13
+ "filePath": "dist/bundle.js",
14
+ "iconPath": "images/icon.svg",
15
+ "packageName": "@metamask/tron-wallet-snap",
16
+ "registry": "https://registry.npmjs.org/"
17
+ }
18
+ },
19
+ "locales": ["locales/en.json"]
20
+ },
21
+ "initialConnections": {
22
+ "https://portfolio.metamask.io": {}
23
+ },
24
+ "initialPermissions": {
25
+ "endowment:keyring": {
26
+ "allowedOrigins": ["https://portfolio.metamask.io"]
27
+ },
28
+ "snap_getBip32Entropy": [
29
+ {
30
+ "path": ["m", "44'", "195'"],
31
+ "curve": "secp256k1"
32
+ }
33
+ ],
34
+ "endowment:network-access": {},
35
+ "snap_manageAccounts": {},
36
+ "snap_manageState": {},
37
+ "snap_dialog": {},
38
+ "snap_getPreferences": {},
39
+ "endowment:cronjob": {
40
+ "jobs": [
41
+ {
42
+ "duration": "PT30S",
43
+ "request": {
44
+ "method": "onSynchronizeSelectedAccountsCronjob"
45
+ }
46
+ }
47
+ ]
48
+ },
49
+ "endowment:assets": {
50
+ "scopes": ["tron:728126428"]
51
+ }
52
+ },
53
+ "platformVersion": "10.3.0",
54
+ "manifestVersion": "0.1"
55
+ }