@onekeyfe/onekey-sui-provider 2.2.30 → 2.2.32
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.
|
@@ -20,11 +20,11 @@ type SuiProviderEventsMap = {
|
|
|
20
20
|
[PROVIDER_EVENTS.networkChange]: (name: string | null) => void;
|
|
21
21
|
[PROVIDER_EVENTS.message_low_level]: (payload: IJsonRpcRequest) => void;
|
|
22
22
|
};
|
|
23
|
-
type SignAndExecuteTransactionBlockInput = SuiSignAndExecuteTransactionBlockInput & {
|
|
23
|
+
type SignAndExecuteTransactionBlockInput = Omit<SuiSignAndExecuteTransactionBlockInput, 'transactionBlock'> & {
|
|
24
24
|
blockSerialize: string;
|
|
25
25
|
walletSerialize: string;
|
|
26
26
|
};
|
|
27
|
-
type SignTransactionBlockInput = SuiSignTransactionBlockInput & {
|
|
27
|
+
type SignTransactionBlockInput = Omit<SuiSignTransactionBlockInput, 'transactionBlock'> & {
|
|
28
28
|
blockSerialize: string;
|
|
29
29
|
walletSerialize: string;
|
|
30
30
|
};
|
|
@@ -7,7 +7,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Transaction } from '@mysten/sui/transactions';
|
|
11
10
|
import { bytesToHex } from '@onekeyfe/cross-inpage-provider-core';
|
|
12
11
|
import { web3Errors } from '@onekeyfe/cross-inpage-provider-errors';
|
|
13
12
|
import { getOrCreateExtInjectedJsBridge } from '@onekeyfe/extension-bridge-injected';
|
|
@@ -137,10 +136,12 @@ class ProviderSui extends ProviderSuiBase {
|
|
|
137
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
137
|
return this._callBridge({
|
|
139
138
|
method: 'signAndExecuteTransactionBlock',
|
|
140
|
-
params:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
params: {
|
|
140
|
+
account: input.account,
|
|
141
|
+
chain: input.chain,
|
|
142
|
+
walletSerialize: JSON.stringify(input.account),
|
|
143
|
+
blockSerialize: input.transactionBlock.serialize(),
|
|
144
|
+
},
|
|
144
145
|
});
|
|
145
146
|
});
|
|
146
147
|
}
|
|
@@ -148,7 +149,12 @@ class ProviderSui extends ProviderSuiBase {
|
|
|
148
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
150
|
return this._callBridge({
|
|
150
151
|
method: 'signTransactionBlock',
|
|
151
|
-
params:
|
|
152
|
+
params: {
|
|
153
|
+
account: input.account,
|
|
154
|
+
chain: input.chain,
|
|
155
|
+
walletSerialize: JSON.stringify(input.account),
|
|
156
|
+
blockSerialize: input.transactionBlock.serialize(),
|
|
157
|
+
},
|
|
152
158
|
});
|
|
153
159
|
});
|
|
154
160
|
}
|
|
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProviderSui = void 0;
|
|
13
|
-
const transactions_1 = require("@mysten/sui/transactions");
|
|
14
13
|
const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-core");
|
|
15
14
|
const cross_inpage_provider_errors_1 = require("@onekeyfe/cross-inpage-provider-errors");
|
|
16
15
|
const extension_bridge_injected_1 = require("@onekeyfe/extension-bridge-injected");
|
|
@@ -140,10 +139,12 @@ class ProviderSui extends ProviderSuiBase_1.ProviderSuiBase {
|
|
|
140
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
140
|
return this._callBridge({
|
|
142
141
|
method: 'signAndExecuteTransactionBlock',
|
|
143
|
-
params:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
params: {
|
|
143
|
+
account: input.account,
|
|
144
|
+
chain: input.chain,
|
|
145
|
+
walletSerialize: JSON.stringify(input.account),
|
|
146
|
+
blockSerialize: input.transactionBlock.serialize(),
|
|
147
|
+
},
|
|
147
148
|
});
|
|
148
149
|
});
|
|
149
150
|
}
|
|
@@ -151,7 +152,12 @@ class ProviderSui extends ProviderSuiBase_1.ProviderSuiBase {
|
|
|
151
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
152
153
|
return this._callBridge({
|
|
153
154
|
method: 'signTransactionBlock',
|
|
154
|
-
params:
|
|
155
|
+
params: {
|
|
156
|
+
account: input.account,
|
|
157
|
+
chain: input.chain,
|
|
158
|
+
walletSerialize: JSON.stringify(input.account),
|
|
159
|
+
blockSerialize: input.transactionBlock.serialize(),
|
|
160
|
+
},
|
|
155
161
|
});
|
|
156
162
|
});
|
|
157
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/onekey-sui-provider",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"type": "module",
|
|
14
13
|
"files": [
|
|
15
14
|
"dist/*"
|
|
16
15
|
],
|
|
@@ -29,12 +28,12 @@
|
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
31
30
|
"@mysten/wallet-standard": "^0.14.0",
|
|
32
|
-
"@onekeyfe/cross-inpage-provider-core": "2.2.
|
|
33
|
-
"@onekeyfe/cross-inpage-provider-errors": "2.2.
|
|
34
|
-
"@onekeyfe/cross-inpage-provider-types": "2.2.
|
|
35
|
-
"@onekeyfe/extension-bridge-injected": "2.2.
|
|
31
|
+
"@onekeyfe/cross-inpage-provider-core": "2.2.32",
|
|
32
|
+
"@onekeyfe/cross-inpage-provider-errors": "2.2.32",
|
|
33
|
+
"@onekeyfe/cross-inpage-provider-types": "2.2.32",
|
|
34
|
+
"@onekeyfe/extension-bridge-injected": "2.2.32",
|
|
36
35
|
"eth-rpc-errors": "^4.0.3",
|
|
37
36
|
"mitt": "^3.0.0"
|
|
38
37
|
},
|
|
39
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "1daa0a175d6a15ccb32a68cfb394b49f53cc8cb4"
|
|
40
39
|
}
|