@taquito/beacon-wallet 24.0.2 → 24.1.0

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.
@@ -25,9 +25,52 @@ Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () {
25
25
  var errors_2 = require("./errors");
26
26
  Object.defineProperty(exports, "BeaconWalletNotInitialized", { enumerable: true, get: function () { return errors_2.BeaconWalletNotInitialized; } });
27
27
  Object.defineProperty(exports, "MissingRequiredScopes", { enumerable: true, get: function () { return errors_2.MissingRequiredScopes; } });
28
+ /**
29
+ * Default matrix relay nodes curated by Taquito.
30
+ *
31
+ * Includes only nodes operated by Papers and Trilitech running the latest
32
+ * Synapse version. These replace the Beacon SDK built-in defaults so that
33
+ * Taquito controls which relay infrastructure its users hit.
34
+ *
35
+ * The geographically distributed Papers nodes (NA-East, NA-West, Asia-East,
36
+ * Australia) have been decommissioned by Papers, so those regions are emptied
37
+ * to prevent connection attempts to dead servers.
38
+ *
39
+ * Users can still override specific regions (or the entire list) by passing
40
+ * their own `matrixNodes` in the BeaconWallet constructor options.
41
+ */
42
+ const TAQUITO_CURATED_MATRIX_NODES = {
43
+ [beacon_dapp_1.Regions.EUROPE_WEST]: [
44
+ // Papers
45
+ 'beacon-node-1.diamond.papers.tech',
46
+ 'beacon-node-1.sky.papers.tech',
47
+ 'beacon-node-2.sky.papers.tech',
48
+ 'beacon-node-1.hope.papers.tech',
49
+ 'beacon-node-1.hope-2.papers.tech',
50
+ 'beacon-node-1.hope-3.papers.tech',
51
+ 'beacon-node-1.hope-4.papers.tech',
52
+ 'beacon-node-1.hope-5.papers.tech',
53
+ // Trilitech
54
+ 'beacon-node-1.octez.io',
55
+ 'beacon-node-2.octez.io',
56
+ 'beacon-node-3.octez.io',
57
+ 'beacon-node-4.octez.io',
58
+ 'beacon-node-5.octez.io',
59
+ 'beacon-node-6.octez.io',
60
+ 'beacon-node-7.octez.io',
61
+ 'beacon-node-8.octez.io',
62
+ ],
63
+ // Decommissioned by Papers; emptied to prevent connections to dead servers
64
+ [beacon_dapp_1.Regions.NORTH_AMERICA_EAST]: [],
65
+ [beacon_dapp_1.Regions.NORTH_AMERICA_WEST]: [],
66
+ [beacon_dapp_1.Regions.ASIA_EAST]: [],
67
+ [beacon_dapp_1.Regions.AUSTRALIA]: [],
68
+ };
28
69
  class BeaconWallet {
29
70
  constructor(options) {
30
- this.client = (0, beacon_dapp_1.getDAppClientInstance)(options);
71
+ var _a;
72
+ const matrixNodes = Object.assign(Object.assign({}, TAQUITO_CURATED_MATRIX_NODES), ((_a = options.matrixNodes) !== null && _a !== void 0 ? _a : {}));
73
+ this.client = (0, beacon_dapp_1.getDAppClientInstance)(Object.assign(Object.assign({}, options), { matrixNodes }));
31
74
  }
32
75
  validateRequiredScopesOrFail(permissionScopes, requiredScopes) {
33
76
  const mandatoryScope = new Set(requiredScopes);
@@ -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!
5
5
  exports.VERSION = {
6
- "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
7
- "version": "24.0.2"
6
+ "commitHash": "a702f648a1d2aa5948bd26d29dffe1ea14387234",
7
+ "version": "24.1.0"
8
8
  };
@@ -1,4 +1,4 @@
1
- import { getDAppClientInstance, SigningType, PermissionScope } from '@airgap/beacon-dapp';
1
+ import { Regions, getDAppClientInstance, SigningType, PermissionScope } from '@airgap/beacon-dapp';
2
2
  import { PermissionDeniedError, UnsupportedActionError } from '@taquito/core';
3
3
  import toBuffer from 'typedarray-to-buffer';
4
4
  import { createTransferOperation, createTransferTicketOperation, createIncreasePaidStorageOperation, createOriginationOperation, createSetDelegateOperation, createRegisterGlobalConstantOperation } from '@taquito/taquito';
@@ -63,17 +63,60 @@ class MissingRequiredScopes extends PermissionDeniedError {
63
63
 
64
64
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
65
65
  const VERSION = {
66
- "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
67
- "version": "24.0.2"
66
+ "commitHash": "a702f648a1d2aa5948bd26d29dffe1ea14387234",
67
+ "version": "24.1.0"
68
68
  };
69
69
 
70
70
  /**
71
71
  * @packageDocumentation
72
72
  * @module @taquito/beacon-wallet
73
73
  */
74
+ /**
75
+ * Default matrix relay nodes curated by Taquito.
76
+ *
77
+ * Includes only nodes operated by Papers and Trilitech running the latest
78
+ * Synapse version. These replace the Beacon SDK built-in defaults so that
79
+ * Taquito controls which relay infrastructure its users hit.
80
+ *
81
+ * The geographically distributed Papers nodes (NA-East, NA-West, Asia-East,
82
+ * Australia) have been decommissioned by Papers, so those regions are emptied
83
+ * to prevent connection attempts to dead servers.
84
+ *
85
+ * Users can still override specific regions (or the entire list) by passing
86
+ * their own `matrixNodes` in the BeaconWallet constructor options.
87
+ */
88
+ const TAQUITO_CURATED_MATRIX_NODES = {
89
+ [Regions.EUROPE_WEST]: [
90
+ // Papers
91
+ 'beacon-node-1.diamond.papers.tech',
92
+ 'beacon-node-1.sky.papers.tech',
93
+ 'beacon-node-2.sky.papers.tech',
94
+ 'beacon-node-1.hope.papers.tech',
95
+ 'beacon-node-1.hope-2.papers.tech',
96
+ 'beacon-node-1.hope-3.papers.tech',
97
+ 'beacon-node-1.hope-4.papers.tech',
98
+ 'beacon-node-1.hope-5.papers.tech',
99
+ // Trilitech
100
+ 'beacon-node-1.octez.io',
101
+ 'beacon-node-2.octez.io',
102
+ 'beacon-node-3.octez.io',
103
+ 'beacon-node-4.octez.io',
104
+ 'beacon-node-5.octez.io',
105
+ 'beacon-node-6.octez.io',
106
+ 'beacon-node-7.octez.io',
107
+ 'beacon-node-8.octez.io',
108
+ ],
109
+ // Decommissioned by Papers; emptied to prevent connections to dead servers
110
+ [Regions.NORTH_AMERICA_EAST]: [],
111
+ [Regions.NORTH_AMERICA_WEST]: [],
112
+ [Regions.ASIA_EAST]: [],
113
+ [Regions.AUSTRALIA]: [],
114
+ };
74
115
  class BeaconWallet {
75
116
  constructor(options) {
76
- this.client = getDAppClientInstance(options);
117
+ var _a;
118
+ const matrixNodes = Object.assign(Object.assign({}, TAQUITO_CURATED_MATRIX_NODES), ((_a = options.matrixNodes) !== null && _a !== void 0 ? _a : {}));
119
+ this.client = getDAppClientInstance(Object.assign(Object.assign({}, options), { matrixNodes }));
77
120
  }
78
121
  validateRequiredScopesOrFail(permissionScopes, requiredScopes) {
79
122
  const mandatoryScope = new Set(requiredScopes);
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-beacon-wallet.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-beacon-wallet.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -63,17 +63,60 @@
63
63
 
64
64
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
65
65
  const VERSION = {
66
- "commitHash": "f798e97ba998acc2cc5310278d812448591bd312",
67
- "version": "24.0.2"
66
+ "commitHash": "a702f648a1d2aa5948bd26d29dffe1ea14387234",
67
+ "version": "24.1.0"
68
68
  };
69
69
 
70
70
  /**
71
71
  * @packageDocumentation
72
72
  * @module @taquito/beacon-wallet
73
73
  */
74
+ /**
75
+ * Default matrix relay nodes curated by Taquito.
76
+ *
77
+ * Includes only nodes operated by Papers and Trilitech running the latest
78
+ * Synapse version. These replace the Beacon SDK built-in defaults so that
79
+ * Taquito controls which relay infrastructure its users hit.
80
+ *
81
+ * The geographically distributed Papers nodes (NA-East, NA-West, Asia-East,
82
+ * Australia) have been decommissioned by Papers, so those regions are emptied
83
+ * to prevent connection attempts to dead servers.
84
+ *
85
+ * Users can still override specific regions (or the entire list) by passing
86
+ * their own `matrixNodes` in the BeaconWallet constructor options.
87
+ */
88
+ const TAQUITO_CURATED_MATRIX_NODES = {
89
+ [beaconDapp.Regions.EUROPE_WEST]: [
90
+ // Papers
91
+ 'beacon-node-1.diamond.papers.tech',
92
+ 'beacon-node-1.sky.papers.tech',
93
+ 'beacon-node-2.sky.papers.tech',
94
+ 'beacon-node-1.hope.papers.tech',
95
+ 'beacon-node-1.hope-2.papers.tech',
96
+ 'beacon-node-1.hope-3.papers.tech',
97
+ 'beacon-node-1.hope-4.papers.tech',
98
+ 'beacon-node-1.hope-5.papers.tech',
99
+ // Trilitech
100
+ 'beacon-node-1.octez.io',
101
+ 'beacon-node-2.octez.io',
102
+ 'beacon-node-3.octez.io',
103
+ 'beacon-node-4.octez.io',
104
+ 'beacon-node-5.octez.io',
105
+ 'beacon-node-6.octez.io',
106
+ 'beacon-node-7.octez.io',
107
+ 'beacon-node-8.octez.io',
108
+ ],
109
+ // Decommissioned by Papers; emptied to prevent connections to dead servers
110
+ [beaconDapp.Regions.NORTH_AMERICA_EAST]: [],
111
+ [beaconDapp.Regions.NORTH_AMERICA_WEST]: [],
112
+ [beaconDapp.Regions.ASIA_EAST]: [],
113
+ [beaconDapp.Regions.AUSTRALIA]: [],
114
+ };
74
115
  class BeaconWallet {
75
116
  constructor(options) {
76
- this.client = beaconDapp.getDAppClientInstance(options);
117
+ var _a;
118
+ const matrixNodes = Object.assign(Object.assign({}, TAQUITO_CURATED_MATRIX_NODES), ((_a = options.matrixNodes) !== null && _a !== void 0 ? _a : {}));
119
+ this.client = beaconDapp.getDAppClientInstance(Object.assign(Object.assign({}, options), { matrixNodes }));
77
120
  }
78
121
  validateRequiredScopesOrFail(permissionScopes, requiredScopes) {
79
122
  const mandatoryScope = new Set(requiredScopes);
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-beacon-wallet.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-beacon-wallet.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/beacon-wallet",
3
- "version": "24.0.2",
3
+ "version": "24.1.0",
4
4
  "description": "Beacon wallet provider",
5
5
  "keywords": [
6
6
  "tezos",
@@ -100,9 +100,9 @@
100
100
  ]
101
101
  },
102
102
  "dependencies": {
103
- "@airgap/beacon-dapp": "^4.7.0",
104
- "@taquito/core": "^24.0.2",
105
- "@taquito/taquito": "^24.0.2",
103
+ "@airgap/beacon-dapp": "^4.8.0",
104
+ "@taquito/core": "^24.1.0",
105
+ "@taquito/taquito": "^24.1.0",
106
106
  "crypto-browserify": "^3.12.1",
107
107
  "util": "^0.12.5"
108
108
  },
@@ -139,5 +139,5 @@
139
139
  "webpack": "^5.94.0",
140
140
  "webpack-cli": "^5.1.4"
141
141
  },
142
- "gitHead": "1ed75f883b26cbe2a62287813eedb096d81f0f46"
142
+ "gitHead": "dc65bb045c8e7a7d8ba9fcca97c03b7d6892c95c"
143
143
  }