@taquito/taquito 18.0.0-RC.0 → 19.0.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.
Files changed (297) hide show
  1. package/README.md +2 -2
  2. package/dist/lib/batch/rpc-batch-provider.js +18 -19
  3. package/dist/lib/constants.js +31 -35
  4. package/dist/lib/context.js +0 -1
  5. package/dist/lib/contract/big-map.js +0 -1
  6. package/dist/lib/contract/compose.js +0 -1
  7. package/dist/lib/contract/contract-methods/contract-method-factory.js +0 -1
  8. package/dist/lib/contract/contract-methods/contract-method-flat-param.js +0 -1
  9. package/dist/lib/contract/contract-methods/contract-method-interface.js +0 -1
  10. package/dist/lib/contract/contract-methods/contract-method-object-param.js +0 -1
  11. package/dist/lib/contract/contract-methods/contract-on-chain-view.js +3 -4
  12. package/dist/lib/contract/contract.js +3 -4
  13. package/dist/lib/contract/errors.js +0 -1
  14. package/dist/lib/contract/index.js +8 -3
  15. package/dist/lib/contract/interface.js +0 -1
  16. package/dist/lib/contract/lambda-view.js +0 -1
  17. package/dist/lib/contract/manager-lambda.js +0 -1
  18. package/dist/lib/contract/prepare.js +3 -4
  19. package/dist/lib/contract/rpc-contract-provider.js +25 -26
  20. package/dist/lib/contract/sapling-state-abstraction.js +0 -1
  21. package/dist/lib/contract/semantic.js +5 -2
  22. package/dist/lib/contract/view_lambda.js +0 -1
  23. package/dist/lib/errors.js +0 -1
  24. package/dist/lib/estimate/errors.js +0 -1
  25. package/dist/lib/estimate/estimate-provider-interface.js +0 -1
  26. package/dist/lib/estimate/estimate.js +0 -1
  27. package/dist/lib/estimate/index.js +5 -2
  28. package/dist/lib/estimate/rpc-estimate-provider.js +16 -17
  29. package/dist/lib/extension/extension.js +0 -1
  30. package/dist/lib/forger/composite-forger.js +0 -1
  31. package/dist/lib/forger/errors.js +0 -1
  32. package/dist/lib/forger/rpc-forger.js +0 -1
  33. package/dist/lib/forger/taquito-local-forger.js +0 -1
  34. package/dist/lib/global-constants/default-global-constants-provider.js +0 -1
  35. package/dist/lib/global-constants/errors.js +0 -1
  36. package/dist/lib/global-constants/interface-global-constants-provider.js +0 -1
  37. package/dist/lib/global-constants/noop-global-constants-provider.js +0 -1
  38. package/dist/lib/injector/helper.js +0 -1
  39. package/dist/lib/injector/interface.js +0 -1
  40. package/dist/lib/injector/rpc-injector.js +1 -2
  41. package/dist/lib/operations/ballot-operation.js +0 -1
  42. package/dist/lib/operations/batch-operation.js +4 -5
  43. package/dist/lib/operations/delegate-operation.js +0 -1
  44. package/dist/lib/operations/drain-delegate-operation.js +0 -1
  45. package/dist/lib/operations/errors.js +4 -5
  46. package/dist/lib/operations/failing-noop-operation.js +0 -1
  47. package/dist/lib/operations/increase-paid-storage-operation.js +0 -1
  48. package/dist/lib/operations/index.js +0 -1
  49. package/dist/lib/operations/operations.js +18 -19
  50. package/dist/lib/operations/origination-operation.js +1 -2
  51. package/dist/lib/operations/proposals-operation.js +0 -1
  52. package/dist/lib/operations/register-global-constant-operation.js +0 -1
  53. package/dist/lib/operations/reveal-operation.js +4 -5
  54. package/dist/lib/operations/smart-rollup-add-messages-operation.js +0 -1
  55. package/dist/lib/operations/smart-rollup-originate-operation.js +0 -1
  56. package/dist/lib/operations/transaction-operation.js +4 -5
  57. package/dist/lib/operations/transfer-ticket-operation.js +0 -1
  58. package/dist/lib/operations/types.js +3 -4
  59. package/dist/lib/operations/update-consensus-key-operation.js +0 -1
  60. package/dist/lib/packer/interface.js +0 -1
  61. package/dist/lib/packer/michel-codec-packer.js +1 -2
  62. package/dist/lib/packer/rpc-packer.js +0 -1
  63. package/dist/lib/parser/interface.js +0 -1
  64. package/dist/lib/parser/michel-codec-parser.js +0 -1
  65. package/dist/lib/parser/noop-parser.js +0 -1
  66. package/dist/lib/prepare/index.js +5 -2
  67. package/dist/lib/prepare/interface.js +0 -1
  68. package/dist/lib/prepare/prepare-provider.js +55 -58
  69. package/dist/lib/provider.js +13 -14
  70. package/dist/lib/read-provider/interface.js +0 -1
  71. package/dist/lib/read-provider/rpc-read-adapter.js +0 -1
  72. package/dist/lib/signer/errors.js +0 -1
  73. package/dist/lib/signer/interface.js +0 -1
  74. package/dist/lib/signer/noop.js +0 -1
  75. package/dist/lib/subscribe/create-observable-from-subscription.js +0 -1
  76. package/dist/lib/subscribe/errors.js +0 -1
  77. package/dist/lib/subscribe/filters.js +4 -5
  78. package/dist/lib/subscribe/interface.js +0 -1
  79. package/dist/lib/subscribe/observable-subscription.js +3 -4
  80. package/dist/lib/subscribe/polling-subcribe-provider.js +12 -13
  81. package/dist/lib/taquito.js +5 -2
  82. package/dist/lib/tz/interface.js +0 -1
  83. package/dist/lib/tz/rpc-tz-provider.js +6 -7
  84. package/dist/lib/version.js +2 -3
  85. package/dist/lib/wallet/batch-operation.js +1 -2
  86. package/dist/lib/wallet/delegation-operation.js +0 -1
  87. package/dist/lib/wallet/errors.js +0 -1
  88. package/dist/lib/wallet/increase-paid-storage-operation.js +0 -1
  89. package/dist/lib/wallet/index.js +5 -2
  90. package/dist/lib/wallet/interface.js +0 -1
  91. package/dist/lib/wallet/legacy.js +9 -8
  92. package/dist/lib/wallet/operation-factory.js +11 -12
  93. package/dist/lib/wallet/operation.js +33 -34
  94. package/dist/lib/wallet/origination-operation.js +2 -3
  95. package/dist/lib/wallet/receipt.js +1 -2
  96. package/dist/lib/wallet/transaction-operation.js +0 -1
  97. package/dist/lib/wallet/wallet.js +35 -16
  98. package/dist/taquito.es6.js +6420 -6395
  99. package/dist/taquito.es6.js.map +1 -1
  100. package/dist/taquito.min.js +1 -1
  101. package/dist/taquito.min.js.LICENSE.txt +1 -1
  102. package/dist/taquito.umd.js +6426 -6403
  103. package/dist/taquito.umd.js.map +1 -1
  104. package/dist/types/batch/rpc-batch-provider.d.ts +121 -121
  105. package/dist/types/constants.d.ts +80 -80
  106. package/dist/types/context.d.ts +100 -100
  107. package/dist/types/contract/big-map.d.ts +35 -35
  108. package/dist/types/contract/compose.d.ts +5 -5
  109. package/dist/types/contract/contract-methods/contract-method-factory.d.ts +16 -16
  110. package/dist/types/contract/contract-methods/contract-method-flat-param.d.ts +43 -43
  111. package/dist/types/contract/contract-methods/contract-method-interface.d.ts +28 -28
  112. package/dist/types/contract/contract-methods/contract-method-object-param.d.ts +38 -38
  113. package/dist/types/contract/contract-methods/contract-on-chain-view.d.ts +43 -43
  114. package/dist/types/contract/contract.d.ts +94 -94
  115. package/dist/types/contract/errors.d.ts +83 -83
  116. package/dist/types/contract/index.d.ts +12 -11
  117. package/dist/types/contract/interface.d.ts +224 -224
  118. package/dist/types/contract/lambda-view.d.ts +19 -19
  119. package/dist/types/contract/manager-lambda.d.ts +73 -73
  120. package/dist/types/contract/prepare.d.ts +16 -16
  121. package/dist/types/contract/rpc-contract-provider.d.ts +240 -240
  122. package/dist/types/contract/sapling-state-abstraction.d.ts +17 -17
  123. package/dist/types/contract/semantic.d.ts +7 -3
  124. package/dist/types/contract/view_lambda.d.ts +34 -34
  125. package/dist/types/errors.d.ts +26 -26
  126. package/dist/types/estimate/errors.d.ts +8 -8
  127. package/dist/types/estimate/estimate-provider-interface.d.ts +114 -114
  128. package/dist/types/estimate/estimate.d.ts +94 -94
  129. package/dist/types/estimate/index.d.ts +4 -4
  130. package/dist/types/estimate/rpc-estimate-provider.d.ts +129 -129
  131. package/dist/types/extension/extension.d.ts +4 -4
  132. package/dist/types/forger/composite-forger.d.ts +6 -6
  133. package/dist/types/forger/errors.d.ts +16 -16
  134. package/dist/types/forger/rpc-forger.d.ts +7 -7
  135. package/dist/types/forger/taquito-local-forger.d.ts +8 -8
  136. package/dist/types/global-constants/default-global-constants-provider.d.ts +18 -18
  137. package/dist/types/global-constants/errors.d.ts +16 -16
  138. package/dist/types/global-constants/interface-global-constants-provider.d.ts +11 -11
  139. package/dist/types/global-constants/noop-global-constants-provider.d.ts +5 -5
  140. package/dist/types/injector/helper.d.ts +2 -2
  141. package/dist/types/injector/interface.d.ts +5 -5
  142. package/dist/types/injector/rpc-injector.d.ts +7 -7
  143. package/dist/types/operations/ballot-operation.d.ts +18 -18
  144. package/dist/types/operations/batch-operation.d.ts +19 -19
  145. package/dist/types/operations/delegate-operation.d.ts +24 -24
  146. package/dist/types/operations/drain-delegate-operation.d.ts +17 -17
  147. package/dist/types/operations/errors.d.ts +48 -48
  148. package/dist/types/operations/failing-noop-operation.d.ts +17 -17
  149. package/dist/types/operations/increase-paid-storage-operation.d.ts +23 -23
  150. package/dist/types/operations/index.d.ts +9 -9
  151. package/dist/types/operations/operations.d.ts +35 -35
  152. package/dist/types/operations/origination-operation.d.ts +35 -35
  153. package/dist/types/operations/proposals-operation.d.ts +17 -17
  154. package/dist/types/operations/register-global-constant-operation.d.ts +25 -25
  155. package/dist/types/operations/reveal-operation.d.ts +24 -24
  156. package/dist/types/operations/smart-rollup-add-messages-operation.d.ts +20 -20
  157. package/dist/types/operations/smart-rollup-originate-operation.d.ts +23 -23
  158. package/dist/types/operations/transaction-operation.d.ts +28 -28
  159. package/dist/types/operations/transfer-ticket-operation.d.ts +22 -22
  160. package/dist/types/operations/types.d.ts +373 -373
  161. package/dist/types/operations/update-consensus-key-operation.d.ts +22 -22
  162. package/dist/types/packer/interface.d.ts +4 -4
  163. package/dist/types/packer/michel-codec-packer.d.ts +5 -5
  164. package/dist/types/packer/rpc-packer.d.ts +8 -8
  165. package/dist/types/parser/interface.d.ts +4 -4
  166. package/dist/types/parser/michel-codec-parser.d.ts +16 -16
  167. package/dist/types/parser/noop-parser.d.ts +5 -5
  168. package/dist/types/prepare/index.d.ts +2 -2
  169. package/dist/types/prepare/interface.d.ts +135 -135
  170. package/dist/types/prepare/prepare-provider.d.ts +174 -174
  171. package/dist/types/provider.d.ts +49 -49
  172. package/dist/types/read-provider/interface.d.ts +120 -120
  173. package/dist/types/read-provider/rpc-read-adapter.d.ts +118 -118
  174. package/dist/types/signer/errors.d.ts +8 -8
  175. package/dist/types/signer/interface.d.ts +28 -28
  176. package/dist/types/signer/noop.d.ts +11 -11
  177. package/dist/types/subscribe/create-observable-from-subscription.d.ts +4 -4
  178. package/dist/types/subscribe/errors.d.ts +18 -18
  179. package/dist/types/subscribe/filters.d.ts +6 -6
  180. package/dist/types/subscribe/interface.d.ts +48 -48
  181. package/dist/types/subscribe/observable-subscription.d.ts +21 -21
  182. package/dist/types/subscribe/polling-subcribe-provider.d.ts +23 -23
  183. package/dist/types/taquito.d.ts +247 -247
  184. package/dist/types/tz/interface.d.ts +15 -15
  185. package/dist/types/tz/rpc-tz-provider.d.ts +12 -12
  186. package/dist/types/version.d.ts +4 -4
  187. package/dist/types/wallet/batch-operation.d.ts +12 -12
  188. package/dist/types/wallet/delegation-operation.d.ts +12 -12
  189. package/dist/types/wallet/errors.d.ts +16 -16
  190. package/dist/types/wallet/increase-paid-storage-operation.d.ts +12 -12
  191. package/dist/types/wallet/index.d.ts +7 -7
  192. package/dist/types/wallet/interface.d.ts +41 -41
  193. package/dist/types/wallet/legacy.d.ts +16 -16
  194. package/dist/types/wallet/operation-factory.d.ts +28 -28
  195. package/dist/types/wallet/operation.d.ts +54 -54
  196. package/dist/types/wallet/origination-operation.d.ts +14 -14
  197. package/dist/types/wallet/receipt.d.ts +16 -16
  198. package/dist/types/wallet/transaction-operation.d.ts +12 -12
  199. package/dist/types/wallet/wallet.d.ts +186 -174
  200. package/package.json +39 -40
  201. package/signature.json +3 -5
  202. package/dist/lib/batch/rpc-batch-provider.js.map +0 -1
  203. package/dist/lib/constants.js.map +0 -1
  204. package/dist/lib/context.js.map +0 -1
  205. package/dist/lib/contract/big-map.js.map +0 -1
  206. package/dist/lib/contract/compose.js.map +0 -1
  207. package/dist/lib/contract/contract-methods/contract-method-factory.js.map +0 -1
  208. package/dist/lib/contract/contract-methods/contract-method-flat-param.js.map +0 -1
  209. package/dist/lib/contract/contract-methods/contract-method-interface.js.map +0 -1
  210. package/dist/lib/contract/contract-methods/contract-method-object-param.js.map +0 -1
  211. package/dist/lib/contract/contract-methods/contract-on-chain-view.js.map +0 -1
  212. package/dist/lib/contract/contract.js.map +0 -1
  213. package/dist/lib/contract/errors.js.map +0 -1
  214. package/dist/lib/contract/index.js.map +0 -1
  215. package/dist/lib/contract/interface.js.map +0 -1
  216. package/dist/lib/contract/lambda-view.js.map +0 -1
  217. package/dist/lib/contract/manager-lambda.js.map +0 -1
  218. package/dist/lib/contract/prepare.js.map +0 -1
  219. package/dist/lib/contract/rpc-contract-provider.js.map +0 -1
  220. package/dist/lib/contract/sapling-state-abstraction.js.map +0 -1
  221. package/dist/lib/contract/semantic.js.map +0 -1
  222. package/dist/lib/contract/view_lambda.js.map +0 -1
  223. package/dist/lib/errors.js.map +0 -1
  224. package/dist/lib/estimate/errors.js.map +0 -1
  225. package/dist/lib/estimate/estimate-provider-interface.js.map +0 -1
  226. package/dist/lib/estimate/estimate.js.map +0 -1
  227. package/dist/lib/estimate/index.js.map +0 -1
  228. package/dist/lib/estimate/rpc-estimate-provider.js.map +0 -1
  229. package/dist/lib/extension/extension.js.map +0 -1
  230. package/dist/lib/forger/composite-forger.js.map +0 -1
  231. package/dist/lib/forger/errors.js.map +0 -1
  232. package/dist/lib/forger/rpc-forger.js.map +0 -1
  233. package/dist/lib/forger/taquito-local-forger.js.map +0 -1
  234. package/dist/lib/global-constants/default-global-constants-provider.js.map +0 -1
  235. package/dist/lib/global-constants/errors.js.map +0 -1
  236. package/dist/lib/global-constants/interface-global-constants-provider.js.map +0 -1
  237. package/dist/lib/global-constants/noop-global-constants-provider.js.map +0 -1
  238. package/dist/lib/injector/helper.js.map +0 -1
  239. package/dist/lib/injector/interface.js.map +0 -1
  240. package/dist/lib/injector/rpc-injector.js.map +0 -1
  241. package/dist/lib/operations/ballot-operation.js.map +0 -1
  242. package/dist/lib/operations/batch-operation.js.map +0 -1
  243. package/dist/lib/operations/delegate-operation.js.map +0 -1
  244. package/dist/lib/operations/drain-delegate-operation.js.map +0 -1
  245. package/dist/lib/operations/errors.js.map +0 -1
  246. package/dist/lib/operations/failing-noop-operation.js.map +0 -1
  247. package/dist/lib/operations/increase-paid-storage-operation.js.map +0 -1
  248. package/dist/lib/operations/index.js.map +0 -1
  249. package/dist/lib/operations/operations.js.map +0 -1
  250. package/dist/lib/operations/origination-operation.js.map +0 -1
  251. package/dist/lib/operations/proposals-operation.js.map +0 -1
  252. package/dist/lib/operations/register-global-constant-operation.js.map +0 -1
  253. package/dist/lib/operations/reveal-operation.js.map +0 -1
  254. package/dist/lib/operations/smart-rollup-add-messages-operation.js.map +0 -1
  255. package/dist/lib/operations/smart-rollup-originate-operation.js.map +0 -1
  256. package/dist/lib/operations/transaction-operation.js.map +0 -1
  257. package/dist/lib/operations/transfer-ticket-operation.js.map +0 -1
  258. package/dist/lib/operations/types.js.map +0 -1
  259. package/dist/lib/operations/update-consensus-key-operation.js.map +0 -1
  260. package/dist/lib/packer/interface.js.map +0 -1
  261. package/dist/lib/packer/michel-codec-packer.js.map +0 -1
  262. package/dist/lib/packer/rpc-packer.js.map +0 -1
  263. package/dist/lib/parser/interface.js.map +0 -1
  264. package/dist/lib/parser/michel-codec-parser.js.map +0 -1
  265. package/dist/lib/parser/noop-parser.js.map +0 -1
  266. package/dist/lib/prepare/index.js.map +0 -1
  267. package/dist/lib/prepare/interface.js.map +0 -1
  268. package/dist/lib/prepare/prepare-provider.js.map +0 -1
  269. package/dist/lib/provider.js.map +0 -1
  270. package/dist/lib/read-provider/interface.js.map +0 -1
  271. package/dist/lib/read-provider/rpc-read-adapter.js.map +0 -1
  272. package/dist/lib/signer/errors.js.map +0 -1
  273. package/dist/lib/signer/interface.js.map +0 -1
  274. package/dist/lib/signer/noop.js.map +0 -1
  275. package/dist/lib/subscribe/create-observable-from-subscription.js.map +0 -1
  276. package/dist/lib/subscribe/errors.js.map +0 -1
  277. package/dist/lib/subscribe/filters.js.map +0 -1
  278. package/dist/lib/subscribe/interface.js.map +0 -1
  279. package/dist/lib/subscribe/observable-subscription.js.map +0 -1
  280. package/dist/lib/subscribe/polling-subcribe-provider.js.map +0 -1
  281. package/dist/lib/taquito.js.map +0 -1
  282. package/dist/lib/tz/interface.js.map +0 -1
  283. package/dist/lib/tz/rpc-tz-provider.js.map +0 -1
  284. package/dist/lib/version.js.map +0 -1
  285. package/dist/lib/wallet/batch-operation.js.map +0 -1
  286. package/dist/lib/wallet/delegation-operation.js.map +0 -1
  287. package/dist/lib/wallet/errors.js.map +0 -1
  288. package/dist/lib/wallet/increase-paid-storage-operation.js.map +0 -1
  289. package/dist/lib/wallet/index.js.map +0 -1
  290. package/dist/lib/wallet/interface.js.map +0 -1
  291. package/dist/lib/wallet/legacy.js.map +0 -1
  292. package/dist/lib/wallet/operation-factory.js.map +0 -1
  293. package/dist/lib/wallet/operation.js.map +0 -1
  294. package/dist/lib/wallet/origination-operation.js.map +0 -1
  295. package/dist/lib/wallet/receipt.js.map +0 -1
  296. package/dist/lib/wallet/transaction-operation.js.map +0 -1
  297. package/dist/lib/wallet/wallet.js.map +0 -1
@@ -22,27 +22,27 @@ class RpcTzProvider extends provider_1.Provider {
22
22
  }
23
23
  getBalance(address) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
- const addressValidation = utils_1.validateAddress(address);
25
+ const addressValidation = (0, utils_1.validateAddress)(address);
26
26
  if (addressValidation !== utils_1.ValidationResult.VALID) {
27
- throw new core_1.InvalidAddressError(address, utils_1.invalidDetail(addressValidation));
27
+ throw new core_1.InvalidAddressError(address, (0, utils_1.invalidDetail)(addressValidation));
28
28
  }
29
29
  return this.context.readProvider.getBalance(address, 'head');
30
30
  });
31
31
  }
32
32
  getDelegate(address) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
- const addressValidation = utils_1.validateAddress(address);
34
+ const addressValidation = (0, utils_1.validateAddress)(address);
35
35
  if (addressValidation !== utils_1.ValidationResult.VALID) {
36
- throw new core_1.InvalidAddressError(address, utils_1.invalidDetail(addressValidation));
36
+ throw new core_1.InvalidAddressError(address, (0, utils_1.invalidDetail)(addressValidation));
37
37
  }
38
38
  return this.context.readProvider.getDelegate(address, 'head');
39
39
  });
40
40
  }
41
41
  activate(pkh, secret) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const pkhValidation = utils_1.validateKeyHash(pkh);
43
+ const pkhValidation = (0, utils_1.validateKeyHash)(pkh);
44
44
  if (pkhValidation !== utils_1.ValidationResult.VALID) {
45
- throw new utils_1.InvalidKeyHashError(pkh, utils_1.invalidDetail(pkhValidation));
45
+ throw new utils_1.InvalidKeyHashError(pkh, (0, utils_1.invalidDetail)(pkhValidation));
46
46
  }
47
47
  const prepared = yield this.prepare.activate({ pkh, secret });
48
48
  const forgedBytes = yield this.forge(prepared);
@@ -52,4 +52,3 @@ class RpcTzProvider extends provider_1.Provider {
52
52
  }
53
53
  }
54
54
  exports.RpcTzProvider = RpcTzProvider;
55
- //# sourceMappingURL=rpc-tz-provider.js.map
@@ -3,7 +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": "21f25a09b87809102b0214544d2c5396eeb5872e",
7
- "version": "18.0.0-RC.0"
6
+ "commitHash": "801b9525f497845e778696ccac8df3a7b0f299d8",
7
+ "version": "19.0.0"
8
8
  };
9
- //# sourceMappingURL=version.js.map
@@ -58,7 +58,7 @@ class BatchWalletOperation extends operation_1.WalletOperation {
58
58
  return (op
59
59
  .filter((result) => rpc_batch_provider_1.BATCH_KINDS.indexOf(result.kind) !== -1)
60
60
  .map((result) => {
61
- if (types_1.hasMetadataWithResult(result)) {
61
+ if ((0, types_1.hasMetadataWithResult)(result)) {
62
62
  const opResult = result.metadata.operation_result;
63
63
  return opResult.status;
64
64
  }
@@ -74,4 +74,3 @@ class BatchWalletOperation extends operation_1.WalletOperation {
74
74
  }
75
75
  }
76
76
  exports.BatchWalletOperation = BatchWalletOperation;
77
- //# sourceMappingURL=batch-operation.js.map
@@ -55,4 +55,3 @@ class DelegationWalletOperation extends operation_1.WalletOperation {
55
55
  }
56
56
  }
57
57
  exports.DelegationWalletOperation = DelegationWalletOperation;
58
- //# sourceMappingURL=delegation-operation.js.map
@@ -26,4 +26,3 @@ class ObservableError extends core_1.NetworkError {
26
26
  }
27
27
  }
28
28
  exports.ObservableError = ObservableError;
29
- //# sourceMappingURL=errors.js.map
@@ -55,4 +55,3 @@ class IncreasePaidStorageWalletOperation extends operation_1.WalletOperation {
55
55
  }
56
56
  }
57
57
  exports.IncreasePaidStorageWalletOperation = IncreasePaidStorageWalletOperation;
58
- //# sourceMappingURL=increase-paid-storage-operation.js.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -17,4 +21,3 @@ __exportStar(require("./origination-operation"), exports);
17
21
  __exportStar(require("./delegation-operation"), exports);
18
22
  __exportStar(require("./interface"), exports);
19
23
  __exportStar(require("./legacy"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interface.js.map
@@ -20,24 +20,29 @@ class LegacyWalletProvider {
20
20
  return this.context.signer.publicKeyHash();
21
21
  });
22
22
  }
23
+ getPK() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ return this.context.signer.publicKey();
26
+ });
27
+ }
23
28
  mapTransferParamsToWalletParams(params) {
24
29
  return __awaiter(this, void 0, void 0, function* () {
25
- return types_1.attachKind(yield params(), types_1.OpKind.TRANSACTION);
30
+ return (0, types_1.attachKind)(yield params(), types_1.OpKind.TRANSACTION);
26
31
  });
27
32
  }
28
33
  mapOriginateParamsToWalletParams(params) {
29
34
  return __awaiter(this, void 0, void 0, function* () {
30
- return types_1.attachKind(yield params(), types_1.OpKind.ORIGINATION);
35
+ return (0, types_1.attachKind)(yield params(), types_1.OpKind.ORIGINATION);
31
36
  });
32
37
  }
33
38
  mapDelegateParamsToWalletParams(params) {
34
39
  return __awaiter(this, void 0, void 0, function* () {
35
- return types_1.attachKind(yield params(), types_1.OpKind.DELEGATION);
40
+ return (0, types_1.attachKind)(yield params(), types_1.OpKind.DELEGATION);
36
41
  });
37
42
  }
38
43
  mapIncreasePaidStorageWalletParams(params) {
39
44
  return __awaiter(this, void 0, void 0, function* () {
40
- return types_1.attachKind(yield params(), types_1.OpKind.INCREASE_PAID_STORAGE);
45
+ return (0, types_1.attachKind)(yield params(), types_1.OpKind.INCREASE_PAID_STORAGE);
41
46
  });
42
47
  }
43
48
  sendOperations(params) {
@@ -52,9 +57,5 @@ class LegacyWalletProvider {
52
57
  return prefixSig;
53
58
  });
54
59
  }
55
- getPK() {
56
- return this.context.signer.publicKey();
57
- }
58
60
  }
59
61
  exports.LegacyWalletProvider = LegacyWalletProvider;
60
- //# sourceMappingURL=legacy.js.map
@@ -22,15 +22,15 @@ const transaction_operation_1 = require("./transaction-operation");
22
22
  const errors_1 = require("../errors");
23
23
  function timeoutAfter(timeoutMillisec) {
24
24
  return function inner(source) {
25
- return new rxjs_1.BehaviorSubject(null).pipe(operators_1.timeout({
25
+ return new rxjs_1.BehaviorSubject(null).pipe((0, operators_1.timeout)({
26
26
  each: timeoutMillisec,
27
- with: () => rxjs_1.throwError(() => new errors_1.ConfirmationTimeoutError(`Confirmation polling timed out`)),
28
- }), operators_1.mergeMap(() => source));
27
+ with: () => (0, rxjs_1.throwError)(() => new errors_1.ConfirmationTimeoutError(`Confirmation polling timed out`)),
28
+ }), (0, operators_1.mergeMap)(() => source));
29
29
  };
30
30
  }
31
31
  exports.timeoutAfter = timeoutAfter;
32
32
  const createNewPollingBasedHeadObservable = (sharedHeadOb, context, _scheduler) => {
33
- return sharedHeadOb.pipe(timeoutAfter(context.config.confirmationPollingTimeoutSecond * 1000), operators_1.share({
33
+ return sharedHeadOb.pipe(timeoutAfter(context.config.confirmationPollingTimeoutSecond * 1000), (0, operators_1.share)({
34
34
  connector: () => new rxjs_1.ReplaySubject(1),
35
35
  resetOnError: false,
36
36
  resetOnComplete: false,
@@ -42,21 +42,21 @@ class OperationFactory {
42
42
  constructor(context) {
43
43
  this.context = context;
44
44
  // Cache the last block for one second across all operations
45
- this.sharedHeadObs = rxjs_1.defer(() => {
46
- return create_observable_from_subscription_1.createObservableFromSubscription(this.context.stream.subscribeBlock('head'));
45
+ this.sharedHeadObs = (0, rxjs_1.defer)(() => {
46
+ return (0, create_observable_from_subscription_1.createObservableFromSubscription)(this.context.stream.subscribeBlock('head'));
47
47
  });
48
48
  }
49
49
  createNewHeadObservable() {
50
50
  return __awaiter(this, void 0, void 0, function* () {
51
- return exports.createNewPollingBasedHeadObservable(this.sharedHeadObs, this.context);
51
+ return (0, exports.createNewPollingBasedHeadObservable)(this.sharedHeadObs, this.context);
52
52
  });
53
53
  }
54
54
  createPastBlockWalker(startBlock, count = 1) {
55
- return rxjs_1.from(this.context.readProvider.getBlock(startBlock)).pipe(operators_1.switchMap((block) => {
55
+ return (0, rxjs_1.from)(this.context.readProvider.getBlock(startBlock)).pipe((0, operators_1.switchMap)((block) => {
56
56
  if (count === 1) {
57
- return rxjs_1.of(block);
57
+ return (0, rxjs_1.of)(block);
58
58
  }
59
- return rxjs_1.range(block.header.level, count - 1).pipe(operators_1.startWith(block), operators_1.concatMap((level) => __awaiter(this, void 0, void 0, function* () {
59
+ return (0, rxjs_1.range)(block.header.level, count - 1).pipe((0, operators_1.startWith)(block), (0, operators_1.concatMap)((level) => __awaiter(this, void 0, void 0, function* () {
60
60
  return this.context.readProvider.getBlock(typeof level === 'number' ? level : level.header.level);
61
61
  })));
62
62
  }));
@@ -68,7 +68,7 @@ class OperationFactory {
68
68
  observableSequence.push(this.createPastBlockWalker(blockIdentifier));
69
69
  }
70
70
  observableSequence.push(yield this.createNewHeadObservable());
71
- return rxjs_1.concat(...observableSequence);
71
+ return (0, rxjs_1.concat)(...observableSequence);
72
72
  });
73
73
  }
74
74
  createOperation(hash, config = {}) {
@@ -103,4 +103,3 @@ class OperationFactory {
103
103
  }
104
104
  }
105
105
  exports.OperationFactory = OperationFactory;
106
- //# sourceMappingURL=operation-factory.js.map
@@ -22,6 +22,24 @@ const MAX_BRANCH_ANCESTORS = 60;
22
22
  * @description WalletOperation allows to monitor operation inclusion on chains and surface information related to the operation
23
23
  */
24
24
  class WalletOperation {
25
+ operationResults() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ return this._operationResult.pipe((0, operators_1.first)()).toPromise();
28
+ });
29
+ }
30
+ /**
31
+ * @description Receipt expose the total amount of tezos token burn and spent on fees
32
+ * The promise returned by receipt will resolve only once the transaction is included
33
+ */
34
+ receipt() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const results = yield this.operationResults();
37
+ if (!results) {
38
+ throw new errors_2.ObservableError('Unable to get operation results');
39
+ }
40
+ return (0, receipt_1.receiptFromOperation)(results);
41
+ });
42
+ }
25
43
  /**
26
44
  *
27
45
  * @param opHash Operation hash
@@ -36,18 +54,18 @@ class WalletOperation {
36
54
  this._operationResult = new rxjs_1.ReplaySubject(1);
37
55
  this._includedInBlock = new rxjs_1.ReplaySubject(1);
38
56
  this._included = false;
39
- this.newHead$ = this._newHead$.pipe(operators_1.switchMap((newHead) => {
57
+ this.newHead$ = this._newHead$.pipe((0, operators_1.switchMap)((newHead) => {
40
58
  var _a, _b;
41
59
  const prevHead = (_b = (_a = this.lastHead) === null || _a === void 0 ? void 0 : _a.header.level) !== null && _b !== void 0 ? _b : newHead.header.level - 1;
42
- return rxjs_1.range(prevHead + 1, newHead.header.level - prevHead - 1).pipe(operators_1.concatMap((level) => this.context.readProvider.getBlock(level)), operators_1.endWith(newHead));
43
- }), operators_1.tap((newHead) => (this.lastHead = newHead)), operators_1.share({
60
+ return (0, rxjs_1.range)(prevHead + 1, newHead.header.level - prevHead - 1).pipe((0, operators_1.concatMap)((level) => this.context.readProvider.getBlock(level)), (0, operators_1.endWith)(newHead));
61
+ }), (0, operators_1.tap)((newHead) => (this.lastHead = newHead)), (0, operators_1.share)({
44
62
  connector: () => new rxjs_1.ReplaySubject(1),
45
63
  resetOnError: false,
46
64
  resetOnComplete: false,
47
65
  resetOnRefCountZero: false,
48
66
  }));
49
67
  // Observable that emit once operation is seen in a block
50
- this.confirmed$ = this.newHead$.pipe(operators_1.map((head) => {
68
+ this.confirmed$ = this.newHead$.pipe((0, operators_1.map)((head) => {
51
69
  for (const opGroup of head.operations) {
52
70
  for (const op of opGroup) {
53
71
  if (op.hash === this.opHash) {
@@ -59,48 +77,30 @@ class WalletOperation {
59
77
  }
60
78
  }
61
79
  }
62
- }), operators_1.filter((x) => {
80
+ }), (0, operators_1.filter)((x) => {
63
81
  return typeof x !== 'undefined';
64
- }), operators_1.first(), operators_1.share({
82
+ }), (0, operators_1.first)(), (0, operators_1.share)({
65
83
  connector: () => new rxjs_1.ReplaySubject(1),
66
84
  resetOnError: false,
67
85
  resetOnComplete: false,
68
86
  resetOnRefCountZero: false,
69
87
  }));
70
- if (utils_1.validateOperation(this.opHash) !== utils_1.ValidationResult.VALID) {
88
+ if ((0, utils_1.validateOperation)(this.opHash) !== utils_1.ValidationResult.VALID) {
71
89
  throw new core_1.InvalidOperationHashError(this.opHash);
72
90
  }
73
91
  this.confirmed$
74
- .pipe(operators_1.first(), operators_1.catchError(() => rxjs_1.of(undefined)))
92
+ .pipe((0, operators_1.first)(), (0, operators_1.catchError)(() => (0, rxjs_1.of)(undefined)))
75
93
  .subscribe();
76
94
  }
77
- operationResults() {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- return this._operationResult.pipe(operators_1.first()).toPromise();
80
- });
81
- }
82
- /**
83
- * @description Receipt expose the total amount of tezos token burn and spent on fees
84
- * The promise returned by receipt will resolve only once the transaction is included
85
- */
86
- receipt() {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- const results = yield this.operationResults();
89
- if (!results) {
90
- throw new errors_2.ObservableError('Unable to get operation results');
91
- }
92
- return receipt_1.receiptFromOperation(results);
93
- });
94
- }
95
95
  getCurrentConfirmation() {
96
96
  return __awaiter(this, void 0, void 0, function* () {
97
97
  if (!this._included) {
98
98
  return 0;
99
99
  }
100
- return rxjs_1.combineLatest([this._includedInBlock, rxjs_1.from(this.context.readProvider.getBlock('head'))])
101
- .pipe(operators_1.map(([foundAtBlock, head]) => {
100
+ return (0, rxjs_1.combineLatest)([this._includedInBlock, (0, rxjs_1.from)(this.context.readProvider.getBlock('head'))])
101
+ .pipe((0, operators_1.map)(([foundAtBlock, head]) => {
102
102
  return head.header.level - foundAtBlock.header.level + 1;
103
- }), operators_1.first())
103
+ }), (0, operators_1.first)())
104
104
  .toPromise();
105
105
  });
106
106
  }
@@ -111,7 +111,7 @@ class WalletOperation {
111
111
  return true;
112
112
  }
113
113
  const tipBlockHeaderLevel = yield this.context.readProvider.getBlockLevel(tipBlockIdentifier);
114
- const inclusionBlock = yield this._includedInBlock.pipe(operators_1.first()).toPromise();
114
+ const inclusionBlock = yield this._includedInBlock.pipe((0, operators_1.first)()).toPromise();
115
115
  if (!inclusionBlock) {
116
116
  throw new errors_2.ObservableError('Inclusion block is undefined');
117
117
  }
@@ -134,9 +134,9 @@ class WalletOperation {
134
134
  if (conf === undefined) {
135
135
  throw new errors_2.ConfirmationUndefinedError();
136
136
  }
137
- return rxjs_1.combineLatest([this._includedInBlock, this.newHead$]).pipe(operators_1.distinctUntilChanged(([, previousHead], [, newHead]) => {
137
+ return (0, rxjs_1.combineLatest)([this._includedInBlock, this.newHead$]).pipe((0, operators_1.distinctUntilChanged)(([, previousHead], [, newHead]) => {
138
138
  return previousHead.hash === newHead.hash;
139
- }), operators_1.map(([foundAtBlock, head]) => {
139
+ }), (0, operators_1.map)(([foundAtBlock, head]) => {
140
140
  return {
141
141
  block: head,
142
142
  expectedConfirmation: conf,
@@ -144,7 +144,7 @@ class WalletOperation {
144
144
  completed: head.header.level - foundAtBlock.header.level >= conf - 1,
145
145
  isInCurrentBranch: () => this.isInCurrentBranch(head.hash),
146
146
  };
147
- }), operators_1.takeWhile(({ completed }) => !completed, true));
147
+ }), (0, operators_1.takeWhile)(({ completed }) => !completed, true));
148
148
  }
149
149
  /**
150
150
  *
@@ -155,4 +155,3 @@ class WalletOperation {
155
155
  }
156
156
  }
157
157
  exports.WalletOperation = WalletOperation;
158
- //# sourceMappingURL=operation.js.map
@@ -24,7 +24,7 @@ class OriginationWalletOperation extends operation_1.WalletOperation {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  const operationResult = yield this.operationResults();
26
26
  if (operationResult) {
27
- return types_1.findWithKind(operationResult, rpc_1.OpKind.ORIGINATION);
27
+ return (0, types_1.findWithKind)(operationResult, rpc_1.OpKind.ORIGINATION);
28
28
  }
29
29
  else {
30
30
  throw new errors_1.ObservableError('Unable to fetch operation result');
@@ -35,7 +35,7 @@ class OriginationWalletOperation extends operation_1.WalletOperation {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
36
  const operationResult = yield this.operationResults();
37
37
  if (operationResult) {
38
- return types_1.findWithKind(operationResult, rpc_1.OpKind.REVEAL);
38
+ return (0, types_1.findWithKind)(operationResult, rpc_1.OpKind.REVEAL);
39
39
  }
40
40
  else {
41
41
  throw new errors_1.ObservableError('Unable to fetch operation result');
@@ -63,4 +63,3 @@ class OriginationWalletOperation extends operation_1.WalletOperation {
63
63
  }
64
64
  }
65
65
  exports.OriginationWalletOperation = OriginationWalletOperation;
66
- //# sourceMappingURL=origination-operation.js.map
@@ -9,7 +9,7 @@ const receiptFromOperation = (op, { ALLOCATION_BURN, ORIGINATION_BURN } = {
9
9
  ORIGINATION_BURN: 257,
10
10
  }) => {
11
11
  bignumber_js_1.default.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: bignumber_js_1.default.ROUND_UP });
12
- const operationResults = errors_1.flattenOperationResult({ contents: op });
12
+ const operationResults = (0, errors_1.flattenOperationResult)({ contents: op });
13
13
  let totalMilliGas = new bignumber_js_1.default(0);
14
14
  let totalStorage = new bignumber_js_1.default(0);
15
15
  let totalFee = new bignumber_js_1.default(0);
@@ -41,4 +41,3 @@ const receiptFromOperation = (op, { ALLOCATION_BURN, ORIGINATION_BURN } = {
41
41
  };
42
42
  };
43
43
  exports.receiptFromOperation = receiptFromOperation;
44
- //# sourceMappingURL=receipt.js.map
@@ -51,4 +51,3 @@ class TransactionWalletOperation extends operation_1.WalletOperation {
51
51
  }
52
52
  }
53
53
  exports.TransactionWalletOperation = TransactionWalletOperation;
54
- //# sourceMappingURL=transaction-operation.js.map
@@ -27,9 +27,9 @@ class WalletOperationBatch {
27
27
  * @param params Transfer operation parameter
28
28
  */
29
29
  withTransfer(params) {
30
- const toValidation = utils_1.validateAddress(params.to);
30
+ const toValidation = (0, utils_1.validateAddress)(params.to);
31
31
  if (toValidation !== utils_1.ValidationResult.VALID) {
32
- throw new core_1.InvalidAddressError(params.to, utils_1.invalidDetail(toValidation));
32
+ throw new core_1.InvalidAddressError(params.to, (0, utils_1.invalidDetail)(toValidation));
33
33
  }
34
34
  this.operations.push(Object.assign({ kind: types_1.OpKind.TRANSACTION }, params));
35
35
  return this;
@@ -52,9 +52,9 @@ class WalletOperationBatch {
52
52
  */
53
53
  withDelegation(params) {
54
54
  var _a;
55
- const delegateValidation = utils_1.validateAddress((_a = params.delegate) !== null && _a !== void 0 ? _a : '');
55
+ const delegateValidation = (0, utils_1.validateAddress)((_a = params.delegate) !== null && _a !== void 0 ? _a : '');
56
56
  if (params.delegate && delegateValidation !== utils_1.ValidationResult.VALID) {
57
- throw new core_1.InvalidAddressError(params.delegate, utils_1.invalidDetail(delegateValidation));
57
+ throw new core_1.InvalidAddressError(params.delegate, (0, utils_1.invalidDetail)(delegateValidation));
58
58
  }
59
59
  this.operations.push(Object.assign({ kind: types_1.OpKind.DELEGATION }, params));
60
60
  return this;
@@ -76,9 +76,9 @@ class WalletOperationBatch {
76
76
  * @param param IncreasePaidStorage operation parameter
77
77
  */
78
78
  withIncreasePaidStorage(params) {
79
- const destinationValidation = utils_1.validateAddress(params.destination);
79
+ const destinationValidation = (0, utils_1.validateAddress)(params.destination);
80
80
  if (destinationValidation !== utils_1.ValidationResult.VALID) {
81
- throw new core_1.InvalidAddressError(params.destination, utils_1.invalidDetail(destinationValidation));
81
+ throw new core_1.InvalidAddressError(params.destination, (0, utils_1.invalidDetail)(destinationValidation));
82
82
  }
83
83
  this.operations.push(Object.assign({ kind: types_1.OpKind.INCREASE_PAID_STORAGE }, params));
84
84
  return this;
@@ -172,6 +172,20 @@ class Wallet {
172
172
  return this._pkh;
173
173
  });
174
174
  }
175
+ /**
176
+ * @description Retrieve the PK of the account that is currently in use by the wallet
177
+ *
178
+ * @param option Option to use while fetching the PK.
179
+ * If forceRefetch is specified the wallet provider implementation will refetch the PK from the wallet
180
+ */
181
+ pk({ forceRefetch } = {}) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ if (!this._pk || forceRefetch) {
184
+ this._pk = yield this.walletProvider.getPK();
185
+ }
186
+ return this._pk;
187
+ });
188
+ }
175
189
  /**
176
190
  *
177
191
  * @description Originate a new contract according to the script in parameters.
@@ -197,9 +211,9 @@ class Wallet {
197
211
  */
198
212
  setDelegate(params) {
199
213
  var _a;
200
- const delegateValidation = utils_1.validateAddress((_a = params.delegate) !== null && _a !== void 0 ? _a : '');
214
+ const delegateValidation = (0, utils_1.validateAddress)((_a = params.delegate) !== null && _a !== void 0 ? _a : '');
201
215
  if (params.delegate && delegateValidation !== utils_1.ValidationResult.VALID) {
202
- throw new core_1.InvalidAddressError(params.delegate, utils_1.invalidDetail(delegateValidation));
216
+ throw new core_1.InvalidAddressError(params.delegate, (0, utils_1.invalidDetail)(delegateValidation));
203
217
  }
204
218
  return this.walletCommand(() => __awaiter(this, void 0, void 0, function* () {
205
219
  const mappedParams = yield this.walletProvider.mapDelegateParamsToWalletParams(() => __awaiter(this, void 0, void 0, function* () { return params; }));
@@ -268,9 +282,9 @@ class Wallet {
268
282
  * @param params operation parameter
269
283
  */
270
284
  transfer(params) {
271
- const toValidation = utils_1.validateAddress(params.to);
285
+ const toValidation = (0, utils_1.validateAddress)(params.to);
272
286
  if (toValidation !== utils_1.ValidationResult.VALID) {
273
- throw new core_1.InvalidAddressError(params.to, utils_1.invalidDetail(toValidation));
287
+ throw new core_1.InvalidAddressError(params.to, (0, utils_1.invalidDetail)(toValidation));
274
288
  }
275
289
  return this.walletCommand(() => __awaiter(this, void 0, void 0, function* () {
276
290
  const mappedParams = yield this.walletProvider.mapTransferParamsToWalletParams(() => __awaiter(this, void 0, void 0, function* () { return params; }));
@@ -287,9 +301,9 @@ class Wallet {
287
301
  * @param params
288
302
  */
289
303
  increasePaidStorage(params) {
290
- const destinationValidation = utils_1.validateAddress(params.destination);
304
+ const destinationValidation = (0, utils_1.validateAddress)(params.destination);
291
305
  if (destinationValidation !== utils_1.ValidationResult.VALID) {
292
- throw new core_1.InvalidAddressError(params.destination, utils_1.invalidDetail(destinationValidation));
306
+ throw new core_1.InvalidAddressError(params.destination, (0, utils_1.invalidDetail)(destinationValidation));
293
307
  }
294
308
  return this.walletCommand(() => __awaiter(this, void 0, void 0, function* () {
295
309
  const mappedParams = yield this.walletProvider.mapIncreasePaidStorageWalletParams(() => __awaiter(this, void 0, void 0, function* () { return params; }));
@@ -322,9 +336,9 @@ class Wallet {
322
336
  */
323
337
  at(address, contractAbstractionComposer = (x) => x) {
324
338
  return __awaiter(this, void 0, void 0, function* () {
325
- const addressValidation = utils_1.validateContractAddress(address);
339
+ const addressValidation = (0, utils_1.validateContractAddress)(address);
326
340
  if (addressValidation !== utils_1.ValidationResult.VALID) {
327
- throw new core_1.InvalidContractAddressError(address, utils_1.invalidDetail(addressValidation));
341
+ throw new core_1.InvalidContractAddressError(address, (0, utils_1.invalidDetail)(addressValidation));
328
342
  }
329
343
  const rpc = this.context.withExtensions().rpc;
330
344
  const readProvider = this.context.withExtensions().readProvider;
@@ -334,9 +348,14 @@ class Wallet {
334
348
  return contractAbstractionComposer(abs, this.context);
335
349
  });
336
350
  }
351
+ /**
352
+ * @deprecated Deprecated in favor of {@link Wallet.pk} will be removed in v19.1
353
+ * @description Retrieve the PK of the account that is currently in use by the wallet
354
+ */
337
355
  getPK() {
338
- return this.walletProvider.getPK();
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ return yield this.pk();
358
+ });
339
359
  }
340
360
  }
341
361
  exports.Wallet = Wallet;
342
- //# sourceMappingURL=wallet.js.map