@dynamic-labs/cosmos 3.0.0-alpha.61 → 3.0.0-alpha.63

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/CHANGELOG.md CHANGED
@@ -1,4 +1,28 @@
1
1
 
2
+ ## [3.0.0-alpha.63](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.62...v3.0.0-alpha.63) (2024-09-10)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * remove signWithEmailWalletName (#6824)
8
+
9
+ ### Features
10
+
11
+ * remove signWithEmailWalletName ([#6824](https://github.com/dynamic-labs/DynamicAuth/issues/6824)) ([9da06ce](https://github.com/dynamic-labs/DynamicAuth/commit/9da06ce6f83813e00827295a2952a805e0ef5ec0))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * omit body when creating 204 response data ([#6458](https://github.com/dynamic-labs/DynamicAuth/issues/6458)) ([06aab01](https://github.com/dynamic-labs/DynamicAuth/commit/06aab016eed0fa5ac41e43ece73780844d8d12ad))
17
+ * use a better object clone function to clone wallet signers ([#6835](https://github.com/dynamic-labs/DynamicAuth/issues/6835)) ([d88c195](https://github.com/dynamic-labs/DynamicAuth/commit/d88c195ce8e3af8e2fd8e6d76fbbdad618bc6c85))
18
+
19
+ ## [3.0.0-alpha.62](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.61...v3.0.0-alpha.62) (2024-09-08)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * fiat not displaying ([#6825](https://github.com/dynamic-labs/DynamicAuth/issues/6825)) ([a76a14d](https://github.com/dynamic-labs/DynamicAuth/commit/a76a14dfb10d44b15b406995122c080961546728))
25
+
2
26
  ## [3.0.0-alpha.61](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.60...v3.0.0-alpha.61) (2024-09-06)
3
27
 
4
28
  ## [3.0.0-alpha.60](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.59...v3.0.0-alpha.60) (2024-09-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/cosmos",
3
- "version": "3.0.0-alpha.61",
3
+ "version": "3.0.0-alpha.63",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@keplr-wallet/types": "0.12.121",
30
- "@dynamic-labs/types": "3.0.0-alpha.61",
31
- "@dynamic-labs/utils": "3.0.0-alpha.61",
32
- "@dynamic-labs/wallet-book": "3.0.0-alpha.61",
33
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.61"
30
+ "@dynamic-labs/types": "3.0.0-alpha.63",
31
+ "@dynamic-labs/utils": "3.0.0-alpha.63",
32
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.63",
33
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.63"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
+ var utils = require('@dynamic-labs/utils');
8
9
 
9
10
  class CosmosWallet extends walletConnectorCore.Wallet {
10
11
  getProvider() {
@@ -13,31 +14,40 @@ class CosmosWallet extends walletConnectorCore.Wallet {
13
14
  if (!provider) {
14
15
  throw new Error('unable to retrieve Cosmos provider');
15
16
  }
16
- return Object.assign(Object.assign({}, provider), { sendEthereumTx: (chainId, tx) => _tslib.__awaiter(this, void 0, void 0, function* () {
17
+ return utils.cloneObjectWithOverrides(provider, {
18
+ sendEthereumTx: (chainId, tx) => _tslib.__awaiter(this, void 0, void 0, function* () {
17
19
  yield this.sync();
18
20
  return provider.sendEthereumTx(chainId, tx);
19
- }), sendTx: (chainId, tx, mode) => _tslib.__awaiter(this, void 0, void 0, function* () {
21
+ }),
22
+ sendTx: (chainId, tx, mode) => _tslib.__awaiter(this, void 0, void 0, function* () {
20
23
  yield this.sync();
21
24
  return provider.sendTx(chainId, tx, mode);
22
- }), signAmino: (chainId, signer, signerDoc, signerOperations) => _tslib.__awaiter(this, void 0, void 0, function* () {
25
+ }),
26
+ signAmino: (chainId, signer, signerDoc, signerOperations) => _tslib.__awaiter(this, void 0, void 0, function* () {
23
27
  yield this.sync();
24
28
  return provider.signAmino(chainId, signer, signerDoc, signerOperations);
25
- }), signArbitrary: (chainId, signer, data) => _tslib.__awaiter(this, void 0, void 0, function* () {
29
+ }),
30
+ signArbitrary: (chainId, signer, data) => _tslib.__awaiter(this, void 0, void 0, function* () {
26
31
  yield this.sync();
27
32
  return provider.signArbitrary(chainId, signer, data);
28
- }), signDirect: (chainId, signer, signDoc, signOptions) => _tslib.__awaiter(this, void 0, void 0, function* () {
33
+ }),
34
+ signDirect: (chainId, signer, signDoc, signOptions) => _tslib.__awaiter(this, void 0, void 0, function* () {
29
35
  yield this.sync();
30
36
  return provider.signDirect(chainId, signer, signDoc, signOptions);
31
- }), signDirectAux: (chainId, signer, signDoc, signOptions) => _tslib.__awaiter(this, void 0, void 0, function* () {
37
+ }),
38
+ signDirectAux: (chainId, signer, signDoc, signOptions) => _tslib.__awaiter(this, void 0, void 0, function* () {
32
39
  yield this.sync();
33
40
  return provider.signDirectAux(chainId, signer, signDoc, signOptions);
34
- }), signEthereum: (chainId, signer, data, type) => _tslib.__awaiter(this, void 0, void 0, function* () {
41
+ }),
42
+ signEthereum: (chainId, signer, data, type) => _tslib.__awaiter(this, void 0, void 0, function* () {
35
43
  yield this.sync();
36
44
  return provider.signEthereum(chainId, signer, data, type);
37
- }), signICNSAdr36: (chainId, contractAddress, owner, username, addressChainIds) => _tslib.__awaiter(this, void 0, void 0, function* () {
45
+ }),
46
+ signICNSAdr36: (chainId, contractAddress, owner, username, addressChainIds) => _tslib.__awaiter(this, void 0, void 0, function* () {
38
47
  yield this.sync();
39
48
  return provider.signICNSAdr36(chainId, contractAddress, owner, username, addressChainIds);
40
- }) });
49
+ }),
50
+ });
41
51
  });
42
52
  }
43
53
  getOfflineSigner() {
@@ -46,13 +56,16 @@ class CosmosWallet extends walletConnectorCore.Wallet {
46
56
  if (!offlineSigner) {
47
57
  throw new Error('unable to retrieve Cosmos offline signer');
48
58
  }
49
- return Object.assign(Object.assign({}, offlineSigner), { signAmino: (signerAddress, signerDoc) => _tslib.__awaiter(this, void 0, void 0, function* () {
59
+ return utils.cloneObjectWithOverrides(offlineSigner, {
60
+ signAmino: (signerAddress, signerDoc) => _tslib.__awaiter(this, void 0, void 0, function* () {
50
61
  yield this.sync();
51
62
  return offlineSigner.signAmino(signerAddress, signerDoc);
52
- }), signDirect: (signerAddress, signDoc) => _tslib.__awaiter(this, void 0, void 0, function* () {
63
+ }),
64
+ signDirect: (signerAddress, signDoc) => _tslib.__awaiter(this, void 0, void 0, function* () {
53
65
  yield this.sync();
54
66
  return offlineSigner.signDirect(signerAddress, signDoc);
55
- }) });
67
+ }),
68
+ });
56
69
  });
57
70
  }
58
71
  }
@@ -1,6 +1,7 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { Wallet } from '@dynamic-labs/wallet-connector-core';
4
+ import { cloneObjectWithOverrides } from '@dynamic-labs/utils';
4
5
 
5
6
  class CosmosWallet extends Wallet {
6
7
  getProvider() {
@@ -9,31 +10,40 @@ class CosmosWallet extends Wallet {
9
10
  if (!provider) {
10
11
  throw new Error('unable to retrieve Cosmos provider');
11
12
  }
12
- return Object.assign(Object.assign({}, provider), { sendEthereumTx: (chainId, tx) => __awaiter(this, void 0, void 0, function* () {
13
+ return cloneObjectWithOverrides(provider, {
14
+ sendEthereumTx: (chainId, tx) => __awaiter(this, void 0, void 0, function* () {
13
15
  yield this.sync();
14
16
  return provider.sendEthereumTx(chainId, tx);
15
- }), sendTx: (chainId, tx, mode) => __awaiter(this, void 0, void 0, function* () {
17
+ }),
18
+ sendTx: (chainId, tx, mode) => __awaiter(this, void 0, void 0, function* () {
16
19
  yield this.sync();
17
20
  return provider.sendTx(chainId, tx, mode);
18
- }), signAmino: (chainId, signer, signerDoc, signerOperations) => __awaiter(this, void 0, void 0, function* () {
21
+ }),
22
+ signAmino: (chainId, signer, signerDoc, signerOperations) => __awaiter(this, void 0, void 0, function* () {
19
23
  yield this.sync();
20
24
  return provider.signAmino(chainId, signer, signerDoc, signerOperations);
21
- }), signArbitrary: (chainId, signer, data) => __awaiter(this, void 0, void 0, function* () {
25
+ }),
26
+ signArbitrary: (chainId, signer, data) => __awaiter(this, void 0, void 0, function* () {
22
27
  yield this.sync();
23
28
  return provider.signArbitrary(chainId, signer, data);
24
- }), signDirect: (chainId, signer, signDoc, signOptions) => __awaiter(this, void 0, void 0, function* () {
29
+ }),
30
+ signDirect: (chainId, signer, signDoc, signOptions) => __awaiter(this, void 0, void 0, function* () {
25
31
  yield this.sync();
26
32
  return provider.signDirect(chainId, signer, signDoc, signOptions);
27
- }), signDirectAux: (chainId, signer, signDoc, signOptions) => __awaiter(this, void 0, void 0, function* () {
33
+ }),
34
+ signDirectAux: (chainId, signer, signDoc, signOptions) => __awaiter(this, void 0, void 0, function* () {
28
35
  yield this.sync();
29
36
  return provider.signDirectAux(chainId, signer, signDoc, signOptions);
30
- }), signEthereum: (chainId, signer, data, type) => __awaiter(this, void 0, void 0, function* () {
37
+ }),
38
+ signEthereum: (chainId, signer, data, type) => __awaiter(this, void 0, void 0, function* () {
31
39
  yield this.sync();
32
40
  return provider.signEthereum(chainId, signer, data, type);
33
- }), signICNSAdr36: (chainId, contractAddress, owner, username, addressChainIds) => __awaiter(this, void 0, void 0, function* () {
41
+ }),
42
+ signICNSAdr36: (chainId, contractAddress, owner, username, addressChainIds) => __awaiter(this, void 0, void 0, function* () {
34
43
  yield this.sync();
35
44
  return provider.signICNSAdr36(chainId, contractAddress, owner, username, addressChainIds);
36
- }) });
45
+ }),
46
+ });
37
47
  });
38
48
  }
39
49
  getOfflineSigner() {
@@ -42,13 +52,16 @@ class CosmosWallet extends Wallet {
42
52
  if (!offlineSigner) {
43
53
  throw new Error('unable to retrieve Cosmos offline signer');
44
54
  }
45
- return Object.assign(Object.assign({}, offlineSigner), { signAmino: (signerAddress, signerDoc) => __awaiter(this, void 0, void 0, function* () {
55
+ return cloneObjectWithOverrides(offlineSigner, {
56
+ signAmino: (signerAddress, signerDoc) => __awaiter(this, void 0, void 0, function* () {
46
57
  yield this.sync();
47
58
  return offlineSigner.signAmino(signerAddress, signerDoc);
48
- }), signDirect: (signerAddress, signDoc) => __awaiter(this, void 0, void 0, function* () {
59
+ }),
60
+ signDirect: (signerAddress, signDoc) => __awaiter(this, void 0, void 0, function* () {
49
61
  yield this.sync();
50
62
  return offlineSigner.signDirect(signerAddress, signDoc);
51
- }) });
63
+ }),
64
+ });
52
65
  });
53
66
  }
54
67
  }