@dynamic-labs/algorand 4.0.0-alpha.25 → 4.0.0-alpha.27

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,20 @@
1
1
 
2
+ ## [4.0.0-alpha.27](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2024-11-06)
3
+
4
+
5
+ ### Features
6
+
7
+ * allows adding connection configuration for solana connectors ([#7354](https://github.com/dynamic-labs/dynamic-auth/issues/7354)) ([01e35ee](https://github.com/dynamic-labs/dynamic-auth/commit/01e35ee5bfe4605df48e4188a753111efe483048))
8
+ * allows passing solana connection config to dynamic client ([#7357](https://github.com/dynamic-labs/dynamic-auth/issues/7357)) ([6da14ce](https://github.com/dynamic-labs/dynamic-auth/commit/6da14ceb481147aea31d192fe268be43a8af80e9))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * check legacy vs eip1599 tx in global connectivity ([#7341](https://github.com/dynamic-labs/dynamic-auth/issues/7341)) ([b223ea7](https://github.com/dynamic-labs/dynamic-auth/commit/b223ea7a5ed5637e11da1040c631c48bc23ba76d))
14
+ * global connectivity multiple transactions in a row ([#7342](https://github.com/dynamic-labs/dynamic-auth/issues/7342)) ([d13c1af](https://github.com/dynamic-labs/dynamic-auth/commit/d13c1afec6b3680961621d8317f55549b3ed428f))
15
+
16
+ ## [4.0.0-alpha.26](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.25...v4.0.0-alpha.26) (2024-11-04)
17
+
2
18
  ## [4.0.0-alpha.25](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.24...v4.0.0-alpha.25) (2024-11-01)
3
19
 
4
20
  ## [4.0.0-alpha.24](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-10-31)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.25";
6
+ var version = "4.0.0-alpha.27";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.25";
2
+ var version = "4.0.0-alpha.27";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/algorand",
3
- "version": "4.0.0-alpha.25",
3
+ "version": "4.0.0-alpha.27",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,10 +19,10 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@perawallet/connect": "1.3.4",
22
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.25",
23
- "@dynamic-labs/utils": "4.0.0-alpha.25",
24
- "@dynamic-labs/wallet-book": "4.0.0-alpha.25",
25
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.25"
22
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.27",
23
+ "@dynamic-labs/utils": "4.0.0-alpha.27",
24
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.27",
25
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.27"
26
26
  },
27
27
  "peerDependencies": {}
28
28
  }
@@ -6,15 +6,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var connect = require('@perawallet/connect');
8
8
  var utils = require('@dynamic-labs/utils');
9
+ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
9
10
  var AlgorandWalletConnector = require('../AlgorandWalletConnector.cjs');
10
11
  var PeraSigner = require('./PeraSigner.cjs');
11
12
 
13
+ const PERA_KEY = 'perawallet';
12
14
  class PeraWalletConnector extends AlgorandWalletConnector.AlgorandWalletConnector {
13
15
  constructor(opts) {
14
- super(Object.assign(Object.assign({}, opts), { cacheKey: 'pera' }));
16
+ const metadata = walletConnectorCore.getWalletMetadataFromWalletBook({
17
+ walletBook: opts.walletBook,
18
+ walletKey: PERA_KEY,
19
+ });
20
+ super(Object.assign(Object.assign({}, opts), { cacheKey: 'pera', metadata }));
15
21
  this.canConnectViaCustodialService = true;
16
22
  this.name = 'Pera Wallet';
17
- this.overrideKey = 'perawallet';
23
+ this.overrideKey = PERA_KEY;
18
24
  }
19
25
  getClient() {
20
26
  if (!this.client) {
@@ -1,15 +1,11 @@
1
- import type { WalletBookSchema } from '@dynamic-labs/wallet-book';
2
- import { AlgorandWalletConnector } from '../AlgorandWalletConnector';
1
+ import { AlgorandWalletConnector, AlgorandWalletConnectorOpts } from '../AlgorandWalletConnector';
3
2
  import { IPeraSigner } from './PeraSigner';
4
- export type PeraWalletConnectorOpts = {
5
- walletBook: WalletBookSchema;
6
- };
7
3
  export declare class PeraWalletConnector extends AlgorandWalletConnector {
8
4
  private client?;
9
5
  canConnectViaCustodialService: boolean;
10
6
  name: string;
11
7
  overrideKey: string;
12
- constructor(opts: PeraWalletConnectorOpts);
8
+ constructor(opts: AlgorandWalletConnectorOpts);
13
9
  private getClient;
14
10
  getNetwork(): Promise<number | undefined>;
15
11
  getAddress(): Promise<string | undefined>;
@@ -2,15 +2,21 @@
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { PeraWalletConnect } from '@perawallet/connect';
4
4
  import { DynamicError } from '@dynamic-labs/utils';
5
+ import { getWalletMetadataFromWalletBook } from '@dynamic-labs/wallet-connector-core';
5
6
  import { AlgorandWalletConnector } from '../AlgorandWalletConnector.js';
6
7
  import { PeraSigner } from './PeraSigner.js';
7
8
 
9
+ const PERA_KEY = 'perawallet';
8
10
  class PeraWalletConnector extends AlgorandWalletConnector {
9
11
  constructor(opts) {
10
- super(Object.assign(Object.assign({}, opts), { cacheKey: 'pera' }));
12
+ const metadata = getWalletMetadataFromWalletBook({
13
+ walletBook: opts.walletBook,
14
+ walletKey: PERA_KEY,
15
+ });
16
+ super(Object.assign(Object.assign({}, opts), { cacheKey: 'pera', metadata }));
11
17
  this.canConnectViaCustodialService = true;
12
18
  this.name = 'Pera Wallet';
13
- this.overrideKey = 'perawallet';
19
+ this.overrideKey = PERA_KEY;
14
20
  }
15
21
  getClient() {
16
22
  if (!this.client) {