@provablehq/aleo-wallet-adaptor-leo 0.3.0-alpha.0 → 0.3.0-alpha.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,6 +26,6 @@ const wallets = [new LeoWalletAdapter()];
26
26
 
27
27
  - `@provablehq/aleo-wallet-adaptor-core` – shared adapter base implementation.
28
28
  - `@provablehq/aleo-wallet-adaptor-react` – provider that surface Leo in React apps.
29
- - Other wallet adapters (`-prove-alpha`, `-puzzle`, `-fox`, etc.) that can coexist with Leo.
29
+ - Other wallet adapters (`-shield`, `-puzzle`, `-fox`, etc.) that can coexist with Leo.
30
30
 
31
31
  Live demo: https://aleo-dev-toolkit-react-app.vercel.app/
package/dist/index.js CHANGED
@@ -99,11 +99,9 @@ var LeoWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
99
99
  * Check if Leo wallet is available
100
100
  */
101
101
  _checkAvailability() {
102
- console.debug("Checking Leo Wallet availability");
103
102
  this._window = window;
104
103
  if (this._window.leoWallet || this._window.leo) {
105
104
  this.readyState = import_aleo_wallet_standard.WalletReadyState.INSTALLED;
106
- console.debug("Leo Wallet is installed");
107
105
  return true;
108
106
  } else {
109
107
  const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
@@ -111,7 +109,6 @@ var LeoWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
111
109
  this.readyState = import_aleo_wallet_standard.WalletReadyState.LOADABLE;
112
110
  return true;
113
111
  }
114
- console.debug("Leo Wallet is not available");
115
112
  return false;
116
113
  }
117
114
  }
@@ -326,8 +323,8 @@ var LeoWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
326
323
  this._publicKey,
327
324
  LEO_NETWORK_MAP[this.network],
328
325
  deployment.program,
329
- deployment.fee,
330
- deployment.feePrivate
326
+ deployment.priorityFee,
327
+ deployment.privateFee
331
328
  );
332
329
  const result = await this._leoWallet?.requestDeploy(leoDeployment);
333
330
  if (!result?.transactionId) {
package/dist/index.mjs CHANGED
@@ -88,11 +88,9 @@ var LeoWalletAdapter = class extends BaseAleoWalletAdapter {
88
88
  * Check if Leo wallet is available
89
89
  */
90
90
  _checkAvailability() {
91
- console.debug("Checking Leo Wallet availability");
92
91
  this._window = window;
93
92
  if (this._window.leoWallet || this._window.leo) {
94
93
  this.readyState = WalletReadyState.INSTALLED;
95
- console.debug("Leo Wallet is installed");
96
94
  return true;
97
95
  } else {
98
96
  const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
@@ -100,7 +98,6 @@ var LeoWalletAdapter = class extends BaseAleoWalletAdapter {
100
98
  this.readyState = WalletReadyState.LOADABLE;
101
99
  return true;
102
100
  }
103
- console.debug("Leo Wallet is not available");
104
101
  return false;
105
102
  }
106
103
  }
@@ -315,8 +312,8 @@ var LeoWalletAdapter = class extends BaseAleoWalletAdapter {
315
312
  this._publicKey,
316
313
  LEO_NETWORK_MAP[this.network],
317
314
  deployment.program,
318
- deployment.fee,
319
- deployment.feePrivate
315
+ deployment.priorityFee,
316
+ deployment.privateFee
320
317
  );
321
318
  const result = await this._leoWallet?.requestDeploy(leoDeployment);
322
319
  if (!result?.transactionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provablehq/aleo-wallet-adaptor-leo",
3
- "version": "0.3.0-alpha.0",
3
+ "version": "0.3.0-alpha.1",
4
4
  "description": "Leo wallet adapter for Aleo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11,9 +11,9 @@
11
11
  "src"
12
12
  ],
13
13
  "dependencies": {
14
- "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.0",
15
- "@provablehq/aleo-wallet-standard": "0.3.0-alpha.0",
16
- "@provablehq/aleo-types": "0.3.0-alpha.0"
14
+ "@provablehq/aleo-types": "0.3.0-alpha.1",
15
+ "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.1",
16
+ "@provablehq/aleo-wallet-standard": "0.3.0-alpha.1"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -103,12 +103,10 @@ export class LeoWalletAdapter extends BaseAleoWalletAdapter {
103
103
  * Check if Leo wallet is available
104
104
  */
105
105
  private _checkAvailability(): boolean {
106
- console.debug('Checking Leo Wallet availability');
107
106
  this._window = window as LeoWindow;
108
107
 
109
108
  if (this._window.leoWallet || this._window.leo) {
110
109
  this.readyState = WalletReadyState.INSTALLED;
111
- console.debug('Leo Wallet is installed');
112
110
  return true;
113
111
  } else {
114
112
  // Check if user is on a mobile device
@@ -117,7 +115,6 @@ export class LeoWalletAdapter extends BaseAleoWalletAdapter {
117
115
  this.readyState = WalletReadyState.LOADABLE;
118
116
  return true;
119
117
  }
120
- console.debug('Leo Wallet is not available');
121
118
  return false;
122
119
  }
123
120
  }
@@ -386,8 +383,8 @@ export class LeoWalletAdapter extends BaseAleoWalletAdapter {
386
383
  this._publicKey,
387
384
  LEO_NETWORK_MAP[this.network],
388
385
  deployment.program,
389
- deployment.fee,
390
- deployment.feePrivate,
386
+ deployment.priorityFee,
387
+ deployment.privateFee,
391
388
  );
392
389
  const result = await this._leoWallet?.requestDeploy(leoDeployment);
393
390
  if (!result?.transactionId) {