@taquito/beacon-wallet 20.0.1 → 20.0.2-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.
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * @packageDocumentation
4
- * @module @taquito/beacon-wallet
5
- */
6
2
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
7
3
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8
4
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -14,6 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
14
10
  };
15
11
  Object.defineProperty(exports, "__esModule", { value: true });
16
12
  exports.BeaconWallet = exports.MissingRequiredScopes = exports.BeaconWalletNotInitialized = exports.VERSION = void 0;
13
+ /**
14
+ * @packageDocumentation
15
+ * @module @taquito/beacon-wallet
16
+ */
17
17
  const beacon_dapp_1 = require("@airgap/beacon-dapp");
18
18
  const errors_1 = require("./errors");
19
19
  const typedarray_to_buffer_1 = require("typedarray-to-buffer");
@@ -80,6 +80,20 @@ class BeaconWallet {
80
80
  return this.removeDefaultParams(walletParams, yield (0, taquito_1.createTransferOperation)(this.formatParameters(walletParams)));
81
81
  });
82
82
  }
83
+ mapTransferTicketParamsToWalletParams(params) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ let walletParams;
86
+ yield this.client.showPrepare();
87
+ try {
88
+ walletParams = yield params();
89
+ }
90
+ catch (err) {
91
+ yield this.client.hideUI(['alert']);
92
+ throw err;
93
+ }
94
+ return this.removeDefaultParams(walletParams, yield (0, taquito_1.createTransferTicketOperation)(this.formatParameters(walletParams)));
95
+ });
96
+ }
83
97
  mapStakeParamsToWalletParams(params) {
84
98
  return __awaiter(this, void 0, void 0, function* () {
85
99
  let walletParams;
@@ -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": "d44ee8a26e6924e12a8cae2f9c5b717fc65af72c",
7
- "version": "20.0.1"
6
+ "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
7
+ "version": "20.0.2-beta.1"
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { getDAppClientInstance, BeaconEvent, SigningType, PermissionScope } from '@airgap/beacon-dapp';
2
2
  import { PermissionDeniedError, UnsupportedActionError } from '@taquito/core';
3
3
  import toBuffer from 'typedarray-to-buffer';
4
- import { createTransferOperation, createIncreasePaidStorageOperation, createOriginationOperation, createSetDelegateOperation } from '@taquito/taquito';
4
+ import { createTransferOperation, createTransferTicketOperation, createIncreasePaidStorageOperation, createOriginationOperation, createSetDelegateOperation } from '@taquito/taquito';
5
5
  import { hex2buf, mergebuf, buf2hex } from '@taquito/utils';
6
6
 
7
7
  /******************************************************************************
@@ -63,14 +63,10 @@ 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": "d44ee8a26e6924e12a8cae2f9c5b717fc65af72c",
67
- "version": "20.0.1"
66
+ "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
67
+ "version": "20.0.2-beta.1"
68
68
  };
69
69
 
70
- /**
71
- * @packageDocumentation
72
- * @module @taquito/beacon-wallet
73
- */
74
70
  class BeaconWallet {
75
71
  constructor(options) {
76
72
  this.client = getDAppClientInstance(options);
@@ -126,6 +122,20 @@ class BeaconWallet {
126
122
  return this.removeDefaultParams(walletParams, yield createTransferOperation(this.formatParameters(walletParams)));
127
123
  });
128
124
  }
125
+ mapTransferTicketParamsToWalletParams(params) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ let walletParams;
128
+ yield this.client.showPrepare();
129
+ try {
130
+ walletParams = yield params();
131
+ }
132
+ catch (err) {
133
+ yield this.client.hideUI(['alert']);
134
+ throw err;
135
+ }
136
+ return this.removeDefaultParams(walletParams, yield createTransferTicketOperation(this.formatParameters(walletParams)));
137
+ });
138
+ }
129
139
  mapStakeParamsToWalletParams(params) {
130
140
  return __awaiter(this, void 0, void 0, function* () {
131
141
  let walletParams;
@@ -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,14 +63,10 @@
63
63
 
64
64
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
65
65
  const VERSION = {
66
- "commitHash": "d44ee8a26e6924e12a8cae2f9c5b717fc65af72c",
67
- "version": "20.0.1"
66
+ "commitHash": "a9cdc31ccbc6e2ed58dedaf3c8c4f0c62bc3ae02",
67
+ "version": "20.0.2-beta.1"
68
68
  };
69
69
 
70
- /**
71
- * @packageDocumentation
72
- * @module @taquito/beacon-wallet
73
- */
74
70
  class BeaconWallet {
75
71
  constructor(options) {
76
72
  this.client = beaconDapp.getDAppClientInstance(options);
@@ -126,6 +122,20 @@
126
122
  return this.removeDefaultParams(walletParams, yield taquito.createTransferOperation(this.formatParameters(walletParams)));
127
123
  });
128
124
  }
125
+ mapTransferTicketParamsToWalletParams(params) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ let walletParams;
128
+ yield this.client.showPrepare();
129
+ try {
130
+ walletParams = yield params();
131
+ }
132
+ catch (err) {
133
+ yield this.client.hideUI(['alert']);
134
+ throw err;
135
+ }
136
+ return this.removeDefaultParams(walletParams, yield taquito.createTransferTicketOperation(this.formatParameters(walletParams)));
137
+ });
138
+ }
129
139
  mapStakeParamsToWalletParams(params) {
130
140
  return __awaiter(this, void 0, void 0, function* () {
131
141
  let walletParams;
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  * @module @taquito/beacon-wallet
4
4
  */
5
5
  import { DAppClient, DAppClientOptions, RequestPermissionInput, AccountInfo } from '@airgap/beacon-dapp';
6
- import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams } from '@taquito/taquito';
6
+ import { WalletDelegateParams, WalletIncreasePaidStorageParams, WalletOriginateParams, WalletProvider, WalletTransferParams, WalletStakeParams, WalletUnstakeParams, WalletFinalizeUnstakeParams, WalletTransferTicketParams } from '@taquito/taquito';
7
7
  export { VERSION } from './version';
8
8
  export { BeaconWalletNotInitialized, MissingRequiredScopes } from './errors';
9
9
  export declare class BeaconWallet implements WalletProvider {
@@ -15,6 +15,7 @@ export declare class BeaconWallet implements WalletProvider {
15
15
  getPKH(): Promise<string>;
16
16
  getPK(): Promise<string>;
17
17
  mapTransferParamsToWalletParams(params: () => Promise<WalletTransferParams>): Promise<any>;
18
+ mapTransferTicketParamsToWalletParams(params: () => Promise<WalletTransferTicketParams>): Promise<any>;
18
19
  mapStakeParamsToWalletParams(params: () => Promise<WalletStakeParams>): Promise<any>;
19
20
  mapUnstakeParamsToWalletParams(params: () => Promise<WalletUnstakeParams>): Promise<any>;
20
21
  mapFinalizeUnstakeParamsToWalletParams(params: () => Promise<WalletFinalizeUnstakeParams>): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/beacon-wallet",
3
- "version": "20.0.1",
3
+ "version": "20.0.2-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.2",
71
- "@taquito/core": "^20.0.1",
72
- "@taquito/taquito": "^20.0.1"
70
+ "@airgap/beacon-dapp": "^4.3.0-beta.1",
71
+ "@taquito/core": "^20.0.2-beta.1",
72
+ "@taquito/taquito": "^20.0.2-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": "beb89a31b425f016d09f53f034fb8ed40f56a3b2"
106
+ "gitHead": "6d1e4d129ac57c1bdeb5464601e40c50f413e43f"
107
107
  }