@xchainjs/xchain-sui 0.1.2 → 0.1.4

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/lib/client.d.ts CHANGED
@@ -21,7 +21,7 @@ export declare class Client extends BaseXChainClient {
21
21
  getTransactions(params?: TxHistoryParams): Promise<TxsPage>;
22
22
  transfer({ walletIndex, recipient, asset, amount, memo, gasBudget }: TxParams): Promise<string>;
23
23
  broadcastTx(txHex: string): Promise<TxHash>;
24
- prepareTx({ walletIndex, memo, recipient, asset, amount, gasBudget, }: TxParams): Promise<PreparedTx>;
24
+ prepareTx({ walletIndex, memo, recipient, asset, amount, gasBudget }: TxParams): Promise<PreparedTx>;
25
25
  private getKeypair;
26
26
  private getCoinDecimals;
27
27
  private fetchAllTransactionBlocks;
package/lib/index.esm.js CHANGED
@@ -113,7 +113,9 @@ class Client extends BaseXChainClient {
113
113
  }
114
114
  getAddressAsync(index) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
- return this.getKeypair(index || 0).getPublicKey().toSuiAddress();
116
+ return this.getKeypair(index || 0)
117
+ .getPublicKey()
118
+ .toSuiAddress();
117
119
  });
118
120
  }
119
121
  getAddress() {
@@ -278,7 +280,7 @@ class Client extends BaseXChainClient {
278
280
  });
279
281
  }
280
282
  prepareTx(_a) {
281
- return __awaiter(this, arguments, void 0, function* ({ walletIndex, memo, recipient, asset, amount, gasBudget, }) {
283
+ return __awaiter(this, arguments, void 0, function* ({ walletIndex, memo, recipient, asset, amount, gasBudget }) {
282
284
  if (memo)
283
285
  throw Error('Memo is not supported for SUI transfers');
284
286
  const sender = yield this.getAddressAsync(walletIndex !== null && walletIndex !== void 0 ? walletIndex : 0);
package/lib/index.js CHANGED
@@ -119,7 +119,9 @@ class Client extends xchainClient.BaseXChainClient {
119
119
  }
120
120
  getAddressAsync(index) {
121
121
  return __awaiter(this, void 0, void 0, function* () {
122
- return this.getKeypair(index || 0).getPublicKey().toSuiAddress();
122
+ return this.getKeypair(index || 0)
123
+ .getPublicKey()
124
+ .toSuiAddress();
123
125
  });
124
126
  }
125
127
  getAddress() {
@@ -284,7 +286,7 @@ class Client extends xchainClient.BaseXChainClient {
284
286
  });
285
287
  }
286
288
  prepareTx(_a) {
287
- return __awaiter(this, arguments, void 0, function* ({ walletIndex, memo, recipient, asset, amount, gasBudget, }) {
289
+ return __awaiter(this, arguments, void 0, function* ({ walletIndex, memo, recipient, asset, amount, gasBudget }) {
288
290
  if (memo)
289
291
  throw Error('Memo is not supported for SUI transfers');
290
292
  const sender = yield this.getAddressAsync(walletIndex !== null && walletIndex !== void 0 ? walletIndex : 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-sui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Sui client for XChainJS",
5
5
  "keywords": [
6
6
  "Sui",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@mysten/sui": "^1.21.0",
35
- "@xchainjs/xchain-client": "2.0.13",
36
- "@xchainjs/xchain-crypto": "1.0.6",
35
+ "@xchainjs/xchain-client": "2.0.15",
36
+ "@xchainjs/xchain-crypto": "1.0.7",
37
37
  "@xchainjs/xchain-util": "2.0.7",
38
38
  "micro-key-producer": "^0.7.6"
39
39
  },