@provablehq/aleo-wallet-adaptor-fox 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/dist/index.js CHANGED
@@ -75,7 +75,6 @@ var FoxWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
75
75
  * Check if Fox wallet is available
76
76
  */
77
77
  _checkAvailability() {
78
- console.debug("Checking Fox Wallet availability");
79
78
  if (typeof window === "undefined" || typeof document === "undefined") {
80
79
  console.debug("Fox Wallet is not supported");
81
80
  this.readyState = import_aleo_wallet_standard.WalletReadyState.UNSUPPORTED;
@@ -84,7 +83,6 @@ var FoxWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
84
83
  this._window = window;
85
84
  if (this._window.foxwallet?.aleo) {
86
85
  this.readyState = import_aleo_wallet_standard.WalletReadyState.INSTALLED;
87
- console.debug("Fox Wallet is installed");
88
86
  return true;
89
87
  } else {
90
88
  const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
@@ -92,7 +90,6 @@ var FoxWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
92
90
  this.readyState = import_aleo_wallet_standard.WalletReadyState.LOADABLE;
93
91
  return true;
94
92
  }
95
- console.debug("Fox Wallet is not available");
96
93
  return false;
97
94
  }
98
95
  }
@@ -306,8 +303,8 @@ var FoxWalletAdapter = class extends import_aleo_wallet_adaptor_core.BaseAleoWal
306
303
  address: this._publicKey,
307
304
  chainId: import_aleo_wallet_adaptor_leo.LEO_NETWORK_MAP[this.network],
308
305
  program: deployment.program,
309
- fee: deployment.fee,
310
- feePrivate: deployment.feePrivate
306
+ fee: deployment.priorityFee,
307
+ feePrivate: deployment.privateFee
311
308
  });
312
309
  if (!result?.transactionId) {
313
310
  throw new import_aleo_wallet_adaptor_core.WalletTransactionError("Could not create deployment");
package/dist/index.mjs CHANGED
@@ -68,7 +68,6 @@ var FoxWalletAdapter = class extends BaseAleoWalletAdapter {
68
68
  * Check if Fox wallet is available
69
69
  */
70
70
  _checkAvailability() {
71
- console.debug("Checking Fox Wallet availability");
72
71
  if (typeof window === "undefined" || typeof document === "undefined") {
73
72
  console.debug("Fox Wallet is not supported");
74
73
  this.readyState = WalletReadyState.UNSUPPORTED;
@@ -77,7 +76,6 @@ var FoxWalletAdapter = class extends BaseAleoWalletAdapter {
77
76
  this._window = window;
78
77
  if (this._window.foxwallet?.aleo) {
79
78
  this.readyState = WalletReadyState.INSTALLED;
80
- console.debug("Fox Wallet is installed");
81
79
  return true;
82
80
  } else {
83
81
  const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
@@ -85,7 +83,6 @@ var FoxWalletAdapter = class extends BaseAleoWalletAdapter {
85
83
  this.readyState = WalletReadyState.LOADABLE;
86
84
  return true;
87
85
  }
88
- console.debug("Fox Wallet is not available");
89
86
  return false;
90
87
  }
91
88
  }
@@ -299,8 +296,8 @@ var FoxWalletAdapter = class extends BaseAleoWalletAdapter {
299
296
  address: this._publicKey,
300
297
  chainId: LEO_NETWORK_MAP[this.network],
301
298
  program: deployment.program,
302
- fee: deployment.fee,
303
- feePrivate: deployment.feePrivate
299
+ fee: deployment.priorityFee,
300
+ feePrivate: deployment.privateFee
304
301
  });
305
302
  if (!result?.transactionId) {
306
303
  throw new WalletTransactionError("Could not create deployment");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provablehq/aleo-wallet-adaptor-fox",
3
- "version": "0.3.0-alpha.0",
3
+ "version": "0.3.0-alpha.1",
4
4
  "description": "Fox wallet adapter for Aleo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11,10 +11,10 @@
11
11
  "src"
12
12
  ],
13
13
  "dependencies": {
14
- "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.0",
15
- "@provablehq/aleo-types": "0.3.0-alpha.0",
16
- "@provablehq/aleo-wallet-standard": "0.3.0-alpha.0",
17
- "@provablehq/aleo-wallet-adaptor-leo": "0.3.0-alpha.0"
14
+ "@provablehq/aleo-wallet-adaptor-core": "0.3.0-alpha.1",
15
+ "@provablehq/aleo-types": "0.3.0-alpha.1",
16
+ "@provablehq/aleo-wallet-standard": "0.3.0-alpha.1",
17
+ "@provablehq/aleo-wallet-adaptor-leo": "0.3.0-alpha.1"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -104,7 +104,6 @@ export class FoxWalletAdapter extends BaseAleoWalletAdapter {
104
104
  * Check if Fox wallet is available
105
105
  */
106
106
  private _checkAvailability(): boolean {
107
- console.debug('Checking Fox Wallet availability');
108
107
  if (typeof window === 'undefined' || typeof document === 'undefined') {
109
108
  console.debug('Fox Wallet is not supported');
110
109
  this.readyState = WalletReadyState.UNSUPPORTED;
@@ -115,7 +114,6 @@ export class FoxWalletAdapter extends BaseAleoWalletAdapter {
115
114
 
116
115
  if (this._window.foxwallet?.aleo) {
117
116
  this.readyState = WalletReadyState.INSTALLED;
118
- console.debug('Fox Wallet is installed');
119
117
  return true;
120
118
  } else {
121
119
  // Check if user is on a mobile device
@@ -124,7 +122,6 @@ export class FoxWalletAdapter extends BaseAleoWalletAdapter {
124
122
  this.readyState = WalletReadyState.LOADABLE;
125
123
  return true;
126
124
  }
127
- console.debug('Fox Wallet is not available');
128
125
  return false;
129
126
  }
130
127
  }
@@ -386,8 +383,8 @@ export class FoxWalletAdapter extends BaseAleoWalletAdapter {
386
383
  address: this._publicKey,
387
384
  chainId: LEO_NETWORK_MAP[this.network],
388
385
  program: deployment.program,
389
- fee: deployment.fee,
390
- feePrivate: deployment.feePrivate,
386
+ fee: deployment.priorityFee,
387
+ feePrivate: deployment.privateFee,
391
388
  });
392
389
  if (!result?.transactionId) {
393
390
  throw new WalletTransactionError('Could not create deployment');