@clonegod/ttd-sui-common 1.0.13 → 1.0.15
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.
|
@@ -16,7 +16,7 @@ class TransactionService {
|
|
|
16
16
|
this.transactionClient = connection.createServiceClient('transaction_execution_service.proto', 'TransactionExecutionService');
|
|
17
17
|
}
|
|
18
18
|
executeTransaction(transactionBytes_1, signatureBytes_1) {
|
|
19
|
-
return __awaiter(this, arguments, void 0, function* (transactionBytes, signatureBytes, fields = ['transaction', 'finality'
|
|
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: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const normalizeSuiTokenAddress: (address: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeSuiTokenAddress = void 0;
|
|
4
|
+
const normalizeSuiTokenAddress = (address) => {
|
|
5
|
+
if (address === '0x2::sui::SUI') {
|
|
6
|
+
return '0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI';
|
|
7
|
+
}
|
|
8
|
+
return address;
|
|
9
|
+
};
|
|
10
|
+
exports.normalizeSuiTokenAddress = normalizeSuiTokenAddress;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./decode"), exports);
|
|
18
18
|
__exportStar(require("./checkpoint"), exports);
|
|
19
|
+
__exportStar(require("./format"), exports);
|