@dynamic-labs/algorand 2.0.0-alpha.10 → 2.0.0-alpha.11

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,31 @@
1
1
 
2
+ ## [2.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-03-12)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * rename FetchPublicAddressOpts to GetAddressOpts (#4910)
8
+ * remove use effect in useWalletEventListeners (#4843)
9
+ * rename fetchPublicAddress to getAddress (#4851)
10
+
11
+ ### Features
12
+
13
+ * Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
14
+ * use transaction confirmation ui on signAndSendTransaction for solana embedded wallets ([#4909](https://github.com/dynamic-labs/DynamicAuth/issues/4909)) ([d77e89e](https://github.com/dynamic-labs/DynamicAuth/commit/d77e89ecff9dfc67ed48537f541a9995b2662e1e))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
20
+ * keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
21
+ * pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
22
+ * update walletbook to fix zerion in-app browser detection issue ([#4917](https://github.com/dynamic-labs/DynamicAuth/issues/4917)) ([48b05d7](https://github.com/dynamic-labs/DynamicAuth/commit/48b05d78e4f7add09787b64505723d4eca34d3e0))
23
+
24
+
25
+ * remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
26
+ * rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
27
+ * rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
28
+
2
29
  ## [2.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-03-08)
3
30
 
4
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/algorand",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -28,9 +28,9 @@
28
28
  "dependencies": {
29
29
  "@perawallet/connect": "1.3.4",
30
30
  "@randlabs/myalgo-connect": "1.4.2",
31
- "@dynamic-labs/utils": "2.0.0-alpha.10",
32
- "@dynamic-labs/wallet-book": "2.0.0-alpha.10",
33
- "@dynamic-labs/wallet-connector-core": "2.0.0-alpha.10"
31
+ "@dynamic-labs/utils": "2.0.0-alpha.11",
32
+ "@dynamic-labs/wallet-book": "2.0.0-alpha.11",
33
+ "@dynamic-labs/wallet-connector-core": "2.0.0-alpha.11"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -64,7 +64,7 @@ class AlgorandWalletConnector extends walletConnectorCore.WalletConnectorBase {
64
64
  }
65
65
  getBalance() {
66
66
  return _tslib.__awaiter(this, void 0, void 0, function* () {
67
- const address = yield this.fetchPublicAddress();
67
+ const address = yield this.getAddress();
68
68
  if (!address) {
69
69
  throw new utils.DynamicError('getBalance - Not connected!');
70
70
  }
@@ -60,7 +60,7 @@ class AlgorandWalletConnector extends WalletConnectorBase {
60
60
  }
61
61
  getBalance() {
62
62
  return __awaiter(this, void 0, void 0, function* () {
63
- const address = yield this.fetchPublicAddress();
63
+ const address = yield this.getAddress();
64
64
  if (!address) {
65
65
  throw new DynamicError('getBalance - Not connected!');
66
66
  }
@@ -30,7 +30,7 @@ class MyAlgoWalletConnector extends AlgorandWalletConnector.AlgorandWalletConnec
30
30
  return undefined;
31
31
  });
32
32
  }
33
- fetchPublicAddress() {
33
+ getAddress() {
34
34
  return _tslib.__awaiter(this, void 0, void 0, function* () {
35
35
  const currentAddress = yield this.cache.getCurrentAddress();
36
36
  if (currentAddress) {
@@ -49,7 +49,7 @@ class MyAlgoWalletConnector extends AlgorandWalletConnector.AlgorandWalletConnec
49
49
  }
50
50
  getSigner() {
51
51
  return _tslib.__awaiter(this, void 0, void 0, function* () {
52
- const address = yield this.fetchPublicAddress();
52
+ const address = yield this.getAddress();
53
53
  if (!address)
54
54
  throw new utils.DynamicError('MyAlgo Wallet Connector - Not connected!');
55
55
  return new myalgoSigner.MyAlgoSigner(address, this.getClient());
@@ -8,7 +8,7 @@ export declare class MyAlgoWalletConnector extends AlgorandWalletConnector {
8
8
  constructor(opts: any);
9
9
  private getClient;
10
10
  getNetwork(): Promise<number | undefined>;
11
- fetchPublicAddress(): Promise<string | undefined>;
11
+ getAddress(): Promise<string | undefined>;
12
12
  getSigner(): Promise<IMyAlgoSigner>;
13
13
  signMessage(messageToSign: string): Promise<string | undefined>;
14
14
  }
@@ -22,7 +22,7 @@ class MyAlgoWalletConnector extends AlgorandWalletConnector {
22
22
  return undefined;
23
23
  });
24
24
  }
25
- fetchPublicAddress() {
25
+ getAddress() {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  const currentAddress = yield this.cache.getCurrentAddress();
28
28
  if (currentAddress) {
@@ -41,7 +41,7 @@ class MyAlgoWalletConnector extends AlgorandWalletConnector {
41
41
  }
42
42
  getSigner() {
43
43
  return __awaiter(this, void 0, void 0, function* () {
44
- const address = yield this.fetchPublicAddress();
44
+ const address = yield this.getAddress();
45
45
  if (!address)
46
46
  throw new DynamicError('MyAlgo Wallet Connector - Not connected!');
47
47
  return new MyAlgoSigner(address, this.getClient());
@@ -27,7 +27,7 @@ class PeraWalletConnector extends AlgorandWalletConnector.AlgorandWalletConnecto
27
27
  return (_a = this.getClient().chainId) === null || _a === void 0 ? void 0 : _a.valueOf();
28
28
  });
29
29
  }
30
- fetchPublicAddress() {
30
+ getAddress() {
31
31
  return _tslib.__awaiter(this, void 0, void 0, function* () {
32
32
  const currentAddress = yield this.cache.getCurrentAddress();
33
33
  if (currentAddress) {
@@ -44,7 +44,7 @@ class PeraWalletConnector extends AlgorandWalletConnector.AlgorandWalletConnecto
44
44
  }
45
45
  getSigner() {
46
46
  return _tslib.__awaiter(this, void 0, void 0, function* () {
47
- const address = yield this.fetchPublicAddress();
47
+ const address = yield this.getAddress();
48
48
  if (!address) {
49
49
  throw new utils.DynamicError('Pera Wallet Connector - Not connected!');
50
50
  }
@@ -12,7 +12,7 @@ export declare class PeraWalletConnector extends AlgorandWalletConnector {
12
12
  constructor(opts: PeraWalletConnectorOpts);
13
13
  private getClient;
14
14
  getNetwork(): Promise<number | undefined>;
15
- fetchPublicAddress(): Promise<string | undefined>;
15
+ getAddress(): Promise<string | undefined>;
16
16
  getSigner(): Promise<IPeraSigner>;
17
17
  signMessage(messageToSign: string): Promise<string | undefined>;
18
18
  }
@@ -23,7 +23,7 @@ class PeraWalletConnector extends AlgorandWalletConnector {
23
23
  return (_a = this.getClient().chainId) === null || _a === void 0 ? void 0 : _a.valueOf();
24
24
  });
25
25
  }
26
- fetchPublicAddress() {
26
+ getAddress() {
27
27
  return __awaiter(this, void 0, void 0, function* () {
28
28
  const currentAddress = yield this.cache.getCurrentAddress();
29
29
  if (currentAddress) {
@@ -40,7 +40,7 @@ class PeraWalletConnector extends AlgorandWalletConnector {
40
40
  }
41
41
  getSigner() {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const address = yield this.fetchPublicAddress();
43
+ const address = yield this.getAddress();
44
44
  if (!address) {
45
45
  throw new DynamicError('Pera Wallet Connector - Not connected!');
46
46
  }