@xchainjs/xchain-wallet 2.0.12 → 2.0.13

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.
Files changed (3) hide show
  1. package/lib/index.esm.js +13 -13
  2. package/lib/index.js +13 -13
  3. package/package.json +11 -11
package/lib/index.esm.js CHANGED
@@ -163,8 +163,8 @@ class Wallet {
163
163
  * @param {Chain[]} chains Optional chains to get addresses for, if not provided, returns all wallet addresses
164
164
  * @returns Addresses mapped by chain
165
165
  */
166
- getAddresses(chains = Object.keys(this.clients)) {
167
- return __awaiter(this, void 0, void 0, function* () {
166
+ getAddresses() {
167
+ return __awaiter(this, arguments, void 0, function* (chains = Object.keys(this.clients)) {
168
168
  const tasks = chains.map((chain) => {
169
169
  return this.getAddress(chain);
170
170
  });
@@ -204,11 +204,11 @@ class Wallet {
204
204
  * @param {AnyAsset[]} assets - Optional. Assets of which return the balance
205
205
  * @returns {Record<Chain, Balance[]>} Balances by chain
206
206
  */
207
- getBalances(assets = Object.keys(this.clients).reduce((prev, client) => {
208
- prev[client] = undefined;
209
- return prev;
210
- }, {})) {
211
- return __awaiter(this, void 0, void 0, function* () {
207
+ getBalances() {
208
+ return __awaiter(this, arguments, void 0, function* (assets = Object.keys(this.clients).reduce((prev, client) => {
209
+ prev[client] = undefined;
210
+ return prev;
211
+ }, {})) {
212
212
  const walletBalances = {};
213
213
  const chains = Object.keys(assets);
214
214
  const results = yield Promise.allSettled(chains.map((chain) => {
@@ -254,8 +254,8 @@ class Wallet {
254
254
  * @param {Chain[]} chains - Optional. Chain of which return the transaction history
255
255
  * @returns {TxsPage} the chain transaction history
256
256
  */
257
- getTransactionsHistories(chains = Object.keys(this.clients)) {
258
- return __awaiter(this, void 0, void 0, function* () {
257
+ getTransactionsHistories() {
258
+ return __awaiter(this, arguments, void 0, function* (chains = Object.keys(this.clients)) {
259
259
  const tasks = chains.map((chain) => __awaiter(this, void 0, void 0, function* () {
260
260
  return this.getTransactionsHistory(chain);
261
261
  }));
@@ -376,8 +376,8 @@ class Wallet {
376
376
  * @param {TxParams} params The transaction and fees options.
377
377
  * @returns {BigNumber} The estimated gas limit.
378
378
  */
379
- estimateGasLimit({ asset, recipient, amount, memo, from, isMemoEncoded, }) {
380
- return __awaiter(this, void 0, void 0, function* () {
379
+ estimateGasLimit(_a) {
380
+ return __awaiter(this, arguments, void 0, function* ({ asset, recipient, amount, memo, from, isMemoEncoded, }) {
381
381
  const client = this.getClient(asset.chain);
382
382
  if (!this.isEvmClient(client)) {
383
383
  throw Error(`estimateGasLimit method not supported in ${asset.chain} chain`);
@@ -453,8 +453,8 @@ class Wallet {
453
453
  * @returns {string} the hash of the deposit
454
454
  * @throws {Error} if cannot make deposit with the asset
455
455
  */
456
- deposit({ asset, amount, memo, walletIndex, sequence, gasLimit, chain, }) {
457
- return __awaiter(this, void 0, void 0, function* () {
456
+ deposit(_a) {
457
+ return __awaiter(this, arguments, void 0, function* ({ asset, amount, memo, walletIndex, sequence, gasLimit, chain, }) {
458
458
  const client = this.getClient(chain);
459
459
  if (!('deposit' in client))
460
460
  throw Error(`Can not deposit with ${chain} client`);
package/lib/index.js CHANGED
@@ -165,8 +165,8 @@ class Wallet {
165
165
  * @param {Chain[]} chains Optional chains to get addresses for, if not provided, returns all wallet addresses
166
166
  * @returns Addresses mapped by chain
167
167
  */
168
- getAddresses(chains = Object.keys(this.clients)) {
169
- return __awaiter(this, void 0, void 0, function* () {
168
+ getAddresses() {
169
+ return __awaiter(this, arguments, void 0, function* (chains = Object.keys(this.clients)) {
170
170
  const tasks = chains.map((chain) => {
171
171
  return this.getAddress(chain);
172
172
  });
@@ -206,11 +206,11 @@ class Wallet {
206
206
  * @param {AnyAsset[]} assets - Optional. Assets of which return the balance
207
207
  * @returns {Record<Chain, Balance[]>} Balances by chain
208
208
  */
209
- getBalances(assets = Object.keys(this.clients).reduce((prev, client) => {
210
- prev[client] = undefined;
211
- return prev;
212
- }, {})) {
213
- return __awaiter(this, void 0, void 0, function* () {
209
+ getBalances() {
210
+ return __awaiter(this, arguments, void 0, function* (assets = Object.keys(this.clients).reduce((prev, client) => {
211
+ prev[client] = undefined;
212
+ return prev;
213
+ }, {})) {
214
214
  const walletBalances = {};
215
215
  const chains = Object.keys(assets);
216
216
  const results = yield Promise.allSettled(chains.map((chain) => {
@@ -256,8 +256,8 @@ class Wallet {
256
256
  * @param {Chain[]} chains - Optional. Chain of which return the transaction history
257
257
  * @returns {TxsPage} the chain transaction history
258
258
  */
259
- getTransactionsHistories(chains = Object.keys(this.clients)) {
260
- return __awaiter(this, void 0, void 0, function* () {
259
+ getTransactionsHistories() {
260
+ return __awaiter(this, arguments, void 0, function* (chains = Object.keys(this.clients)) {
261
261
  const tasks = chains.map((chain) => __awaiter(this, void 0, void 0, function* () {
262
262
  return this.getTransactionsHistory(chain);
263
263
  }));
@@ -378,8 +378,8 @@ class Wallet {
378
378
  * @param {TxParams} params The transaction and fees options.
379
379
  * @returns {BigNumber} The estimated gas limit.
380
380
  */
381
- estimateGasLimit({ asset, recipient, amount, memo, from, isMemoEncoded, }) {
382
- return __awaiter(this, void 0, void 0, function* () {
381
+ estimateGasLimit(_a) {
382
+ return __awaiter(this, arguments, void 0, function* ({ asset, recipient, amount, memo, from, isMemoEncoded, }) {
383
383
  const client = this.getClient(asset.chain);
384
384
  if (!this.isEvmClient(client)) {
385
385
  throw Error(`estimateGasLimit method not supported in ${asset.chain} chain`);
@@ -455,8 +455,8 @@ class Wallet {
455
455
  * @returns {string} the hash of the deposit
456
456
  * @throws {Error} if cannot make deposit with the asset
457
457
  */
458
- deposit({ asset, amount, memo, walletIndex, sequence, gasLimit, chain, }) {
459
- return __awaiter(this, void 0, void 0, function* () {
458
+ deposit(_a) {
459
+ return __awaiter(this, arguments, void 0, function* ({ asset, amount, memo, walletIndex, sequence, gasLimit, chain, }) {
460
460
  const client = this.getClient(chain);
461
461
  if (!('deposit' in client))
462
462
  throw Error(`Can not deposit with ${chain} client`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-wallet",
3
3
  "description": "XChainjs clients wrapper to work with several chains at the same time",
4
- "version": "2.0.12",
4
+ "version": "2.0.13",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",
@@ -29,19 +29,19 @@
29
29
  "directory": "release/package"
30
30
  },
31
31
  "dependencies": {
32
- "@xchainjs/xchain-client": "2.0.5",
33
- "@xchainjs/xchain-evm": "2.0.8",
34
- "@xchainjs/xchain-mayachain": "3.0.5",
35
- "@xchainjs/xchain-radix": "2.0.5",
36
- "@xchainjs/xchain-thorchain": "3.0.9",
37
- "@xchainjs/xchain-util": "2.0.3",
38
- "@xchainjs/xchain-utxo": "2.0.5",
32
+ "@xchainjs/xchain-client": "2.0.6",
33
+ "@xchainjs/xchain-evm": "2.0.9",
34
+ "@xchainjs/xchain-mayachain": "3.0.6",
35
+ "@xchainjs/xchain-radix": "2.0.6",
36
+ "@xchainjs/xchain-thorchain": "3.0.10",
37
+ "@xchainjs/xchain-util": "2.0.4",
38
+ "@xchainjs/xchain-utxo": "2.0.6",
39
39
  "bignumber.js": "^9.0.0",
40
40
  "ethers": "^6.14.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@xchainjs/xchain-bitcoin": "2.0.5",
44
- "@xchainjs/xchain-bitcoincash": "2.0.6",
45
- "@xchainjs/xchain-ethereum": "2.0.9"
43
+ "@xchainjs/xchain-bitcoin": "2.0.6",
44
+ "@xchainjs/xchain-bitcoincash": "2.0.7",
45
+ "@xchainjs/xchain-ethereum": "2.0.10"
46
46
  }
47
47
  }