@airgap/tezos 0.13.7-beta.11

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 (370) hide show
  1. package/LICENSE.md +7 -0
  2. package/actions/GetKtAccountsAction.d.ts +8 -0
  3. package/actions/GetKtAccountsAction.js +85 -0
  4. package/actions/GetKtAccountsAction.js.map +1 -0
  5. package/airgap-coinlib-tezos.min.js +103587 -0
  6. package/constants.d.ts +18 -0
  7. package/constants.js +28 -0
  8. package/constants.js.map +1 -0
  9. package/index.d.ts +46 -0
  10. package/index.js +103 -0
  11. package/index.js.map +1 -0
  12. package/package.json +70 -0
  13. package/protocol/TezosAddress.d.ts +11 -0
  14. package/protocol/TezosAddress.js +102 -0
  15. package/protocol/TezosAddress.js.map +1 -0
  16. package/protocol/TezosCryptoClient.d.ts +15 -0
  17. package/protocol/TezosCryptoClient.js +152 -0
  18. package/protocol/TezosCryptoClient.js.map +1 -0
  19. package/protocol/TezosProtocol.d.ts +349 -0
  20. package/protocol/TezosProtocol.js +1853 -0
  21. package/protocol/TezosProtocol.js.map +1 -0
  22. package/protocol/TezosProtocolOptions.d.ts +29 -0
  23. package/protocol/TezosProtocolOptions.js +114 -0
  24. package/protocol/TezosProtocolOptions.js.map +1 -0
  25. package/protocol/TezosUtils.d.ts +40 -0
  26. package/protocol/TezosUtils.js +296 -0
  27. package/protocol/TezosUtils.js.map +1 -0
  28. package/protocol/contract/TezosContract.d.ts +52 -0
  29. package/protocol/contract/TezosContract.js +509 -0
  30. package/protocol/contract/TezosContract.js.map +1 -0
  31. package/protocol/contract/TezosContractCall.d.ts +10 -0
  32. package/protocol/contract/TezosContractCall.js +23 -0
  33. package/protocol/contract/TezosContractCall.js.map +1 -0
  34. package/protocol/contract/TezosContractEntrypoint.d.ts +8 -0
  35. package/protocol/contract/TezosContractEntrypoint.js +27 -0
  36. package/protocol/contract/TezosContractEntrypoint.js.map +1 -0
  37. package/protocol/contract/TezosContractStorage.d.ts +7 -0
  38. package/protocol/contract/TezosContractStorage.js +16 -0
  39. package/protocol/contract/TezosContractStorage.js.map +1 -0
  40. package/protocol/contract/remote-data/TezosContractRemoteDataFactory.d.ts +11 -0
  41. package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js +34 -0
  42. package/protocol/contract/remote-data/TezosContractRemoteDataFactory.js.map +1 -0
  43. package/protocol/contract/remote-data/TezosStorageRemoteData.d.ts +12 -0
  44. package/protocol/contract/remote-data/TezosStorageRemoteData.js +151 -0
  45. package/protocol/contract/remote-data/TezosStorageRemoteData.js.map +1 -0
  46. package/protocol/domains/TezosDomains.d.ts +20 -0
  47. package/protocol/domains/TezosDomains.js +306 -0
  48. package/protocol/domains/TezosDomains.js.map +1 -0
  49. package/protocol/fa/TezosBTC.d.ts +12 -0
  50. package/protocol/fa/TezosBTC.js +107 -0
  51. package/protocol/fa/TezosBTC.js.map +1 -0
  52. package/protocol/fa/TezosBTCtez.d.ts +10 -0
  53. package/protocol/fa/TezosBTCtez.js +54 -0
  54. package/protocol/fa/TezosBTCtez.js.map +1 -0
  55. package/protocol/fa/TezosCTez.d.ts +10 -0
  56. package/protocol/fa/TezosCTez.js +51 -0
  57. package/protocol/fa/TezosCTez.js.map +1 -0
  58. package/protocol/fa/TezosDOGA.d.ts +10 -0
  59. package/protocol/fa/TezosDOGA.js +51 -0
  60. package/protocol/fa/TezosDOGA.js.map +1 -0
  61. package/protocol/fa/TezosETHtz.d.ts +9 -0
  62. package/protocol/fa/TezosETHtz.js +72 -0
  63. package/protocol/fa/TezosETHtz.js.map +1 -0
  64. package/protocol/fa/TezosFA1Protocol.d.ts +27 -0
  65. package/protocol/fa/TezosFA1Protocol.js +310 -0
  66. package/protocol/fa/TezosFA1Protocol.js.map +1 -0
  67. package/protocol/fa/TezosFA1p2Protocol.d.ts +8 -0
  68. package/protocol/fa/TezosFA1p2Protocol.js +117 -0
  69. package/protocol/fa/TezosFA1p2Protocol.js.map +1 -0
  70. package/protocol/fa/TezosFA2Protocol.d.ts +58 -0
  71. package/protocol/fa/TezosFA2Protocol.js +449 -0
  72. package/protocol/fa/TezosFA2Protocol.js.map +1 -0
  73. package/protocol/fa/TezosFAProtocol.d.ts +65 -0
  74. package/protocol/fa/TezosFAProtocol.js +510 -0
  75. package/protocol/fa/TezosFAProtocol.js.map +1 -0
  76. package/protocol/fa/TezosFAProtocolOptions.d.ts +54 -0
  77. package/protocol/fa/TezosFAProtocolOptions.js +228 -0
  78. package/protocol/fa/TezosFAProtocolOptions.js.map +1 -0
  79. package/protocol/fa/TezosKolibriUSD.d.ts +10 -0
  80. package/protocol/fa/TezosKolibriUSD.js +74 -0
  81. package/protocol/fa/TezosKolibriUSD.js.map +1 -0
  82. package/protocol/fa/TezosPlanty.d.ts +10 -0
  83. package/protocol/fa/TezosPlanty.js +51 -0
  84. package/protocol/fa/TezosPlanty.js.map +1 -0
  85. package/protocol/fa/TezosQUIPU.d.ts +10 -0
  86. package/protocol/fa/TezosQUIPU.js +54 -0
  87. package/protocol/fa/TezosQUIPU.js.map +1 -0
  88. package/protocol/fa/TezosSIRS.d.ts +10 -0
  89. package/protocol/fa/TezosSIRS.js +51 -0
  90. package/protocol/fa/TezosSIRS.js.map +1 -0
  91. package/protocol/fa/TezosStaker.d.ts +10 -0
  92. package/protocol/fa/TezosStaker.js +74 -0
  93. package/protocol/fa/TezosStaker.js.map +1 -0
  94. package/protocol/fa/TezosUBTC.d.ts +10 -0
  95. package/protocol/fa/TezosUBTC.js +54 -0
  96. package/protocol/fa/TezosUBTC.js.map +1 -0
  97. package/protocol/fa/TezosUDEFI.d.ts +10 -0
  98. package/protocol/fa/TezosUDEFI.js +54 -0
  99. package/protocol/fa/TezosUDEFI.js.map +1 -0
  100. package/protocol/fa/TezosUSD.d.ts +10 -0
  101. package/protocol/fa/TezosUSD.js +74 -0
  102. package/protocol/fa/TezosUSD.js.map +1 -0
  103. package/protocol/fa/TezosUSDT.d.ts +10 -0
  104. package/protocol/fa/TezosUSDT.js +54 -0
  105. package/protocol/fa/TezosUSDT.js.map +1 -0
  106. package/protocol/fa/TezosUUSD.d.ts +6 -0
  107. package/protocol/fa/TezosUUSD.js +31 -0
  108. package/protocol/fa/TezosUUSD.js.map +1 -0
  109. package/protocol/fa/TezosWRAP.d.ts +10 -0
  110. package/protocol/fa/TezosWRAP.js +54 -0
  111. package/protocol/fa/TezosWRAP.js.map +1 -0
  112. package/protocol/fa/TezosWrapped.d.ts +10 -0
  113. package/protocol/fa/TezosWrapped.js +74 -0
  114. package/protocol/fa/TezosWrapped.js.map +1 -0
  115. package/protocol/fa/TezosYOU.d.ts +6 -0
  116. package/protocol/fa/TezosYOU.js +31 -0
  117. package/protocol/fa/TezosYOU.js.map +1 -0
  118. package/protocol/indexerClient/TezosIndexerClient.d.ts +25 -0
  119. package/protocol/indexerClient/TezosIndexerClient.js +251 -0
  120. package/protocol/indexerClient/TezosIndexerClient.js.map +1 -0
  121. package/protocol/indexerClient/TezosProtocolIndexerClient.d.ts +26 -0
  122. package/protocol/indexerClient/TezosProtocolIndexerClient.js +3 -0
  123. package/protocol/indexerClient/TezosProtocolIndexerClient.js.map +1 -0
  124. package/protocol/kt/TezosKtAddress.d.ts +5 -0
  125. package/protocol/kt/TezosKtAddress.js +72 -0
  126. package/protocol/kt/TezosKtAddress.js.map +1 -0
  127. package/protocol/kt/TezosKtProtocol.d.ts +30 -0
  128. package/protocol/kt/TezosKtProtocol.js +317 -0
  129. package/protocol/kt/TezosKtProtocol.js.map +1 -0
  130. package/protocol/sapling/TezosSaplingAddress.d.ts +12 -0
  131. package/protocol/sapling/TezosSaplingAddress.js +134 -0
  132. package/protocol/sapling/TezosSaplingAddress.js.map +1 -0
  133. package/protocol/sapling/TezosSaplingCryptoClient.d.ts +34 -0
  134. package/protocol/sapling/TezosSaplingCryptoClient.js +241 -0
  135. package/protocol/sapling/TezosSaplingCryptoClient.js.map +1 -0
  136. package/protocol/sapling/TezosSaplingProtocol.d.ts +130 -0
  137. package/protocol/sapling/TezosSaplingProtocol.js +1101 -0
  138. package/protocol/sapling/TezosSaplingProtocol.js.map +1 -0
  139. package/protocol/sapling/TezosSaplingProtocolOptions.d.ts +43 -0
  140. package/protocol/sapling/TezosSaplingProtocolOptions.js +78 -0
  141. package/protocol/sapling/TezosSaplingProtocolOptions.js.map +1 -0
  142. package/protocol/sapling/TezosShieldedTezProtocol.d.ts +9 -0
  143. package/protocol/sapling/TezosShieldedTezProtocol.js +109 -0
  144. package/protocol/sapling/TezosShieldedTezProtocol.js.map +1 -0
  145. package/protocol/sapling/node/TezosSaplingNodeClient.d.ts +8 -0
  146. package/protocol/sapling/node/TezosSaplingNodeClient.js +78 -0
  147. package/protocol/sapling/node/TezosSaplingNodeClient.js.map +1 -0
  148. package/protocol/sapling/utils/TezosSaplingBookkeeper.d.ts +34 -0
  149. package/protocol/sapling/utils/TezosSaplingBookkeeper.js +586 -0
  150. package/protocol/sapling/utils/TezosSaplingBookkeeper.js.map +1 -0
  151. package/protocol/sapling/utils/TezosSaplingEncoder.d.ts +22 -0
  152. package/protocol/sapling/utils/TezosSaplingEncoder.js +158 -0
  153. package/protocol/sapling/utils/TezosSaplingEncoder.js.map +1 -0
  154. package/protocol/sapling/utils/TezosSaplingForger.d.ts +26 -0
  155. package/protocol/sapling/utils/TezosSaplingForger.js +278 -0
  156. package/protocol/sapling/utils/TezosSaplingForger.js.map +1 -0
  157. package/protocol/sapling/utils/TezosSaplingState.d.ts +17 -0
  158. package/protocol/sapling/utils/TezosSaplingState.js +260 -0
  159. package/protocol/sapling/utils/TezosSaplingState.js.map +1 -0
  160. package/protocol/types/TezosAddressCursor.d.ts +3 -0
  161. package/protocol/types/TezosAddressCursor.js +3 -0
  162. package/protocol/types/TezosAddressCursor.js.map +1 -0
  163. package/protocol/types/TezosAddressResult.d.ts +4 -0
  164. package/protocol/types/TezosAddressResult.js +3 -0
  165. package/protocol/types/TezosAddressResult.js.map +1 -0
  166. package/protocol/types/TezosBlockHeader.d.ts +13 -0
  167. package/protocol/types/TezosBlockHeader.js +3 -0
  168. package/protocol/types/TezosBlockHeader.js.map +1 -0
  169. package/protocol/types/TezosBlockMetadata.d.ts +7 -0
  170. package/protocol/types/TezosBlockMetadata.js +3 -0
  171. package/protocol/types/TezosBlockMetadata.js.map +1 -0
  172. package/protocol/types/TezosContractCode.d.ts +5 -0
  173. package/protocol/types/TezosContractCode.js +3 -0
  174. package/protocol/types/TezosContractCode.js.map +1 -0
  175. package/protocol/types/TezosOperationType.d.ts +13 -0
  176. package/protocol/types/TezosOperationType.js +18 -0
  177. package/protocol/types/TezosOperationType.js.map +1 -0
  178. package/protocol/types/TezosTransactionCursor.d.ts +3 -0
  179. package/protocol/types/TezosTransactionCursor.js +3 -0
  180. package/protocol/types/TezosTransactionCursor.js.map +1 -0
  181. package/protocol/types/TezosTransactionResult.d.ts +6 -0
  182. package/protocol/types/TezosTransactionResult.js +3 -0
  183. package/protocol/types/TezosTransactionResult.js.map +1 -0
  184. package/protocol/types/TezosWrappedOperation.d.ts +5 -0
  185. package/protocol/types/TezosWrappedOperation.js +3 -0
  186. package/protocol/types/TezosWrappedOperation.js.map +1 -0
  187. package/protocol/types/contract/BigMap.d.ts +7 -0
  188. package/protocol/types/contract/BigMap.js +3 -0
  189. package/protocol/types/contract/BigMap.js.map +1 -0
  190. package/protocol/types/contract/BigMapEnrtyFilter.d.ts +5 -0
  191. package/protocol/types/contract/BigMapEnrtyFilter.js +3 -0
  192. package/protocol/types/contract/BigMapEnrtyFilter.js.map +1 -0
  193. package/protocol/types/contract/BigMapEntry.d.ts +7 -0
  194. package/protocol/types/contract/BigMapEntry.js +3 -0
  195. package/protocol/types/contract/BigMapEntry.js.map +1 -0
  196. package/protocol/types/contract/BigMapRequest.d.ts +8 -0
  197. package/protocol/types/contract/BigMapRequest.js +3 -0
  198. package/protocol/types/contract/BigMapRequest.js.map +1 -0
  199. package/protocol/types/contract/TezosContractMetadata.d.ts +61 -0
  200. package/protocol/types/contract/TezosContractMetadata.js +3 -0
  201. package/protocol/types/contract/TezosContractMetadata.js.map +1 -0
  202. package/protocol/types/domains/TezosDomainsRecord.d.ts +8 -0
  203. package/protocol/types/domains/TezosDomainsRecord.js +3 -0
  204. package/protocol/types/domains/TezosDomainsRecord.js.map +1 -0
  205. package/protocol/types/domains/TezosDomainsReverseRecord.d.ts +5 -0
  206. package/protocol/types/domains/TezosDomainsReverseRecord.js +3 -0
  207. package/protocol/types/domains/TezosDomainsReverseRecord.js.map +1 -0
  208. package/protocol/types/fa/TezosFA2BalanceOfRequest.d.ts +4 -0
  209. package/protocol/types/fa/TezosFA2BalanceOfRequest.js +3 -0
  210. package/protocol/types/fa/TezosFA2BalanceOfRequest.js.map +1 -0
  211. package/protocol/types/fa/TezosFA2BalanceOfResponse.d.ts +5 -0
  212. package/protocol/types/fa/TezosFA2BalanceOfResponse.js +3 -0
  213. package/protocol/types/fa/TezosFA2BalanceOfResponse.js.map +1 -0
  214. package/protocol/types/fa/TezosFA2TransferRequest.d.ts +8 -0
  215. package/protocol/types/fa/TezosFA2TransferRequest.js +3 -0
  216. package/protocol/types/fa/TezosFA2TransferRequest.js.map +1 -0
  217. package/protocol/types/fa/TezosFA2UpdateOperatorRequest.d.ts +6 -0
  218. package/protocol/types/fa/TezosFA2UpdateOperatorRequest.js +3 -0
  219. package/protocol/types/fa/TezosFA2UpdateOperatorRequest.js.map +1 -0
  220. package/protocol/types/fa/TezosFATokenMetadata.d.ts +6 -0
  221. package/protocol/types/fa/TezosFATokenMetadata.js +3 -0
  222. package/protocol/types/fa/TezosFATokenMetadata.js.map +1 -0
  223. package/protocol/types/kt/TezosKtAddressCursor.d.ts +4 -0
  224. package/protocol/types/kt/TezosKtAddressCursor.js +3 -0
  225. package/protocol/types/kt/TezosKtAddressCursor.js.map +1 -0
  226. package/protocol/types/kt/TezosKtAddressResult.d.ts +5 -0
  227. package/protocol/types/kt/TezosKtAddressResult.js +3 -0
  228. package/protocol/types/kt/TezosKtAddressResult.js.map +1 -0
  229. package/protocol/types/micheline/MichelineNode.d.ts +15 -0
  230. package/protocol/types/micheline/MichelineNode.js +5 -0
  231. package/protocol/types/micheline/MichelineNode.js.map +1 -0
  232. package/protocol/types/micheline/MichelineNodeUtils.d.ts +6 -0
  233. package/protocol/types/micheline/MichelineNodeUtils.js +40 -0
  234. package/protocol/types/micheline/MichelineNodeUtils.js.map +1 -0
  235. package/protocol/types/michelson/MichelsonType.d.ts +11 -0
  236. package/protocol/types/michelson/MichelsonType.js +22 -0
  237. package/protocol/types/michelson/MichelsonType.js.map +1 -0
  238. package/protocol/types/michelson/MichelsonTypeMeta.d.ts +33 -0
  239. package/protocol/types/michelson/MichelsonTypeMeta.js +132 -0
  240. package/protocol/types/michelson/MichelsonTypeMeta.js.map +1 -0
  241. package/protocol/types/michelson/MichelsonTypeUtils.d.ts +19 -0
  242. package/protocol/types/michelson/MichelsonTypeUtils.js +249 -0
  243. package/protocol/types/michelson/MichelsonTypeUtils.js.map +1 -0
  244. package/protocol/types/michelson/generics/MichelsonList.d.ts +11 -0
  245. package/protocol/types/michelson/generics/MichelsonList.js +68 -0
  246. package/protocol/types/michelson/generics/MichelsonList.js.map +1 -0
  247. package/protocol/types/michelson/generics/MichelsonMap.d.ts +14 -0
  248. package/protocol/types/michelson/generics/MichelsonMap.js +118 -0
  249. package/protocol/types/michelson/generics/MichelsonMap.js.map +1 -0
  250. package/protocol/types/michelson/generics/MichelsonOption.d.ts +25 -0
  251. package/protocol/types/michelson/generics/MichelsonOption.js +119 -0
  252. package/protocol/types/michelson/generics/MichelsonOption.js.map +1 -0
  253. package/protocol/types/michelson/generics/MichelsonOr.d.ts +25 -0
  254. package/protocol/types/michelson/generics/MichelsonOr.js +132 -0
  255. package/protocol/types/michelson/generics/MichelsonOr.js.map +1 -0
  256. package/protocol/types/michelson/generics/MichelsonPair.d.ts +17 -0
  257. package/protocol/types/michelson/generics/MichelsonPair.js +135 -0
  258. package/protocol/types/michelson/generics/MichelsonPair.js.map +1 -0
  259. package/protocol/types/michelson/grammar/MichelsonGrammarData.d.ts +2 -0
  260. package/protocol/types/michelson/grammar/MichelsonGrammarData.js +4 -0
  261. package/protocol/types/michelson/grammar/MichelsonGrammarData.js.map +1 -0
  262. package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.d.ts +1 -0
  263. package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js +4 -0
  264. package/protocol/types/michelson/grammar/MichelsonGrammarInstruction.js.map +1 -0
  265. package/protocol/types/michelson/grammar/MichelsonGrammarType.d.ts +1 -0
  266. package/protocol/types/michelson/grammar/MichelsonGrammarType.js +4 -0
  267. package/protocol/types/michelson/grammar/MichelsonGrammarType.js.map +1 -0
  268. package/protocol/types/michelson/primitives/MichelsonAddress.d.ts +15 -0
  269. package/protocol/types/michelson/primitives/MichelsonAddress.js +72 -0
  270. package/protocol/types/michelson/primitives/MichelsonAddress.js.map +1 -0
  271. package/protocol/types/michelson/primitives/MichelsonBool.d.ts +12 -0
  272. package/protocol/types/michelson/primitives/MichelsonBool.js +57 -0
  273. package/protocol/types/michelson/primitives/MichelsonBool.js.map +1 -0
  274. package/protocol/types/michelson/primitives/MichelsonBytes.d.ts +14 -0
  275. package/protocol/types/michelson/primitives/MichelsonBytes.js +75 -0
  276. package/protocol/types/michelson/primitives/MichelsonBytes.js.map +1 -0
  277. package/protocol/types/michelson/primitives/MichelsonInt.d.ts +14 -0
  278. package/protocol/types/michelson/primitives/MichelsonInt.js +72 -0
  279. package/protocol/types/michelson/primitives/MichelsonInt.js.map +1 -0
  280. package/protocol/types/michelson/primitives/MichelsonString.d.ts +14 -0
  281. package/protocol/types/michelson/primitives/MichelsonString.js +74 -0
  282. package/protocol/types/michelson/primitives/MichelsonString.js.map +1 -0
  283. package/protocol/types/michelson/primitives/MichelsonUnit.d.ts +9 -0
  284. package/protocol/types/michelson/primitives/MichelsonUnit.js +53 -0
  285. package/protocol/types/michelson/primitives/MichelsonUnit.js.map +1 -0
  286. package/protocol/types/operations/ActivateAccount.d.ts +7 -0
  287. package/protocol/types/operations/ActivateAccount.js +3 -0
  288. package/protocol/types/operations/ActivateAccount.js.map +1 -0
  289. package/protocol/types/operations/Ballot.d.ts +9 -0
  290. package/protocol/types/operations/Ballot.js +3 -0
  291. package/protocol/types/operations/Ballot.js.map +1 -0
  292. package/protocol/types/operations/Delegation.d.ts +11 -0
  293. package/protocol/types/operations/Delegation.js +3 -0
  294. package/protocol/types/operations/Delegation.js.map +1 -0
  295. package/protocol/types/operations/DoubleBakingEvidence.d.ts +8 -0
  296. package/protocol/types/operations/DoubleBakingEvidence.js +3 -0
  297. package/protocol/types/operations/DoubleBakingEvidence.js.map +1 -0
  298. package/protocol/types/operations/DoubleEndorsementEvidence.d.ts +16 -0
  299. package/protocol/types/operations/DoubleEndorsementEvidence.js +3 -0
  300. package/protocol/types/operations/DoubleEndorsementEvidence.js.map +1 -0
  301. package/protocol/types/operations/Endorsement.d.ts +6 -0
  302. package/protocol/types/operations/Endorsement.js +3 -0
  303. package/protocol/types/operations/Endorsement.js.map +1 -0
  304. package/protocol/types/operations/Origination.d.ts +13 -0
  305. package/protocol/types/operations/Origination.js +3 -0
  306. package/protocol/types/operations/Origination.js.map +1 -0
  307. package/protocol/types/operations/Proposal.d.ts +7 -0
  308. package/protocol/types/operations/Proposal.js +3 -0
  309. package/protocol/types/operations/Proposal.js.map +1 -0
  310. package/protocol/types/operations/Reveal.d.ts +11 -0
  311. package/protocol/types/operations/Reveal.js +3 -0
  312. package/protocol/types/operations/Reveal.js.map +1 -0
  313. package/protocol/types/operations/SeedNonceRevelation.d.ts +7 -0
  314. package/protocol/types/operations/SeedNonceRevelation.js +3 -0
  315. package/protocol/types/operations/SeedNonceRevelation.js.map +1 -0
  316. package/protocol/types/operations/TezosOperation.d.ts +4 -0
  317. package/protocol/types/operations/TezosOperation.js +3 -0
  318. package/protocol/types/operations/TezosOperation.js.map +1 -0
  319. package/protocol/types/operations/Transaction.d.ts +23 -0
  320. package/protocol/types/operations/Transaction.js +3 -0
  321. package/protocol/types/operations/Transaction.js.map +1 -0
  322. package/protocol/types/sapling/TezosSaplingAddressCursor.d.ts +4 -0
  323. package/protocol/types/sapling/TezosSaplingAddressCursor.js +3 -0
  324. package/protocol/types/sapling/TezosSaplingAddressCursor.js.map +1 -0
  325. package/protocol/types/sapling/TezosSaplingAddressResult.d.ts +4 -0
  326. package/protocol/types/sapling/TezosSaplingAddressResult.js +3 -0
  327. package/protocol/types/sapling/TezosSaplingAddressResult.js.map +1 -0
  328. package/protocol/types/sapling/TezosSaplingCiphertext.d.ts +8 -0
  329. package/protocol/types/sapling/TezosSaplingCiphertext.js +3 -0
  330. package/protocol/types/sapling/TezosSaplingCiphertext.js.map +1 -0
  331. package/protocol/types/sapling/TezosSaplingInput.d.ts +6 -0
  332. package/protocol/types/sapling/TezosSaplingInput.js +3 -0
  333. package/protocol/types/sapling/TezosSaplingInput.js.map +1 -0
  334. package/protocol/types/sapling/TezosSaplingOutput.d.ts +6 -0
  335. package/protocol/types/sapling/TezosSaplingOutput.js +3 -0
  336. package/protocol/types/sapling/TezosSaplingOutput.js.map +1 -0
  337. package/protocol/types/sapling/TezosSaplingStateDiff.d.ts +6 -0
  338. package/protocol/types/sapling/TezosSaplingStateDiff.js +3 -0
  339. package/protocol/types/sapling/TezosSaplingStateDiff.js.map +1 -0
  340. package/protocol/types/sapling/TezosSaplingStateTree.d.ts +7 -0
  341. package/protocol/types/sapling/TezosSaplingStateTree.js +3 -0
  342. package/protocol/types/sapling/TezosSaplingStateTree.js.map +1 -0
  343. package/protocol/types/sapling/TezosSaplingTransaction.d.ts +23 -0
  344. package/protocol/types/sapling/TezosSaplingTransaction.js +3 -0
  345. package/protocol/types/sapling/TezosSaplingTransaction.js.map +1 -0
  346. package/protocol/types/sapling/TezosSaplingTransactionCursor.d.ts +3 -0
  347. package/protocol/types/sapling/TezosSaplingTransactionCursor.js +3 -0
  348. package/protocol/types/sapling/TezosSaplingTransactionCursor.js.map +1 -0
  349. package/protocol/types/sapling/TezosSaplingTransactionResult.d.ts +6 -0
  350. package/protocol/types/sapling/TezosSaplingTransactionResult.js +3 -0
  351. package/protocol/types/sapling/TezosSaplingTransactionResult.js.map +1 -0
  352. package/protocol/types/utils.d.ts +8 -0
  353. package/protocol/types/utils.js +41 -0
  354. package/protocol/types/utils.js.map +1 -0
  355. package/readme.md +121 -0
  356. package/types/signed-transaction-tezos-sapling.d.ts +3 -0
  357. package/types/signed-transaction-tezos-sapling.js +3 -0
  358. package/types/signed-transaction-tezos-sapling.js.map +1 -0
  359. package/types/signed-transaction-tezos.d.ts +5 -0
  360. package/types/signed-transaction-tezos.js +3 -0
  361. package/types/signed-transaction-tezos.js.map +1 -0
  362. package/types/transaction-tezos.d.ts +14 -0
  363. package/types/transaction-tezos.js +3 -0
  364. package/types/transaction-tezos.js.map +1 -0
  365. package/types/unsigned-transaction-tezos-sapling.d.ts +38 -0
  366. package/types/unsigned-transaction-tezos-sapling.js +3 -0
  367. package/types/unsigned-transaction-tezos-sapling.js.map +1 -0
  368. package/types/unsigned-transaction-tezos.d.ts +8 -0
  369. package/types/unsigned-transaction-tezos.js +3 -0
  370. package/types/unsigned-transaction-tezos.js.map +1 -0
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MichelsonBytes = void 0;
17
+ var errors_1 = require("@airgap/coinlib-core/errors");
18
+ var coinlib_error_1 = require("@airgap/coinlib-core/errors/coinlib-error");
19
+ var error_1 = require("@airgap/coinlib-core/utils/error");
20
+ var hex_1 = require("@airgap/coinlib-core/utils/hex");
21
+ var utils_1 = require("../../utils");
22
+ var MichelsonType_1 = require("../MichelsonType");
23
+ var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
24
+ var MichelsonBytes = /** @class */ (function (_super) {
25
+ __extends(MichelsonBytes, _super);
26
+ function MichelsonBytes(value, name) {
27
+ var _this = _super.call(this, name) || this;
28
+ _this.value = hex_1.hexToBytes(value);
29
+ return _this;
30
+ }
31
+ MichelsonBytes.from = function (value, name) {
32
+ return utils_1.isMichelinePrimitive('bytes', value) ? MichelsonBytes.fromMicheline(value, name) : MichelsonBytes.fromUnknown(value, name);
33
+ };
34
+ MichelsonBytes.fromMicheline = function (micheline, name) {
35
+ return MichelsonBytes.fromUnknown(micheline.bytes, name);
36
+ };
37
+ MichelsonBytes.fromUnknown = function (unknownValue, name) {
38
+ if (unknownValue instanceof MichelsonBytes) {
39
+ return unknownValue;
40
+ }
41
+ if (typeof unknownValue !== 'string' && !Buffer.isBuffer(unknownValue)) {
42
+ throw error_1.invalidArgumentTypeError('MichelsonBytes', 'string or Buffer', typeof unknownValue + ": " + unknownValue);
43
+ }
44
+ return new MichelsonBytes(unknownValue, name);
45
+ };
46
+ MichelsonBytes.decode = function (bytes) {
47
+ var prefix = bytes.slice(0, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes.length);
48
+ if (!prefix.equals(MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes)) {
49
+ throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.TEZOS, 'Invalid encoded MichelsonBytes.');
50
+ }
51
+ var length = bytes.readInt32BE(prefix.length);
52
+ var valueStart = prefix.length + 4;
53
+ var valueEnd = valueStart + length;
54
+ var value = bytes.slice(valueStart, valueEnd);
55
+ return new MichelsonBytes(value);
56
+ };
57
+ MichelsonBytes.prototype.encode = function () {
58
+ var length = Buffer.alloc(4);
59
+ length.writeInt32BE(this.value.length);
60
+ return Buffer.concat([MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.bytes, length, this.value]);
61
+ };
62
+ MichelsonBytes.prototype.asRawValue = function () {
63
+ var _a;
64
+ var value = hex_1.bytesToHex(this.value);
65
+ return this.name ? (_a = {}, _a[this.name] = value, _a) : value;
66
+ };
67
+ MichelsonBytes.prototype.toMichelineJSON = function () {
68
+ return {
69
+ bytes: hex_1.bytesToHex(this.value)
70
+ };
71
+ };
72
+ return MichelsonBytes;
73
+ }(MichelsonType_1.MichelsonType));
74
+ exports.MichelsonBytes = MichelsonBytes;
75
+ //# sourceMappingURL=MichelsonBytes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MichelsonBytes.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonBytes.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import BigNumber from '@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber';
3
+ import { MichelineDataNode, MichelinePrimitive } from '../../micheline/MichelineNode';
4
+ import { MichelsonType } from '../MichelsonType';
5
+ export declare class MichelsonInt extends MichelsonType {
6
+ readonly value: BigNumber;
7
+ constructor(value: number | string | BigNumber, name?: string);
8
+ static from(value: unknown, name?: string): MichelsonInt;
9
+ static fromMicheline(micheline: MichelinePrimitive<'int'>, name?: string): MichelsonInt;
10
+ static fromUnknown(unknownValue: unknown, name?: string): MichelsonInt;
11
+ encode(): Buffer;
12
+ asRawValue(): Record<string, BigNumber> | BigNumber;
13
+ toMichelineJSON(): MichelineDataNode;
14
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.MichelsonInt = void 0;
20
+ var bigInt = require("@airgap/coinlib-core/dependencies/src/big-integer-1.6.45/BigInteger");
21
+ var bignumber_1 = __importDefault(require("@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber"));
22
+ var error_1 = require("@airgap/coinlib-core/utils/error");
23
+ var utils_1 = require("../../utils");
24
+ var MichelsonType_1 = require("../MichelsonType");
25
+ var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
26
+ var MichelsonInt = /** @class */ (function (_super) {
27
+ __extends(MichelsonInt, _super);
28
+ function MichelsonInt(value, name) {
29
+ var _this = _super.call(this, name) || this;
30
+ _this.value = bignumber_1.default.isBigNumber(value) ? value : new bignumber_1.default(value);
31
+ return _this;
32
+ }
33
+ MichelsonInt.from = function (value, name) {
34
+ return utils_1.isMichelinePrimitive('int', value) ? MichelsonInt.fromMicheline(value, name) : MichelsonInt.fromUnknown(value, name);
35
+ };
36
+ MichelsonInt.fromMicheline = function (micheline, name) {
37
+ return MichelsonInt.fromUnknown(parseInt(micheline.int, 10), name);
38
+ };
39
+ MichelsonInt.fromUnknown = function (unknownValue, name) {
40
+ if (unknownValue instanceof MichelsonInt) {
41
+ return unknownValue;
42
+ }
43
+ if (typeof unknownValue !== 'number' && typeof unknownValue !== 'string' && !bignumber_1.default.isBigNumber(unknownValue)) {
44
+ throw error_1.invalidArgumentTypeError('MichelsonInt', 'number or string or BigNumber', typeof unknownValue);
45
+ }
46
+ return new MichelsonInt(bignumber_1.default.isBigNumber(unknownValue) ? unknownValue : new bignumber_1.default(unknownValue), name);
47
+ };
48
+ MichelsonInt.prototype.encode = function () {
49
+ var absValue = bigInt(this.value.integerValue().abs().toString());
50
+ var u8Numbers = [];
51
+ u8Numbers.push(absValue.and(63).or(this.value.lt(0) ? 192 : 128));
52
+ absValue = absValue.shiftRight(6);
53
+ while (absValue.gt(0)) {
54
+ u8Numbers.push(absValue.and(127).or(128));
55
+ absValue = absValue.shiftRight(7);
56
+ }
57
+ u8Numbers[u8Numbers.length - 1] = u8Numbers[u8Numbers.length - 1].and(127);
58
+ return u8Numbers.reduce(function (bytes, next) { return Buffer.concat([bytes, Buffer.from(new Uint8Array([next.toJSNumber()]))]); }, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.int);
59
+ };
60
+ MichelsonInt.prototype.asRawValue = function () {
61
+ var _a;
62
+ return this.name ? (_a = {}, _a[this.name] = this.value, _a) : this.value;
63
+ };
64
+ MichelsonInt.prototype.toMichelineJSON = function () {
65
+ return {
66
+ int: this.value.toString()
67
+ };
68
+ };
69
+ return MichelsonInt;
70
+ }(MichelsonType_1.MichelsonType));
71
+ exports.MichelsonInt = MichelsonInt;
72
+ //# sourceMappingURL=MichelsonInt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MichelsonInt.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonInt.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { MichelineDataNode, MichelinePrimitive } from '../../micheline/MichelineNode';
3
+ import { MichelsonType } from '../MichelsonType';
4
+ export declare class MichelsonString extends MichelsonType {
5
+ readonly value: string;
6
+ constructor(value: string, name?: string);
7
+ static from(value: unknown, name?: string): MichelsonString;
8
+ static fromMicheline(micheline: MichelinePrimitive<'string'>, name?: string): MichelsonString;
9
+ static fromUnknown(unknownValue: unknown, name?: string): MichelsonString;
10
+ static decode(bytes: Buffer): MichelsonString;
11
+ encode(): Buffer;
12
+ asRawValue(): Record<string, string> | string;
13
+ toMichelineJSON(): MichelineDataNode;
14
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MichelsonString = void 0;
17
+ var errors_1 = require("@airgap/coinlib-core/errors");
18
+ var coinlib_error_1 = require("@airgap/coinlib-core/errors/coinlib-error");
19
+ var error_1 = require("@airgap/coinlib-core/utils/error");
20
+ var utils_1 = require("../../utils");
21
+ var MichelsonType_1 = require("../MichelsonType");
22
+ var MichelsonTypeUtils_1 = require("../MichelsonTypeUtils");
23
+ var MichelsonString = /** @class */ (function (_super) {
24
+ __extends(MichelsonString, _super);
25
+ function MichelsonString(value, name) {
26
+ var _this = _super.call(this, name) || this;
27
+ _this.value = value;
28
+ return _this;
29
+ }
30
+ MichelsonString.from = function (value, name) {
31
+ return utils_1.isMichelinePrimitive('string', value) ? MichelsonString.fromMicheline(value, name) : MichelsonString.fromUnknown(value, name);
32
+ };
33
+ MichelsonString.fromMicheline = function (micheline, name) {
34
+ return MichelsonString.fromUnknown(micheline.string, name);
35
+ };
36
+ MichelsonString.fromUnknown = function (unknownValue, name) {
37
+ if (unknownValue instanceof MichelsonString) {
38
+ return unknownValue;
39
+ }
40
+ if (typeof unknownValue !== 'string') {
41
+ throw error_1.invalidArgumentTypeError('MichelsonString', 'string', typeof unknownValue);
42
+ }
43
+ return new MichelsonString(unknownValue, name);
44
+ };
45
+ MichelsonString.decode = function (bytes) {
46
+ var prefix = bytes.slice(0, MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string.length);
47
+ if (!prefix.equals(MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string)) {
48
+ throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.TEZOS, 'Invalid encoded MichelsonString.');
49
+ }
50
+ var length = bytes.readInt32BE(prefix.length);
51
+ var valueStart = prefix.length + 4;
52
+ var valueEnd = valueStart + length;
53
+ var value = bytes.slice(valueStart, valueEnd).toString();
54
+ return new MichelsonString(value);
55
+ };
56
+ MichelsonString.prototype.encode = function () {
57
+ var bytes = Buffer.from(this.value);
58
+ var length = Buffer.alloc(4);
59
+ length.writeInt32BE(bytes.length);
60
+ return Buffer.concat([MichelsonTypeUtils_1.MichelsonTypeUtils.literalPrefixes.string, length, bytes]);
61
+ };
62
+ MichelsonString.prototype.asRawValue = function () {
63
+ var _a;
64
+ return this.name ? (_a = {}, _a[this.name] = this.value, _a) : this.value;
65
+ };
66
+ MichelsonString.prototype.toMichelineJSON = function () {
67
+ return {
68
+ string: this.value
69
+ };
70
+ };
71
+ return MichelsonString;
72
+ }(MichelsonType_1.MichelsonType));
73
+ exports.MichelsonString = MichelsonString;
74
+ //# sourceMappingURL=MichelsonString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MichelsonString.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonString.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAqE;AACrE,2EAAkE;AAClE,0DAA2E;AAG3E,qCAAkD;AAClD,kDAAgD;AAChD,4DAA0D;AAE1D;IAAqC,mCAAa;IAChD,yBAA4B,KAAa,EAAE,IAAa;QAAxD,YACE,kBAAM,IAAI,CAAC,SACZ;QAF2B,WAAK,GAAL,KAAK,CAAQ;;IAEzC,CAAC;IAEa,oBAAI,GAAlB,UAAmB,KAAc,EAAE,IAAa;QAC9C,OAAO,4BAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IACtI,CAAC;IAEa,6BAAa,GAA3B,UAA4B,SAAuC,EAAE,IAAa;QAChF,OAAO,eAAe,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC5D,CAAC;IAEa,2BAAW,GAAzB,UAA0B,YAAqB,EAAE,IAAa;QAC5D,IAAI,YAAY,YAAY,eAAe,EAAE;YAC3C,OAAO,YAAY,CAAA;SACpB;QAED,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;YACpC,MAAM,gCAAwB,CAAC,iBAAiB,EAAE,QAAQ,EAAE,OAAO,YAAY,CAAC,CAAA;SACjF;QAED,OAAO,IAAI,eAAe,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;IAChD,CAAC;IAEa,sBAAM,GAApB,UAAqB,KAAa;QAChC,IAAM,MAAM,GAAW,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,uCAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACvF,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uCAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;YAC7D,MAAM,IAAI,gCAAuB,CAAC,sBAAM,CAAC,KAAK,EAAE,kCAAkC,CAAC,CAAA;SACpF;QAED,IAAM,MAAM,GAAW,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACvD,IAAM,UAAU,GAAW,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;QAC5C,IAAM,QAAQ,GAAW,UAAU,GAAG,MAAM,CAAA;QAC5C,IAAM,KAAK,GAAW,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAA;QAElE,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,CAAA;IACnC,CAAC;IAEM,gCAAM,GAAb;QACE,IAAM,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7C,IAAM,MAAM,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAEjC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,uCAAkB,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;IAClF,CAAC;IAEM,oCAAU,GAAjB;;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,WAAG,GAAC,IAAI,CAAC,IAAI,IAAG,IAAI,CAAC,KAAK,MAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IAC7D,CAAC;IAEM,yCAAe,GAAtB;QACE,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAA;IACH,CAAC;IACH,sBAAC;AAAD,CAAC,AAxDD,CAAqC,6BAAa,GAwDjD;AAxDY,0CAAe"}
@@ -0,0 +1,9 @@
1
+ import { MichelineDataNode, MichelinePrimitiveApplication } from '../../micheline/MichelineNode';
2
+ import { MichelsonGrammarData } from '../grammar/MichelsonGrammarData';
3
+ import { MichelsonType } from '../MichelsonType';
4
+ export declare class MichelsonUnit extends MichelsonType {
5
+ static from(value: unknown, name?: string): MichelsonUnit;
6
+ static fromMicheline(micheline: MichelinePrimitiveApplication<MichelsonGrammarData>, name?: string): MichelsonUnit;
7
+ asRawValue(): any;
8
+ toMichelineJSON(): MichelineDataNode;
9
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MichelsonUnit = void 0;
17
+ var error_1 = require("@airgap/coinlib-core/utils/error");
18
+ var utils_1 = require("../../utils");
19
+ var MichelsonType_1 = require("../MichelsonType");
20
+ var MichelsonUnit = /** @class */ (function (_super) {
21
+ __extends(MichelsonUnit, _super);
22
+ function MichelsonUnit() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ MichelsonUnit.from = function (value, name) {
26
+ if (value instanceof MichelsonUnit) {
27
+ return value;
28
+ }
29
+ else if (utils_1.isAnyMichelinePrimitiveApplication(value)) {
30
+ return MichelsonUnit.fromMicheline(value, name);
31
+ }
32
+ else {
33
+ return new MichelsonUnit();
34
+ }
35
+ };
36
+ MichelsonUnit.fromMicheline = function (micheline, name) {
37
+ if (micheline.prim !== 'Unit') {
38
+ throw error_1.invalidArgumentTypeError('MichelsonUnit', 'prim: Unit', "prim: " + micheline.prim);
39
+ }
40
+ return new MichelsonUnit(name);
41
+ };
42
+ MichelsonUnit.prototype.asRawValue = function () {
43
+ return undefined;
44
+ };
45
+ MichelsonUnit.prototype.toMichelineJSON = function () {
46
+ return {
47
+ prim: 'Unit'
48
+ };
49
+ };
50
+ return MichelsonUnit;
51
+ }(MichelsonType_1.MichelsonType));
52
+ exports.MichelsonUnit = MichelsonUnit;
53
+ //# sourceMappingURL=MichelsonUnit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MichelsonUnit.js","sourceRoot":"","sources":["../../../../../src/protocol/types/michelson/primitives/MichelsonUnit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAA2E;AAG3E,qCAAgE;AAEhE,kDAAgD;AAEhD;IAAmC,iCAAa;IAAhD;;IA4BA,CAAC;IA3Be,kBAAI,GAAlB,UAAmB,KAAc,EAAE,IAAa;QAC9C,IAAI,KAAK,YAAY,aAAa,EAAE;YAClC,OAAO,KAAK,CAAA;SACb;aAAM,IAAI,0CAAkC,CAAC,KAAK,CAAC,EAAE;YACpD,OAAO,aAAa,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;SAChD;aAAM;YACL,OAAO,IAAI,aAAa,EAAE,CAAA;SAC3B;IACH,CAAC;IAEa,2BAAa,GAA3B,UAA4B,SAA8D,EAAE,IAAa;QACvG,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,EAAE;YAC7B,MAAM,gCAAwB,CAAC,eAAe,EAAE,YAAY,EAAE,WAAS,SAAS,CAAC,IAAM,CAAC,CAAA;SACzF;QAED,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAEM,kCAAU,GAAjB;QACE,OAAO,SAAS,CAAA;IAClB,CAAC;IAEM,uCAAe,GAAtB;QACE,OAAO;YACL,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA5BD,CAAmC,6BAAa,GA4B/C;AA5BY,sCAAa"}
@@ -0,0 +1,7 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosActivateAccountOperation extends TezosOperation {
4
+ kind: TezosOperationType.ACTIVATE_ACCOUNT;
5
+ pkh: string;
6
+ secret: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ActivateAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivateAccount.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/ActivateAccount.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosBallotOperation extends TezosOperation {
4
+ kind: TezosOperationType.BALLOT;
5
+ source: string;
6
+ period: string;
7
+ proposal: string;
8
+ ballot: 'nay' | 'yay' | 'pass';
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Ballot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ballot.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Ballot.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosDelegationOperation extends TezosOperation {
4
+ kind: TezosOperationType.DELEGATION;
5
+ source: string;
6
+ fee: string;
7
+ counter: string;
8
+ gas_limit: string;
9
+ storage_limit: string;
10
+ delegate?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Delegation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Delegation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Delegation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { TezosBlockHeader } from '../TezosBlockHeader';
2
+ import { TezosOperationType } from '../TezosOperationType';
3
+ import { TezosOperation } from './TezosOperation';
4
+ export interface TezosDoubleBakingEvidenceOperation extends TezosOperation {
5
+ kind: TezosOperationType.DOUBLE_BAKING_EVIDENCE;
6
+ bh1: TezosBlockHeader;
7
+ bh2: TezosBlockHeader;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DoubleBakingEvidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DoubleBakingEvidence.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/DoubleBakingEvidence.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface InlinedEndorsement {
4
+ branch: string;
5
+ operations: InlinedEndorsementContents;
6
+ signature?: string;
7
+ }
8
+ export interface InlinedEndorsementContents {
9
+ kind: 'endorsement';
10
+ level: string;
11
+ }
12
+ export interface TezosDoubleEndorsementEvidenceOperation extends TezosOperation {
13
+ kind: TezosOperationType.DOUBLE_ENDORSEMENT_EVIDENCE;
14
+ op1: InlinedEndorsement;
15
+ op2: InlinedEndorsement;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DoubleEndorsementEvidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DoubleEndorsementEvidence.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/DoubleEndorsementEvidence.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosEndorsementOperation extends TezosOperation {
4
+ kind: TezosOperationType.ENDORSEMENT;
5
+ level: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Endorsement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Endorsement.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Endorsement.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosOriginationOperation extends TezosOperation {
4
+ kind: TezosOperationType.DELEGATION;
5
+ source: string;
6
+ fee: string;
7
+ counter: string;
8
+ gas_limit: string;
9
+ storage_limit: string;
10
+ balance: string;
11
+ delegate?: string;
12
+ script: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Origination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Origination.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Origination.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosProposalOperation extends TezosOperation {
4
+ kind: TezosOperationType.PROPOSALS;
5
+ period: string;
6
+ proposals: string[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Proposal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Proposal.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Proposal.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosRevealOperation extends TezosOperation {
4
+ kind: TezosOperationType.REVEAL;
5
+ source: string;
6
+ fee: string;
7
+ counter: string;
8
+ gas_limit: string;
9
+ storage_limit: string;
10
+ public_key: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Reveal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reveal.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Reveal.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ import { TezosOperation } from './TezosOperation';
3
+ export interface TezosSeedNonceRevelationOperation extends TezosOperation {
4
+ kind: TezosOperationType.SEED_NONCE_REVELATION;
5
+ level: string;
6
+ nonce: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SeedNonceRevelation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeedNonceRevelation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/SeedNonceRevelation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { TezosOperationType } from '../TezosOperationType';
2
+ export interface TezosOperation {
3
+ kind: TezosOperationType;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TezosOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TezosOperation.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/TezosOperation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { MichelineNode } from '../micheline/MichelineNode';
2
+ import { TezosOperationType } from '../TezosOperationType';
3
+ import { TezosWrappedOperation } from '../TezosWrappedOperation';
4
+ import { TezosOperation } from './TezosOperation';
5
+ export interface TezosTransactionParameters {
6
+ entrypoint: 'default' | 'root' | 'do' | 'set_delegate' | 'remove_delegate' | string;
7
+ value: MichelineNode;
8
+ }
9
+ export interface TezosWrappedTransactionOperation extends TezosWrappedOperation {
10
+ contents: TezosTransactionOperation[];
11
+ signature: string;
12
+ }
13
+ export interface TezosTransactionOperation extends TezosOperation {
14
+ kind: TezosOperationType.TRANSACTION;
15
+ source: string;
16
+ fee: string;
17
+ counter: string;
18
+ gas_limit: string;
19
+ storage_limit: string;
20
+ amount: string;
21
+ destination: string;
22
+ parameters?: TezosTransactionParameters;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../src/protocol/types/operations/Transaction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IProtocolAddressCursor } from '@airgap/coinlib-core/interfaces/IAirGapAddress';
2
+ export interface TezosSaplingAddressCursor extends IProtocolAddressCursor {
3
+ diversifierIndex?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TezosSaplingAddressCursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TezosSaplingAddressCursor.js","sourceRoot":"","sources":["../../../../src/protocol/types/sapling/TezosSaplingAddressCursor.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IAirGapAddressResult } from '@airgap/coinlib-core/interfaces/IAirGapAddress';
2
+ import { TezosSaplingAddressCursor } from './TezosSaplingAddressCursor';
3
+ export interface TezosSaplingAddressResult extends IAirGapAddressResult<TezosSaplingAddressCursor> {
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TezosSaplingAddressResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TezosSaplingAddressResult.js","sourceRoot":"","sources":["../../../../src/protocol/types/sapling/TezosSaplingAddressResult.ts"],"names":[],"mappings":""}