@taquito/wallet-connect 24.3.0-beta.2 → 24.3.0-beta.5

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 (444) hide show
  1. package/README.md +15 -1
  2. package/dist/lib/{taquito-wallet-connect/src/taquito-wallet-connect.js → taquito-wallet-connect.js} +1 -4
  3. package/dist/lib/{taquito-http-utils/src/version.js → version.js} +2 -2
  4. package/package.json +5 -7
  5. package/dist/lib/taquito/src/batch/constants.js +0 -16
  6. package/dist/lib/taquito/src/batch/rpc-batch-provider.js +0 -327
  7. package/dist/lib/taquito/src/constants.js +0 -135
  8. package/dist/lib/taquito/src/context.js +0 -178
  9. package/dist/lib/taquito/src/contract/big-map.js +0 -57
  10. package/dist/lib/taquito/src/contract/compose.js +0 -6
  11. package/dist/lib/taquito/src/contract/constants.js +0 -4
  12. package/dist/lib/taquito/src/contract/contract-methods/contract-method-factory.js +0 -18
  13. package/dist/lib/taquito/src/contract/contract-methods/contract-method-interface.js +0 -2
  14. package/dist/lib/taquito/src/contract/contract-methods/contract-method-object-param.js +0 -72
  15. package/dist/lib/taquito/src/contract/contract-methods/contract-on-chain-view.js +0 -111
  16. package/dist/lib/taquito/src/contract/contract.js +0 -158
  17. package/dist/lib/taquito/src/contract/errors.js +0 -140
  18. package/dist/lib/taquito/src/contract/index.js +0 -30
  19. package/dist/lib/taquito/src/contract/interface.js +0 -2
  20. package/dist/lib/taquito/src/contract/manager-lambda.js +0 -71
  21. package/dist/lib/taquito/src/contract/prepare.js +0 -231
  22. package/dist/lib/taquito/src/contract/rpc-contract-provider.js +0 -675
  23. package/dist/lib/taquito/src/contract/sapling-state-abstraction.js +0 -24
  24. package/dist/lib/taquito/src/contract/semantic.js +0 -43
  25. package/dist/lib/taquito/src/contract/view_lambda.js +0 -27
  26. package/dist/lib/taquito/src/errors.js +0 -42
  27. package/dist/lib/taquito/src/estimate/errors.js +0 -16
  28. package/dist/lib/taquito/src/estimate/estimate-provider-interface.js +0 -2
  29. package/dist/lib/taquito/src/estimate/estimate.js +0 -176
  30. package/dist/lib/taquito/src/estimate/index.js +0 -20
  31. package/dist/lib/taquito/src/estimate/rpc-estimate-provider.js +0 -640
  32. package/dist/lib/taquito/src/extension/extension.js +0 -2
  33. package/dist/lib/taquito/src/forger/composite-forger.js +0 -32
  34. package/dist/lib/taquito/src/forger/errors.js +0 -30
  35. package/dist/lib/taquito/src/forger/rpc-forger.js +0 -12
  36. package/dist/lib/taquito/src/forger/taquito-local-forger.js +0 -21
  37. package/dist/lib/taquito/src/global-constants/default-global-constants-provider.js +0 -35
  38. package/dist/lib/taquito/src/global-constants/errors.js +0 -30
  39. package/dist/lib/taquito/src/global-constants/interface-global-constants-provider.js +0 -2
  40. package/dist/lib/taquito/src/global-constants/noop-global-constants-provider.js +0 -10
  41. package/dist/lib/taquito/src/import-key.js +0 -40
  42. package/dist/lib/taquito/src/injector/helper.js +0 -18
  43. package/dist/lib/taquito/src/injector/interface.js +0 -2
  44. package/dist/lib/taquito/src/injector/rpc-injector.js +0 -27
  45. package/dist/lib/taquito/src/operations/ballot-operation.js +0 -32
  46. package/dist/lib/taquito/src/operations/batch-operation.js +0 -69
  47. package/dist/lib/taquito/src/operations/delegate-operation.js +0 -54
  48. package/dist/lib/taquito/src/operations/drain-delegate-operation.js +0 -31
  49. package/dist/lib/taquito/src/operations/errors.js +0 -133
  50. package/dist/lib/taquito/src/operations/failing-noop-operation.js +0 -2
  51. package/dist/lib/taquito/src/operations/increase-paid-storage-operation.js +0 -49
  52. package/dist/lib/taquito/src/operations/index.js +0 -54
  53. package/dist/lib/taquito/src/operations/operations.js +0 -193
  54. package/dist/lib/taquito/src/operations/origination-operation.js +0 -78
  55. package/dist/lib/taquito/src/operations/proposals-operation.js +0 -29
  56. package/dist/lib/taquito/src/operations/register-global-constant-operation.js +0 -52
  57. package/dist/lib/taquito/src/operations/reveal-operation.js +0 -74
  58. package/dist/lib/taquito/src/operations/smart-rollup-add-messages-operation.js +0 -44
  59. package/dist/lib/taquito/src/operations/smart-rollup-execute-outbox-message-operation.js +0 -53
  60. package/dist/lib/taquito/src/operations/smart-rollup-originate-operation.js +0 -50
  61. package/dist/lib/taquito/src/operations/transaction-operation.js +0 -73
  62. package/dist/lib/taquito/src/operations/transfer-ticket-operation.js +0 -47
  63. package/dist/lib/taquito/src/operations/types.js +0 -88
  64. package/dist/lib/taquito/src/operations/update-companion-key-operation.js +0 -55
  65. package/dist/lib/taquito/src/operations/update-consensus-key-operation.js +0 -55
  66. package/dist/lib/taquito/src/packer/interface.js +0 -2
  67. package/dist/lib/taquito/src/packer/michel-codec-packer.js +0 -11
  68. package/dist/lib/taquito/src/packer/rpc-packer.js +0 -12
  69. package/dist/lib/taquito/src/parser/interface.js +0 -2
  70. package/dist/lib/taquito/src/parser/michel-codec-parser.js +0 -110
  71. package/dist/lib/taquito/src/parser/noop-parser.js +0 -9
  72. package/dist/lib/taquito/src/prepare/index.js +0 -18
  73. package/dist/lib/taquito/src/prepare/interface.js +0 -2
  74. package/dist/lib/taquito/src/prepare/prepare-provider.js +0 -1049
  75. package/dist/lib/taquito/src/provider.js +0 -363
  76. package/dist/lib/taquito/src/read-provider/interface.js +0 -2
  77. package/dist/lib/taquito/src/read-provider/rpc-read-adapter.js +0 -183
  78. package/dist/lib/taquito/src/signer/errors.js +0 -17
  79. package/dist/lib/taquito/src/signer/noop.js +0 -23
  80. package/dist/lib/taquito/src/subscribe/create-observable-from-subscription.js +0 -20
  81. package/dist/lib/taquito/src/subscribe/errors.js +0 -30
  82. package/dist/lib/taquito/src/subscribe/filters.js +0 -96
  83. package/dist/lib/taquito/src/subscribe/interface.js +0 -2
  84. package/dist/lib/taquito/src/subscribe/observable-subscription.js +0 -79
  85. package/dist/lib/taquito/src/subscribe/polling-subcribe-provider.js +0 -118
  86. package/dist/lib/taquito/src/taquito.js +0 -404
  87. package/dist/lib/taquito/src/tz/interface.js +0 -2
  88. package/dist/lib/taquito/src/tz/rpc-tz-provider.js +0 -46
  89. package/dist/lib/taquito/src/version.js +0 -8
  90. package/dist/lib/taquito/src/wallet/batch-operation.js +0 -71
  91. package/dist/lib/taquito/src/wallet/delegation-operation.js +0 -42
  92. package/dist/lib/taquito/src/wallet/errors.js +0 -40
  93. package/dist/lib/taquito/src/wallet/increase-paid-storage-operation.js +0 -42
  94. package/dist/lib/taquito/src/wallet/index.js +0 -25
  95. package/dist/lib/taquito/src/wallet/interface.js +0 -2
  96. package/dist/lib/taquito/src/wallet/legacy.js +0 -51
  97. package/dist/lib/taquito/src/wallet/operation-factory.js +0 -88
  98. package/dist/lib/taquito/src/wallet/operation.js +0 -221
  99. package/dist/lib/taquito/src/wallet/origination-operation.js +0 -53
  100. package/dist/lib/taquito/src/wallet/receipt.js +0 -46
  101. package/dist/lib/taquito/src/wallet/register-global-constant-operation.js +0 -45
  102. package/dist/lib/taquito/src/wallet/transaction-operation.js +0 -38
  103. package/dist/lib/taquito/src/wallet/transfer-ticket-operation.js +0 -38
  104. package/dist/lib/taquito/src/wallet/wallet.js +0 -445
  105. package/dist/lib/taquito-core/src/errors.js +0 -351
  106. package/dist/lib/taquito-core/src/signer-interfaces.js +0 -2
  107. package/dist/lib/taquito-core/src/taquito-core.js +0 -22
  108. package/dist/lib/taquito-http-utils/src/errors.js +0 -103
  109. package/dist/lib/taquito-http-utils/src/status_code.js +0 -322
  110. package/dist/lib/taquito-http-utils/src/taquito-http-utils.js +0 -308
  111. package/dist/lib/taquito-http-utils/src/transport-errors.js +0 -141
  112. package/dist/lib/taquito-local-forging/src/codec.js +0 -543
  113. package/dist/lib/taquito-local-forging/src/constants.js +0 -291
  114. package/dist/lib/taquito-local-forging/src/decoder.js +0 -64
  115. package/dist/lib/taquito-local-forging/src/encoder.js +0 -63
  116. package/dist/lib/taquito-local-forging/src/errors.js +0 -179
  117. package/dist/lib/taquito-local-forging/src/interface.js +0 -2
  118. package/dist/lib/taquito-local-forging/src/michelson/codec.js +0 -283
  119. package/dist/lib/taquito-local-forging/src/protocols.js +0 -60
  120. package/dist/lib/taquito-local-forging/src/schema/operation.js +0 -259
  121. package/dist/lib/taquito-local-forging/src/taquito-local-forging.js +0 -117
  122. package/dist/lib/taquito-local-forging/src/uint8array-consumer.js +0 -35
  123. package/dist/lib/taquito-local-forging/src/utils.js +0 -18
  124. package/dist/lib/taquito-local-forging/src/validator.js +0 -57
  125. package/dist/lib/taquito-local-forging/src/version.js +0 -8
  126. package/dist/lib/taquito-michel-codec/src/base58.js +0 -255
  127. package/dist/lib/taquito-michel-codec/src/binary.js +0 -1271
  128. package/dist/lib/taquito-michel-codec/src/errors.js +0 -90
  129. package/dist/lib/taquito-michel-codec/src/formatters.js +0 -58
  130. package/dist/lib/taquito-michel-codec/src/global-constants.js +0 -12
  131. package/dist/lib/taquito-michel-codec/src/macros.js +0 -551
  132. package/dist/lib/taquito-michel-codec/src/micheline-emitter.js +0 -128
  133. package/dist/lib/taquito-michel-codec/src/micheline-parser.js +0 -402
  134. package/dist/lib/taquito-michel-codec/src/micheline.js +0 -5
  135. package/dist/lib/taquito-michel-codec/src/michelson-contract.js +0 -93
  136. package/dist/lib/taquito-michel-codec/src/michelson-typecheck.js +0 -1756
  137. package/dist/lib/taquito-michel-codec/src/michelson-types.js +0 -83
  138. package/dist/lib/taquito-michel-codec/src/michelson-validator.js +0 -833
  139. package/dist/lib/taquito-michel-codec/src/scan.js +0 -128
  140. package/dist/lib/taquito-michel-codec/src/taquito-michel-codec.js +0 -38
  141. package/dist/lib/taquito-michel-codec/src/utils.js +0 -323
  142. package/dist/lib/taquito-michel-codec/src/version.js +0 -8
  143. package/dist/lib/taquito-michelson-encoder/src/constants.js +0 -11
  144. package/dist/lib/taquito-michelson-encoder/src/errors.js +0 -38
  145. package/dist/lib/taquito-michelson-encoder/src/michelson-map.js +0 -201
  146. package/dist/lib/taquito-michelson-encoder/src/schema/errors.js +0 -127
  147. package/dist/lib/taquito-michelson-encoder/src/schema/event-schema.js +0 -52
  148. package/dist/lib/taquito-michelson-encoder/src/schema/parameter.js +0 -113
  149. package/dist/lib/taquito-michelson-encoder/src/schema/storage.js +0 -260
  150. package/dist/lib/taquito-michelson-encoder/src/schema/types.js +0 -2
  151. package/dist/lib/taquito-michelson-encoder/src/schema/view-schema.js +0 -90
  152. package/dist/lib/taquito-michelson-encoder/src/taquito-michelson-encoder.js +0 -36
  153. package/dist/lib/taquito-michelson-encoder/src/tokens/bigmap.js +0 -130
  154. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-fr.js +0 -86
  155. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g1.js +0 -76
  156. package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g2.js +0 -76
  157. package/dist/lib/taquito-michelson-encoder/src/tokens/chain-id.js +0 -78
  158. package/dist/lib/taquito-michelson-encoder/src/tokens/chest-key.js +0 -74
  159. package/dist/lib/taquito-michelson-encoder/src/tokens/chest.js +0 -74
  160. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/address.js +0 -116
  161. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bool.js +0 -59
  162. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bytes.js +0 -90
  163. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/int.js +0 -90
  164. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/key_hash.js +0 -90
  165. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/mutez.js +0 -90
  166. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/nat.js +0 -93
  167. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/string.js +0 -48
  168. package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/timestamp.js +0 -66
  169. package/dist/lib/taquito-michelson-encoder/src/tokens/constant.js +0 -80
  170. package/dist/lib/taquito-michelson-encoder/src/tokens/contract.js +0 -86
  171. package/dist/lib/taquito-michelson-encoder/src/tokens/createToken.js +0 -35
  172. package/dist/lib/taquito-michelson-encoder/src/tokens/key.js +0 -97
  173. package/dist/lib/taquito-michelson-encoder/src/tokens/lambda.js +0 -55
  174. package/dist/lib/taquito-michelson-encoder/src/tokens/list.js +0 -85
  175. package/dist/lib/taquito-michelson-encoder/src/tokens/map.js +0 -112
  176. package/dist/lib/taquito-michelson-encoder/src/tokens/never.js +0 -61
  177. package/dist/lib/taquito-michelson-encoder/src/tokens/operation.js +0 -39
  178. package/dist/lib/taquito-michelson-encoder/src/tokens/option.js +0 -88
  179. package/dist/lib/taquito-michelson-encoder/src/tokens/or.js +0 -282
  180. package/dist/lib/taquito-michelson-encoder/src/tokens/pair.js +0 -233
  181. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-state.js +0 -84
  182. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.js +0 -74
  183. package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction.js +0 -74
  184. package/dist/lib/taquito-michelson-encoder/src/tokens/set.js +0 -82
  185. package/dist/lib/taquito-michelson-encoder/src/tokens/signature.js +0 -82
  186. package/dist/lib/taquito-michelson-encoder/src/tokens/ticket-deprecated.js +0 -92
  187. package/dist/lib/taquito-michelson-encoder/src/tokens/ticket.js +0 -92
  188. package/dist/lib/taquito-michelson-encoder/src/tokens/token.js +0 -100
  189. package/dist/lib/taquito-michelson-encoder/src/tokens/tokens.js +0 -75
  190. package/dist/lib/taquito-michelson-encoder/src/tokens/unit.js +0 -52
  191. package/dist/lib/taquito-michelson-encoder/src/version.js +0 -8
  192. package/dist/lib/taquito-rpc/src/opkind.js +0 -49
  193. package/dist/lib/taquito-rpc/src/rpc-client-interface.js +0 -60
  194. package/dist/lib/taquito-rpc/src/rpc-client-modules/rpc-cache.js +0 -1118
  195. package/dist/lib/taquito-rpc/src/taquito-rpc.js +0 -990
  196. package/dist/lib/taquito-rpc/src/types.js +0 -114
  197. package/dist/lib/taquito-rpc/src/utils/utils.js +0 -65
  198. package/dist/lib/taquito-rpc/src/version.js +0 -8
  199. package/dist/lib/taquito-signer/src/bls-key.js +0 -104
  200. package/dist/lib/taquito-signer/src/derivation-tools/ecdsa.js +0 -156
  201. package/dist/lib/taquito-signer/src/derivation-tools/ed25519.js +0 -82
  202. package/dist/lib/taquito-signer/src/derivation-tools/index.js +0 -79
  203. package/dist/lib/taquito-signer/src/derivation-tools/types.js +0 -4
  204. package/dist/lib/taquito-signer/src/derivation-tools/utils.js +0 -16
  205. package/dist/lib/taquito-signer/src/ec-key.js +0 -196
  206. package/dist/lib/taquito-signer/src/ed-key.js +0 -130
  207. package/dist/lib/taquito-signer/src/errors.js +0 -77
  208. package/dist/lib/taquito-signer/src/helpers.js +0 -44
  209. package/dist/lib/taquito-signer/src/in-memory-signer.js +0 -240
  210. package/dist/lib/taquito-signer/src/key-interface.js +0 -6
  211. package/dist/lib/taquito-signer/src/taquito-signer.js +0 -28
  212. package/dist/lib/taquito-signer/src/version.js +0 -8
  213. package/dist/lib/taquito-utils/src/constants.js +0 -203
  214. package/dist/lib/taquito-utils/src/encoding.js +0 -606
  215. package/dist/lib/taquito-utils/src/errors.js +0 -45
  216. package/dist/lib/taquito-utils/src/format.js +0 -29
  217. package/dist/lib/taquito-utils/src/taquito-utils.js +0 -42
  218. package/dist/lib/taquito-utils/src/validators.js +0 -236
  219. package/dist/lib/taquito-utils/src/verify-signature.js +0 -136
  220. package/dist/lib/taquito-utils/src/version.js +0 -8
  221. package/dist/lib/taquito-wallet-connect/src/version.js +0 -8
  222. package/dist/types/taquito/src/batch/constants.d.ts +0 -3
  223. package/dist/types/taquito/src/batch/rpc-batch-provider.d.ts +0 -139
  224. package/dist/types/taquito/src/constants.d.ts +0 -81
  225. package/dist/types/taquito/src/context.d.ts +0 -100
  226. package/dist/types/taquito/src/contract/big-map.d.ts +0 -35
  227. package/dist/types/taquito/src/contract/compose.d.ts +0 -5
  228. package/dist/types/taquito/src/contract/constants.d.ts +0 -1
  229. package/dist/types/taquito/src/contract/contract-methods/contract-method-factory.d.ts +0 -14
  230. package/dist/types/taquito/src/contract/contract-methods/contract-method-interface.d.ts +0 -28
  231. package/dist/types/taquito/src/contract/contract-methods/contract-method-object-param.d.ts +0 -39
  232. package/dist/types/taquito/src/contract/contract-methods/contract-on-chain-view.d.ts +0 -43
  233. package/dist/types/taquito/src/contract/contract.d.ts +0 -75
  234. package/dist/types/taquito/src/contract/errors.d.ts +0 -83
  235. package/dist/types/taquito/src/contract/index.d.ts +0 -11
  236. package/dist/types/taquito/src/contract/interface.d.ts +0 -254
  237. package/dist/types/taquito/src/contract/manager-lambda.d.ts +0 -73
  238. package/dist/types/taquito/src/contract/prepare.d.ts +0 -18
  239. package/dist/types/taquito/src/contract/rpc-contract-provider.d.ts +0 -270
  240. package/dist/types/taquito/src/contract/sapling-state-abstraction.d.ts +0 -17
  241. package/dist/types/taquito/src/contract/semantic.d.ts +0 -7
  242. package/dist/types/taquito/src/contract/view_lambda.d.ts +0 -34
  243. package/dist/types/taquito/src/errors.d.ts +0 -26
  244. package/dist/types/taquito/src/estimate/errors.d.ts +0 -8
  245. package/dist/types/taquito/src/estimate/estimate-provider-interface.d.ts +0 -153
  246. package/dist/types/taquito/src/estimate/estimate.d.ts +0 -111
  247. package/dist/types/taquito/src/estimate/index.d.ts +0 -4
  248. package/dist/types/taquito/src/estimate/rpc-estimate-provider.d.ts +0 -174
  249. package/dist/types/taquito/src/extension/extension.d.ts +0 -4
  250. package/dist/types/taquito/src/forger/composite-forger.d.ts +0 -6
  251. package/dist/types/taquito/src/forger/errors.d.ts +0 -16
  252. package/dist/types/taquito/src/forger/rpc-forger.d.ts +0 -7
  253. package/dist/types/taquito/src/forger/taquito-local-forger.d.ts +0 -8
  254. package/dist/types/taquito/src/global-constants/default-global-constants-provider.d.ts +0 -18
  255. package/dist/types/taquito/src/global-constants/errors.d.ts +0 -16
  256. package/dist/types/taquito/src/global-constants/interface-global-constants-provider.d.ts +0 -11
  257. package/dist/types/taquito/src/global-constants/noop-global-constants-provider.d.ts +0 -5
  258. package/dist/types/taquito/src/import-key.d.ts +0 -13
  259. package/dist/types/taquito/src/injector/helper.d.ts +0 -2
  260. package/dist/types/taquito/src/injector/interface.d.ts +0 -5
  261. package/dist/types/taquito/src/injector/rpc-injector.d.ts +0 -7
  262. package/dist/types/taquito/src/operations/ballot-operation.d.ts +0 -18
  263. package/dist/types/taquito/src/operations/batch-operation.d.ts +0 -19
  264. package/dist/types/taquito/src/operations/delegate-operation.d.ts +0 -24
  265. package/dist/types/taquito/src/operations/drain-delegate-operation.d.ts +0 -17
  266. package/dist/types/taquito/src/operations/errors.d.ts +0 -50
  267. package/dist/types/taquito/src/operations/failing-noop-operation.d.ts +0 -17
  268. package/dist/types/taquito/src/operations/increase-paid-storage-operation.d.ts +0 -23
  269. package/dist/types/taquito/src/operations/index.d.ts +0 -18
  270. package/dist/types/taquito/src/operations/operations.d.ts +0 -35
  271. package/dist/types/taquito/src/operations/origination-operation.d.ts +0 -35
  272. package/dist/types/taquito/src/operations/proposals-operation.d.ts +0 -17
  273. package/dist/types/taquito/src/operations/register-global-constant-operation.d.ts +0 -25
  274. package/dist/types/taquito/src/operations/reveal-operation.d.ts +0 -25
  275. package/dist/types/taquito/src/operations/smart-rollup-add-messages-operation.d.ts +0 -20
  276. package/dist/types/taquito/src/operations/smart-rollup-execute-outbox-message-operation.d.ts +0 -24
  277. package/dist/types/taquito/src/operations/smart-rollup-originate-operation.d.ts +0 -23
  278. package/dist/types/taquito/src/operations/transaction-operation.d.ts +0 -28
  279. package/dist/types/taquito/src/operations/transfer-ticket-operation.d.ts +0 -22
  280. package/dist/types/taquito/src/operations/types.d.ts +0 -823
  281. package/dist/types/taquito/src/operations/update-companion-key-operation.d.ts +0 -23
  282. package/dist/types/taquito/src/operations/update-consensus-key-operation.d.ts +0 -23
  283. package/dist/types/taquito/src/packer/interface.d.ts +0 -4
  284. package/dist/types/taquito/src/packer/michel-codec-packer.d.ts +0 -5
  285. package/dist/types/taquito/src/packer/rpc-packer.d.ts +0 -8
  286. package/dist/types/taquito/src/parser/interface.d.ts +0 -4
  287. package/dist/types/taquito/src/parser/michel-codec-parser.d.ts +0 -16
  288. package/dist/types/taquito/src/parser/noop-parser.d.ts +0 -5
  289. package/dist/types/taquito/src/prepare/index.d.ts +0 -2
  290. package/dist/types/taquito/src/prepare/interface.d.ts +0 -152
  291. package/dist/types/taquito/src/prepare/prepare-provider.d.ts +0 -187
  292. package/dist/types/taquito/src/provider.d.ts +0 -50
  293. package/dist/types/taquito/src/read-provider/interface.d.ts +0 -132
  294. package/dist/types/taquito/src/read-provider/rpc-read-adapter.d.ts +0 -130
  295. package/dist/types/taquito/src/signer/errors.d.ts +0 -8
  296. package/dist/types/taquito/src/signer/noop.d.ts +0 -11
  297. package/dist/types/taquito/src/subscribe/create-observable-from-subscription.d.ts +0 -4
  298. package/dist/types/taquito/src/subscribe/errors.d.ts +0 -18
  299. package/dist/types/taquito/src/subscribe/filters.d.ts +0 -6
  300. package/dist/types/taquito/src/subscribe/interface.d.ts +0 -48
  301. package/dist/types/taquito/src/subscribe/observable-subscription.d.ts +0 -21
  302. package/dist/types/taquito/src/subscribe/polling-subcribe-provider.d.ts +0 -23
  303. package/dist/types/taquito/src/taquito.d.ts +0 -248
  304. package/dist/types/taquito/src/tz/interface.d.ts +0 -20
  305. package/dist/types/taquito/src/tz/rpc-tz-provider.d.ts +0 -13
  306. package/dist/types/taquito/src/version.d.ts +0 -4
  307. package/dist/types/taquito/src/wallet/batch-operation.d.ts +0 -13
  308. package/dist/types/taquito/src/wallet/delegation-operation.d.ts +0 -12
  309. package/dist/types/taquito/src/wallet/errors.d.ts +0 -24
  310. package/dist/types/taquito/src/wallet/increase-paid-storage-operation.d.ts +0 -12
  311. package/dist/types/taquito/src/wallet/index.d.ts +0 -9
  312. package/dist/types/taquito/src/wallet/interface.d.ts +0 -66
  313. package/dist/types/taquito/src/wallet/legacy.d.ts +0 -21
  314. package/dist/types/taquito/src/wallet/operation-factory.d.ts +0 -32
  315. package/dist/types/taquito/src/wallet/operation.d.ts +0 -55
  316. package/dist/types/taquito/src/wallet/origination-operation.d.ts +0 -14
  317. package/dist/types/taquito/src/wallet/receipt.d.ts +0 -16
  318. package/dist/types/taquito/src/wallet/register-global-constant-operation.d.ts +0 -13
  319. package/dist/types/taquito/src/wallet/transaction-operation.d.ts +0 -12
  320. package/dist/types/taquito/src/wallet/transfer-ticket-operation.d.ts +0 -12
  321. package/dist/types/taquito/src/wallet/wallet.d.ts +0 -196
  322. package/dist/types/taquito-core/src/errors.d.ts +0 -213
  323. package/dist/types/taquito-core/src/signer-interfaces.d.ts +0 -38
  324. package/dist/types/taquito-core/src/taquito-core.d.ts +0 -6
  325. package/dist/types/taquito-http-utils/src/errors.d.ts +0 -63
  326. package/dist/types/taquito-http-utils/src/status_code.d.ts +0 -318
  327. package/dist/types/taquito-http-utils/src/taquito-http-utils.d.ts +0 -58
  328. package/dist/types/taquito-http-utils/src/transport-errors.d.ts +0 -28
  329. package/dist/types/taquito-local-forging/src/codec.d.ts +0 -79
  330. package/dist/types/taquito-local-forging/src/constants.d.ts +0 -75
  331. package/dist/types/taquito-local-forging/src/decoder.d.ts +0 -5
  332. package/dist/types/taquito-local-forging/src/encoder.d.ts +0 -4
  333. package/dist/types/taquito-local-forging/src/errors.d.ts +0 -109
  334. package/dist/types/taquito-local-forging/src/interface.d.ts +0 -9
  335. package/dist/types/taquito-local-forging/src/michelson/codec.d.ts +0 -49
  336. package/dist/types/taquito-local-forging/src/protocols.d.ts +0 -27
  337. package/dist/types/taquito-local-forging/src/schema/operation.d.ts +0 -198
  338. package/dist/types/taquito-local-forging/src/taquito-local-forging.d.ts +0 -27
  339. package/dist/types/taquito-local-forging/src/uint8array-consumer.d.ts +0 -10
  340. package/dist/types/taquito-local-forging/src/utils.d.ts +0 -3
  341. package/dist/types/taquito-local-forging/src/validator.d.ts +0 -13
  342. package/dist/types/taquito-local-forging/src/version.d.ts +0 -4
  343. package/dist/types/taquito-michel-codec/src/base58.d.ts +0 -13
  344. package/dist/types/taquito-michel-codec/src/binary.d.ts +0 -127
  345. package/dist/types/taquito-michel-codec/src/errors.d.ts +0 -57
  346. package/dist/types/taquito-michel-codec/src/formatters.d.ts +0 -6
  347. package/dist/types/taquito-michel-codec/src/global-constants.d.ts +0 -3
  348. package/dist/types/taquito-michel-codec/src/macros.d.ts +0 -13
  349. package/dist/types/taquito-michel-codec/src/micheline-emitter.d.ts +0 -17
  350. package/dist/types/taquito-michel-codec/src/micheline-parser.d.ts +0 -130
  351. package/dist/types/taquito-michel-codec/src/micheline.d.ts +0 -44
  352. package/dist/types/taquito-michel-codec/src/michelson-contract.d.ts +0 -24
  353. package/dist/types/taquito-michel-codec/src/michelson-typecheck.d.ts +0 -38
  354. package/dist/types/taquito-michel-codec/src/michelson-types.d.ts +0 -147
  355. package/dist/types/taquito-michel-codec/src/michelson-validator.d.ts +0 -66
  356. package/dist/types/taquito-michel-codec/src/scan.d.ts +0 -26
  357. package/dist/types/taquito-michel-codec/src/taquito-michel-codec.d.ts +0 -16
  358. package/dist/types/taquito-michel-codec/src/utils.d.ts +0 -76
  359. package/dist/types/taquito-michel-codec/src/version.d.ts +0 -4
  360. package/dist/types/taquito-michelson-encoder/src/constants.d.ts +0 -8
  361. package/dist/types/taquito-michelson-encoder/src/errors.d.ts +0 -17
  362. package/dist/types/taquito-michelson-encoder/src/michelson-map.d.ts +0 -82
  363. package/dist/types/taquito-michelson-encoder/src/schema/errors.d.ts +0 -83
  364. package/dist/types/taquito-michelson-encoder/src/schema/event-schema.d.ts +0 -12
  365. package/dist/types/taquito-michelson-encoder/src/schema/parameter.d.ts +0 -54
  366. package/dist/types/taquito-michelson-encoder/src/schema/storage.d.ts +0 -97
  367. package/dist/types/taquito-michelson-encoder/src/schema/types.d.ts +0 -105
  368. package/dist/types/taquito-michelson-encoder/src/schema/view-schema.d.ts +0 -53
  369. package/dist/types/taquito-michelson-encoder/src/taquito-michelson-encoder.d.ts +0 -16
  370. package/dist/types/taquito-michelson-encoder/src/tokens/bigmap.d.ts +0 -51
  371. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-fr.d.ts +0 -51
  372. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g1.d.ts +0 -47
  373. package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g2.d.ts +0 -47
  374. package/dist/types/taquito-michelson-encoder/src/tokens/chain-id.d.ts +0 -51
  375. package/dist/types/taquito-michelson-encoder/src/tokens/chest-key.d.ts +0 -47
  376. package/dist/types/taquito-michelson-encoder/src/tokens/chest.d.ts +0 -47
  377. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/address.d.ts +0 -61
  378. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bool.d.ts +0 -32
  379. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bytes.d.ts +0 -52
  380. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/int.d.ts +0 -56
  381. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/key_hash.d.ts +0 -55
  382. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/mutez.d.ts +0 -53
  383. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/nat.d.ts +0 -55
  384. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/string.d.ts +0 -31
  385. package/dist/types/taquito-michelson-encoder/src/tokens/comparable/timestamp.d.ts +0 -34
  386. package/dist/types/taquito-michelson-encoder/src/tokens/constant.d.ts +0 -51
  387. package/dist/types/taquito-michelson-encoder/src/tokens/contract.d.ts +0 -48
  388. package/dist/types/taquito-michelson-encoder/src/tokens/createToken.d.ts +0 -18
  389. package/dist/types/taquito-michelson-encoder/src/tokens/key.d.ts +0 -55
  390. package/dist/types/taquito-michelson-encoder/src/tokens/lambda.d.ts +0 -24
  391. package/dist/types/taquito-michelson-encoder/src/tokens/list.d.ts +0 -46
  392. package/dist/types/taquito-michelson-encoder/src/tokens/map.d.ts +0 -47
  393. package/dist/types/taquito-michelson-encoder/src/tokens/never.d.ts +0 -41
  394. package/dist/types/taquito-michelson-encoder/src/tokens/operation.d.ts +0 -24
  395. package/dist/types/taquito-michelson-encoder/src/tokens/option.d.ts +0 -37
  396. package/dist/types/taquito-michelson-encoder/src/tokens/or.d.ts +0 -53
  397. package/dist/types/taquito-michelson-encoder/src/tokens/pair.d.ts +0 -50
  398. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-state.d.ts +0 -44
  399. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.d.ts +0 -40
  400. package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction.d.ts +0 -40
  401. package/dist/types/taquito-michelson-encoder/src/tokens/set.d.ts +0 -43
  402. package/dist/types/taquito-michelson-encoder/src/tokens/signature.d.ts +0 -53
  403. package/dist/types/taquito-michelson-encoder/src/tokens/ticket-deprecated.d.ts +0 -38
  404. package/dist/types/taquito-michelson-encoder/src/tokens/ticket.d.ts +0 -38
  405. package/dist/types/taquito-michelson-encoder/src/tokens/token.d.ts +0 -68
  406. package/dist/types/taquito-michelson-encoder/src/tokens/tokens.d.ts +0 -36
  407. package/dist/types/taquito-michelson-encoder/src/tokens/unit.d.ts +0 -34
  408. package/dist/types/taquito-michelson-encoder/src/version.d.ts +0 -4
  409. package/dist/types/taquito-rpc/src/opkind.d.ts +0 -45
  410. package/dist/types/taquito-rpc/src/rpc-client-interface.d.ts +0 -126
  411. package/dist/types/taquito-rpc/src/rpc-client-modules/rpc-cache.d.ts +0 -473
  412. package/dist/types/taquito-rpc/src/taquito-rpc.d.ts +0 -483
  413. package/dist/types/taquito-rpc/src/types.d.ts +0 -2362
  414. package/dist/types/taquito-rpc/src/utils/utils.d.ts +0 -14
  415. package/dist/types/taquito-rpc/src/version.d.ts +0 -4
  416. package/dist/types/taquito-signer/src/bls-key.d.ts +0 -21
  417. package/dist/types/taquito-signer/src/derivation-tools/ecdsa.d.ts +0 -49
  418. package/dist/types/taquito-signer/src/derivation-tools/ed25519.d.ts +0 -33
  419. package/dist/types/taquito-signer/src/derivation-tools/index.d.ts +0 -12
  420. package/dist/types/taquito-signer/src/derivation-tools/types.d.ts +0 -10
  421. package/dist/types/taquito-signer/src/derivation-tools/utils.d.ts +0 -1
  422. package/dist/types/taquito-signer/src/ec-key.d.ts +0 -42
  423. package/dist/types/taquito-signer/src/ed-key.d.ts +0 -39
  424. package/dist/types/taquito-signer/src/errors.d.ts +0 -51
  425. package/dist/types/taquito-signer/src/helpers.d.ts +0 -10
  426. package/dist/types/taquito-signer/src/in-memory-signer.d.ts +0 -56
  427. package/dist/types/taquito-signer/src/key-interface.d.ts +0 -37
  428. package/dist/types/taquito-signer/src/taquito-signer.d.ts +0 -10
  429. package/dist/types/taquito-signer/src/version.d.ts +0 -4
  430. package/dist/types/taquito-utils/src/constants.d.ts +0 -78
  431. package/dist/types/taquito-utils/src/encoding.d.ts +0 -184
  432. package/dist/types/taquito-utils/src/errors.d.ts +0 -20
  433. package/dist/types/taquito-utils/src/format.d.ts +0 -4
  434. package/dist/types/taquito-utils/src/taquito-utils.d.ts +0 -11
  435. package/dist/types/taquito-utils/src/validators.d.ts +0 -167
  436. package/dist/types/taquito-utils/src/verify-signature.d.ts +0 -22
  437. package/dist/types/taquito-utils/src/version.d.ts +0 -4
  438. package/dist/types/taquito-wallet-connect/src/version.d.ts +0 -4
  439. /package/dist/lib/{taquito-wallet-connect/src/errors.js → errors.js} +0 -0
  440. /package/dist/lib/{taquito-wallet-connect/src/types.js → types.js} +0 -0
  441. /package/dist/types/{taquito-wallet-connect/src/errors.d.ts → errors.d.ts} +0 -0
  442. /package/dist/types/{taquito-wallet-connect/src/taquito-wallet-connect.d.ts → taquito-wallet-connect.d.ts} +0 -0
  443. /package/dist/types/{taquito-wallet-connect/src/types.d.ts → types.d.ts} +0 -0
  444. /package/dist/types/{taquito-http-utils/src/version.d.ts → version.d.ts} +0 -0
@@ -1,82 +0,0 @@
1
- import { MichelsonV1Expression } from '@taquito/rpc';
2
- import { TaquitoError } from '@taquito/core';
3
- /**
4
- * @category Error
5
- * Error that indicates an invalid map type being passed or used
6
- */
7
- export declare class InvalidMapTypeError extends TaquitoError {
8
- readonly mapType: any;
9
- readonly reason: string;
10
- constructor(mapType: any, reason: string);
11
- }
12
- declare const michelsonMapTypeSymbol: unique symbol;
13
- export type MichelsonMapKey = Array<any> | object | string | boolean | number | null;
14
- /**
15
- * @category Error
16
- * Error that indicates a map type mismatch, where an attempt to set a key or value in a Map doesn't match the defined type of the Map
17
- */
18
- export declare class MapTypecheckError extends TaquitoError {
19
- readonly value: any;
20
- readonly type: any;
21
- readonly reason: any;
22
- name: string;
23
- constructor(value: any, type: any, objectType: 'key' | 'value', reason: any);
24
- }
25
- /**
26
- * Michelson Map is an abstraction over the michelson native map. It supports complex Pair as key
27
- */
28
- export declare class MichelsonMap<K extends MichelsonMapKey, T> {
29
- private valueMap;
30
- private keyMap;
31
- [michelsonMapTypeSymbol]: boolean;
32
- static isMichelsonMap(obj: any): obj is MichelsonMap<any, any>;
33
- private keySchema?;
34
- private valueSchema?;
35
- /**
36
- * @param mapType If specified key and value will be type-checked before being added to the map
37
- *
38
- * @example new MichelsonMap({ prim: "map", args: [{prim: "string"}, {prim: "int"}]})
39
- */
40
- constructor(mapType?: MichelsonV1Expression);
41
- setType(mapType: MichelsonV1Expression): void;
42
- removeType(): void;
43
- static fromLiteral(obj: {
44
- [key: string]: any;
45
- }, mapType?: MichelsonV1Expression): MichelsonMap<MichelsonMapKey, unknown>;
46
- private typecheckKey;
47
- private typecheckValue;
48
- /**
49
- * @throws {@link MapTypecheckError} when the argument passed does not match the expected schema for value
50
- */
51
- private assertTypecheckValue;
52
- /**
53
- * @throws {@link MapTypecheckError} when the argument passed does not match the expected schema for key
54
- */
55
- private assertTypecheckKey;
56
- private serializeDeterministically;
57
- keys(): Generator<K>;
58
- values(): Generator<T>;
59
- entries(): Generator<[K, T]>;
60
- get(key: K): T | undefined;
61
- /**
62
- *
63
- * Set a key and a value in the MichelsonMap. If the key already exists, override the current value.
64
- *
65
- * @example map.set("myKey", "myValue") // Using a string as key
66
- *
67
- * @example map.set({0: "test", 1: "test1"}, "myValue") // Using a pair as key
68
- *
69
- * @remarks The same key can be represented in multiple ways, depending on the type of the key. This duplicate key situation will cause a runtime error (duplicate key) when sending the map data to the Tezos RPC node.
70
- *
71
- * For example, consider a contract with a map whose key is of type boolean. If you set the following values in MichelsonMap: map.set(false, "myValue") and map.set(null, "myValue").
72
- *
73
- * You will get two unique entries in the MichelsonMap. These values will both be evaluated as falsy by the MichelsonEncoder and ultimately rejected by the Tezos RPC.
74
- */
75
- set(key: K, value: T): void;
76
- delete(key: K): void;
77
- has(key: K): boolean;
78
- clear(): void;
79
- get size(): number;
80
- forEach(cb: (value: T, key: K, map: MichelsonMap<K, T>) => void): void;
81
- }
82
- export {};
@@ -1,83 +0,0 @@
1
- import { InvalidViewParameterError, TaquitoError } from '@taquito/core';
2
- /**
3
- * @category Error
4
- * Error that indicates a failure when encoding (transforming JS parameter into JSON Michelson) the parameter of the view
5
- */
6
- export declare class ParameterEncodingError extends InvalidViewParameterError {
7
- readonly viewName: string;
8
- readonly sigs: any;
9
- readonly args: any;
10
- readonly cause?: any | undefined;
11
- constructor(viewName: string, sigs: any, args: any, cause?: any | undefined);
12
- }
13
- /**
14
- * @category Error
15
- * Error that indicates an invalid on-chain view found on the script
16
- */
17
- export declare class InvalidScriptError extends TaquitoError {
18
- readonly script: any;
19
- readonly reason?: string | undefined;
20
- name: string;
21
- constructor(script: any, reason?: string | undefined);
22
- }
23
- /**
24
- * @category Error
25
- * Error that indicates an invalid RPC response being passed or used
26
- */
27
- export declare class InvalidRpcResponseError extends TaquitoError {
28
- readonly script: any;
29
- readonly reason?: string | undefined;
30
- name: string;
31
- constructor(script: any, reason?: string | undefined);
32
- }
33
- /**
34
- * @category Error
35
- * Error that indicates an invalid big map schema being passed or used
36
- */
37
- export declare class InvalidBigMapSchemaError extends TaquitoError {
38
- message: string;
39
- name: string;
40
- constructor(message: string);
41
- }
42
- /**
43
- * @category Error
44
- * Error that indicates an invalid big map diff being passed or used
45
- */
46
- export declare class InvalidBigMapDiffError extends TaquitoError {
47
- message: string;
48
- readonly value: any;
49
- name: string;
50
- constructor(message: string, value: any);
51
- }
52
- /**
53
- * @category Error
54
- * Error that indicates a failure when trying to encode big maps
55
- */
56
- export declare class BigMapEncodingError extends TaquitoError {
57
- readonly details: any;
58
- readonly schema: any;
59
- readonly value: any;
60
- name: string;
61
- constructor(obj: 'key' | 'value', details: any, schema: any, value: any);
62
- }
63
- /**
64
- * @category Error
65
- * Error that indicates a failure when trying to encode storage
66
- */
67
- export declare class StorageEncodingError extends TaquitoError {
68
- details: any;
69
- readonly schema: any;
70
- readonly value: any;
71
- readonly semantics?: any | undefined;
72
- name: string;
73
- constructor(obj: string, details: any, schema: any, value: any, semantics?: any | undefined);
74
- }
75
- /**
76
- * @category Error
77
- * General error that indicates a function not being passed a necessary argument
78
- */
79
- export declare class MissingArgumentError extends TaquitoError {
80
- message: string;
81
- name: string;
82
- constructor(message: string);
83
- }
@@ -1,12 +0,0 @@
1
- import { MichelsonV1Expression, MichelsonV1ExpressionExtended, ScriptResponse } from '@taquito/rpc';
2
- export declare class EventSchema {
3
- readonly tag?: string | undefined;
4
- readonly type?: MichelsonV1ExpressionExtended | undefined;
5
- constructor(tag?: string | undefined, type?: MichelsonV1ExpressionExtended | undefined);
6
- static fromMichelineValue(val: MichelsonV1ExpressionExtended): EventSchema;
7
- static fromRPCResponse(val: {
8
- script: ScriptResponse;
9
- }): EventSchema[];
10
- static removeDuplicates(events: EventSchema[]): EventSchema[];
11
- static extractEventsRecursively(code: MichelsonV1Expression): EventSchema[];
12
- }
@@ -1,54 +0,0 @@
1
- import { Semantic, SemanticEncoding } from '../tokens/token';
2
- import { ScriptResponse, MichelsonV1Expression } from '@taquito/rpc';
3
- import { TokenSchema } from './types';
4
- /**
5
- * @remarks Our current smart contract abstraction feature is currently in preview. It's API is not final, and it may not cover every use case (yet). We will greatly appreciate any feedback on this feature.
6
- */
7
- export declare class ParameterSchema {
8
- private root;
9
- /**
10
- *
11
- * Create an instance of ParameterSchema from a contract script
12
- *
13
- * @param val contract script obtained from the RPC
14
- * @returns ParameterSchema
15
- * @throws {InvalidRpcResponseError} If the RPC response is invalid
16
- */
17
- static fromRPCResponse(val: {
18
- script: ScriptResponse;
19
- }): ParameterSchema;
20
- /**
21
- * Check if the Contract parameter is multiple entry point or not
22
- */
23
- get isMultipleEntryPoint(): boolean;
24
- /**
25
- * Check if the Contract parameter has an annotation or not
26
- */
27
- get hasAnnotation(): boolean;
28
- /**
29
- * Return the schema of the parameter of a specific entry point
30
- * @throws InvalidTokenError
31
- */
32
- constructor(val: MichelsonV1Expression);
33
- /**
34
- * Returns the javascript object equivalent of the Micheline value provided
35
- */
36
- Execute(val: any, semantics?: Semantic): any;
37
- /**
38
- * Returns a micheline formatted object for the values provided
39
- * @throws TokenValidationError
40
- * @throws {@link ParameterEncodingError}
41
- */
42
- Encode(...args: any[]): any;
43
- /**
44
- * Returns a micheline formatted object for the javascript object provided
45
- * @throws TokenValidationError
46
- * @throws {@link ParameterEncodingError}
47
- */
48
- EncodeObject(value?: any, semantics?: SemanticEncoding): any;
49
- /**
50
- * Produce a schema grouping together all the entry points of a contract.
51
- */
52
- generateSchema(): TokenSchema;
53
- ExtractSignatures(): TokenSchema[][];
54
- }
@@ -1,97 +0,0 @@
1
- import { MichelsonV1Expression, ScriptResponse } from '@taquito/rpc';
2
- import { BigMapKeyType, Semantic, SemanticEncoding, Token } from '../tokens/token';
3
- import { TokenSchema } from './types';
4
- declare const schemaTypeSymbol: unique symbol;
5
- export declare function deepEqual(a: MichelsonV1Expression | undefined, b: MichelsonV1Expression | undefined): boolean;
6
- /**
7
- * @remarks Our current smart contract abstraction feature is currently in preview. Its API is not final, and it may not cover every use case (yet). We will greatly appreciate any feedback on this feature.
8
- */
9
- export declare class Schema {
10
- readonly val: MichelsonV1Expression;
11
- private root;
12
- [schemaTypeSymbol]: boolean;
13
- static isSchema(obj: Schema): boolean;
14
- private bigMap?;
15
- /**
16
- * @throws {@link InvalidRpcResponseError}
17
- */
18
- static fromRPCResponse(val: {
19
- script: ScriptResponse;
20
- }): Schema;
21
- private isExpressionExtended;
22
- constructor(val: MichelsonV1Expression);
23
- private removeTopLevelAnnotation;
24
- Execute(val: any, semantics?: Semantic): any;
25
- /**
26
- * Validates that a value matches the schema type.
27
- * Performs type checking with special handling for BigMap, Ticket, and nested Map tokens.
28
- *
29
- * @param val - The value to validate against the schema
30
- * @returns Returns true if validation passes, false if validation fails
31
- */
32
- Typecheck(val: any): boolean;
33
- /**
34
- * @throws {@link InvalidBigMapSchemaError}
35
- * @throws {@link InvalidBigMapDiffError}
36
- */
37
- ExecuteOnBigMapDiff(diff: any[], semantics?: Semantic): any;
38
- /**
39
- * @throws {@link InvalidBigMapSchemaError}
40
- */
41
- ExecuteOnBigMapValue(key: any, semantics?: Semantic): any;
42
- /**
43
- * @throws {@link InvalidBigMapSchemaError}
44
- * @throws {@link BigMapEncodingError}
45
- */
46
- EncodeBigMapKey(key: BigMapKeyType): {
47
- key: {
48
- [key: string]: string | object[];
49
- };
50
- type: {
51
- prim: string;
52
- args?: object[];
53
- };
54
- };
55
- /**
56
- * @throws TokenValidationError
57
- * @throws {@link StorageEncodingError}
58
- */
59
- Encode(value?: any, semantics?: SemanticEncoding): any;
60
- /**
61
- * Produce a representation of the storage schema.
62
- * Note: Provide guidance on how to write the storage object for the origination operation with Taquito.
63
- */
64
- generateSchema(): TokenSchema;
65
- /**
66
- * Look up in top-level pairs of the storage to find a value matching the specified type
67
- *
68
- * @returns The first value found that match the type or `undefined` if no value is found
69
- *
70
- * @param storage storage to parse to find the value
71
- * @param valueType type of value to look for
72
- *
73
- */
74
- FindFirstInTopLevelPair<T extends MichelsonV1Expression>(storage: any, valueType: any): T | undefined;
75
- /**
76
- * @throws {@link MissingArgumentError}
77
- */
78
- private findValue;
79
- /**
80
- * Look up the schema to find any occurrence of a particular token.
81
- *
82
- * @returns an array of tokens of the specified kind or an empty array if no token was found
83
- *
84
- * @param tokenToFind string representing the prim property of the token to find
85
- *
86
- * @example
87
- * ```
88
- * Useful to find all global constants in a script, an array of GlobalConstantToken is returned:
89
- *
90
- * const schema = new Schema(script);
91
- * const allGlobalConstantTokens = schema.findToken('constant');
92
- * ```
93
- *
94
- */
95
- findToken(tokenToFind: string): Array<Token>;
96
- }
97
- export {};
@@ -1,105 +0,0 @@
1
- export type Falsy<T> = T | undefined | false;
2
- export type BaseTokenSchema = {
3
- __michelsonType: 'address' | 'bool' | 'bytes' | 'int' | 'key' | 'key_hash' | 'mutez' | 'nat' | 'string' | 'timestamp' | 'bls12_381_fr' | 'bls12_381_g1' | 'bls12_381_g2' | 'chain_id' | 'never' | 'operation' | 'chest' | 'chest_key' | 'signature' | 'unit';
4
- schema: string;
5
- };
6
- export type OrTokenSchema = {
7
- __michelsonType: 'or';
8
- schema: Record<string, TokenSchema>;
9
- };
10
- export type PairTokenSchema = {
11
- __michelsonType: 'pair';
12
- schema: Record<string, TokenSchema>;
13
- };
14
- export type ListTokenSchema = {
15
- __michelsonType: 'list';
16
- schema: TokenSchema;
17
- };
18
- export type SetTokenSchema = {
19
- __michelsonType: 'set';
20
- schema: TokenSchema;
21
- };
22
- export type OptionTokenSchema = {
23
- __michelsonType: 'option';
24
- schema: TokenSchema;
25
- };
26
- export type MapTokenSchema = {
27
- __michelsonType: 'map';
28
- schema: {
29
- key: TokenSchema;
30
- value: TokenSchema;
31
- };
32
- };
33
- export type BigMapTokenSchema = {
34
- __michelsonType: 'big_map';
35
- schema: {
36
- key: TokenSchema;
37
- value: TokenSchema;
38
- };
39
- };
40
- export type ConstantTokenSchema = {
41
- __michelsonType: 'constant';
42
- schema: {
43
- hash: string;
44
- };
45
- };
46
- export type ContractTokenSchema = {
47
- __michelsonType: 'contract';
48
- schema: {
49
- parameter: TokenSchema;
50
- };
51
- };
52
- export type LambdaTokenSchema = {
53
- __michelsonType: 'lambda';
54
- schema: {
55
- parameters: TokenSchema;
56
- returns: TokenSchema;
57
- };
58
- };
59
- export type SaplingStateTokenSchema = {
60
- __michelsonType: 'sapling_state';
61
- schema: {
62
- memoSize: string;
63
- };
64
- };
65
- export type SaplingTransactionTokenSchema = {
66
- __michelsonType: 'sapling_transaction';
67
- schema: {
68
- memoSize: string;
69
- };
70
- };
71
- export type SaplingTransactionDeprecatedTokenSchema = {
72
- __michelsonType: 'sapling_transaction_deprecated';
73
- schema: {
74
- memoSize: string;
75
- };
76
- };
77
- export type TicketTokenSchema = {
78
- __michelsonType: 'ticket';
79
- schema: {
80
- value: TokenSchema;
81
- ticketer: {
82
- __michelsonType: 'contract';
83
- schema: 'contract';
84
- };
85
- amount: {
86
- __michelsonType: 'int';
87
- schema: 'int';
88
- };
89
- };
90
- };
91
- export type TicketDeprecatedTokenSchema = {
92
- __michelsonType: 'ticket_deprecated';
93
- schema: {
94
- value: TokenSchema;
95
- ticketer: {
96
- __michelsonType: 'contract';
97
- schema: 'contract';
98
- };
99
- amount: {
100
- __michelsonType: 'int';
101
- schema: 'int';
102
- };
103
- };
104
- };
105
- export type TokenSchema = BaseTokenSchema | OrTokenSchema | PairTokenSchema | ListTokenSchema | SetTokenSchema | OptionTokenSchema | MapTokenSchema | BigMapTokenSchema | ConstantTokenSchema | ContractTokenSchema | LambdaTokenSchema | SaplingStateTokenSchema | SaplingTransactionTokenSchema | SaplingTransactionDeprecatedTokenSchema | TicketTokenSchema | TicketDeprecatedTokenSchema;
@@ -1,53 +0,0 @@
1
- import { MichelsonV1Expression, MichelsonV1ExpressionExtended, ScriptResponse } from '@taquito/rpc';
2
- import { Semantic } from '../tokens/token';
3
- export declare class ViewSchema {
4
- readonly viewName: string;
5
- readonly viewArgsType: MichelsonV1ExpressionExtended;
6
- readonly viewReturnType: MichelsonV1ExpressionExtended;
7
- readonly instructions: MichelsonV1ExpressionExtended[];
8
- private rootArgsType;
9
- private rootReturnType;
10
- /**
11
- *
12
- * Create an instance of ViewSchema for each view in a script
13
- *
14
- * @param val contract script obtained from the RPC
15
- * @returns array of ViewSchema or empty array if there is no view in the contract
16
- * @throws {@link InvalidScriptError}
17
- */
18
- static fromRPCResponse(val: {
19
- script: ScriptResponse;
20
- }): ViewSchema[];
21
- /**
22
- * @throws {@link InvalidScriptError}
23
- */
24
- constructor(viewArgs: MichelsonV1Expression[] | undefined);
25
- /**
26
- *
27
- * Transform the view parameter into Michelson
28
- *
29
- * @param args parameter of the view in js format
30
- * @returns parameter of the view in Michelson
31
- * @throws {@link ParameterEncodingError}
32
- */
33
- encodeViewArgs(args: any): any;
34
- /**
35
- *
36
- * Transform the view result from Michelson to readable data
37
- *
38
- * @param val result of the view in JSON Michelson
39
- * @param semantics optional semantics to override the default decoding behavior
40
- * @returns result of the view in a readable format
41
- */
42
- decodeViewResult(val: any, semantics?: Semantic): any;
43
- /**
44
- *
45
- * Return the signature of the view parameter
46
- */
47
- extractArgsSchema(): import("./types").TokenSchema;
48
- /**
49
- *
50
- * Return the format of the view result
51
- */
52
- extractResultSchema(): import("./types").TokenSchema;
53
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module @taquito/michelson-encoder
4
- */
5
- export * from './schema/storage';
6
- export * from './schema/parameter';
7
- export * from './schema/view-schema';
8
- export * from './schema/event-schema';
9
- export * from './schema/errors';
10
- export * from './schema/types';
11
- export { Semantic, SemanticEncoding, BigMapKeyType } from './tokens/token';
12
- export * from './errors';
13
- export { UnitValue, SaplingStateValue } from './constants';
14
- export * from './michelson-map';
15
- export { VERSION } from './version';
16
- export { FieldNumberingStrategy, Token } from './tokens/token';
@@ -1,51 +0,0 @@
1
- import { BigMapTokenSchema } from '../schema/types';
2
- import { ComparableToken, Semantic, SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
3
- /**
4
- * @category Error
5
- * Error that indicates a failure happening when parsing encoding/executing Big Map types
6
- */
7
- export declare class BigMapValidationError extends TokenValidationError {
8
- value: any;
9
- token: BigMapToken;
10
- name: string;
11
- constructor(value: any, token: BigMapToken, message: string);
12
- }
13
- export declare class BigMapToken extends Token {
14
- protected val: {
15
- prim: string;
16
- args: any[];
17
- annots?: any[];
18
- };
19
- protected idx: number;
20
- protected fac: TokenFactory;
21
- static prim: 'big_map';
22
- constructor(val: {
23
- prim: string;
24
- args: any[];
25
- annots?: any[];
26
- }, idx: number, fac: TokenFactory);
27
- get ValueSchema(): Token;
28
- get KeySchema(): ComparableToken;
29
- generateSchema(): BigMapTokenSchema;
30
- /**
31
- * @throws {@link BigMapValidationError}
32
- */
33
- private validate;
34
- private objLitToMichelsonMap;
35
- /**
36
- * @throws {@link BigMapValidationError}
37
- */
38
- Encode(args: any[]): any;
39
- /**
40
- * @throws {@link BigMapValidationError}
41
- */
42
- EncodeObject(args: any, semantic?: SemanticEncoding): any;
43
- /**
44
- * @throws {@link InvalidMapTypeError} when the argument passed to val is an array but not a valid map type
45
- * @throws {@link BigMapValidationError} when the value is invalid
46
- */
47
- Execute(val: any[] | {
48
- int: string;
49
- }, semantic?: Semantic): any;
50
- findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
51
- }
@@ -1,51 +0,0 @@
1
- import { BaseTokenSchema } from '../schema/types';
2
- import { SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
3
- /**
4
- * @category Error
5
- * Error that indicates a failure happening when parsing encoding/executing a BLS12-381 scalar field Fr
6
- */
7
- export declare class Bls12381frValidationError extends TokenValidationError {
8
- value: any;
9
- token: Bls12381frToken;
10
- name: string;
11
- constructor(value: any, token: Bls12381frToken, message: string);
12
- }
13
- export declare class Bls12381frToken extends Token {
14
- protected val: {
15
- prim: string;
16
- args: any[];
17
- annots: any[];
18
- };
19
- protected idx: number;
20
- protected fac: TokenFactory;
21
- static prim: 'bls12_381_fr';
22
- constructor(val: {
23
- prim: string;
24
- args: any[];
25
- annots: any[];
26
- }, idx: number, fac: TokenFactory);
27
- /**
28
- * @throws {@link Bls12381frValidationError}
29
- */
30
- private validate;
31
- private convertUint8ArrayToHexString;
32
- /**
33
- * @throws {@link Bls12381frValidationError}
34
- */
35
- Encode(args: any[]): {
36
- int: string;
37
- bytes?: undefined;
38
- } | {
39
- bytes: any;
40
- int?: undefined;
41
- };
42
- /**
43
- * @throws {@link Bls12381frValidationError}
44
- */
45
- EncodeObject(val: string | Uint8Array | number, semantic?: SemanticEncoding): import("@taquito/rpc").MichelsonV1ExpressionExtended | import("@taquito/rpc").MichelsonV1ExpressionBase | import("@taquito/rpc").MichelsonV1Expression[] | {
46
- bytes: string | number | Uint8Array<ArrayBufferLike>;
47
- };
48
- Execute(val: any): string;
49
- generateSchema(): BaseTokenSchema;
50
- findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
51
- }
@@ -1,47 +0,0 @@
1
- import { BaseTokenSchema } from '../schema/types';
2
- import { SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
3
- /**
4
- * @category Error
5
- * Error that indicates a failure happening when parsing encoding/executing a BLS12-381 curve G1
6
- */
7
- export declare class Bls12381g1ValidationError extends TokenValidationError {
8
- value: any;
9
- token: Bls12381g1Token;
10
- name: string;
11
- constructor(value: any, token: Bls12381g1Token, message: string);
12
- }
13
- export declare class Bls12381g1Token extends Token {
14
- protected val: {
15
- prim: string;
16
- args: any[];
17
- annots: any[];
18
- };
19
- protected idx: number;
20
- protected fac: TokenFactory;
21
- static prim: 'bls12_381_g1';
22
- constructor(val: {
23
- prim: string;
24
- args: any[];
25
- annots: any[];
26
- }, idx: number, fac: TokenFactory);
27
- /**
28
- * @throws {@link Bls12381g1ValidationError}
29
- */
30
- private validate;
31
- private convertUint8ArrayToHexString;
32
- /**
33
- * @throws {@link Bls12381g1ValidationError}
34
- */
35
- Encode(args: any[]): {
36
- bytes: any;
37
- };
38
- /**
39
- * @throws {@link Bls12381g1ValidationError}
40
- */
41
- EncodeObject(val: string | Uint8Array, semantic?: SemanticEncoding): import("@taquito/rpc").MichelsonV1ExpressionExtended | import("@taquito/rpc").MichelsonV1ExpressionBase | import("@taquito/rpc").MichelsonV1Expression[] | {
42
- bytes: string | Uint8Array<ArrayBufferLike>;
43
- };
44
- Execute(val: any): string;
45
- generateSchema(): BaseTokenSchema;
46
- findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
47
- }