@taquito/beacon-wallet 19.2.0 → 19.2.1-beta.1

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/README.md CHANGED
@@ -26,23 +26,19 @@ import { BeaconWallet } from '@taquito/beacon-wallet';
26
26
  const options = {
27
27
  name: 'MyAwesomeDapp',
28
28
  iconUrl: 'https://taquito.io/img/favicon.svg',
29
- preferredNetwork: 'chosen_network',
30
- eventHandlers: {
31
- PERMISSION_REQUEST_SUCCESS: {
32
- handler: async (data) => {
33
- console.log('permission data:', data);
34
- },
35
- },
36
- },
29
+ network: { type: 'ghostnet' },
30
+ enableMetrics: true,
37
31
  };
38
32
  const wallet = new BeaconWallet(options);
39
33
 
40
- // The Beacon wallet requires an extra step to set up the network to connect to and the permissions:
41
- await wallet.requestPermissions({
42
- network: {
43
- type: 'chosen_network',
34
+ await wallet.client.subscribeToEvent(
35
+ BeaconEvent.ACTIVE_ACCOUNT_SET,
36
+ async (account) => {
37
+ // An active account has been set, update the dApp UI
38
+ console.log(`${BeaconEvent.ACTIVE_ACCOUNT_SET} triggered: `, account);
44
39
  },
45
- });
40
+ );
41
+ await wallet.requestPermissions();
46
42
 
47
43
  const Tezos = new TezosToolkit('https://YOUR_PREFERRED_RPC_URL');
48
44
  Tezos.setWalletProvider(wallet);
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "79be4991733872e1a9d0b3b9159462100349421a",
7
- "version": "19.2.0"
6
+ "commitHash": "53a72356967af6908595cc3cdd3289183c4b2489",
7
+ "version": "19.2.1-beta.1"
8
8
  };
@@ -63,8 +63,8 @@ class MissingRequiredScopes extends PermissionDeniedError {
63
63
 
64
64
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
65
65
  const VERSION = {
66
- "commitHash": "79be4991733872e1a9d0b3b9159462100349421a",
67
- "version": "19.2.0"
66
+ "commitHash": "53a72356967af6908595cc3cdd3289183c4b2489",
67
+ "version": "19.2.1-beta.1"
68
68
  };
69
69
 
70
70
  /**
@@ -63,8 +63,8 @@
63
63
 
64
64
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
65
65
  const VERSION = {
66
- "commitHash": "79be4991733872e1a9d0b3b9159462100349421a",
67
- "version": "19.2.0"
66
+ "commitHash": "53a72356967af6908595cc3cdd3289183c4b2489",
67
+ "version": "19.2.1-beta.1"
68
68
  };
69
69
 
70
70
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/beacon-wallet",
3
- "version": "19.2.0",
3
+ "version": "19.2.1-beta.1",
4
4
  "description": "Beacon wallet provider",
5
5
  "keywords": [
6
6
  "tezos",
@@ -67,9 +67,9 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@airgap/beacon-dapp": "^4.2.1",
71
- "@taquito/core": "^19.1.0",
72
- "@taquito/taquito": "^19.2.0"
70
+ "@airgap/beacon-dapp": "^4.2.2-beta.3",
71
+ "@taquito/core": "^19.2.1-beta.1",
72
+ "@taquito/taquito": "^19.2.1-beta.1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/bluebird": "^3.5.40",
@@ -103,5 +103,5 @@
103
103
  "webpack": "^5.89.0",
104
104
  "webpack-cli": "^5.1.4"
105
105
  },
106
- "gitHead": "f489c399ff32dc8d9d0bdb422586e706c298bade"
106
+ "gitHead": "e219b21e09e0ec28de2acb18594bcd5c2ac3ba13"
107
107
  }