@meshconnect/uwc-injected-connector 0.23.0 → 0.23.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshconnect/uwc-injected-connector",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Injected connector for Universal Wallet Connector",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"uuid": "^14.0.1",
|
|
29
29
|
"viem": "^2.55.10",
|
|
30
30
|
"@meshconnect/uwc-bridge-child": "0.5.0",
|
|
31
|
-
"@meshconnect/uwc-constants": "0.7.
|
|
32
|
-
"@meshconnect/uwc-
|
|
33
|
-
"@meshconnect/uwc-
|
|
34
|
-
"@meshconnect/uwc-
|
|
35
|
-
"@meshconnect/uwc-
|
|
31
|
+
"@meshconnect/uwc-constants": "0.7.6",
|
|
32
|
+
"@meshconnect/uwc-ton-connector": "0.9.0",
|
|
33
|
+
"@meshconnect/uwc-bitcoin": "0.3.1",
|
|
34
|
+
"@meshconnect/uwc-tron-connector": "0.7.4",
|
|
35
|
+
"@meshconnect/uwc-types": "0.27.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^5.9.3"
|
|
@@ -62,25 +62,32 @@ describe('TonTransactionBuilder', () => {
|
|
|
62
62
|
expect(result.messages[0].stateInit).toBe(stateInit)
|
|
63
63
|
})
|
|
64
64
|
|
|
65
|
-
it('
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
it('refuses a sendMode — the injected path sends through the same SDK', () => {
|
|
66
|
+
// ton-transaction-service hands this request to sdk.sendTransaction, so it
|
|
67
|
+
// faces the same request-shape validation as the TON Connect connector.
|
|
68
|
+
expect(() =>
|
|
69
|
+
builder.buildNativeTransfer({
|
|
70
|
+
to: 'UQBxyz',
|
|
71
|
+
amount: '1000000000',
|
|
72
|
+
from: 'UQBabc',
|
|
73
|
+
sendMode: 128
|
|
74
|
+
})
|
|
75
|
+
).toThrow(/does not accept a request-level sendMode/)
|
|
74
76
|
})
|
|
75
77
|
|
|
76
|
-
it('
|
|
78
|
+
it('emits only the top-level keys @tonconnect/sdk allows', () => {
|
|
77
79
|
const result = builder.buildNativeTransfer({
|
|
78
80
|
to: 'UQBxyz',
|
|
79
81
|
amount: '1000000000',
|
|
80
82
|
from: 'UQBabc'
|
|
81
83
|
})
|
|
82
84
|
|
|
83
|
-
expect(result.
|
|
85
|
+
expect(Object.keys(result).sort()).toEqual([
|
|
86
|
+
'from',
|
|
87
|
+
'messages',
|
|
88
|
+
'network',
|
|
89
|
+
'validUntil'
|
|
90
|
+
])
|
|
84
91
|
})
|
|
85
92
|
|
|
86
93
|
it('uses custom validUntil when provided', () => {
|