@onekeyfe/onekey-alph-provider 2.1.6 → 2.1.8
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.
|
@@ -166,22 +166,22 @@ export class ProviderAlph extends InteractiveSignerProvider {
|
|
|
166
166
|
return this.bridgeRequest({ method: 'unsafeGetSelectedAccount' });
|
|
167
167
|
}
|
|
168
168
|
signAndSubmitDeployContractTx(params) {
|
|
169
|
-
return this.bridgeRequest({ method: 'signAndSubmitDeployContractTx', params });
|
|
169
|
+
return this.bridgeRequest({ method: 'signAndSubmitDeployContractTx', params: JSON.stringify(params) });
|
|
170
170
|
}
|
|
171
171
|
signAndSubmitExecuteScriptTx(params) {
|
|
172
|
-
return this.bridgeRequest({ method: 'signAndSubmitExecuteScriptTx', params });
|
|
172
|
+
return this.bridgeRequest({ method: 'signAndSubmitExecuteScriptTx', params: JSON.stringify(params) });
|
|
173
173
|
}
|
|
174
174
|
signAndSubmitTransferTx(params) {
|
|
175
|
-
return this.bridgeRequest({ method: 'signAndSubmitTransferTx', params });
|
|
175
|
+
return this.bridgeRequest({ method: 'signAndSubmitTransferTx', params: JSON.stringify(params) });
|
|
176
176
|
}
|
|
177
177
|
signAndSubmitUnsignedTx(params) {
|
|
178
|
-
return this.bridgeRequest({ method: 'signAndSubmitUnsignedTx', params });
|
|
178
|
+
return this.bridgeRequest({ method: 'signAndSubmitUnsignedTx', params: JSON.stringify(params) });
|
|
179
179
|
}
|
|
180
180
|
signUnsignedTx(params) {
|
|
181
|
-
return this.bridgeRequest({ method: 'signUnsignedTx', params });
|
|
181
|
+
return this.bridgeRequest({ method: 'signUnsignedTx', params: JSON.stringify(params) });
|
|
182
182
|
}
|
|
183
183
|
signMessage(params) {
|
|
184
|
-
return this.bridgeRequest({ method: 'signMessage', params });
|
|
184
|
+
return this.bridgeRequest({ method: 'signMessage', params: JSON.stringify(params) });
|
|
185
185
|
}
|
|
186
186
|
request(message) {
|
|
187
187
|
return this.bridgeRequest({ method: 'addNewToken', params: message.params });
|
|
@@ -169,22 +169,22 @@ class ProviderAlph extends web3_1.InteractiveSignerProvider {
|
|
|
169
169
|
return this.bridgeRequest({ method: 'unsafeGetSelectedAccount' });
|
|
170
170
|
}
|
|
171
171
|
signAndSubmitDeployContractTx(params) {
|
|
172
|
-
return this.bridgeRequest({ method: 'signAndSubmitDeployContractTx', params });
|
|
172
|
+
return this.bridgeRequest({ method: 'signAndSubmitDeployContractTx', params: JSON.stringify(params) });
|
|
173
173
|
}
|
|
174
174
|
signAndSubmitExecuteScriptTx(params) {
|
|
175
|
-
return this.bridgeRequest({ method: 'signAndSubmitExecuteScriptTx', params });
|
|
175
|
+
return this.bridgeRequest({ method: 'signAndSubmitExecuteScriptTx', params: JSON.stringify(params) });
|
|
176
176
|
}
|
|
177
177
|
signAndSubmitTransferTx(params) {
|
|
178
|
-
return this.bridgeRequest({ method: 'signAndSubmitTransferTx', params });
|
|
178
|
+
return this.bridgeRequest({ method: 'signAndSubmitTransferTx', params: JSON.stringify(params) });
|
|
179
179
|
}
|
|
180
180
|
signAndSubmitUnsignedTx(params) {
|
|
181
|
-
return this.bridgeRequest({ method: 'signAndSubmitUnsignedTx', params });
|
|
181
|
+
return this.bridgeRequest({ method: 'signAndSubmitUnsignedTx', params: JSON.stringify(params) });
|
|
182
182
|
}
|
|
183
183
|
signUnsignedTx(params) {
|
|
184
|
-
return this.bridgeRequest({ method: 'signUnsignedTx', params });
|
|
184
|
+
return this.bridgeRequest({ method: 'signUnsignedTx', params: JSON.stringify(params) });
|
|
185
185
|
}
|
|
186
186
|
signMessage(params) {
|
|
187
|
-
return this.bridgeRequest({ method: 'signMessage', params });
|
|
187
|
+
return this.bridgeRequest({ method: 'signMessage', params: JSON.stringify(params) });
|
|
188
188
|
}
|
|
189
189
|
request(message) {
|
|
190
190
|
return this.bridgeRequest({ method: 'addNewToken', params: message.params });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/onekey-alph-provider",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@alephium/get-extension-wallet": "^1.5.2",
|
|
32
32
|
"@alephium/walletconnect-provider": "^1.5.2",
|
|
33
33
|
"@alephium/web3": "^1.5.2",
|
|
34
|
-
"@onekeyfe/cross-inpage-provider-core": "2.1.
|
|
35
|
-
"@onekeyfe/cross-inpage-provider-errors": "2.1.
|
|
36
|
-
"@onekeyfe/cross-inpage-provider-types": "2.1.
|
|
37
|
-
"@onekeyfe/extension-bridge-injected": "2.1.
|
|
34
|
+
"@onekeyfe/cross-inpage-provider-core": "2.1.8",
|
|
35
|
+
"@onekeyfe/cross-inpage-provider-errors": "2.1.8",
|
|
36
|
+
"@onekeyfe/cross-inpage-provider-types": "2.1.8",
|
|
37
|
+
"@onekeyfe/extension-bridge-injected": "2.1.8"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "40fd9b618f62b24870523282fa47da5c2ca33d66"
|
|
40
40
|
}
|