@airgap/tezos 0.13.7-beta.22 → 0.13.7-beta.23

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 (998) hide show
  1. package/airgap-coinlib-tezos.min.js +35555 -22872
  2. package/index.d.ts +1 -46
  3. package/index.js +15 -100
  4. package/index.js.map +1 -1
  5. package/package.json +5 -3
  6. package/{actions → v0/actions}/GetKtAccountsAction.d.ts +0 -0
  7. package/v0/actions/GetKtAccountsAction.js +87 -0
  8. package/v0/actions/GetKtAccountsAction.js.map +1 -0
  9. package/{constants.d.ts → v0/constants.d.ts} +0 -0
  10. package/{constants.js → v0/constants.js} +0 -0
  11. package/v0/constants.js.map +1 -0
  12. package/v0/index.d.ts +46 -0
  13. package/v0/index.js +146 -0
  14. package/v0/index.js.map +1 -0
  15. package/{protocol → v0/protocol}/TezosAddress.d.ts +0 -0
  16. package/v0/protocol/TezosAddress.js +106 -0
  17. package/v0/protocol/TezosAddress.js.map +1 -0
  18. package/{protocol → v0/protocol}/TezosCryptoClient.d.ts +0 -0
  19. package/v0/protocol/TezosCryptoClient.js +158 -0
  20. package/v0/protocol/TezosCryptoClient.js.map +1 -0
  21. package/{protocol → v0/protocol}/TezosProtocol.d.ts +0 -0
  22. package/v0/protocol/TezosProtocol.js +1859 -0
  23. package/v0/protocol/TezosProtocol.js.map +1 -0
  24. package/{protocol → v0/protocol}/TezosProtocolOptions.d.ts +0 -0
  25. package/v0/protocol/TezosProtocolOptions.js +116 -0
  26. package/v0/protocol/TezosProtocolOptions.js.map +1 -0
  27. package/{protocol → v0/protocol}/TezosUtils.d.ts +0 -0
  28. package/v0/protocol/TezosUtils.js +300 -0
  29. package/v0/protocol/TezosUtils.js.map +1 -0
  30. package/{protocol → v0/protocol}/contract/TezosContract.d.ts +0 -0
  31. package/v0/protocol/contract/TezosContract.js +510 -0
  32. package/v0/protocol/contract/TezosContract.js.map +1 -0
  33. package/v0/protocol/contract/TezosContractCall.d.ts +11 -0
  34. package/{protocol → v0/protocol}/contract/TezosContractCall.js +0 -0
  35. package/v0/protocol/contract/TezosContractCall.js.map +1 -0
  36. package/{protocol → v0/protocol}/contract/TezosContractEntrypoint.d.ts +0 -0
  37. package/v0/protocol/contract/TezosContractEntrypoint.js +27 -0
  38. package/v0/protocol/contract/TezosContractEntrypoint.js.map +1 -0
  39. package/{protocol → v0/protocol}/contract/TezosContractStorage.d.ts +0 -0
  40. package/{protocol → v0/protocol}/contract/TezosContractStorage.js +0 -0
  41. package/v0/protocol/contract/TezosContractStorage.js.map +1 -0
  42. package/{protocol → v0/protocol}/contract/remote-data/TezosContractRemoteDataFactory.d.ts +0 -0
  43. package/v0/protocol/contract/remote-data/TezosContractRemoteDataFactory.js +36 -0
  44. package/v0/protocol/contract/remote-data/TezosContractRemoteDataFactory.js.map +1 -0
  45. package/{protocol → v0/protocol}/contract/remote-data/TezosStorageRemoteData.d.ts +0 -0
  46. package/v0/protocol/contract/remote-data/TezosStorageRemoteData.js +152 -0
  47. package/v0/protocol/contract/remote-data/TezosStorageRemoteData.js.map +1 -0
  48. package/{protocol → v0/protocol}/domains/TezosDomains.d.ts +0 -0
  49. package/v0/protocol/domains/TezosDomains.js +306 -0
  50. package/v0/protocol/domains/TezosDomains.js.map +1 -0
  51. package/{protocol → v0/protocol}/fa/TezosBTC.d.ts +0 -0
  52. package/v0/protocol/fa/TezosBTC.js +109 -0
  53. package/v0/protocol/fa/TezosBTC.js.map +1 -0
  54. package/{protocol → v0/protocol}/fa/TezosBTCtez.d.ts +0 -0
  55. package/v0/protocol/fa/TezosBTCtez.js +56 -0
  56. package/v0/protocol/fa/TezosBTCtez.js.map +1 -0
  57. package/{protocol → v0/protocol}/fa/TezosCTez.d.ts +0 -0
  58. package/v0/protocol/fa/TezosCTez.js +53 -0
  59. package/v0/protocol/fa/TezosCTez.js.map +1 -0
  60. package/{protocol → v0/protocol}/fa/TezosDOGA.d.ts +0 -0
  61. package/v0/protocol/fa/TezosDOGA.js +53 -0
  62. package/v0/protocol/fa/TezosDOGA.js.map +1 -0
  63. package/{protocol → v0/protocol}/fa/TezosETHtz.d.ts +0 -0
  64. package/v0/protocol/fa/TezosETHtz.js +74 -0
  65. package/v0/protocol/fa/TezosETHtz.js.map +1 -0
  66. package/{protocol → v0/protocol}/fa/TezosFA1Protocol.d.ts +0 -0
  67. package/v0/protocol/fa/TezosFA1Protocol.js +312 -0
  68. package/v0/protocol/fa/TezosFA1Protocol.js.map +1 -0
  69. package/{protocol → v0/protocol}/fa/TezosFA1p2Protocol.d.ts +0 -0
  70. package/v0/protocol/fa/TezosFA1p2Protocol.js +119 -0
  71. package/v0/protocol/fa/TezosFA1p2Protocol.js.map +1 -0
  72. package/{protocol → v0/protocol}/fa/TezosFA2Protocol.d.ts +0 -0
  73. package/v0/protocol/fa/TezosFA2Protocol.js +451 -0
  74. package/v0/protocol/fa/TezosFA2Protocol.js.map +1 -0
  75. package/{protocol → v0/protocol}/fa/TezosFAProtocol.d.ts +0 -0
  76. package/v0/protocol/fa/TezosFAProtocol.js +513 -0
  77. package/v0/protocol/fa/TezosFAProtocol.js.map +1 -0
  78. package/{protocol → v0/protocol}/fa/TezosFAProtocolOptions.d.ts +0 -0
  79. package/v0/protocol/fa/TezosFAProtocolOptions.js +230 -0
  80. package/v0/protocol/fa/TezosFAProtocolOptions.js.map +1 -0
  81. package/{protocol → v0/protocol}/fa/TezosKolibriUSD.d.ts +0 -0
  82. package/v0/protocol/fa/TezosKolibriUSD.js +76 -0
  83. package/v0/protocol/fa/TezosKolibriUSD.js.map +1 -0
  84. package/{protocol → v0/protocol}/fa/TezosPlanty.d.ts +0 -0
  85. package/v0/protocol/fa/TezosPlanty.js +53 -0
  86. package/v0/protocol/fa/TezosPlanty.js.map +1 -0
  87. package/{protocol → v0/protocol}/fa/TezosQUIPU.d.ts +0 -0
  88. package/v0/protocol/fa/TezosQUIPU.js +56 -0
  89. package/v0/protocol/fa/TezosQUIPU.js.map +1 -0
  90. package/{protocol → v0/protocol}/fa/TezosSIRS.d.ts +0 -0
  91. package/v0/protocol/fa/TezosSIRS.js +53 -0
  92. package/v0/protocol/fa/TezosSIRS.js.map +1 -0
  93. package/{protocol → v0/protocol}/fa/TezosStaker.d.ts +0 -0
  94. package/v0/protocol/fa/TezosStaker.js +76 -0
  95. package/v0/protocol/fa/TezosStaker.js.map +1 -0
  96. package/{protocol → v0/protocol}/fa/TezosUBTC.d.ts +0 -0
  97. package/v0/protocol/fa/TezosUBTC.js +56 -0
  98. package/v0/protocol/fa/TezosUBTC.js.map +1 -0
  99. package/{protocol → v0/protocol}/fa/TezosUDEFI.d.ts +0 -0
  100. package/v0/protocol/fa/TezosUDEFI.js +56 -0
  101. package/v0/protocol/fa/TezosUDEFI.js.map +1 -0
  102. package/{protocol → v0/protocol}/fa/TezosUSD.d.ts +0 -0
  103. package/v0/protocol/fa/TezosUSD.js +76 -0
  104. package/v0/protocol/fa/TezosUSD.js.map +1 -0
  105. package/{protocol → v0/protocol}/fa/TezosUSDT.d.ts +0 -0
  106. package/v0/protocol/fa/TezosUSDT.js +56 -0
  107. package/v0/protocol/fa/TezosUSDT.js.map +1 -0
  108. package/{protocol → v0/protocol}/fa/TezosUUSD.d.ts +0 -0
  109. package/v0/protocol/fa/TezosUUSD.js +33 -0
  110. package/v0/protocol/fa/TezosUUSD.js.map +1 -0
  111. package/{protocol → v0/protocol}/fa/TezosWRAP.d.ts +0 -0
  112. package/v0/protocol/fa/TezosWRAP.js +56 -0
  113. package/v0/protocol/fa/TezosWRAP.js.map +1 -0
  114. package/{protocol → v0/protocol}/fa/TezosWrapped.d.ts +0 -0
  115. package/v0/protocol/fa/TezosWrapped.js +76 -0
  116. package/v0/protocol/fa/TezosWrapped.js.map +1 -0
  117. package/{protocol → v0/protocol}/fa/TezosYOU.d.ts +0 -0
  118. package/v0/protocol/fa/TezosYOU.js +33 -0
  119. package/v0/protocol/fa/TezosYOU.js.map +1 -0
  120. package/{protocol → v0/protocol}/indexerClient/TezosIndexerClient.d.ts +0 -0
  121. package/v0/protocol/indexerClient/TezosIndexerClient.js +269 -0
  122. package/v0/protocol/indexerClient/TezosIndexerClient.js.map +1 -0
  123. package/{protocol → v0/protocol}/indexerClient/TezosProtocolIndexerClient.d.ts +0 -0
  124. package/{protocol → v0/protocol}/indexerClient/TezosProtocolIndexerClient.js +0 -0
  125. package/v0/protocol/indexerClient/TezosProtocolIndexerClient.js.map +1 -0
  126. package/{protocol → v0/protocol}/kt/TezosKtAddress.d.ts +0 -0
  127. package/v0/protocol/kt/TezosKtAddress.js +74 -0
  128. package/v0/protocol/kt/TezosKtAddress.js.map +1 -0
  129. package/{protocol → v0/protocol}/kt/TezosKtProtocol.d.ts +0 -0
  130. package/v0/protocol/kt/TezosKtProtocol.js +320 -0
  131. package/v0/protocol/kt/TezosKtProtocol.js.map +1 -0
  132. package/{protocol → v0/protocol}/sapling/TezosSaplingAddress.d.ts +0 -0
  133. package/v0/protocol/sapling/TezosSaplingAddress.js +140 -0
  134. package/v0/protocol/sapling/TezosSaplingAddress.js.map +1 -0
  135. package/{protocol → v0/protocol}/sapling/TezosSaplingCryptoClient.d.ts +0 -0
  136. package/v0/protocol/sapling/TezosSaplingCryptoClient.js +248 -0
  137. package/v0/protocol/sapling/TezosSaplingCryptoClient.js.map +1 -0
  138. package/{protocol → v0/protocol}/sapling/TezosSaplingProtocol.d.ts +0 -0
  139. package/v0/protocol/sapling/TezosSaplingProtocol.js +1184 -0
  140. package/v0/protocol/sapling/TezosSaplingProtocol.js.map +1 -0
  141. package/{protocol → v0/protocol}/sapling/TezosSaplingProtocolOptions.d.ts +0 -0
  142. package/v0/protocol/sapling/TezosSaplingProtocolOptions.js +81 -0
  143. package/v0/protocol/sapling/TezosSaplingProtocolOptions.js.map +1 -0
  144. package/{protocol → v0/protocol}/sapling/TezosShieldedTezProtocol.d.ts +0 -0
  145. package/v0/protocol/sapling/TezosShieldedTezProtocol.js +142 -0
  146. package/v0/protocol/sapling/TezosShieldedTezProtocol.js.map +1 -0
  147. package/{protocol → v0/protocol}/sapling/injector/TezosSaplingInjectorClient.d.ts +0 -0
  148. package/v0/protocol/sapling/injector/TezosSaplingInjectorClient.js +68 -0
  149. package/v0/protocol/sapling/injector/TezosSaplingInjectorClient.js.map +1 -0
  150. package/{protocol → v0/protocol}/sapling/node/TezosSaplingNodeClient.d.ts +0 -0
  151. package/v0/protocol/sapling/node/TezosSaplingNodeClient.js +78 -0
  152. package/v0/protocol/sapling/node/TezosSaplingNodeClient.js.map +1 -0
  153. package/{protocol → v0/protocol}/sapling/utils/TezosSaplingBookkeeper.d.ts +0 -0
  154. package/v0/protocol/sapling/utils/TezosSaplingBookkeeper.js +591 -0
  155. package/v0/protocol/sapling/utils/TezosSaplingBookkeeper.js.map +1 -0
  156. package/{protocol → v0/protocol}/sapling/utils/TezosSaplingEncoder.d.ts +0 -0
  157. package/v0/protocol/sapling/utils/TezosSaplingEncoder.js +158 -0
  158. package/v0/protocol/sapling/utils/TezosSaplingEncoder.js.map +1 -0
  159. package/{protocol → v0/protocol}/sapling/utils/TezosSaplingForger.d.ts +0 -0
  160. package/v0/protocol/sapling/utils/TezosSaplingForger.js +284 -0
  161. package/v0/protocol/sapling/utils/TezosSaplingForger.js.map +1 -0
  162. package/{protocol → v0/protocol}/sapling/utils/TezosSaplingState.d.ts +0 -0
  163. package/v0/protocol/sapling/utils/TezosSaplingState.js +266 -0
  164. package/v0/protocol/sapling/utils/TezosSaplingState.js.map +1 -0
  165. package/{protocol → v0/protocol}/types/TezosAddressCursor.d.ts +0 -0
  166. package/{protocol → v0/protocol}/types/TezosAddressCursor.js +0 -0
  167. package/v0/protocol/types/TezosAddressCursor.js.map +1 -0
  168. package/{protocol → v0/protocol}/types/TezosAddressResult.d.ts +0 -0
  169. package/{protocol → v0/protocol}/types/TezosAddressResult.js +0 -0
  170. package/v0/protocol/types/TezosAddressResult.js.map +1 -0
  171. package/{protocol → v0/protocol}/types/TezosBlockHeader.d.ts +0 -0
  172. package/{protocol → v0/protocol}/types/TezosBlockHeader.js +0 -0
  173. package/v0/protocol/types/TezosBlockHeader.js.map +1 -0
  174. package/{protocol → v0/protocol}/types/TezosBlockMetadata.d.ts +0 -0
  175. package/{protocol → v0/protocol}/types/TezosBlockMetadata.js +0 -0
  176. package/v0/protocol/types/TezosBlockMetadata.js.map +1 -0
  177. package/{protocol → v0/protocol}/types/TezosContractCode.d.ts +0 -0
  178. package/{protocol → v0/protocol}/types/TezosContractCode.js +0 -0
  179. package/v0/protocol/types/TezosContractCode.js.map +1 -0
  180. package/{protocol → v0/protocol}/types/TezosOperationType.d.ts +0 -0
  181. package/{protocol → v0/protocol}/types/TezosOperationType.js +0 -0
  182. package/v0/protocol/types/TezosOperationType.js.map +1 -0
  183. package/{protocol → v0/protocol}/types/TezosTransactionCursor.d.ts +0 -0
  184. package/{protocol → v0/protocol}/types/TezosTransactionCursor.js +0 -0
  185. package/v0/protocol/types/TezosTransactionCursor.js.map +1 -0
  186. package/{protocol → v0/protocol}/types/TezosTransactionResult.d.ts +0 -0
  187. package/{protocol → v0/protocol}/types/TezosTransactionResult.js +0 -0
  188. package/v0/protocol/types/TezosTransactionResult.js.map +1 -0
  189. package/{protocol → v0/protocol}/types/TezosWrappedOperation.d.ts +0 -0
  190. package/{protocol → v0/protocol}/types/TezosWrappedOperation.js +0 -0
  191. package/v0/protocol/types/TezosWrappedOperation.js.map +1 -0
  192. package/{protocol → v0/protocol}/types/contract/BigMap.d.ts +0 -0
  193. package/{protocol → v0/protocol}/types/contract/BigMap.js +0 -0
  194. package/v0/protocol/types/contract/BigMap.js.map +1 -0
  195. package/{protocol → v0/protocol}/types/contract/BigMapEnrtyFilter.d.ts +0 -0
  196. package/{protocol → v0/protocol}/types/contract/BigMapEnrtyFilter.js +0 -0
  197. package/v0/protocol/types/contract/BigMapEnrtyFilter.js.map +1 -0
  198. package/{protocol → v0/protocol}/types/contract/BigMapEntry.d.ts +0 -0
  199. package/{protocol → v0/protocol}/types/contract/BigMapEntry.js +0 -0
  200. package/v0/protocol/types/contract/BigMapEntry.js.map +1 -0
  201. package/{protocol → v0/protocol}/types/contract/BigMapRequest.d.ts +0 -0
  202. package/{protocol → v0/protocol}/types/contract/BigMapRequest.js +0 -0
  203. package/v0/protocol/types/contract/BigMapRequest.js.map +1 -0
  204. package/{protocol → v0/protocol}/types/contract/TezosContractMetadata.d.ts +0 -0
  205. package/{protocol → v0/protocol}/types/contract/TezosContractMetadata.js +0 -0
  206. package/v0/protocol/types/contract/TezosContractMetadata.js.map +1 -0
  207. package/{protocol → v0/protocol}/types/domains/TezosDomainsRecord.d.ts +0 -0
  208. package/{protocol → v0/protocol}/types/domains/TezosDomainsRecord.js +0 -0
  209. package/v0/protocol/types/domains/TezosDomainsRecord.js.map +1 -0
  210. package/{protocol → v0/protocol}/types/domains/TezosDomainsReverseRecord.d.ts +0 -0
  211. package/{protocol → v0/protocol}/types/domains/TezosDomainsReverseRecord.js +0 -0
  212. package/v0/protocol/types/domains/TezosDomainsReverseRecord.js.map +1 -0
  213. package/{protocol → v0/protocol}/types/fa/TezosFA2BalanceOfRequest.d.ts +0 -0
  214. package/{protocol → v0/protocol}/types/fa/TezosFA2BalanceOfRequest.js +0 -0
  215. package/v0/protocol/types/fa/TezosFA2BalanceOfRequest.js.map +1 -0
  216. package/{protocol → v0/protocol}/types/fa/TezosFA2BalanceOfResponse.d.ts +0 -0
  217. package/{protocol → v0/protocol}/types/fa/TezosFA2BalanceOfResponse.js +0 -0
  218. package/v0/protocol/types/fa/TezosFA2BalanceOfResponse.js.map +1 -0
  219. package/{protocol → v0/protocol}/types/fa/TezosFA2TransferRequest.d.ts +0 -0
  220. package/{protocol → v0/protocol}/types/fa/TezosFA2TransferRequest.js +0 -0
  221. package/v0/protocol/types/fa/TezosFA2TransferRequest.js.map +1 -0
  222. package/{protocol → v0/protocol}/types/fa/TezosFA2UpdateOperatorRequest.d.ts +0 -0
  223. package/{protocol → v0/protocol}/types/fa/TezosFA2UpdateOperatorRequest.js +0 -0
  224. package/v0/protocol/types/fa/TezosFA2UpdateOperatorRequest.js.map +1 -0
  225. package/{protocol → v0/protocol}/types/fa/TezosFATokenMetadata.d.ts +0 -0
  226. package/{protocol → v0/protocol}/types/fa/TezosFATokenMetadata.js +0 -0
  227. package/v0/protocol/types/fa/TezosFATokenMetadata.js.map +1 -0
  228. package/{protocol → v0/protocol}/types/kt/TezosKtAddressCursor.d.ts +0 -0
  229. package/{protocol → v0/protocol}/types/kt/TezosKtAddressCursor.js +0 -0
  230. package/v0/protocol/types/kt/TezosKtAddressCursor.js.map +1 -0
  231. package/{protocol → v0/protocol}/types/kt/TezosKtAddressResult.d.ts +0 -0
  232. package/{protocol → v0/protocol}/types/kt/TezosKtAddressResult.js +0 -0
  233. package/v0/protocol/types/kt/TezosKtAddressResult.js.map +1 -0
  234. package/{protocol → v0/protocol}/types/micheline/MichelineNode.d.ts +0 -0
  235. package/{protocol → v0/protocol}/types/micheline/MichelineNode.js +0 -0
  236. package/v0/protocol/types/micheline/MichelineNode.js.map +1 -0
  237. package/{protocol → v0/protocol}/types/micheline/MichelineNodeUtils.d.ts +0 -0
  238. package/v0/protocol/types/micheline/MichelineNodeUtils.js +40 -0
  239. package/v0/protocol/types/micheline/MichelineNodeUtils.js.map +1 -0
  240. package/{protocol → v0/protocol}/types/michelson/MichelsonType.d.ts +0 -0
  241. package/{protocol → v0/protocol}/types/michelson/MichelsonType.js +0 -0
  242. package/v0/protocol/types/michelson/MichelsonType.js.map +1 -0
  243. package/{protocol → v0/protocol}/types/michelson/MichelsonTypeMeta.d.ts +0 -0
  244. package/v0/protocol/types/michelson/MichelsonTypeMeta.js +136 -0
  245. package/v0/protocol/types/michelson/MichelsonTypeMeta.js.map +1 -0
  246. package/{protocol → v0/protocol}/types/michelson/MichelsonTypeUtils.d.ts +0 -0
  247. package/v0/protocol/types/michelson/MichelsonTypeUtils.js +251 -0
  248. package/v0/protocol/types/michelson/MichelsonTypeUtils.js.map +1 -0
  249. package/{protocol → v0/protocol}/types/michelson/generics/MichelsonList.d.ts +0 -0
  250. package/v0/protocol/types/michelson/generics/MichelsonList.js +70 -0
  251. package/v0/protocol/types/michelson/generics/MichelsonList.js.map +1 -0
  252. package/{protocol → v0/protocol}/types/michelson/generics/MichelsonMap.d.ts +0 -0
  253. package/v0/protocol/types/michelson/generics/MichelsonMap.js +120 -0
  254. package/v0/protocol/types/michelson/generics/MichelsonMap.js.map +1 -0
  255. package/{protocol → v0/protocol}/types/michelson/generics/MichelsonOption.d.ts +0 -0
  256. package/v0/protocol/types/michelson/generics/MichelsonOption.js +121 -0
  257. package/v0/protocol/types/michelson/generics/MichelsonOption.js.map +1 -0
  258. package/{protocol → v0/protocol}/types/michelson/generics/MichelsonOr.d.ts +0 -0
  259. package/v0/protocol/types/michelson/generics/MichelsonOr.js +134 -0
  260. package/v0/protocol/types/michelson/generics/MichelsonOr.js.map +1 -0
  261. package/{protocol → v0/protocol}/types/michelson/generics/MichelsonPair.d.ts +0 -0
  262. package/v0/protocol/types/michelson/generics/MichelsonPair.js +139 -0
  263. package/v0/protocol/types/michelson/generics/MichelsonPair.js.map +1 -0
  264. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarData.d.ts +0 -0
  265. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarData.js +0 -0
  266. package/v0/protocol/types/michelson/grammar/MichelsonGrammarData.js.map +1 -0
  267. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +0 -0
  268. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarInstruction.js +0 -0
  269. package/v0/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js.map +1 -0
  270. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarType.d.ts +0 -0
  271. package/{protocol → v0/protocol}/types/michelson/grammar/MichelsonGrammarType.js +0 -0
  272. package/v0/protocol/types/michelson/grammar/MichelsonGrammarType.js.map +1 -0
  273. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonAddress.d.ts +0 -0
  274. package/v0/protocol/types/michelson/primitives/MichelsonAddress.js +74 -0
  275. package/v0/protocol/types/michelson/primitives/MichelsonAddress.js.map +1 -0
  276. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonBool.d.ts +0 -0
  277. package/v0/protocol/types/michelson/primitives/MichelsonBool.js +59 -0
  278. package/v0/protocol/types/michelson/primitives/MichelsonBool.js.map +1 -0
  279. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonBytes.d.ts +0 -0
  280. package/v0/protocol/types/michelson/primitives/MichelsonBytes.js +77 -0
  281. package/v0/protocol/types/michelson/primitives/MichelsonBytes.js.map +1 -0
  282. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonInt.d.ts +0 -0
  283. package/v0/protocol/types/michelson/primitives/MichelsonInt.js +74 -0
  284. package/v0/protocol/types/michelson/primitives/MichelsonInt.js.map +1 -0
  285. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonString.d.ts +0 -0
  286. package/v0/protocol/types/michelson/primitives/MichelsonString.js +76 -0
  287. package/v0/protocol/types/michelson/primitives/MichelsonString.js.map +1 -0
  288. package/{protocol → v0/protocol}/types/michelson/primitives/MichelsonUnit.d.ts +0 -0
  289. package/v0/protocol/types/michelson/primitives/MichelsonUnit.js +55 -0
  290. package/v0/protocol/types/michelson/primitives/MichelsonUnit.js.map +1 -0
  291. package/{protocol → v0/protocol}/types/operations/ActivateAccount.d.ts +0 -0
  292. package/{protocol → v0/protocol}/types/operations/ActivateAccount.js +0 -0
  293. package/v0/protocol/types/operations/ActivateAccount.js.map +1 -0
  294. package/{protocol → v0/protocol}/types/operations/Ballot.d.ts +0 -0
  295. package/{protocol → v0/protocol}/types/operations/Ballot.js +0 -0
  296. package/v0/protocol/types/operations/Ballot.js.map +1 -0
  297. package/{protocol → v0/protocol}/types/operations/Delegation.d.ts +0 -0
  298. package/{protocol → v0/protocol}/types/operations/Delegation.js +0 -0
  299. package/v0/protocol/types/operations/Delegation.js.map +1 -0
  300. package/{protocol → v0/protocol}/types/operations/DoubleBakingEvidence.d.ts +0 -0
  301. package/{protocol → v0/protocol}/types/operations/DoubleBakingEvidence.js +0 -0
  302. package/v0/protocol/types/operations/DoubleBakingEvidence.js.map +1 -0
  303. package/{protocol → v0/protocol}/types/operations/DoubleEndorsementEvidence.d.ts +0 -0
  304. package/{protocol → v0/protocol}/types/operations/DoubleEndorsementEvidence.js +0 -0
  305. package/v0/protocol/types/operations/DoubleEndorsementEvidence.js.map +1 -0
  306. package/{protocol → v0/protocol}/types/operations/Endorsement.d.ts +0 -0
  307. package/{protocol → v0/protocol}/types/operations/Endorsement.js +0 -0
  308. package/v0/protocol/types/operations/Endorsement.js.map +1 -0
  309. package/{protocol → v0/protocol}/types/operations/Origination.d.ts +0 -0
  310. package/{protocol → v0/protocol}/types/operations/Origination.js +0 -0
  311. package/v0/protocol/types/operations/Origination.js.map +1 -0
  312. package/{protocol → v0/protocol}/types/operations/Proposal.d.ts +0 -0
  313. package/{protocol → v0/protocol}/types/operations/Proposal.js +0 -0
  314. package/v0/protocol/types/operations/Proposal.js.map +1 -0
  315. package/{protocol → v0/protocol}/types/operations/Reveal.d.ts +0 -0
  316. package/{protocol → v0/protocol}/types/operations/Reveal.js +0 -0
  317. package/v0/protocol/types/operations/Reveal.js.map +1 -0
  318. package/{protocol → v0/protocol}/types/operations/SeedNonceRevelation.d.ts +0 -0
  319. package/{protocol → v0/protocol}/types/operations/SeedNonceRevelation.js +0 -0
  320. package/v0/protocol/types/operations/SeedNonceRevelation.js.map +1 -0
  321. package/{protocol → v0/protocol}/types/operations/TezosOperation.d.ts +0 -0
  322. package/{protocol → v0/protocol}/types/operations/TezosOperation.js +0 -0
  323. package/v0/protocol/types/operations/TezosOperation.js.map +1 -0
  324. package/{protocol → v0/protocol}/types/operations/Transaction.d.ts +0 -0
  325. package/{protocol → v0/protocol}/types/operations/Transaction.js +0 -0
  326. package/v0/protocol/types/operations/Transaction.js.map +1 -0
  327. package/{protocol → v0/protocol}/types/sapling/TezosSaplingAddressCursor.d.ts +0 -0
  328. package/{protocol → v0/protocol}/types/sapling/TezosSaplingAddressCursor.js +0 -0
  329. package/v0/protocol/types/sapling/TezosSaplingAddressCursor.js.map +1 -0
  330. package/{protocol → v0/protocol}/types/sapling/TezosSaplingAddressResult.d.ts +0 -0
  331. package/{protocol → v0/protocol}/types/sapling/TezosSaplingAddressResult.js +0 -0
  332. package/v0/protocol/types/sapling/TezosSaplingAddressResult.js.map +1 -0
  333. package/{protocol → v0/protocol}/types/sapling/TezosSaplingCiphertext.d.ts +0 -0
  334. package/{protocol → v0/protocol}/types/sapling/TezosSaplingCiphertext.js +0 -0
  335. package/v0/protocol/types/sapling/TezosSaplingCiphertext.js.map +1 -0
  336. package/{protocol → v0/protocol}/types/sapling/TezosSaplingInput.d.ts +0 -0
  337. package/{protocol → v0/protocol}/types/sapling/TezosSaplingInput.js +0 -0
  338. package/v0/protocol/types/sapling/TezosSaplingInput.js.map +1 -0
  339. package/{protocol → v0/protocol}/types/sapling/TezosSaplingOutput.d.ts +0 -0
  340. package/{protocol → v0/protocol}/types/sapling/TezosSaplingOutput.js +0 -0
  341. package/v0/protocol/types/sapling/TezosSaplingOutput.js.map +1 -0
  342. package/{protocol → v0/protocol}/types/sapling/TezosSaplingStateDiff.d.ts +0 -0
  343. package/{protocol → v0/protocol}/types/sapling/TezosSaplingStateDiff.js +0 -0
  344. package/v0/protocol/types/sapling/TezosSaplingStateDiff.js.map +1 -0
  345. package/{protocol → v0/protocol}/types/sapling/TezosSaplingStateTree.d.ts +0 -0
  346. package/{protocol → v0/protocol}/types/sapling/TezosSaplingStateTree.js +0 -0
  347. package/v0/protocol/types/sapling/TezosSaplingStateTree.js.map +1 -0
  348. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransaction.d.ts +0 -0
  349. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransaction.js +0 -0
  350. package/v0/protocol/types/sapling/TezosSaplingTransaction.js.map +1 -0
  351. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransactionCursor.d.ts +0 -0
  352. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransactionCursor.js +0 -0
  353. package/v0/protocol/types/sapling/TezosSaplingTransactionCursor.js.map +1 -0
  354. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransactionResult.d.ts +0 -0
  355. package/{protocol → v0/protocol}/types/sapling/TezosSaplingTransactionResult.js +0 -0
  356. package/v0/protocol/types/sapling/TezosSaplingTransactionResult.js.map +1 -0
  357. package/{protocol → v0/protocol}/types/utils.d.ts +0 -0
  358. package/{protocol → v0/protocol}/types/utils.js +0 -0
  359. package/v0/protocol/types/utils.js.map +1 -0
  360. package/v0/serializer/schemas/v2/transaction-sign-request-tezos-sapling.json +127 -0
  361. package/v0/serializer/schemas/v2/transaction-sign-request-tezos.json +29 -0
  362. package/v0/serializer/schemas/v2/transaction-sign-response-tezos-sapling.json +19 -0
  363. package/v0/serializer/schemas/v2/transaction-sign-response-tezos.json +19 -0
  364. package/v0/serializer/schemas/v3/transaction-sign-request-tezos-sapling.json +133 -0
  365. package/v0/serializer/schemas/v3/transaction-sign-request-tezos.json +29 -0
  366. package/v0/serializer/schemas/v3/transaction-sign-response-tezos-sapling.json +19 -0
  367. package/v0/serializer/schemas/v3/transaction-sign-response-tezos.json +19 -0
  368. package/v0/serializer/validators/transaction-validator.d.ts +15 -0
  369. package/v0/serializer/validators/transaction-validator.js +107 -0
  370. package/v0/serializer/validators/transaction-validator.js.map +1 -0
  371. package/v0/serializer/validators/transaction-xtz-btc-validator.d.ts +18 -0
  372. package/v0/serializer/validators/transaction-xtz-btc-validator.js +170 -0
  373. package/v0/serializer/validators/transaction-xtz-btc-validator.js.map +1 -0
  374. package/v0/serializer/validators/validators.d.ts +1 -0
  375. package/v0/serializer/validators/validators.js +115 -0
  376. package/v0/serializer/validators/validators.js.map +1 -0
  377. package/v0/types/signed-transaction-tezos-sapling.d.ts +3 -0
  378. package/{types → v0/types}/signed-transaction-tezos-sapling.js +0 -0
  379. package/v0/types/signed-transaction-tezos-sapling.js.map +1 -0
  380. package/v0/types/signed-transaction-tezos.d.ts +5 -0
  381. package/{types → v0/types}/signed-transaction-tezos.js +0 -0
  382. package/v0/types/signed-transaction-tezos.js.map +1 -0
  383. package/{types → v0/types}/transaction-tezos.d.ts +0 -0
  384. package/{types → v0/types}/transaction-tezos.js +0 -0
  385. package/v0/types/transaction-tezos.js.map +1 -0
  386. package/v0/types/unsigned-transaction-tezos-sapling.d.ts +38 -0
  387. package/{types → v0/types}/unsigned-transaction-tezos-sapling.js +0 -0
  388. package/v0/types/unsigned-transaction-tezos-sapling.js.map +1 -0
  389. package/v0/types/unsigned-transaction-tezos.d.ts +8 -0
  390. package/{types → v0/types}/unsigned-transaction-tezos.js +0 -0
  391. package/v0/types/unsigned-transaction-tezos.js.map +1 -0
  392. package/v1/block-explorer/TzKTBlockExplorer.d.ts +9 -0
  393. package/v1/block-explorer/TzKTBlockExplorer.js +72 -0
  394. package/v1/block-explorer/TzKTBlockExplorer.js.map +1 -0
  395. package/v1/block-explorer/factory.d.ts +3 -0
  396. package/v1/block-explorer/factory.js +17 -0
  397. package/v1/block-explorer/factory.js.map +1 -0
  398. package/v1/contract/TezosContract.d.ts +52 -0
  399. package/v1/contract/TezosContract.js +510 -0
  400. package/v1/contract/TezosContract.js.map +1 -0
  401. package/v1/contract/TezosContractCall.d.ts +11 -0
  402. package/v1/contract/TezosContractCall.js +23 -0
  403. package/v1/contract/TezosContractCall.js.map +1 -0
  404. package/v1/contract/TezosContractEntrypoint.d.ts +9 -0
  405. package/v1/contract/TezosContractEntrypoint.js +27 -0
  406. package/v1/contract/TezosContractEntrypoint.js.map +1 -0
  407. package/v1/contract/TezosContractStorage.d.ts +7 -0
  408. package/v1/contract/TezosContractStorage.js +16 -0
  409. package/v1/contract/TezosContractStorage.js.map +1 -0
  410. package/v1/contract/remote-data/TezosContractRemoteDataFactory.d.ts +11 -0
  411. package/v1/contract/remote-data/TezosContractRemoteDataFactory.js +36 -0
  412. package/v1/contract/remote-data/TezosContractRemoteDataFactory.js.map +1 -0
  413. package/v1/contract/remote-data/TezosStorageRemoteData.d.ts +12 -0
  414. package/v1/contract/remote-data/TezosStorageRemoteData.js +152 -0
  415. package/v1/contract/remote-data/TezosStorageRemoteData.js.map +1 -0
  416. package/v1/crypto/TezosCryptoClient.d.ts +13 -0
  417. package/v1/crypto/TezosCryptoClient.js +152 -0
  418. package/v1/crypto/TezosCryptoClient.js.map +1 -0
  419. package/v1/crypto/TezosSaplingCryptoClient.d.ts +25 -0
  420. package/v1/crypto/TezosSaplingCryptoClient.js +222 -0
  421. package/v1/crypto/TezosSaplingCryptoClient.js.map +1 -0
  422. package/v1/data/TezosAddress.d.ts +9 -0
  423. package/v1/data/TezosAddress.js +27 -0
  424. package/v1/data/TezosAddress.js.map +1 -0
  425. package/v1/data/TezosSaplingAddress.d.ts +14 -0
  426. package/v1/data/TezosSaplingAddress.js +105 -0
  427. package/v1/data/TezosSaplingAddress.js.map +1 -0
  428. package/v1/index.d.ts +53 -0
  429. package/v1/index.js +84 -0
  430. package/v1/index.js.map +1 -0
  431. package/v1/indexer/TezosIndexerClient.d.ts +31 -0
  432. package/v1/indexer/TezosIndexerClient.js +3 -0
  433. package/v1/indexer/TezosIndexerClient.js.map +1 -0
  434. package/v1/indexer/TzKTIndexerClient.d.ts +30 -0
  435. package/v1/indexer/TzKTIndexerClient.js +277 -0
  436. package/v1/indexer/TzKTIndexerClient.js.map +1 -0
  437. package/v1/indexer/factory.d.ts +3 -0
  438. package/v1/indexer/factory.js +17 -0
  439. package/v1/indexer/factory.js.map +1 -0
  440. package/v1/injector/TezosSaplingInjectorClient.d.ts +6 -0
  441. package/v1/injector/TezosSaplingInjectorClient.js +68 -0
  442. package/v1/injector/TezosSaplingInjectorClient.js.map +1 -0
  443. package/v1/module/TezosKtModule.d.ts +8 -0
  444. package/v1/module/TezosKtModule.js +87 -0
  445. package/v1/module/TezosKtModule.js.map +1 -0
  446. package/v1/module/TezosModule.d.ts +8 -0
  447. package/v1/module/TezosModule.js +86 -0
  448. package/v1/module/TezosModule.js.map +1 -0
  449. package/v1/module/TezosShieldedTezModule.d.ts +8 -0
  450. package/v1/module/TezosShieldedTezModule.js +86 -0
  451. package/v1/module/TezosShieldedTezModule.js.map +1 -0
  452. package/v1/node/TezosSaplingNodeClient.d.ts +8 -0
  453. package/v1/node/TezosSaplingNodeClient.js +78 -0
  454. package/v1/node/TezosSaplingNodeClient.js.map +1 -0
  455. package/v1/protocol/TezosProtocol.d.ts +72 -0
  456. package/v1/protocol/TezosProtocol.js +967 -0
  457. package/v1/protocol/TezosProtocol.js.map +1 -0
  458. package/v1/protocol/fa/TezosFA1Protocol.d.ts +30 -0
  459. package/v1/protocol/fa/TezosFA1Protocol.js +200 -0
  460. package/v1/protocol/fa/TezosFA1Protocol.js.map +1 -0
  461. package/v1/protocol/fa/TezosFA1p2Protocol.d.ts +18 -0
  462. package/v1/protocol/fa/TezosFA1p2Protocol.js +121 -0
  463. package/v1/protocol/fa/TezosFA1p2Protocol.js.map +1 -0
  464. package/v1/protocol/fa/TezosFA2Protocol.d.ts +39 -0
  465. package/v1/protocol/fa/TezosFA2Protocol.js +303 -0
  466. package/v1/protocol/fa/TezosFA2Protocol.js.map +1 -0
  467. package/v1/protocol/fa/TezosFAProtocol.d.ts +76 -0
  468. package/v1/protocol/fa/TezosFAProtocol.js +623 -0
  469. package/v1/protocol/fa/TezosFAProtocol.js.map +1 -0
  470. package/v1/protocol/fa/tokens/BTCTezProtocol.d.ts +14 -0
  471. package/v1/protocol/fa/tokens/BTCTezProtocol.js +76 -0
  472. package/v1/protocol/fa/tokens/BTCTezProtocol.js.map +1 -0
  473. package/v1/protocol/fa/tokens/CTezProtocol.d.ts +14 -0
  474. package/v1/protocol/fa/tokens/CTezProtocol.js +77 -0
  475. package/v1/protocol/fa/tokens/CTezProtocol.js.map +1 -0
  476. package/v1/protocol/fa/tokens/DogamiProtocol.d.ts +14 -0
  477. package/v1/protocol/fa/tokens/DogamiProtocol.js +77 -0
  478. package/v1/protocol/fa/tokens/DogamiProtocol.js.map +1 -0
  479. package/v1/protocol/fa/tokens/ETHTezProtocol.d.ts +18 -0
  480. package/v1/protocol/fa/tokens/ETHTezProtocol.js +120 -0
  481. package/v1/protocol/fa/tokens/ETHTezProtocol.js.map +1 -0
  482. package/v1/protocol/fa/tokens/KolibriUSDProtocol.d.ts +18 -0
  483. package/v1/protocol/fa/tokens/KolibriUSDProtocol.js +120 -0
  484. package/v1/protocol/fa/tokens/KolibriUSDProtocol.js.map +1 -0
  485. package/v1/protocol/fa/tokens/PlentyProtocol.d.ts +18 -0
  486. package/v1/protocol/fa/tokens/PlentyProtocol.js +120 -0
  487. package/v1/protocol/fa/tokens/PlentyProtocol.js.map +1 -0
  488. package/v1/protocol/fa/tokens/QuipuswapProtocol.d.ts +14 -0
  489. package/v1/protocol/fa/tokens/QuipuswapProtocol.js +76 -0
  490. package/v1/protocol/fa/tokens/QuipuswapProtocol.js.map +1 -0
  491. package/v1/protocol/fa/tokens/SiriusProtocol.d.ts +14 -0
  492. package/v1/protocol/fa/tokens/SiriusProtocol.js +77 -0
  493. package/v1/protocol/fa/tokens/SiriusProtocol.js.map +1 -0
  494. package/v1/protocol/fa/tokens/StakerProtocol.d.ts +18 -0
  495. package/v1/protocol/fa/tokens/StakerProtocol.js +120 -0
  496. package/v1/protocol/fa/tokens/StakerProtocol.js.map +1 -0
  497. package/v1/protocol/fa/tokens/TetherUSDProtocol.d.ts +14 -0
  498. package/v1/protocol/fa/tokens/TetherUSDProtocol.js +76 -0
  499. package/v1/protocol/fa/tokens/TetherUSDProtocol.js.map +1 -0
  500. package/v1/protocol/fa/tokens/TzBTCProtocol.d.ts +14 -0
  501. package/v1/protocol/fa/tokens/TzBTCProtocol.js +77 -0
  502. package/v1/protocol/fa/tokens/TzBTCProtocol.js.map +1 -0
  503. package/v1/protocol/fa/tokens/UBTCProtocol.d.ts +14 -0
  504. package/v1/protocol/fa/tokens/UBTCProtocol.js +76 -0
  505. package/v1/protocol/fa/tokens/UBTCProtocol.js.map +1 -0
  506. package/v1/protocol/fa/tokens/UDEFIProtocol.d.ts +14 -0
  507. package/v1/protocol/fa/tokens/UDEFIProtocol.js +76 -0
  508. package/v1/protocol/fa/tokens/UDEFIProtocol.js.map +1 -0
  509. package/v1/protocol/fa/tokens/USDTezProtocol.d.ts +14 -0
  510. package/v1/protocol/fa/tokens/USDTezProtocol.js +77 -0
  511. package/v1/protocol/fa/tokens/USDTezProtocol.js.map +1 -0
  512. package/v1/protocol/fa/tokens/UUSDProtocol.d.ts +14 -0
  513. package/v1/protocol/fa/tokens/UUSDProtocol.js +76 -0
  514. package/v1/protocol/fa/tokens/UUSDProtocol.js.map +1 -0
  515. package/v1/protocol/fa/tokens/WrapProtocol.d.ts +14 -0
  516. package/v1/protocol/fa/tokens/WrapProtocol.js +76 -0
  517. package/v1/protocol/fa/tokens/WrapProtocol.js.map +1 -0
  518. package/v1/protocol/fa/tokens/WrappedTezosProtocol.d.ts +14 -0
  519. package/v1/protocol/fa/tokens/WrappedTezosProtocol.js +77 -0
  520. package/v1/protocol/fa/tokens/WrappedTezosProtocol.js.map +1 -0
  521. package/v1/protocol/fa/tokens/YouProtocol.d.ts +14 -0
  522. package/v1/protocol/fa/tokens/YouProtocol.js +76 -0
  523. package/v1/protocol/fa/tokens/YouProtocol.js.map +1 -0
  524. package/v1/protocol/kt/TezosKtProtocol.d.ts +17 -0
  525. package/v1/protocol/kt/TezosKtProtocol.js +494 -0
  526. package/v1/protocol/kt/TezosKtProtocol.js.map +1 -0
  527. package/v1/protocol/sapling/TezosSaplingProtocol.d.ts +103 -0
  528. package/v1/protocol/sapling/TezosSaplingProtocol.js +1030 -0
  529. package/v1/protocol/sapling/TezosSaplingProtocol.js.map +1 -0
  530. package/v1/protocol/sapling/TezosShieldedTezProtocol.d.ts +19 -0
  531. package/v1/protocol/sapling/TezosShieldedTezProtocol.js +185 -0
  532. package/v1/protocol/sapling/TezosShieldedTezProtocol.js.map +1 -0
  533. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +13 -0
  534. package/v1/serializer/v3/schemas/converter/transaction-converter.js +37 -0
  535. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -0
  536. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.d.ts +4 -0
  537. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.js +3 -0
  538. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos-sapling.js.map +1 -0
  539. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.d.ts +4 -0
  540. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.js +3 -0
  541. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-tezos.js.map +1 -0
  542. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.d.ts +3 -0
  543. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.js +3 -0
  544. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos-sapling.js.map +1 -0
  545. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.d.ts +3 -0
  546. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.js +3 -0
  547. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-tezos.js.map +1 -0
  548. package/v1/serializer/v3/schemas/generated/transaction-sign-request-tezos-sapling.json +152 -0
  549. package/v1/serializer/v3/schemas/generated/transaction-sign-request-tezos.json +36 -0
  550. package/v1/serializer/v3/schemas/generated/transaction-sign-response-tezos-sapling.json +19 -0
  551. package/v1/serializer/v3/schemas/generated/transaction-sign-response-tezos.json +19 -0
  552. package/v1/serializer/v3/validators/transaction-validator.d.ts +20 -0
  553. package/v1/serializer/v3/validators/transaction-validator.js +197 -0
  554. package/v1/serializer/v3/validators/transaction-validator.js.map +1 -0
  555. package/v1/serializer/v3/validators/validators.d.ts +4 -0
  556. package/v1/serializer/v3/validators/validators.js +108 -0
  557. package/v1/serializer/v3/validators/validators.js.map +1 -0
  558. package/v1/types/address.d.ts +7 -0
  559. package/v1/types/address.js +3 -0
  560. package/v1/types/address.js.map +1 -0
  561. package/v1/types/block/TezosBlockHeader.d.ts +13 -0
  562. package/v1/types/block/TezosBlockHeader.js +3 -0
  563. package/v1/types/block/TezosBlockHeader.js.map +1 -0
  564. package/v1/types/block-explorer.d.ts +6 -0
  565. package/v1/types/block-explorer.js +3 -0
  566. package/v1/types/block-explorer.js.map +1 -0
  567. package/v1/types/contract/TezosContractCode.d.ts +5 -0
  568. package/v1/types/contract/TezosContractCode.js +3 -0
  569. package/v1/types/contract/TezosContractCode.js.map +1 -0
  570. package/v1/types/contract/TezosContractMetadata.d.ts +61 -0
  571. package/v1/types/contract/TezosContractMetadata.js +3 -0
  572. package/v1/types/contract/TezosContractMetadata.js.map +1 -0
  573. package/v1/types/contract/bigmap/BigMap.d.ts +7 -0
  574. package/v1/types/contract/bigmap/BigMap.js +3 -0
  575. package/v1/types/contract/bigmap/BigMap.js.map +1 -0
  576. package/v1/types/contract/bigmap/BigMapEnrtyFilter.d.ts +5 -0
  577. package/v1/types/contract/bigmap/BigMapEnrtyFilter.js +3 -0
  578. package/v1/types/contract/bigmap/BigMapEnrtyFilter.js.map +1 -0
  579. package/v1/types/contract/bigmap/BigMapEntry.d.ts +7 -0
  580. package/v1/types/contract/bigmap/BigMapEntry.js +3 -0
  581. package/v1/types/contract/bigmap/BigMapEntry.js.map +1 -0
  582. package/v1/types/contract/bigmap/BigMapRequest.d.ts +8 -0
  583. package/v1/types/contract/bigmap/BigMapRequest.js +3 -0
  584. package/v1/types/contract/bigmap/BigMapRequest.js.map +1 -0
  585. package/v1/types/fa/TezosFA1ContractEntrypoint.d.ts +1 -0
  586. package/v1/types/fa/TezosFA1ContractEntrypoint.js +3 -0
  587. package/v1/types/fa/TezosFA1ContractEntrypoint.js.map +1 -0
  588. package/v1/types/fa/TezosFA1p2ContractEntrypoint.d.ts +2 -0
  589. package/v1/types/fa/TezosFA1p2ContractEntrypoint.js +3 -0
  590. package/v1/types/fa/TezosFA1p2ContractEntrypoint.js.map +1 -0
  591. package/v1/types/fa/TezosFA2BalanceOfRequest.d.ts +4 -0
  592. package/v1/types/fa/TezosFA2BalanceOfRequest.js +3 -0
  593. package/v1/types/fa/TezosFA2BalanceOfRequest.js.map +1 -0
  594. package/v1/types/fa/TezosFA2BalanceOfResponse.d.ts +5 -0
  595. package/v1/types/fa/TezosFA2BalanceOfResponse.js +3 -0
  596. package/v1/types/fa/TezosFA2BalanceOfResponse.js.map +1 -0
  597. package/v1/types/fa/TezosFA2ContractEntrypoint.d.ts +1 -0
  598. package/v1/types/fa/TezosFA2ContractEntrypoint.js +3 -0
  599. package/v1/types/fa/TezosFA2ContractEntrypoint.js.map +1 -0
  600. package/v1/types/fa/TezosFA2TransferRequest.d.ts +8 -0
  601. package/v1/types/fa/TezosFA2TransferRequest.js +3 -0
  602. package/v1/types/fa/TezosFA2TransferRequest.js.map +1 -0
  603. package/v1/types/fa/TezosFA2UpdateOperatorRequest.d.ts +6 -0
  604. package/v1/types/fa/TezosFA2UpdateOperatorRequest.js +3 -0
  605. package/v1/types/fa/TezosFA2UpdateOperatorRequest.js.map +1 -0
  606. package/v1/types/fa/TezosFATokenMetadata.d.ts +6 -0
  607. package/v1/types/fa/TezosFATokenMetadata.js +3 -0
  608. package/v1/types/fa/TezosFATokenMetadata.js.map +1 -0
  609. package/v1/types/indexer.d.ts +6 -0
  610. package/v1/types/indexer.js +3 -0
  611. package/v1/types/indexer.js.map +1 -0
  612. package/v1/types/micheline/MichelineNode.d.ts +15 -0
  613. package/v1/types/micheline/MichelineNode.js +5 -0
  614. package/v1/types/micheline/MichelineNode.js.map +1 -0
  615. package/v1/types/micheline/MichelineNodeUtils.d.ts +6 -0
  616. package/v1/types/micheline/MichelineNodeUtils.js +40 -0
  617. package/v1/types/micheline/MichelineNodeUtils.js.map +1 -0
  618. package/v1/types/michelson/MichelsonType.d.ts +11 -0
  619. package/v1/types/michelson/MichelsonType.js +22 -0
  620. package/v1/types/michelson/MichelsonType.js.map +1 -0
  621. package/v1/types/michelson/MichelsonTypeMeta.d.ts +33 -0
  622. package/v1/types/michelson/MichelsonTypeMeta.js +136 -0
  623. package/v1/types/michelson/MichelsonTypeMeta.js.map +1 -0
  624. package/v1/types/michelson/MichelsonTypeUtils.d.ts +19 -0
  625. package/v1/types/michelson/MichelsonTypeUtils.js +251 -0
  626. package/v1/types/michelson/MichelsonTypeUtils.js.map +1 -0
  627. package/v1/types/michelson/generics/MichelsonList.d.ts +11 -0
  628. package/v1/types/michelson/generics/MichelsonList.js +70 -0
  629. package/v1/types/michelson/generics/MichelsonList.js.map +1 -0
  630. package/v1/types/michelson/generics/MichelsonMap.d.ts +14 -0
  631. package/v1/types/michelson/generics/MichelsonMap.js +120 -0
  632. package/v1/types/michelson/generics/MichelsonMap.js.map +1 -0
  633. package/v1/types/michelson/generics/MichelsonOption.d.ts +25 -0
  634. package/v1/types/michelson/generics/MichelsonOption.js +121 -0
  635. package/v1/types/michelson/generics/MichelsonOption.js.map +1 -0
  636. package/v1/types/michelson/generics/MichelsonOr.d.ts +25 -0
  637. package/v1/types/michelson/generics/MichelsonOr.js +134 -0
  638. package/v1/types/michelson/generics/MichelsonOr.js.map +1 -0
  639. package/v1/types/michelson/generics/MichelsonPair.d.ts +17 -0
  640. package/v1/types/michelson/generics/MichelsonPair.js +139 -0
  641. package/v1/types/michelson/generics/MichelsonPair.js.map +1 -0
  642. package/v1/types/michelson/grammar/MichelsonGrammarData.d.ts +2 -0
  643. package/v1/types/michelson/grammar/MichelsonGrammarData.js +4 -0
  644. package/v1/types/michelson/grammar/MichelsonGrammarData.js.map +1 -0
  645. package/v1/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +1 -0
  646. package/v1/types/michelson/grammar/MichelsonGrammarInstruction.js +4 -0
  647. package/v1/types/michelson/grammar/MichelsonGrammarInstruction.js.map +1 -0
  648. package/v1/types/michelson/grammar/MichelsonGrammarType.d.ts +1 -0
  649. package/v1/types/michelson/grammar/MichelsonGrammarType.js +4 -0
  650. package/v1/types/michelson/grammar/MichelsonGrammarType.js.map +1 -0
  651. package/v1/types/michelson/primitives/MichelsonAddress.d.ts +15 -0
  652. package/v1/types/michelson/primitives/MichelsonAddress.js +74 -0
  653. package/v1/types/michelson/primitives/MichelsonAddress.js.map +1 -0
  654. package/v1/types/michelson/primitives/MichelsonBool.d.ts +12 -0
  655. package/v1/types/michelson/primitives/MichelsonBool.js +59 -0
  656. package/v1/types/michelson/primitives/MichelsonBool.js.map +1 -0
  657. package/v1/types/michelson/primitives/MichelsonBytes.d.ts +14 -0
  658. package/v1/types/michelson/primitives/MichelsonBytes.js +77 -0
  659. package/v1/types/michelson/primitives/MichelsonBytes.js.map +1 -0
  660. package/v1/types/michelson/primitives/MichelsonInt.d.ts +14 -0
  661. package/v1/types/michelson/primitives/MichelsonInt.js +74 -0
  662. package/v1/types/michelson/primitives/MichelsonInt.js.map +1 -0
  663. package/v1/types/michelson/primitives/MichelsonString.d.ts +14 -0
  664. package/v1/types/michelson/primitives/MichelsonString.js +76 -0
  665. package/v1/types/michelson/primitives/MichelsonString.js.map +1 -0
  666. package/v1/types/michelson/primitives/MichelsonUnit.d.ts +9 -0
  667. package/v1/types/michelson/primitives/MichelsonUnit.js +55 -0
  668. package/v1/types/michelson/primitives/MichelsonUnit.js.map +1 -0
  669. package/v1/types/network.d.ts +4 -0
  670. package/v1/types/network.js +9 -0
  671. package/v1/types/network.js.map +1 -0
  672. package/v1/types/node.d.ts +78 -0
  673. package/v1/types/node.js +3 -0
  674. package/v1/types/node.js.map +1 -0
  675. package/v1/types/operations/TezosOperationType.d.ts +13 -0
  676. package/v1/types/operations/TezosOperationType.js +18 -0
  677. package/v1/types/operations/TezosOperationType.js.map +1 -0
  678. package/v1/types/operations/TezosWrappedOperation.d.ts +5 -0
  679. package/v1/types/operations/TezosWrappedOperation.js +3 -0
  680. package/v1/types/operations/TezosWrappedOperation.js.map +1 -0
  681. package/v1/types/operations/kinds/ActivateAccount.d.ts +7 -0
  682. package/v1/types/operations/kinds/ActivateAccount.js +3 -0
  683. package/v1/types/operations/kinds/ActivateAccount.js.map +1 -0
  684. package/v1/types/operations/kinds/Ballot.d.ts +9 -0
  685. package/v1/types/operations/kinds/Ballot.js +3 -0
  686. package/v1/types/operations/kinds/Ballot.js.map +1 -0
  687. package/v1/types/operations/kinds/Delegation.d.ts +11 -0
  688. package/v1/types/operations/kinds/Delegation.js +3 -0
  689. package/v1/types/operations/kinds/Delegation.js.map +1 -0
  690. package/v1/types/operations/kinds/DoubleBakingEvidence.d.ts +8 -0
  691. package/v1/types/operations/kinds/DoubleBakingEvidence.js +3 -0
  692. package/v1/types/operations/kinds/DoubleBakingEvidence.js.map +1 -0
  693. package/v1/types/operations/kinds/DoubleEndorsementEvidence.d.ts +16 -0
  694. package/v1/types/operations/kinds/DoubleEndorsementEvidence.js +3 -0
  695. package/v1/types/operations/kinds/DoubleEndorsementEvidence.js.map +1 -0
  696. package/v1/types/operations/kinds/Endorsement.d.ts +6 -0
  697. package/v1/types/operations/kinds/Endorsement.js +3 -0
  698. package/v1/types/operations/kinds/Endorsement.js.map +1 -0
  699. package/v1/types/operations/kinds/Origination.d.ts +13 -0
  700. package/v1/types/operations/kinds/Origination.js +3 -0
  701. package/v1/types/operations/kinds/Origination.js.map +1 -0
  702. package/v1/types/operations/kinds/Proposal.d.ts +7 -0
  703. package/v1/types/operations/kinds/Proposal.js +3 -0
  704. package/v1/types/operations/kinds/Proposal.js.map +1 -0
  705. package/v1/types/operations/kinds/Reveal.d.ts +11 -0
  706. package/v1/types/operations/kinds/Reveal.js +3 -0
  707. package/v1/types/operations/kinds/Reveal.js.map +1 -0
  708. package/v1/types/operations/kinds/SeedNonceRevelation.d.ts +7 -0
  709. package/v1/types/operations/kinds/SeedNonceRevelation.js +3 -0
  710. package/v1/types/operations/kinds/SeedNonceRevelation.js.map +1 -0
  711. package/v1/types/operations/kinds/TezosOperation.d.ts +4 -0
  712. package/v1/types/operations/kinds/TezosOperation.js +3 -0
  713. package/v1/types/operations/kinds/TezosOperation.js.map +1 -0
  714. package/v1/types/operations/kinds/Transaction.d.ts +24 -0
  715. package/v1/types/operations/kinds/Transaction.js +3 -0
  716. package/v1/types/operations/kinds/Transaction.js.map +1 -0
  717. package/v1/types/protocol.d.ts +61 -0
  718. package/v1/types/protocol.js +3 -0
  719. package/v1/types/protocol.js.map +1 -0
  720. package/v1/types/sapling/TezosSaplingCiphertext.d.ts +8 -0
  721. package/v1/types/sapling/TezosSaplingCiphertext.js +3 -0
  722. package/v1/types/sapling/TezosSaplingCiphertext.js.map +1 -0
  723. package/v1/types/sapling/TezosSaplingExternalMethodProvider.d.ts +10 -0
  724. package/v1/types/sapling/TezosSaplingExternalMethodProvider.js +3 -0
  725. package/v1/types/sapling/TezosSaplingExternalMethodProvider.js.map +1 -0
  726. package/v1/types/sapling/TezosSaplingInput.d.ts +6 -0
  727. package/v1/types/sapling/TezosSaplingInput.js +3 -0
  728. package/v1/types/sapling/TezosSaplingInput.js.map +1 -0
  729. package/v1/types/sapling/TezosSaplingOutput.d.ts +6 -0
  730. package/v1/types/sapling/TezosSaplingOutput.js +3 -0
  731. package/v1/types/sapling/TezosSaplingOutput.js.map +1 -0
  732. package/v1/types/sapling/TezosSaplingStateDiff.d.ts +6 -0
  733. package/v1/types/sapling/TezosSaplingStateDiff.js +3 -0
  734. package/v1/types/sapling/TezosSaplingStateDiff.js.map +1 -0
  735. package/v1/types/sapling/TezosSaplingStateTree.d.ts +7 -0
  736. package/v1/types/sapling/TezosSaplingStateTree.js +3 -0
  737. package/v1/types/sapling/TezosSaplingStateTree.js.map +1 -0
  738. package/v1/types/sapling/TezosSaplingTransaction.d.ts +23 -0
  739. package/v1/types/sapling/TezosSaplingTransaction.js +3 -0
  740. package/v1/types/sapling/TezosSaplingTransaction.js.map +1 -0
  741. package/v1/types/sapling/TezosSaplingTransactionCursor.d.ts +3 -0
  742. package/v1/types/sapling/TezosSaplingTransactionCursor.js +3 -0
  743. package/v1/types/sapling/TezosSaplingTransactionCursor.js.map +1 -0
  744. package/v1/types/sapling/TezosSaplingTransactionResult.d.ts +6 -0
  745. package/v1/types/sapling/TezosSaplingTransactionResult.js +3 -0
  746. package/v1/types/sapling/TezosSaplingTransactionResult.js.map +1 -0
  747. package/v1/types/transaction.d.ts +30 -0
  748. package/v1/types/transaction.js +3 -0
  749. package/v1/types/transaction.js.map +1 -0
  750. package/v1/utils/address.d.ts +2 -0
  751. package/v1/utils/address.js +13 -0
  752. package/v1/utils/address.js.map +1 -0
  753. package/v1/utils/bip.d.ts +2 -0
  754. package/v1/utils/bip.js +13 -0
  755. package/v1/utils/bip.js.map +1 -0
  756. package/v1/utils/convert.d.ts +4 -0
  757. package/v1/utils/convert.js +33 -0
  758. package/v1/utils/convert.js.map +1 -0
  759. package/v1/utils/encoding.d.ts +52 -0
  760. package/v1/utils/encoding.js +103 -0
  761. package/v1/utils/encoding.js.map +1 -0
  762. package/v1/utils/fa.d.ts +2 -0
  763. package/v1/utils/fa.js +13 -0
  764. package/v1/utils/fa.js.map +1 -0
  765. package/v1/utils/key.d.ts +4 -0
  766. package/v1/utils/key.js +43 -0
  767. package/v1/utils/key.js.map +1 -0
  768. package/v1/utils/micheline.d.ts +8 -0
  769. package/v1/utils/micheline.js +41 -0
  770. package/v1/utils/micheline.js.map +1 -0
  771. package/v1/utils/operations.d.ts +12 -0
  772. package/v1/utils/operations.js +72 -0
  773. package/v1/utils/operations.js.map +1 -0
  774. package/v1/utils/pack.d.ts +10 -0
  775. package/v1/utils/pack.js +252 -0
  776. package/v1/utils/pack.js.map +1 -0
  777. package/v1/utils/protocol/fa/TezosFA1Accountant.d.ts +9 -0
  778. package/v1/utils/protocol/fa/TezosFA1Accountant.js +76 -0
  779. package/v1/utils/protocol/fa/TezosFA1Accountant.js.map +1 -0
  780. package/v1/utils/protocol/fa/TezosFA2Accountant.d.ts +12 -0
  781. package/v1/utils/protocol/fa/TezosFA2Accountant.js +113 -0
  782. package/v1/utils/protocol/fa/TezosFA2Accountant.js.map +1 -0
  783. package/v1/utils/protocol/fa/TezosFAAccountant.d.ts +8 -0
  784. package/v1/utils/protocol/fa/TezosFAAccountant.js +95 -0
  785. package/v1/utils/protocol/fa/TezosFAAccountant.js.map +1 -0
  786. package/v1/utils/protocol/sapling/TezosSaplingAccountant.d.ts +32 -0
  787. package/v1/utils/protocol/sapling/TezosSaplingAccountant.js +589 -0
  788. package/v1/utils/protocol/sapling/TezosSaplingAccountant.js.map +1 -0
  789. package/v1/utils/protocol/sapling/TezosSaplingEncoder.d.ts +22 -0
  790. package/v1/utils/protocol/sapling/TezosSaplingEncoder.js +158 -0
  791. package/v1/utils/protocol/sapling/TezosSaplingEncoder.js.map +1 -0
  792. package/v1/utils/protocol/sapling/TezosSaplingForger.d.ts +26 -0
  793. package/v1/utils/protocol/sapling/TezosSaplingForger.js +284 -0
  794. package/v1/utils/protocol/sapling/TezosSaplingForger.js.map +1 -0
  795. package/v1/utils/protocol/sapling/TezosSaplingState.d.ts +17 -0
  796. package/v1/utils/protocol/sapling/TezosSaplingState.js +266 -0
  797. package/v1/utils/protocol/sapling/TezosSaplingState.js.map +1 -0
  798. package/v1/utils/protocol/tezos/TezosAccountant.d.ts +13 -0
  799. package/v1/utils/protocol/tezos/TezosAccountant.js +173 -0
  800. package/v1/utils/protocol/tezos/TezosAccountant.js.map +1 -0
  801. package/v1/utils/protocol/tezos/TezosForger.d.ts +6 -0
  802. package/v1/utils/protocol/tezos/TezosForger.js +82 -0
  803. package/v1/utils/protocol/tezos/TezosForger.js.map +1 -0
  804. package/v1/utils/signature.d.ts +2 -0
  805. package/v1/utils/signature.js +23 -0
  806. package/v1/utils/signature.js.map +1 -0
  807. package/v1/utils/transaction.d.ts +9 -0
  808. package/v1/utils/transaction.js +26 -0
  809. package/v1/utils/transaction.js.map +1 -0
  810. package/actions/GetKtAccountsAction.js +0 -85
  811. package/actions/GetKtAccountsAction.js.map +0 -1
  812. package/constants.js.map +0 -1
  813. package/protocol/TezosAddress.js +0 -102
  814. package/protocol/TezosAddress.js.map +0 -1
  815. package/protocol/TezosCryptoClient.js +0 -152
  816. package/protocol/TezosCryptoClient.js.map +0 -1
  817. package/protocol/TezosProtocol.js +0 -1853
  818. package/protocol/TezosProtocol.js.map +0 -1
  819. package/protocol/TezosProtocolOptions.js +0 -114
  820. package/protocol/TezosProtocolOptions.js.map +0 -1
  821. package/protocol/TezosUtils.js +0 -296
  822. package/protocol/TezosUtils.js.map +0 -1
  823. package/protocol/contract/TezosContract.js +0 -509
  824. package/protocol/contract/TezosContract.js.map +0 -1
  825. package/protocol/contract/TezosContractCall.d.ts +0 -10
  826. package/protocol/contract/TezosContractCall.js.map +0 -1
  827. package/protocol/contract/TezosContractEntrypoint.js +0 -27
  828. package/protocol/contract/TezosContractEntrypoint.js.map +0 -1
  829. package/protocol/contract/TezosContractStorage.js.map +0 -1
  830. package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js +0 -34
  831. package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js.map +0 -1
  832. package/protocol/contract/remote-data/TezosStorageRemoteData.js +0 -151
  833. package/protocol/contract/remote-data/TezosStorageRemoteData.js.map +0 -1
  834. package/protocol/domains/TezosDomains.js +0 -306
  835. package/protocol/domains/TezosDomains.js.map +0 -1
  836. package/protocol/fa/TezosBTC.js +0 -107
  837. package/protocol/fa/TezosBTC.js.map +0 -1
  838. package/protocol/fa/TezosBTCtez.js +0 -54
  839. package/protocol/fa/TezosBTCtez.js.map +0 -1
  840. package/protocol/fa/TezosCTez.js +0 -51
  841. package/protocol/fa/TezosCTez.js.map +0 -1
  842. package/protocol/fa/TezosDOGA.js +0 -51
  843. package/protocol/fa/TezosDOGA.js.map +0 -1
  844. package/protocol/fa/TezosETHtz.js +0 -72
  845. package/protocol/fa/TezosETHtz.js.map +0 -1
  846. package/protocol/fa/TezosFA1Protocol.js +0 -310
  847. package/protocol/fa/TezosFA1Protocol.js.map +0 -1
  848. package/protocol/fa/TezosFA1p2Protocol.js +0 -117
  849. package/protocol/fa/TezosFA1p2Protocol.js.map +0 -1
  850. package/protocol/fa/TezosFA2Protocol.js +0 -449
  851. package/protocol/fa/TezosFA2Protocol.js.map +0 -1
  852. package/protocol/fa/TezosFAProtocol.js +0 -510
  853. package/protocol/fa/TezosFAProtocol.js.map +0 -1
  854. package/protocol/fa/TezosFAProtocolOptions.js +0 -228
  855. package/protocol/fa/TezosFAProtocolOptions.js.map +0 -1
  856. package/protocol/fa/TezosKolibriUSD.js +0 -74
  857. package/protocol/fa/TezosKolibriUSD.js.map +0 -1
  858. package/protocol/fa/TezosPlanty.js +0 -51
  859. package/protocol/fa/TezosPlanty.js.map +0 -1
  860. package/protocol/fa/TezosQUIPU.js +0 -54
  861. package/protocol/fa/TezosQUIPU.js.map +0 -1
  862. package/protocol/fa/TezosSIRS.js +0 -51
  863. package/protocol/fa/TezosSIRS.js.map +0 -1
  864. package/protocol/fa/TezosStaker.js +0 -74
  865. package/protocol/fa/TezosStaker.js.map +0 -1
  866. package/protocol/fa/TezosUBTC.js +0 -54
  867. package/protocol/fa/TezosUBTC.js.map +0 -1
  868. package/protocol/fa/TezosUDEFI.js +0 -54
  869. package/protocol/fa/TezosUDEFI.js.map +0 -1
  870. package/protocol/fa/TezosUSD.js +0 -74
  871. package/protocol/fa/TezosUSD.js.map +0 -1
  872. package/protocol/fa/TezosUSDT.js +0 -54
  873. package/protocol/fa/TezosUSDT.js.map +0 -1
  874. package/protocol/fa/TezosUUSD.js +0 -31
  875. package/protocol/fa/TezosUUSD.js.map +0 -1
  876. package/protocol/fa/TezosWRAP.js +0 -54
  877. package/protocol/fa/TezosWRAP.js.map +0 -1
  878. package/protocol/fa/TezosWrapped.js +0 -74
  879. package/protocol/fa/TezosWrapped.js.map +0 -1
  880. package/protocol/fa/TezosYOU.js +0 -31
  881. package/protocol/fa/TezosYOU.js.map +0 -1
  882. package/protocol/indexerClient/TezosIndexerClient.js +0 -269
  883. package/protocol/indexerClient/TezosIndexerClient.js.map +0 -1
  884. package/protocol/indexerClient/TezosProtocolIndexerClient.js.map +0 -1
  885. package/protocol/kt/TezosKtAddress.js +0 -72
  886. package/protocol/kt/TezosKtAddress.js.map +0 -1
  887. package/protocol/kt/TezosKtProtocol.js +0 -317
  888. package/protocol/kt/TezosKtProtocol.js.map +0 -1
  889. package/protocol/sapling/TezosSaplingAddress.js +0 -134
  890. package/protocol/sapling/TezosSaplingAddress.js.map +0 -1
  891. package/protocol/sapling/TezosSaplingCryptoClient.js +0 -242
  892. package/protocol/sapling/TezosSaplingCryptoClient.js.map +0 -1
  893. package/protocol/sapling/TezosSaplingProtocol.js +0 -1175
  894. package/protocol/sapling/TezosSaplingProtocol.js.map +0 -1
  895. package/protocol/sapling/TezosSaplingProtocolOptions.js +0 -79
  896. package/protocol/sapling/TezosSaplingProtocolOptions.js.map +0 -1
  897. package/protocol/sapling/TezosShieldedTezProtocol.js +0 -133
  898. package/protocol/sapling/TezosShieldedTezProtocol.js.map +0 -1
  899. package/protocol/sapling/injector/TezosSaplingInjectorClient.js +0 -68
  900. package/protocol/sapling/injector/TezosSaplingInjectorClient.js.map +0 -1
  901. package/protocol/sapling/node/TezosSaplingNodeClient.js +0 -78
  902. package/protocol/sapling/node/TezosSaplingNodeClient.js.map +0 -1
  903. package/protocol/sapling/utils/TezosSaplingBookkeeper.js +0 -586
  904. package/protocol/sapling/utils/TezosSaplingBookkeeper.js.map +0 -1
  905. package/protocol/sapling/utils/TezosSaplingEncoder.js +0 -158
  906. package/protocol/sapling/utils/TezosSaplingEncoder.js.map +0 -1
  907. package/protocol/sapling/utils/TezosSaplingForger.js +0 -278
  908. package/protocol/sapling/utils/TezosSaplingForger.js.map +0 -1
  909. package/protocol/sapling/utils/TezosSaplingState.js +0 -260
  910. package/protocol/sapling/utils/TezosSaplingState.js.map +0 -1
  911. package/protocol/types/TezosAddressCursor.js.map +0 -1
  912. package/protocol/types/TezosAddressResult.js.map +0 -1
  913. package/protocol/types/TezosBlockHeader.js.map +0 -1
  914. package/protocol/types/TezosBlockMetadata.js.map +0 -1
  915. package/protocol/types/TezosContractCode.js.map +0 -1
  916. package/protocol/types/TezosOperationType.js.map +0 -1
  917. package/protocol/types/TezosTransactionCursor.js.map +0 -1
  918. package/protocol/types/TezosTransactionResult.js.map +0 -1
  919. package/protocol/types/TezosWrappedOperation.js.map +0 -1
  920. package/protocol/types/contract/BigMap.js.map +0 -1
  921. package/protocol/types/contract/BigMapEnrtyFilter.js.map +0 -1
  922. package/protocol/types/contract/BigMapEntry.js.map +0 -1
  923. package/protocol/types/contract/BigMapRequest.js.map +0 -1
  924. package/protocol/types/contract/TezosContractMetadata.js.map +0 -1
  925. package/protocol/types/domains/TezosDomainsRecord.js.map +0 -1
  926. package/protocol/types/domains/TezosDomainsReverseRecord.js.map +0 -1
  927. package/protocol/types/fa/TezosFA2BalanceOfRequest.js.map +0 -1
  928. package/protocol/types/fa/TezosFA2BalanceOfResponse.js.map +0 -1
  929. package/protocol/types/fa/TezosFA2TransferRequest.js.map +0 -1
  930. package/protocol/types/fa/TezosFA2UpdateOperatorRequest.js.map +0 -1
  931. package/protocol/types/fa/TezosFATokenMetadata.js.map +0 -1
  932. package/protocol/types/kt/TezosKtAddressCursor.js.map +0 -1
  933. package/protocol/types/kt/TezosKtAddressResult.js.map +0 -1
  934. package/protocol/types/micheline/MichelineNode.js.map +0 -1
  935. package/protocol/types/micheline/MichelineNodeUtils.js +0 -40
  936. package/protocol/types/micheline/MichelineNodeUtils.js.map +0 -1
  937. package/protocol/types/michelson/MichelsonType.js.map +0 -1
  938. package/protocol/types/michelson/MichelsonTypeMeta.js +0 -132
  939. package/protocol/types/michelson/MichelsonTypeMeta.js.map +0 -1
  940. package/protocol/types/michelson/MichelsonTypeUtils.js +0 -249
  941. package/protocol/types/michelson/MichelsonTypeUtils.js.map +0 -1
  942. package/protocol/types/michelson/generics/MichelsonList.js +0 -68
  943. package/protocol/types/michelson/generics/MichelsonList.js.map +0 -1
  944. package/protocol/types/michelson/generics/MichelsonMap.js +0 -118
  945. package/protocol/types/michelson/generics/MichelsonMap.js.map +0 -1
  946. package/protocol/types/michelson/generics/MichelsonOption.js +0 -119
  947. package/protocol/types/michelson/generics/MichelsonOption.js.map +0 -1
  948. package/protocol/types/michelson/generics/MichelsonOr.js +0 -132
  949. package/protocol/types/michelson/generics/MichelsonOr.js.map +0 -1
  950. package/protocol/types/michelson/generics/MichelsonPair.js +0 -135
  951. package/protocol/types/michelson/generics/MichelsonPair.js.map +0 -1
  952. package/protocol/types/michelson/grammar/MichelsonGrammarData.js.map +0 -1
  953. package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js.map +0 -1
  954. package/protocol/types/michelson/grammar/MichelsonGrammarType.js.map +0 -1
  955. package/protocol/types/michelson/primitives/MichelsonAddress.js +0 -72
  956. package/protocol/types/michelson/primitives/MichelsonAddress.js.map +0 -1
  957. package/protocol/types/michelson/primitives/MichelsonBool.js +0 -57
  958. package/protocol/types/michelson/primitives/MichelsonBool.js.map +0 -1
  959. package/protocol/types/michelson/primitives/MichelsonBytes.js +0 -75
  960. package/protocol/types/michelson/primitives/MichelsonBytes.js.map +0 -1
  961. package/protocol/types/michelson/primitives/MichelsonInt.js +0 -72
  962. package/protocol/types/michelson/primitives/MichelsonInt.js.map +0 -1
  963. package/protocol/types/michelson/primitives/MichelsonString.js +0 -74
  964. package/protocol/types/michelson/primitives/MichelsonString.js.map +0 -1
  965. package/protocol/types/michelson/primitives/MichelsonUnit.js +0 -53
  966. package/protocol/types/michelson/primitives/MichelsonUnit.js.map +0 -1
  967. package/protocol/types/operations/ActivateAccount.js.map +0 -1
  968. package/protocol/types/operations/Ballot.js.map +0 -1
  969. package/protocol/types/operations/Delegation.js.map +0 -1
  970. package/protocol/types/operations/DoubleBakingEvidence.js.map +0 -1
  971. package/protocol/types/operations/DoubleEndorsementEvidence.js.map +0 -1
  972. package/protocol/types/operations/Endorsement.js.map +0 -1
  973. package/protocol/types/operations/Origination.js.map +0 -1
  974. package/protocol/types/operations/Proposal.js.map +0 -1
  975. package/protocol/types/operations/Reveal.js.map +0 -1
  976. package/protocol/types/operations/SeedNonceRevelation.js.map +0 -1
  977. package/protocol/types/operations/TezosOperation.js.map +0 -1
  978. package/protocol/types/operations/Transaction.js.map +0 -1
  979. package/protocol/types/sapling/TezosSaplingAddressCursor.js.map +0 -1
  980. package/protocol/types/sapling/TezosSaplingAddressResult.js.map +0 -1
  981. package/protocol/types/sapling/TezosSaplingCiphertext.js.map +0 -1
  982. package/protocol/types/sapling/TezosSaplingInput.js.map +0 -1
  983. package/protocol/types/sapling/TezosSaplingOutput.js.map +0 -1
  984. package/protocol/types/sapling/TezosSaplingStateDiff.js.map +0 -1
  985. package/protocol/types/sapling/TezosSaplingStateTree.js.map +0 -1
  986. package/protocol/types/sapling/TezosSaplingTransaction.js.map +0 -1
  987. package/protocol/types/sapling/TezosSaplingTransactionCursor.js.map +0 -1
  988. package/protocol/types/sapling/TezosSaplingTransactionResult.js.map +0 -1
  989. package/protocol/types/utils.js.map +0 -1
  990. package/types/signed-transaction-tezos-sapling.d.ts +0 -3
  991. package/types/signed-transaction-tezos-sapling.js.map +0 -1
  992. package/types/signed-transaction-tezos.d.ts +0 -5
  993. package/types/signed-transaction-tezos.js.map +0 -1
  994. package/types/transaction-tezos.js.map +0 -1
  995. package/types/unsigned-transaction-tezos-sapling.d.ts +0 -38
  996. package/types/unsigned-transaction-tezos-sapling.js.map +0 -1
  997. package/types/unsigned-transaction-tezos.d.ts +0 -8
  998. package/types/unsigned-transaction-tezos.js.map +0 -1
@@ -1,260 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- var __generator = (this && this.__generator) || function (thisArg, body) {
31
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
32
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
33
- function verb(n) { return function (v) { return step([n, v]); }; }
34
- function step(op) {
35
- if (f) throw new TypeError("Generator is already executing.");
36
- while (_) try {
37
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
38
- if (y = 0, t) op = [op[0] & 2, t.value];
39
- switch (op[0]) {
40
- case 0: case 1: t = op; break;
41
- case 4: _.label++; return { value: op[1], done: false };
42
- case 5: _.label++; y = op[1]; op = [0]; continue;
43
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
44
- default:
45
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
46
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
47
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
48
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
49
- if (t[2]) _.ops.pop();
50
- _.trys.pop(); continue;
51
- }
52
- op = body.call(thisArg, _);
53
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
54
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
55
- }
56
- };
57
- var __spreadArrays = (this && this.__spreadArrays) || function () {
58
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
59
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
60
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
61
- r[k] = a[j];
62
- return r;
63
- };
64
- var __importDefault = (this && this.__importDefault) || function (mod) {
65
- return (mod && mod.__esModule) ? mod : { "default": mod };
66
- };
67
- Object.defineProperty(exports, "__esModule", { value: true });
68
- exports.TezosSaplingState = void 0;
69
- var Lazy_1 = require("@airgap/coinlib-core/data/Lazy");
70
- var bignumber_1 = __importDefault(require("@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber"));
71
- var array_1 = require("@airgap/coinlib-core/utils/array");
72
- var hex_1 = require("@airgap/coinlib-core/utils/hex");
73
- var sapling = __importStar(require("@airgap/sapling-wasm"));
74
- var TezosSaplingState = /** @class */ (function () {
75
- function TezosSaplingState(treeHeight) {
76
- var _this = this;
77
- this.treeHeight = treeHeight;
78
- this.uncommitedMerkleHash = '0100000000000000000000000000000000000000000000000000000000000000';
79
- this.uncommitedMerkleHashes = new Lazy_1.LazyAsync(function () { return _this.createUncommitedMerkleHashes(); });
80
- }
81
- TezosSaplingState.prototype.getStateTreeFromStateDiff = function (saplingStateDiff, skipConstruction) {
82
- if (skipConstruction === void 0) { skipConstruction = false; }
83
- return __awaiter(this, void 0, void 0, function () {
84
- var commitments, merkleTree;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
87
- case 0:
88
- if (this.stateTree !== undefined && this.stateTree.root === saplingStateDiff.root) {
89
- return [2 /*return*/, this.stateTree];
90
- }
91
- commitments = saplingStateDiff.commitments_and_ciphertexts.map(function (_a) {
92
- var commitment = _a[0], _ = _a[1];
93
- return commitment;
94
- });
95
- if (!!skipConstruction) return [3 /*break*/, 3];
96
- return [4 /*yield*/, this.constructMerkleTree(commitments, 0)];
97
- case 1:
98
- merkleTree = _a.sent();
99
- return [4 /*yield*/, this.verifyMerkleTree(merkleTree, saplingStateDiff.root)];
100
- case 2:
101
- _a.sent();
102
- _a.label = 3;
103
- case 3:
104
- this.stateTree = {
105
- height: this.treeHeight,
106
- size: commitments.length,
107
- root: saplingStateDiff.root,
108
- tree: merkleTree
109
- };
110
- return [2 /*return*/, this.stateTree];
111
- }
112
- });
113
- });
114
- };
115
- TezosSaplingState.prototype.getWitness = function (stateTree, position) {
116
- return __awaiter(this, void 0, void 0, function () {
117
- var heightBuffer, positionBuffer, neighboringHashes, witness;
118
- return __generator(this, function (_a) {
119
- switch (_a.label) {
120
- case 0:
121
- heightBuffer = hex_1.hexToBytes(hex_1.changeEndianness(hex_1.toHexString(stateTree.height)));
122
- positionBuffer = hex_1.hexToBytes(hex_1.changeEndianness(hex_1.toHexString(position, 64)));
123
- return [4 /*yield*/, this.getNeighboringHashes([], stateTree.height, position, stateTree.tree)];
124
- case 1:
125
- neighboringHashes = _a.sent();
126
- witness = neighboringHashes
127
- .map(function (hash) { return Buffer.concat([hex_1.hexToBytes(hex_1.changeEndianness(hex_1.toHexString(hash.length))), hash]); })
128
- .reverse()
129
- .reduce(function (acc, next) { return Buffer.concat([acc, next]); });
130
- return [2 /*return*/, Buffer.concat([heightBuffer, witness, positionBuffer]).toString('hex')];
131
- }
132
- });
133
- });
134
- };
135
- TezosSaplingState.prototype.constructMerkleTree = function (children, height) {
136
- return __awaiter(this, void 0, void 0, function () {
137
- var chunkedChildren, newChildren;
138
- var _this = this;
139
- return __generator(this, function (_a) {
140
- switch (_a.label) {
141
- case 0:
142
- if (height === this.treeHeight && children.length === 1) {
143
- return [2 /*return*/, children[0]];
144
- }
145
- if (height === this.treeHeight || children.length > Math.pow(2, this.treeHeight - 1 - height)) {
146
- return [2 /*return*/, Promise.reject('Invalid Merkle tree')];
147
- }
148
- chunkedChildren = array_1.chunkedArray(children, 2);
149
- return [4 /*yield*/, Promise.all(chunkedChildren.map(function (chunk) { return __awaiter(_this, void 0, void 0, function () {
150
- var _a, lhs, rhs, parentHash;
151
- return __generator(this, function (_b) {
152
- switch (_b.label) {
153
- case 0: return [4 /*yield*/, Promise.all([this.getMerkleHash(chunk[0], height), this.getMerkleHash(chunk[1], height)])];
154
- case 1:
155
- _a = _b.sent(), lhs = _a[0], rhs = _a[1];
156
- return [4 /*yield*/, sapling.merkleHash(height, lhs, rhs)];
157
- case 2:
158
- parentHash = _b.sent();
159
- return [2 /*return*/, [parentHash.toString('hex'), chunk[0], chunk[1]]];
160
- }
161
- });
162
- }); }))];
163
- case 1:
164
- newChildren = _a.sent();
165
- return [2 /*return*/, this.constructMerkleTree(newChildren, height + 1)];
166
- }
167
- });
168
- });
169
- };
170
- TezosSaplingState.prototype.verifyMerkleTree = function (tree, expectedRoot) {
171
- return __awaiter(this, void 0, void 0, function () {
172
- var root;
173
- return __generator(this, function (_a) {
174
- switch (_a.label) {
175
- case 0: return [4 /*yield*/, this.getMerkleHash(tree, this.treeHeight - 1)];
176
- case 1:
177
- root = _a.sent();
178
- if (root.toString('hex') !== expectedRoot) {
179
- return [2 /*return*/, Promise.reject('Merkle tree root is invalid')];
180
- }
181
- return [2 /*return*/];
182
- }
183
- });
184
- });
185
- };
186
- TezosSaplingState.prototype.getMerkleHash = function (tree, height) {
187
- return __awaiter(this, void 0, void 0, function () {
188
- return __generator(this, function (_a) {
189
- switch (_a.label) {
190
- case 0:
191
- if (!(tree === undefined)) return [3 /*break*/, 2];
192
- return [4 /*yield*/, this.uncommitedMerkleHashes.get()];
193
- case 1: return [2 /*return*/, (_a.sent())[height]];
194
- case 2:
195
- if (typeof tree === 'string') {
196
- return [2 /*return*/, Buffer.from(tree, 'hex')];
197
- }
198
- else {
199
- return [2 /*return*/, Buffer.from(tree[0], 'hex')];
200
- }
201
- _a.label = 3;
202
- case 3: return [2 /*return*/];
203
- }
204
- });
205
- });
206
- };
207
- TezosSaplingState.prototype.createUncommitedMerkleHashes = function () {
208
- return __awaiter(this, void 0, void 0, function () {
209
- var res, i, hash, _a, _b;
210
- return __generator(this, function (_c) {
211
- switch (_c.label) {
212
- case 0:
213
- res = new Array(this.treeHeight);
214
- res[0] = Buffer.from(this.uncommitedMerkleHash, 'hex');
215
- i = 0;
216
- _c.label = 1;
217
- case 1:
218
- if (!(i < this.treeHeight)) return [3 /*break*/, 4];
219
- hash = res[i];
220
- _a = res;
221
- _b = i + 1;
222
- return [4 /*yield*/, sapling.merkleHash(i, hash, hash)];
223
- case 2:
224
- _a[_b] = _c.sent();
225
- _c.label = 3;
226
- case 3:
227
- i++;
228
- return [3 /*break*/, 1];
229
- case 4: return [2 /*return*/, res];
230
- }
231
- });
232
- });
233
- };
234
- TezosSaplingState.prototype.getNeighboringHashes = function (acc, height, position, tree) {
235
- return __awaiter(this, void 0, void 0, function () {
236
- var full, _a, nextPosition, nextTree, otherTree, _b;
237
- return __generator(this, function (_c) {
238
- switch (_c.label) {
239
- case 0:
240
- if (!(typeof tree === 'undefined')) return [3 /*break*/, 1];
241
- return [2 /*return*/, Promise.reject('Invalid tree')];
242
- case 1:
243
- if (!(typeof tree === 'string')) return [3 /*break*/, 2];
244
- return [2 /*return*/, acc];
245
- case 2:
246
- full = new bignumber_1.default(2).pow(height - 1);
247
- _a = position.lt(full)
248
- ? [position, tree[1], tree[2]]
249
- : [position.minus(full), tree[2], tree[1]], nextPosition = _a[0], nextTree = _a[1], otherTree = _a[2];
250
- _b = this.getNeighboringHashes;
251
- return [4 /*yield*/, this.getMerkleHash(otherTree, height - 1)];
252
- case 3: return [2 /*return*/, _b.apply(this, [__spreadArrays.apply(void 0, [[_c.sent()], acc]), height - 1, nextPosition, nextTree])];
253
- }
254
- });
255
- });
256
- };
257
- return TezosSaplingState;
258
- }());
259
- exports.TezosSaplingState = TezosSaplingState;
260
- //# sourceMappingURL=TezosSaplingState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosSaplingState.js","sourceRoot":"","sources":["../../../../src/protocol/sapling/utils/TezosSaplingState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,iHAA0F;AAC1F,0DAA+D;AAC/D,sDAA0F;AAC1F,4DAA+C;AAM/C;IAME,2BAA4B,UAAkB;QAA9C,iBAAkD;QAAtB,eAAU,GAAV,UAAU,CAAQ;QAL7B,yBAAoB,GAAW,kEAAkE,CAAA;QACjG,2BAAsB,GAAwB,IAAI,gBAAS,CAAC,cAAM,OAAA,KAAI,CAAC,4BAA4B,EAAE,EAAnC,CAAmC,CAAC,CAAA;IAItE,CAAC;IAErC,qDAAyB,GAAtC,UACE,gBAAuC,EACvC,gBAAiC;QAAjC,iCAAA,EAAA,wBAAiC;;;;;;wBAEjC,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI,EAAE;4BACjF,sBAAO,IAAI,CAAC,SAAS,EAAA;yBACtB;wBAEK,WAAW,GAAa,gBAAgB,CAAC,2BAA2B,CAAC,GAAG,CAC5E,UAAC,EAAiD;gCAAhD,UAAU,QAAA,EAAE,CAAC,QAAA;4BAAwC,OAAA,UAAU;wBAAV,CAAU,CAClE,CAAA;6BAGG,CAAC,gBAAgB,EAAjB,wBAAiB;wBACN,qBAAM,IAAI,CAAC,mB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D,IAoHC;AApHY,8CAAiB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosAddressCursor.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosAddressCursor.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosAddressResult.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosAddressResult.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosBlockHeader.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosBlockHeader.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosBlockMetadata.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosBlockMetadata.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosContractCode.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosContractCode.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosOperationType.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosOperationType.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,iDAA2B,CAAA;IAC3B,qEAA+C,CAAA;IAC/C,iFAA2D,CAAA;IAC3D,uEAAiD,CAAA;IACjD,2DAAqC,CAAA;IACrC,6CAAuB,CAAA;IACvB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,iDAA2B,CAAA;IAC3B,iDAA2B,CAAA;IAC3B,+CAAyB,CAAA;AAC3B,CAAC,EAZW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAY7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosTransactionCursor.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosTransactionCursor.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosTransactionResult.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosTransactionResult.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosWrappedOperation.js","sourceRoot":"","sources":["../../../src/protocol/types/TezosWrappedOperation.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BigMap.js","sourceRoot":"","sources":["../../../../src/protocol/types/contract/BigMap.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BigMapEnrtyFilter.js","sourceRoot":"","sources":["../../../../src/protocol/types/contract/BigMapEnrtyFilter.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BigMapEntry.js","sourceRoot":"","sources":["../../../../src/protocol/types/contract/BigMapEntry.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BigMapRequest.js","sourceRoot":"","sources":["../../../../src/protocol/types/contract/BigMapRequest.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosContractMetadata.js","sourceRoot":"","sources":["../../../../src/protocol/types/contract/TezosContractMetadata.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosDomainsRecord.js","sourceRoot":"","sources":["../../../../src/protocol/types/domains/TezosDomainsRecord.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosDomainsReverseRecord.js","sourceRoot":"","sources":["../../../../src/protocol/types/domains/TezosDomainsReverseRecord.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosFA2BalanceOfRequest.js","sourceRoot":"","sources":["../../../../src/protocol/types/fa/TezosFA2BalanceOfRequest.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosFA2BalanceOfResponse.js","sourceRoot":"","sources":["../../../../src/protocol/types/fa/TezosFA2BalanceOfResponse.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosFA2TransferRequest.js","sourceRoot":"","sources":["../../../../src/protocol/types/fa/TezosFA2TransferRequest.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosFA2UpdateOperatorRequest.js","sourceRoot":"","sources":["../../../../src/protocol/types/fa/TezosFA2UpdateOperatorRequest.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosFATokenMetadata.js","sourceRoot":"","sources":["../../../../src/protocol/types/fa/TezosFATokenMetadata.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosKtAddressCursor.js","sourceRoot":"","sources":["../../../../src/protocol/types/kt/TezosKtAddressCursor.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TezosKtAddressResult.js","sourceRoot":"","sources":["../../../../src/protocol/types/kt/TezosKtAddressResult.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MichelineNode.js","sourceRoot":"","sources":["../../../../src/protocol/types/micheline/MichelineNode.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,qEAAqE"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MichelineNodeUtils = void 0;
4
- var utils_1 = require("../utils");
5
- var MichelineNodeUtils = /** @class */ (function () {
6
- function MichelineNodeUtils() {
7
- }
8
- MichelineNodeUtils.normalize = function (node) {
9
- var _a;
10
- if (utils_1.isMichelineSequence(node, false)) {
11
- return node.map(function (value) { return MichelineNodeUtils.normalize(value); });
12
- }
13
- else if (utils_1.isAnyMichelinePrimitiveApplication(node)) {
14
- var args = void 0;
15
- if ((node.prim === 'pair' || node.prim === 'Pair') && node.args && node.args.length > 2) {
16
- args = [
17
- MichelineNodeUtils.normalize(node.args[0]),
18
- MichelineNodeUtils.normalize({
19
- prim: node.prim,
20
- args: node.args.slice(1)
21
- })
22
- ];
23
- }
24
- else {
25
- args = (_a = node.args) === null || _a === void 0 ? void 0 : _a.map(function (arg) { return MichelineNodeUtils.normalize(arg); });
26
- }
27
- return {
28
- prim: node.prim,
29
- args: args,
30
- annots: node.annots
31
- };
32
- }
33
- else {
34
- return node;
35
- }
36
- };
37
- return MichelineNodeUtils;
38
- }());
39
- exports.MichelineNodeUtils = MichelineNodeUtils;
40
- //# sourceMappingURL=MichelineNodeUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MichelineNodeUtils.js","sourceRoot":"","sources":["../../../../src/protocol/types/micheline/MichelineNodeUtils.ts"],"names":[],"mappings":";;;AAEA,kCAAkF;AAGlF;IAAA;IA2BA,CAAC;IA1Be,4BAAS,GAAvB,UAA+E,IAA6B;;QAC1G,IAAI,2BAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;YACpC,OAAO,IAAI,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAnC,CAAmC,CAAC,CAAA;SAChE;aAAM,IAAI,0CAAkC,CAAC,IAAI,CAAC,EAAE;YACnD,IAAI,IAAI,SAAuC,CAAA;YAC/C,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvF,IAAI,GAAG;oBACL,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;oBAC1C,kBAAkB,CAAC,SAAS,CAAC;wBAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;wBACf,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;qBACzB,CAAC;iBACH,CAAA;aACF;iBAAM;gBACL,IAAI,SAAG,IAAI,CAAC,IAAI,0CAAE,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAjC,CAAiC,CAAC,CAAA;aAClE;YAED,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,IAAI,MAAA;gBACJ,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAA;SACF;aAAM;YACL,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;IACH,yBAAC;AAAD,CAAC,AA3BD,IA2BC;AA3BY,gDAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MichelsonType.js","sourceRoot":"","sources":["../../../../src/protocol/types/michelson/MichelsonType.ts"],"names":[],"mappings":";;;AAAA,sDAA8D;AAC9D,2EAAkE;AAIlE;IACE,uBAAmB,IAAa;QAAb,SAAI,GAAJ,IAAI,CAAS;IAAG,CAAC;IAK7B,4BAAI,GAAX;QACE,6CAA6C;IAC/C,CAAC;IAEM,8BAAM,GAAb;QACE,MAAM,IAAI,yBAAgB,CAAC,sBAAM,CAAC,KAAK,EAAE,mDAAmD,CAAC,CAAA;IAC/F,CAAC;IAEM,+BAAO,GAAd,UAAe,IAAY;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBqB,sCAAa"}
@@ -1,132 +0,0 @@
1
- "use strict";
2
- // tslint:disable: max-classes-per-file
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __spreadArrays = (this && this.__spreadArrays) || function () {
17
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
18
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
19
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
20
- r[k] = a[j];
21
- return r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.MichelsonGenericTypeMeta = exports.MichelsonTypeMeta = exports.MichelsonAnnotationPrefix = void 0;
25
- var Lazy_1 = require("@airgap/coinlib-core/data/Lazy");
26
- var utils_1 = require("../utils");
27
- var MichelsonType_1 = require("./MichelsonType");
28
- var MichelsonTypeUtils_1 = require("./MichelsonTypeUtils");
29
- var MichelsonAnnotationPrefix;
30
- (function (MichelsonAnnotationPrefix) {
31
- MichelsonAnnotationPrefix["TYPE"] = ":";
32
- MichelsonAnnotationPrefix["VARIABLE"] = "@";
33
- MichelsonAnnotationPrefix["FIELD"] = "%";
34
- })(MichelsonAnnotationPrefix = exports.MichelsonAnnotationPrefix || (exports.MichelsonAnnotationPrefix = {}));
35
- var MichelsonTypeMeta = /** @class */ (function () {
36
- function MichelsonTypeMeta(type, parent, annots) {
37
- if (annots === void 0) { annots = []; }
38
- this.type = type;
39
- this.parent = parent;
40
- this.annots = annots;
41
- }
42
- MichelsonTypeMeta.fromMichelineNode = function (node) {
43
- if (!utils_1.isAnyMichelinePrimitiveApplication(node)) {
44
- return undefined;
45
- }
46
- return this.fromMichelinePrimitiveApplication(node);
47
- };
48
- MichelsonTypeMeta.fromMichelinePrimitiveApplication = function (primitiveApplication, parent) {
49
- var _a, _b, _c;
50
- return this.from(primitiveApplication.prim, (_a = primitiveApplication.annots) !== null && _a !== void 0 ? _a : [], (_c = (_b = primitiveApplication.args) === null || _b === void 0 ? void 0 : _b.filter(utils_1.isAnyMichelinePrimitiveApplication)) !== null && _c !== void 0 ? _c : [], parent);
51
- };
52
- MichelsonTypeMeta.from = function (type, annots, args, parent) {
53
- return args.length === 0 ? new MichelsonTypeMeta(type, parent, annots) : new MichelsonGenericTypeMeta(type, args, parent, annots);
54
- };
55
- MichelsonTypeMeta.prototype.createValue = function (value, configuration) {
56
- var _a, _b;
57
- if (configuration === void 0) { configuration = {}; }
58
- if (value instanceof MichelsonType_1.MichelsonType) {
59
- return value;
60
- }
61
- var raw = this.getRawValue(value);
62
- if (configuration.beforeNext) {
63
- configuration.beforeNext(this, raw);
64
- }
65
- var michelsonValue = this.getMichelsonValue(raw, configuration);
66
- if (!((_a = configuration.lazyEval) !== null && _a !== void 0 ? _a : true)) {
67
- michelsonValue.eval();
68
- }
69
- if ((_b = configuration.readAnnots) !== null && _b !== void 0 ? _b : true) {
70
- var name_1 = this.getAnnotation(MichelsonAnnotationPrefix.FIELD, MichelsonAnnotationPrefix.TYPE);
71
- if (name_1) {
72
- michelsonValue.setName(name_1);
73
- }
74
- }
75
- if (configuration.onNext) {
76
- configuration.onNext(this, raw, michelsonValue);
77
- }
78
- return michelsonValue;
79
- };
80
- MichelsonTypeMeta.prototype.getAnnotation = function () {
81
- var prefixes = [];
82
- for (var _i = 0; _i < arguments.length; _i++) {
83
- prefixes[_i] = arguments[_i];
84
- }
85
- var _loop_1 = function (annot) {
86
- var matchedPrefix = prefixes.find(function (prefix) {
87
- return annot.startsWith(prefix);
88
- });
89
- if (matchedPrefix !== undefined) {
90
- return { value: annot.slice(matchedPrefix.length) };
91
- }
92
- };
93
- for (var _a = 0, _b = this.annots; _a < _b.length; _a++) {
94
- var annot = _b[_a];
95
- var state_1 = _loop_1(annot);
96
- if (typeof state_1 === "object")
97
- return state_1.value;
98
- }
99
- return undefined;
100
- };
101
- MichelsonTypeMeta.prototype.getMichelsonValue = function (raw, _configuration) {
102
- if (_configuration === void 0) { _configuration = {}; }
103
- return MichelsonTypeUtils_1.MichelsonTypeUtils.create(this.type, raw);
104
- };
105
- MichelsonTypeMeta.prototype.getRawValue = function (value) {
106
- var argName = this.getAnnotation(MichelsonAnnotationPrefix.TYPE, MichelsonAnnotationPrefix.FIELD);
107
- return value instanceof Object && argName && argName in value ? value[argName] : value;
108
- };
109
- return MichelsonTypeMeta;
110
- }());
111
- exports.MichelsonTypeMeta = MichelsonTypeMeta;
112
- var MichelsonGenericTypeMeta = /** @class */ (function (_super) {
113
- __extends(MichelsonGenericTypeMeta, _super);
114
- function MichelsonGenericTypeMeta(type, genericTypes, parent, annots) {
115
- if (annots === void 0) { annots = []; }
116
- var _this = _super.call(this, type, parent, annots) || this;
117
- _this.generics = genericTypes.map(function (type) {
118
- return new Lazy_1.Lazy(function () { return MichelsonTypeMeta.fromMichelinePrimitiveApplication(type, _this); });
119
- });
120
- return _this;
121
- }
122
- MichelsonGenericTypeMeta.prototype.getMichelsonValue = function (raw, configuration) {
123
- if (configuration === void 0) { configuration = {}; }
124
- var genericFactories = this.generics.map(function (genericMeta) {
125
- return function (genericValue) { return genericMeta.get().createValue(genericValue, configuration); };
126
- });
127
- return MichelsonTypeUtils_1.MichelsonTypeUtils.create.apply(MichelsonTypeUtils_1.MichelsonTypeUtils, __spreadArrays([this.type, raw], genericFactories));
128
- };
129
- return MichelsonGenericTypeMeta;
130
- }(MichelsonTypeMeta));
131
- exports.MichelsonGenericTypeMeta = MichelsonGenericTypeMeta;
132
- //# sourceMappingURL=MichelsonTypeMeta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MichelsonTypeMeta.js","sourceRoot":"","sources":["../../../../src/protocol/types/michelson/MichelsonTypeMeta.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;AAEvC,uDAAqD;AAIrD,kCAA6D;AAE7D,iDAA+C;AAC/C,2DAAyD;AAEzD,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACnC,uCAAU,CAAA;IACV,2CAAc,CAAA;IACd,wCAAW,CAAA;AACb,CAAC,EAJW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAIpC;AAUD;IACE,2BACkB,IAA0B,EAC1B,MAAiC,EACjC,MAAqB;QAArB,uBAAA,EAAA,WAAqB;QAFrB,SAAI,GAAJ,IAAI,CAAsB;QAC1B,WAAM,GAAN,MAAM,CAA2B;QACjC,W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