@clonegod/ttd-sui-common 1.0.12 → 1.0.14
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.
|
@@ -3,5 +3,5 @@ export declare class TransactionService {
|
|
|
3
3
|
private transactionClient;
|
|
4
4
|
private connection;
|
|
5
5
|
constructor(connection: GrpcConnection);
|
|
6
|
-
executeTransaction(
|
|
6
|
+
executeTransaction(transactionBytes: Uint8Array, signatureBytes: Uint8Array, fields?: string[]): Promise<unknown>;
|
|
7
7
|
}
|
|
@@ -15,20 +15,21 @@ class TransactionService {
|
|
|
15
15
|
this.connection = connection;
|
|
16
16
|
this.transactionClient = connection.createServiceClient('transaction_execution_service.proto', 'TransactionExecutionService');
|
|
17
17
|
}
|
|
18
|
-
executeTransaction(
|
|
19
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
18
|
+
executeTransaction(transactionBytes_1, signatureBytes_1) {
|
|
19
|
+
return __awaiter(this, arguments, void 0, function* (transactionBytes, signatureBytes, fields = ['transaction', 'finality']) {
|
|
20
20
|
return new Promise((resolve, reject) => {
|
|
21
21
|
const request = {
|
|
22
22
|
transaction: {
|
|
23
23
|
bcs: {
|
|
24
|
-
|
|
24
|
+
value: transactionBytes
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
signatures: [
|
|
28
28
|
{
|
|
29
29
|
scheme: 0,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
bcs: {
|
|
31
|
+
value: signatureBytes
|
|
32
|
+
}
|
|
32
33
|
}
|
|
33
34
|
],
|
|
34
35
|
read_mask: {
|