@cardano-sdk/core 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/dist/cjs/Cardano/ChainId.d.ts +5 -5
  2. package/dist/cjs/Cardano/ChainId.d.ts.map +1 -1
  3. package/dist/cjs/Cardano/ChainId.js +5 -5
  4. package/dist/cjs/Cardano/ChainId.js.map +1 -1
  5. package/dist/cjs/Cardano/types/Certificate.d.ts +75 -2
  6. package/dist/cjs/Cardano/types/Certificate.d.ts.map +1 -1
  7. package/dist/cjs/Cardano/types/Certificate.js +12 -0
  8. package/dist/cjs/Cardano/types/Certificate.js.map +1 -1
  9. package/dist/cjs/Cardano/types/Governance.d.ts +147 -0
  10. package/dist/cjs/Cardano/types/Governance.d.ts.map +1 -0
  11. package/dist/cjs/Cardano/types/Governance.js +34 -0
  12. package/dist/cjs/Cardano/types/Governance.js.map +1 -0
  13. package/dist/cjs/Cardano/types/ProtocolParameters.d.ts +27 -1
  14. package/dist/cjs/Cardano/types/ProtocolParameters.d.ts.map +1 -1
  15. package/dist/cjs/Cardano/types/Script.d.ts +2 -1
  16. package/dist/cjs/Cardano/types/Script.d.ts.map +1 -1
  17. package/dist/cjs/Cardano/types/Script.js +1 -0
  18. package/dist/cjs/Cardano/types/Script.js.map +1 -1
  19. package/dist/cjs/Cardano/types/StakePool/PoolParameters.d.ts +1 -4
  20. package/dist/cjs/Cardano/types/StakePool/PoolParameters.d.ts.map +1 -1
  21. package/dist/cjs/Cardano/types/StakePool/PoolParameters.js.map +1 -1
  22. package/dist/cjs/Cardano/types/Transaction.d.ts +7 -1
  23. package/dist/cjs/Cardano/types/Transaction.d.ts.map +1 -1
  24. package/dist/cjs/Cardano/types/Transaction.js +1 -0
  25. package/dist/cjs/Cardano/types/Transaction.js.map +1 -1
  26. package/dist/cjs/Cardano/types/UtilityTypes.d.ts +5 -0
  27. package/dist/cjs/Cardano/types/UtilityTypes.d.ts.map +1 -0
  28. package/dist/cjs/Cardano/types/UtilityTypes.js +3 -0
  29. package/dist/cjs/Cardano/types/UtilityTypes.js.map +1 -0
  30. package/dist/cjs/Cardano/types/Value.d.ts +1 -0
  31. package/dist/cjs/Cardano/types/Value.d.ts.map +1 -1
  32. package/dist/cjs/Cardano/types/index.d.ts +2 -0
  33. package/dist/cjs/Cardano/types/index.d.ts.map +1 -1
  34. package/dist/cjs/Cardano/types/index.js +2 -0
  35. package/dist/cjs/Cardano/types/index.js.map +1 -1
  36. package/dist/cjs/Serialization/AuxiliaryData/AuxiliaryData.d.ts +3 -1
  37. package/dist/cjs/Serialization/AuxiliaryData/AuxiliaryData.d.ts.map +1 -1
  38. package/dist/cjs/Serialization/AuxiliaryData/AuxiliaryData.js +38 -4
  39. package/dist/cjs/Serialization/AuxiliaryData/AuxiliaryData.js.map +1 -1
  40. package/dist/cjs/Serialization/Certificates/AuthCommitteeHot.d.ts +13 -0
  41. package/dist/cjs/Serialization/Certificates/AuthCommitteeHot.d.ts.map +1 -0
  42. package/dist/cjs/Serialization/Certificates/AuthCommitteeHot.js +111 -0
  43. package/dist/cjs/Serialization/Certificates/AuthCommitteeHot.js.map +1 -0
  44. package/dist/cjs/Serialization/Certificates/Certificate.d.ts +36 -0
  45. package/dist/cjs/Serialization/Certificates/Certificate.d.ts.map +1 -1
  46. package/dist/cjs/Serialization/Certificates/Certificate.js +278 -2
  47. package/dist/cjs/Serialization/Certificates/Certificate.js.map +1 -1
  48. package/dist/cjs/Serialization/Certificates/CertificateKind.d.ts +13 -1
  49. package/dist/cjs/Serialization/Certificates/CertificateKind.d.ts.map +1 -1
  50. package/dist/cjs/Serialization/Certificates/CertificateKind.js +12 -0
  51. package/dist/cjs/Serialization/Certificates/CertificateKind.js.map +1 -1
  52. package/dist/cjs/Serialization/Certificates/DRep/DRep.d.ts +20 -0
  53. package/dist/cjs/Serialization/Certificates/DRep/DRep.d.ts.map +1 -0
  54. package/dist/cjs/Serialization/Certificates/DRep/DRep.js +136 -0
  55. package/dist/cjs/Serialization/Certificates/DRep/DRep.js.map +1 -0
  56. package/dist/cjs/Serialization/Certificates/DRep/DRepKind.d.ts +7 -0
  57. package/dist/cjs/Serialization/Certificates/DRep/DRepKind.d.ts.map +1 -0
  58. package/dist/cjs/Serialization/Certificates/DRep/DRepKind.js +11 -0
  59. package/dist/cjs/Serialization/Certificates/DRep/DRepKind.js.map +1 -0
  60. package/dist/cjs/Serialization/Certificates/DRep/index.d.ts +3 -0
  61. package/dist/cjs/Serialization/Certificates/DRep/index.d.ts.map +1 -0
  62. package/dist/cjs/Serialization/Certificates/DRep/index.js +19 -0
  63. package/dist/cjs/Serialization/Certificates/DRep/index.js.map +1 -0
  64. package/dist/cjs/Serialization/Certificates/RegisterDelegateRepresentative.d.ts +15 -0
  65. package/dist/cjs/Serialization/Certificates/RegisterDelegateRepresentative.d.ts.map +1 -0
  66. package/dist/cjs/Serialization/Certificates/RegisterDelegateRepresentative.js +125 -0
  67. package/dist/cjs/Serialization/Certificates/RegisterDelegateRepresentative.js.map +1 -0
  68. package/dist/cjs/Serialization/Certificates/Registration.d.ts +15 -0
  69. package/dist/cjs/Serialization/Certificates/Registration.d.ts.map +1 -0
  70. package/dist/cjs/Serialization/Certificates/Registration.js +112 -0
  71. package/dist/cjs/Serialization/Certificates/Registration.js.map +1 -0
  72. package/dist/cjs/Serialization/Certificates/ResignCommitteeCold.d.ts +12 -0
  73. package/dist/cjs/Serialization/Certificates/ResignCommitteeCold.d.ts.map +1 -0
  74. package/dist/cjs/Serialization/Certificates/ResignCommitteeCold.js +96 -0
  75. package/dist/cjs/Serialization/Certificates/ResignCommitteeCold.js.map +1 -0
  76. package/dist/cjs/Serialization/Certificates/StakeRegistrationDelegation.d.ts +15 -0
  77. package/dist/cjs/Serialization/Certificates/StakeRegistrationDelegation.d.ts.map +1 -0
  78. package/dist/cjs/Serialization/Certificates/StakeRegistrationDelegation.js +113 -0
  79. package/dist/cjs/Serialization/Certificates/StakeRegistrationDelegation.js.map +1 -0
  80. package/dist/cjs/Serialization/Certificates/StakeVoteDelegation.d.ts +16 -0
  81. package/dist/cjs/Serialization/Certificates/StakeVoteDelegation.d.ts.map +1 -0
  82. package/dist/cjs/Serialization/Certificates/StakeVoteDelegation.js +115 -0
  83. package/dist/cjs/Serialization/Certificates/StakeVoteDelegation.js.map +1 -0
  84. package/dist/cjs/Serialization/Certificates/StakeVoteRegistrationDelegation.d.ts +17 -0
  85. package/dist/cjs/Serialization/Certificates/StakeVoteRegistrationDelegation.d.ts.map +1 -0
  86. package/dist/cjs/Serialization/Certificates/StakeVoteRegistrationDelegation.js +123 -0
  87. package/dist/cjs/Serialization/Certificates/StakeVoteRegistrationDelegation.js.map +1 -0
  88. package/dist/cjs/Serialization/Certificates/UnregisterDelegateRepresentative.d.ts +13 -0
  89. package/dist/cjs/Serialization/Certificates/UnregisterDelegateRepresentative.d.ts.map +1 -0
  90. package/dist/cjs/Serialization/Certificates/UnregisterDelegateRepresentative.js +104 -0
  91. package/dist/cjs/Serialization/Certificates/UnregisterDelegateRepresentative.js.map +1 -0
  92. package/dist/cjs/Serialization/Certificates/Unregistration.d.ts +15 -0
  93. package/dist/cjs/Serialization/Certificates/Unregistration.d.ts.map +1 -0
  94. package/dist/cjs/Serialization/Certificates/Unregistration.js +112 -0
  95. package/dist/cjs/Serialization/Certificates/Unregistration.js.map +1 -0
  96. package/dist/cjs/Serialization/Certificates/UpdateDelegateRepresentative.d.ts +14 -0
  97. package/dist/cjs/Serialization/Certificates/UpdateDelegateRepresentative.d.ts.map +1 -0
  98. package/dist/cjs/Serialization/Certificates/UpdateDelegateRepresentative.js +117 -0
  99. package/dist/cjs/Serialization/Certificates/UpdateDelegateRepresentative.js.map +1 -0
  100. package/dist/cjs/Serialization/Certificates/VoteDelegation.d.ts +14 -0
  101. package/dist/cjs/Serialization/Certificates/VoteDelegation.d.ts.map +1 -0
  102. package/dist/cjs/Serialization/Certificates/VoteDelegation.js +107 -0
  103. package/dist/cjs/Serialization/Certificates/VoteDelegation.js.map +1 -0
  104. package/dist/cjs/Serialization/Certificates/VoteRegistrationDelegation.d.ts +15 -0
  105. package/dist/cjs/Serialization/Certificates/VoteRegistrationDelegation.d.ts.map +1 -0
  106. package/dist/cjs/Serialization/Certificates/VoteRegistrationDelegation.js +115 -0
  107. package/dist/cjs/Serialization/Certificates/VoteRegistrationDelegation.js.map +1 -0
  108. package/dist/cjs/Serialization/Certificates/index.d.ts +13 -0
  109. package/dist/cjs/Serialization/Certificates/index.d.ts.map +1 -1
  110. package/dist/cjs/Serialization/Certificates/index.js +13 -0
  111. package/dist/cjs/Serialization/Certificates/index.js.map +1 -1
  112. package/dist/cjs/Serialization/Common/Anchor.d.ts +16 -0
  113. package/dist/cjs/Serialization/Common/Anchor.d.ts.map +1 -0
  114. package/dist/cjs/Serialization/Common/Anchor.js +101 -0
  115. package/dist/cjs/Serialization/Common/Anchor.js.map +1 -0
  116. package/dist/cjs/Serialization/Common/GovernanceActionId.d.ts +16 -0
  117. package/dist/cjs/Serialization/Common/GovernanceActionId.d.ts.map +1 -0
  118. package/dist/cjs/Serialization/Common/GovernanceActionId.js +76 -0
  119. package/dist/cjs/Serialization/Common/GovernanceActionId.js.map +1 -0
  120. package/dist/cjs/Serialization/Common/index.d.ts +2 -0
  121. package/dist/cjs/Serialization/Common/index.d.ts.map +1 -1
  122. package/dist/cjs/Serialization/Common/index.js +2 -0
  123. package/dist/cjs/Serialization/Common/index.js.map +1 -1
  124. package/dist/cjs/Serialization/Scripts/PlutusScript/PlutusV3Script.d.ts +15 -0
  125. package/dist/cjs/Serialization/Scripts/PlutusScript/PlutusV3Script.d.ts.map +1 -0
  126. package/dist/cjs/Serialization/Scripts/PlutusScript/PlutusV3Script.js +91 -0
  127. package/dist/cjs/Serialization/Scripts/PlutusScript/PlutusV3Script.js.map +1 -0
  128. package/dist/cjs/Serialization/Scripts/PlutusScript/index.d.ts +1 -0
  129. package/dist/cjs/Serialization/Scripts/PlutusScript/index.d.ts.map +1 -1
  130. package/dist/cjs/Serialization/Scripts/PlutusScript/index.js +1 -0
  131. package/dist/cjs/Serialization/Scripts/PlutusScript/index.js.map +1 -1
  132. package/dist/cjs/Serialization/Scripts/Script.d.ts +3 -1
  133. package/dist/cjs/Serialization/Scripts/Script.d.ts.map +1 -1
  134. package/dist/cjs/Serialization/Scripts/Script.js +27 -2
  135. package/dist/cjs/Serialization/Scripts/Script.js.map +1 -1
  136. package/dist/cjs/Serialization/Scripts/ScriptLanguage.d.ts +2 -1
  137. package/dist/cjs/Serialization/Scripts/ScriptLanguage.d.ts.map +1 -1
  138. package/dist/cjs/Serialization/Scripts/ScriptLanguage.js +1 -0
  139. package/dist/cjs/Serialization/Scripts/ScriptLanguage.js.map +1 -1
  140. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Committee.d.ts +16 -0
  141. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Committee.d.ts.map +1 -0
  142. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Committee.js +113 -0
  143. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Committee.js.map +1 -0
  144. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Constitution.d.ts +17 -0
  145. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Constitution.d.ts.map +1 -0
  146. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Constitution.js +82 -0
  147. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/Constitution.js.map +1 -0
  148. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.d.ts +10 -0
  149. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.d.ts.map +1 -0
  150. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.js +14 -0
  151. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.js.map +1 -0
  152. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.d.ts +15 -0
  153. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.d.ts.map +1 -0
  154. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.js +109 -0
  155. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.js.map +1 -0
  156. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/InfoAction.d.ts +10 -0
  157. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/InfoAction.d.ts.map +1 -0
  158. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/InfoAction.js +74 -0
  159. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/InfoAction.js.map +1 -0
  160. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NewConstitution.d.ts +15 -0
  161. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NewConstitution.d.ts.map +1 -0
  162. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NewConstitution.js +106 -0
  163. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NewConstitution.js.map +1 -0
  164. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NoConfidence.d.ts +13 -0
  165. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NoConfidence.d.ts.map +1 -0
  166. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NoConfidence.js +97 -0
  167. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/NoConfidence.js.map +1 -0
  168. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.d.ts +15 -0
  169. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.d.ts.map +1 -0
  170. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.js +106 -0
  171. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.js.map +1 -0
  172. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.d.ts +37 -0
  173. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.d.ts.map +1 -0
  174. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.js +329 -0
  175. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.js.map +1 -0
  176. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.d.ts +12 -0
  177. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.d.ts.map +1 -0
  178. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.js +109 -0
  179. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.js.map +1 -0
  180. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.d.ts +17 -0
  181. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.d.ts.map +1 -0
  182. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.js +161 -0
  183. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.js.map +1 -0
  184. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/index.d.ts +12 -0
  185. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/index.d.ts.map +1 -0
  186. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/index.js +28 -0
  187. package/dist/cjs/Serialization/TransactionBody/ProposalProcedure/index.js.map +1 -0
  188. package/dist/cjs/Serialization/TransactionBody/TransactionBody.d.ts +10 -0
  189. package/dist/cjs/Serialization/TransactionBody/TransactionBody.d.ts.map +1 -1
  190. package/dist/cjs/Serialization/TransactionBody/TransactionBody.js +94 -2
  191. package/dist/cjs/Serialization/TransactionBody/TransactionBody.js.map +1 -1
  192. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/Voter.d.ts +21 -0
  193. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/Voter.d.ts.map +1 -0
  194. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/Voter.js +171 -0
  195. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/Voter.js.map +1 -0
  196. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VoterKind.d.ts +8 -0
  197. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VoterKind.d.ts.map +1 -0
  198. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VoterKind.js +12 -0
  199. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VoterKind.js.map +1 -0
  200. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedure.d.ts +17 -0
  201. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedure.d.ts.map +1 -0
  202. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedure.js +80 -0
  203. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedure.js.map +1 -0
  204. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedures.d.ts +17 -0
  205. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedures.d.ts.map +1 -0
  206. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedures.js +127 -0
  207. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/VotingProcedures.js.map +1 -0
  208. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/index.d.ts +5 -0
  209. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/index.d.ts.map +1 -0
  210. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/index.js +21 -0
  211. package/dist/cjs/Serialization/TransactionBody/VotingProcedures/index.js.map +1 -0
  212. package/dist/cjs/Serialization/TransactionBody/index.d.ts +2 -0
  213. package/dist/cjs/Serialization/TransactionBody/index.d.ts.map +1 -1
  214. package/dist/cjs/Serialization/TransactionBody/index.js +2 -0
  215. package/dist/cjs/Serialization/TransactionBody/index.js.map +1 -1
  216. package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.d.ts +3 -1
  217. package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.d.ts.map +1 -1
  218. package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.js +37 -4
  219. package/dist/cjs/Serialization/TransactionWitnessSet/TransactionWitnessSet.js.map +1 -1
  220. package/dist/cjs/Serialization/Update/Costmdls/CostModel.d.ts +1 -0
  221. package/dist/cjs/Serialization/Update/Costmdls/CostModel.d.ts.map +1 -1
  222. package/dist/cjs/Serialization/Update/Costmdls/CostModel.js +11 -0
  223. package/dist/cjs/Serialization/Update/Costmdls/CostModel.js.map +1 -1
  224. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.d.ts.map +1 -1
  225. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.js +1 -0
  226. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.js.map +1 -1
  227. package/dist/cjs/Serialization/Update/DrepVotingThresholds.d.ts +32 -0
  228. package/dist/cjs/Serialization/Update/DrepVotingThresholds.d.ts.map +1 -0
  229. package/dist/cjs/Serialization/Update/DrepVotingThresholds.js +171 -0
  230. package/dist/cjs/Serialization/Update/DrepVotingThresholds.js.map +1 -0
  231. package/dist/cjs/Serialization/Update/PoolVotingThresholds.d.ts +20 -0
  232. package/dist/cjs/Serialization/Update/PoolVotingThresholds.d.ts.map +1 -0
  233. package/dist/cjs/Serialization/Update/PoolVotingThresholds.js +99 -0
  234. package/dist/cjs/Serialization/Update/PoolVotingThresholds.js.map +1 -0
  235. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.d.ts +18 -0
  236. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.d.ts.map +1 -1
  237. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.js +186 -2
  238. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.js.map +1 -1
  239. package/dist/cjs/Serialization/Update/index.d.ts +2 -0
  240. package/dist/cjs/Serialization/Update/index.d.ts.map +1 -1
  241. package/dist/cjs/Serialization/Update/index.js +2 -0
  242. package/dist/cjs/Serialization/Update/index.js.map +1 -1
  243. package/dist/cjs/index.d.ts +0 -3
  244. package/dist/cjs/index.d.ts.map +1 -1
  245. package/dist/cjs/index.js +1 -2
  246. package/dist/cjs/index.js.map +1 -1
  247. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  248. package/dist/esm/Cardano/ChainId.d.ts +5 -5
  249. package/dist/esm/Cardano/ChainId.d.ts.map +1 -1
  250. package/dist/esm/Cardano/ChainId.js +5 -5
  251. package/dist/esm/Cardano/ChainId.js.map +1 -1
  252. package/dist/esm/Cardano/types/Certificate.d.ts +75 -2
  253. package/dist/esm/Cardano/types/Certificate.d.ts.map +1 -1
  254. package/dist/esm/Cardano/types/Certificate.js +12 -0
  255. package/dist/esm/Cardano/types/Certificate.js.map +1 -1
  256. package/dist/esm/Cardano/types/Governance.d.ts +147 -0
  257. package/dist/esm/Cardano/types/Governance.d.ts.map +1 -0
  258. package/dist/esm/Cardano/types/Governance.js +28 -0
  259. package/dist/esm/Cardano/types/Governance.js.map +1 -0
  260. package/dist/esm/Cardano/types/ProtocolParameters.d.ts +27 -1
  261. package/dist/esm/Cardano/types/ProtocolParameters.d.ts.map +1 -1
  262. package/dist/esm/Cardano/types/Script.d.ts +2 -1
  263. package/dist/esm/Cardano/types/Script.d.ts.map +1 -1
  264. package/dist/esm/Cardano/types/Script.js +1 -0
  265. package/dist/esm/Cardano/types/Script.js.map +1 -1
  266. package/dist/esm/Cardano/types/StakePool/PoolParameters.d.ts +1 -4
  267. package/dist/esm/Cardano/types/StakePool/PoolParameters.d.ts.map +1 -1
  268. package/dist/esm/Cardano/types/StakePool/PoolParameters.js.map +1 -1
  269. package/dist/esm/Cardano/types/Transaction.d.ts +7 -1
  270. package/dist/esm/Cardano/types/Transaction.d.ts.map +1 -1
  271. package/dist/esm/Cardano/types/Transaction.js +1 -0
  272. package/dist/esm/Cardano/types/Transaction.js.map +1 -1
  273. package/dist/esm/Cardano/types/UtilityTypes.d.ts +5 -0
  274. package/dist/esm/Cardano/types/UtilityTypes.d.ts.map +1 -0
  275. package/dist/esm/Cardano/types/UtilityTypes.js +2 -0
  276. package/dist/esm/Cardano/types/UtilityTypes.js.map +1 -0
  277. package/dist/esm/Cardano/types/Value.d.ts +1 -0
  278. package/dist/esm/Cardano/types/Value.d.ts.map +1 -1
  279. package/dist/esm/Cardano/types/index.d.ts +2 -0
  280. package/dist/esm/Cardano/types/index.d.ts.map +1 -1
  281. package/dist/esm/Cardano/types/index.js +2 -0
  282. package/dist/esm/Cardano/types/index.js.map +1 -1
  283. package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.d.ts +3 -1
  284. package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.d.ts.map +1 -1
  285. package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.js +39 -5
  286. package/dist/esm/Serialization/AuxiliaryData/AuxiliaryData.js.map +1 -1
  287. package/dist/esm/Serialization/Certificates/AuthCommitteeHot.d.ts +13 -0
  288. package/dist/esm/Serialization/Certificates/AuthCommitteeHot.d.ts.map +1 -0
  289. package/dist/esm/Serialization/Certificates/AuthCommitteeHot.js +84 -0
  290. package/dist/esm/Serialization/Certificates/AuthCommitteeHot.js.map +1 -0
  291. package/dist/esm/Serialization/Certificates/Certificate.d.ts +36 -0
  292. package/dist/esm/Serialization/Certificates/Certificate.d.ts.map +1 -1
  293. package/dist/esm/Serialization/Certificates/Certificate.js +278 -2
  294. package/dist/esm/Serialization/Certificates/Certificate.js.map +1 -1
  295. package/dist/esm/Serialization/Certificates/CertificateKind.d.ts +13 -1
  296. package/dist/esm/Serialization/Certificates/CertificateKind.d.ts.map +1 -1
  297. package/dist/esm/Serialization/Certificates/CertificateKind.js +12 -0
  298. package/dist/esm/Serialization/Certificates/CertificateKind.js.map +1 -1
  299. package/dist/esm/Serialization/Certificates/DRep/DRep.d.ts +20 -0
  300. package/dist/esm/Serialization/Certificates/DRep/DRep.d.ts.map +1 -0
  301. package/dist/esm/Serialization/Certificates/DRep/DRep.js +109 -0
  302. package/dist/esm/Serialization/Certificates/DRep/DRep.js.map +1 -0
  303. package/dist/esm/Serialization/Certificates/DRep/DRepKind.d.ts +7 -0
  304. package/dist/esm/Serialization/Certificates/DRep/DRepKind.d.ts.map +1 -0
  305. package/dist/esm/Serialization/Certificates/DRep/DRepKind.js +8 -0
  306. package/dist/esm/Serialization/Certificates/DRep/DRepKind.js.map +1 -0
  307. package/dist/esm/Serialization/Certificates/DRep/index.d.ts +3 -0
  308. package/dist/esm/Serialization/Certificates/DRep/index.d.ts.map +1 -0
  309. package/dist/esm/Serialization/Certificates/DRep/index.js +3 -0
  310. package/dist/esm/Serialization/Certificates/DRep/index.js.map +1 -0
  311. package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.d.ts +15 -0
  312. package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.d.ts.map +1 -0
  313. package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.js +98 -0
  314. package/dist/esm/Serialization/Certificates/RegisterDelegateRepresentative.js.map +1 -0
  315. package/dist/esm/Serialization/Certificates/Registration.d.ts +15 -0
  316. package/dist/esm/Serialization/Certificates/Registration.d.ts.map +1 -0
  317. package/dist/esm/Serialization/Certificates/Registration.js +85 -0
  318. package/dist/esm/Serialization/Certificates/Registration.js.map +1 -0
  319. package/dist/esm/Serialization/Certificates/ResignCommitteeCold.d.ts +12 -0
  320. package/dist/esm/Serialization/Certificates/ResignCommitteeCold.d.ts.map +1 -0
  321. package/dist/esm/Serialization/Certificates/ResignCommitteeCold.js +69 -0
  322. package/dist/esm/Serialization/Certificates/ResignCommitteeCold.js.map +1 -0
  323. package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.d.ts +15 -0
  324. package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.d.ts.map +1 -0
  325. package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.js +86 -0
  326. package/dist/esm/Serialization/Certificates/StakeRegistrationDelegation.js.map +1 -0
  327. package/dist/esm/Serialization/Certificates/StakeVoteDelegation.d.ts +16 -0
  328. package/dist/esm/Serialization/Certificates/StakeVoteDelegation.d.ts.map +1 -0
  329. package/dist/esm/Serialization/Certificates/StakeVoteDelegation.js +88 -0
  330. package/dist/esm/Serialization/Certificates/StakeVoteDelegation.js.map +1 -0
  331. package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.d.ts +17 -0
  332. package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.d.ts.map +1 -0
  333. package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.js +96 -0
  334. package/dist/esm/Serialization/Certificates/StakeVoteRegistrationDelegation.js.map +1 -0
  335. package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.d.ts +13 -0
  336. package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.d.ts.map +1 -0
  337. package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.js +77 -0
  338. package/dist/esm/Serialization/Certificates/UnregisterDelegateRepresentative.js.map +1 -0
  339. package/dist/esm/Serialization/Certificates/Unregistration.d.ts +15 -0
  340. package/dist/esm/Serialization/Certificates/Unregistration.d.ts.map +1 -0
  341. package/dist/esm/Serialization/Certificates/Unregistration.js +85 -0
  342. package/dist/esm/Serialization/Certificates/Unregistration.js.map +1 -0
  343. package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.d.ts +14 -0
  344. package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.d.ts.map +1 -0
  345. package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.js +90 -0
  346. package/dist/esm/Serialization/Certificates/UpdateDelegateRepresentative.js.map +1 -0
  347. package/dist/esm/Serialization/Certificates/VoteDelegation.d.ts +14 -0
  348. package/dist/esm/Serialization/Certificates/VoteDelegation.d.ts.map +1 -0
  349. package/dist/esm/Serialization/Certificates/VoteDelegation.js +80 -0
  350. package/dist/esm/Serialization/Certificates/VoteDelegation.js.map +1 -0
  351. package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.d.ts +15 -0
  352. package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.d.ts.map +1 -0
  353. package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.js +88 -0
  354. package/dist/esm/Serialization/Certificates/VoteRegistrationDelegation.js.map +1 -0
  355. package/dist/esm/Serialization/Certificates/index.d.ts +13 -0
  356. package/dist/esm/Serialization/Certificates/index.d.ts.map +1 -1
  357. package/dist/esm/Serialization/Certificates/index.js +13 -0
  358. package/dist/esm/Serialization/Certificates/index.js.map +1 -1
  359. package/dist/esm/Serialization/Common/Anchor.d.ts +16 -0
  360. package/dist/esm/Serialization/Common/Anchor.d.ts.map +1 -0
  361. package/dist/esm/Serialization/Common/Anchor.js +74 -0
  362. package/dist/esm/Serialization/Common/Anchor.js.map +1 -0
  363. package/dist/esm/Serialization/Common/GovernanceActionId.d.ts +16 -0
  364. package/dist/esm/Serialization/Common/GovernanceActionId.d.ts.map +1 -0
  365. package/dist/esm/Serialization/Common/GovernanceActionId.js +72 -0
  366. package/dist/esm/Serialization/Common/GovernanceActionId.js.map +1 -0
  367. package/dist/esm/Serialization/Common/index.d.ts +2 -0
  368. package/dist/esm/Serialization/Common/index.d.ts.map +1 -1
  369. package/dist/esm/Serialization/Common/index.js +2 -0
  370. package/dist/esm/Serialization/Common/index.js.map +1 -1
  371. package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.d.ts +15 -0
  372. package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.d.ts.map +1 -0
  373. package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.js +64 -0
  374. package/dist/esm/Serialization/Scripts/PlutusScript/PlutusV3Script.js.map +1 -0
  375. package/dist/esm/Serialization/Scripts/PlutusScript/index.d.ts +1 -0
  376. package/dist/esm/Serialization/Scripts/PlutusScript/index.d.ts.map +1 -1
  377. package/dist/esm/Serialization/Scripts/PlutusScript/index.js +1 -0
  378. package/dist/esm/Serialization/Scripts/PlutusScript/index.js.map +1 -1
  379. package/dist/esm/Serialization/Scripts/Script.d.ts +3 -1
  380. package/dist/esm/Serialization/Scripts/Script.d.ts.map +1 -1
  381. package/dist/esm/Serialization/Scripts/Script.js +28 -3
  382. package/dist/esm/Serialization/Scripts/Script.js.map +1 -1
  383. package/dist/esm/Serialization/Scripts/ScriptLanguage.d.ts +2 -1
  384. package/dist/esm/Serialization/Scripts/ScriptLanguage.d.ts.map +1 -1
  385. package/dist/esm/Serialization/Scripts/ScriptLanguage.js +1 -0
  386. package/dist/esm/Serialization/Scripts/ScriptLanguage.js.map +1 -1
  387. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.d.ts +16 -0
  388. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.d.ts.map +1 -0
  389. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.js +109 -0
  390. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Committee.js.map +1 -0
  391. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.d.ts +17 -0
  392. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.d.ts.map +1 -0
  393. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.js +78 -0
  394. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/Constitution.js.map +1 -0
  395. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.d.ts +10 -0
  396. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.d.ts.map +1 -0
  397. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.js +11 -0
  398. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/GovernanceActionKind.js.map +1 -0
  399. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.d.ts +15 -0
  400. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.d.ts.map +1 -0
  401. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.js +82 -0
  402. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/HardForkInitiationAction.js.map +1 -0
  403. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.d.ts +10 -0
  404. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.d.ts.map +1 -0
  405. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.js +47 -0
  406. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/InfoAction.js.map +1 -0
  407. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.d.ts +15 -0
  408. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.d.ts.map +1 -0
  409. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.js +79 -0
  410. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NewConstitution.js.map +1 -0
  411. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.d.ts +13 -0
  412. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.d.ts.map +1 -0
  413. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.js +70 -0
  414. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/NoConfidence.js.map +1 -0
  415. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.d.ts +15 -0
  416. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.d.ts.map +1 -0
  417. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.js +79 -0
  418. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.js.map +1 -0
  419. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.d.ts +37 -0
  420. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.d.ts.map +1 -0
  421. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.js +302 -0
  422. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/ProposalProcedure.js.map +1 -0
  423. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.d.ts +12 -0
  424. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.d.ts.map +1 -0
  425. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.js +82 -0
  426. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/TreasuryWithdrawalsAction.js.map +1 -0
  427. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.d.ts +17 -0
  428. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.d.ts.map +1 -0
  429. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.js +134 -0
  430. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/UpdateCommittee.js.map +1 -0
  431. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.d.ts +12 -0
  432. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.d.ts.map +1 -0
  433. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.js +12 -0
  434. package/dist/esm/Serialization/TransactionBody/ProposalProcedure/index.js.map +1 -0
  435. package/dist/esm/Serialization/TransactionBody/TransactionBody.d.ts +10 -0
  436. package/dist/esm/Serialization/TransactionBody/TransactionBody.d.ts.map +1 -1
  437. package/dist/esm/Serialization/TransactionBody/TransactionBody.js +94 -2
  438. package/dist/esm/Serialization/TransactionBody/TransactionBody.js.map +1 -1
  439. package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.d.ts +21 -0
  440. package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.d.ts.map +1 -0
  441. package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.js +167 -0
  442. package/dist/esm/Serialization/TransactionBody/VotingProcedures/Voter.js.map +1 -0
  443. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VoterKind.d.ts +8 -0
  444. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VoterKind.d.ts.map +1 -0
  445. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VoterKind.js +9 -0
  446. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VoterKind.js.map +1 -0
  447. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.d.ts +17 -0
  448. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.d.ts.map +1 -0
  449. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.js +76 -0
  450. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedure.js.map +1 -0
  451. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.d.ts +17 -0
  452. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.d.ts.map +1 -0
  453. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.js +123 -0
  454. package/dist/esm/Serialization/TransactionBody/VotingProcedures/VotingProcedures.js.map +1 -0
  455. package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.d.ts +5 -0
  456. package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.d.ts.map +1 -0
  457. package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.js +5 -0
  458. package/dist/esm/Serialization/TransactionBody/VotingProcedures/index.js.map +1 -0
  459. package/dist/esm/Serialization/TransactionBody/index.d.ts +2 -0
  460. package/dist/esm/Serialization/TransactionBody/index.d.ts.map +1 -1
  461. package/dist/esm/Serialization/TransactionBody/index.js +2 -0
  462. package/dist/esm/Serialization/TransactionBody/index.js.map +1 -1
  463. package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.d.ts +3 -1
  464. package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.d.ts.map +1 -1
  465. package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.js +38 -5
  466. package/dist/esm/Serialization/TransactionWitnessSet/TransactionWitnessSet.js.map +1 -1
  467. package/dist/esm/Serialization/Update/Costmdls/CostModel.d.ts +1 -0
  468. package/dist/esm/Serialization/Update/Costmdls/CostModel.d.ts.map +1 -1
  469. package/dist/esm/Serialization/Update/Costmdls/CostModel.js +11 -0
  470. package/dist/esm/Serialization/Update/Costmdls/CostModel.js.map +1 -1
  471. package/dist/esm/Serialization/Update/Costmdls/Costmdls.d.ts.map +1 -1
  472. package/dist/esm/Serialization/Update/Costmdls/Costmdls.js +1 -0
  473. package/dist/esm/Serialization/Update/Costmdls/Costmdls.js.map +1 -1
  474. package/dist/esm/Serialization/Update/DrepVotingThresholds.d.ts +32 -0
  475. package/dist/esm/Serialization/Update/DrepVotingThresholds.d.ts.map +1 -0
  476. package/dist/esm/Serialization/Update/DrepVotingThresholds.js +167 -0
  477. package/dist/esm/Serialization/Update/DrepVotingThresholds.js.map +1 -0
  478. package/dist/esm/Serialization/Update/PoolVotingThresholds.d.ts +20 -0
  479. package/dist/esm/Serialization/Update/PoolVotingThresholds.d.ts.map +1 -0
  480. package/dist/esm/Serialization/Update/PoolVotingThresholds.js +95 -0
  481. package/dist/esm/Serialization/Update/PoolVotingThresholds.js.map +1 -0
  482. package/dist/esm/Serialization/Update/ProtocolParamUpdate.d.ts +18 -0
  483. package/dist/esm/Serialization/Update/ProtocolParamUpdate.d.ts.map +1 -1
  484. package/dist/esm/Serialization/Update/ProtocolParamUpdate.js +163 -2
  485. package/dist/esm/Serialization/Update/ProtocolParamUpdate.js.map +1 -1
  486. package/dist/esm/Serialization/Update/index.d.ts +2 -0
  487. package/dist/esm/Serialization/Update/index.d.ts.map +1 -1
  488. package/dist/esm/Serialization/Update/index.js +2 -0
  489. package/dist/esm/Serialization/Update/index.js.map +1 -1
  490. package/dist/esm/index.d.ts +0 -3
  491. package/dist/esm/index.d.ts.map +1 -1
  492. package/dist/esm/index.js +0 -1
  493. package/dist/esm/index.js.map +1 -1
  494. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  495. package/package.json +5 -6
@@ -0,0 +1,96 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _StakeVoteRegistrationDelegation_credential, _StakeVoteRegistrationDelegation_dRep, _StakeVoteRegistrationDelegation_poolKeyHash, _StakeVoteRegistrationDelegation_deposit, _StakeVoteRegistrationDelegation_originalBytes;
13
+ import * as Cardano from '../../Cardano';
14
+ import * as Crypto from '@cardano-sdk/crypto';
15
+ import { CborReader, CborWriter } from '../CBOR';
16
+ import { CertificateKind } from './CertificateKind';
17
+ import { CertificateType } from '../../Cardano';
18
+ import { DRep } from './DRep';
19
+ import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
20
+ import { hexToBytes } from '../../util/misc';
21
+ const EMBEDDED_GROUP_SIZE = 2;
22
+ export class StakeVoteRegistrationDelegation {
23
+ constructor(stakeCredential, deposit, dRep, poolKeyHash) {
24
+ _StakeVoteRegistrationDelegation_credential.set(this, void 0);
25
+ _StakeVoteRegistrationDelegation_dRep.set(this, void 0);
26
+ _StakeVoteRegistrationDelegation_poolKeyHash.set(this, void 0);
27
+ _StakeVoteRegistrationDelegation_deposit.set(this, void 0);
28
+ _StakeVoteRegistrationDelegation_originalBytes.set(this, undefined);
29
+ __classPrivateFieldSet(this, _StakeVoteRegistrationDelegation_credential, stakeCredential, "f");
30
+ __classPrivateFieldSet(this, _StakeVoteRegistrationDelegation_deposit, deposit, "f");
31
+ __classPrivateFieldSet(this, _StakeVoteRegistrationDelegation_dRep, dRep, "f");
32
+ __classPrivateFieldSet(this, _StakeVoteRegistrationDelegation_poolKeyHash, poolKeyHash, "f");
33
+ }
34
+ toCbor() {
35
+ const writer = new CborWriter();
36
+ if (__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_originalBytes, "f"))
37
+ return __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_originalBytes, "f");
38
+ writer.writeStartArray(5);
39
+ writer.writeInt(CertificateKind.StakeVoteRegistrationDelegation);
40
+ writer.writeStartArray(EMBEDDED_GROUP_SIZE);
41
+ writer.writeInt(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_credential, "f").type);
42
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_credential, "f").hash, 'hex'));
43
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_poolKeyHash, "f"), 'hex'));
44
+ writer.writeEncodedValue(hexToBytes(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_dRep, "f").toCbor()));
45
+ writer.writeInt(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_deposit, "f"));
46
+ return writer.encodeAsHex();
47
+ }
48
+ static fromCbor(cbor) {
49
+ const reader = new CborReader(cbor);
50
+ const length = reader.readStartArray();
51
+ if (length !== 5)
52
+ throw new InvalidArgumentError('cbor', `Expected an array of 5 elements, but got an array of ${length} elements`);
53
+ const kind = Number(reader.readInt());
54
+ if (kind !== CertificateKind.StakeVoteRegistrationDelegation)
55
+ throw new InvalidArgumentError('cbor', `Expected certificate kind ${CertificateKind.StakeVoteRegistrationDelegation}, but got ${kind}`);
56
+ const credLength = reader.readStartArray();
57
+ if (credLength !== EMBEDDED_GROUP_SIZE)
58
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
59
+ const type = Number(reader.readInt());
60
+ const hash = Crypto.Hash28ByteBase16(HexBlob.fromBytes(reader.readByteString()));
61
+ reader.readEndArray();
62
+ const poolKeyHash = Crypto.Ed25519KeyHashHex(HexBlob.fromBytes(reader.readByteString()));
63
+ const dRep = DRep.fromCbor(HexBlob.fromBytes(reader.readEncodedValue()));
64
+ const deposit = reader.readInt();
65
+ reader.readEndArray();
66
+ const cert = new StakeVoteRegistrationDelegation({ hash, type }, deposit, dRep, poolKeyHash);
67
+ __classPrivateFieldSet(cert, _StakeVoteRegistrationDelegation_originalBytes, cbor, "f");
68
+ return cert;
69
+ }
70
+ toCore() {
71
+ return {
72
+ __typename: CertificateType.StakeVoteRegistrationDelegation,
73
+ dRep: __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_dRep, "f").toCore(),
74
+ deposit: __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_deposit, "f"),
75
+ poolId: Cardano.PoolId.fromKeyHash(__classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_poolKeyHash, "f")),
76
+ stakeKeyHash: __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_credential, "f").hash
77
+ };
78
+ }
79
+ static fromCore(deleg) {
80
+ return new StakeVoteRegistrationDelegation({ hash: Crypto.Hash28ByteBase16(deleg.stakeKeyHash), type: Cardano.CredentialType.KeyHash }, deleg.deposit, DRep.fromCore(deleg.dRep), Cardano.PoolId.toKeyHash(deleg.poolId));
81
+ }
82
+ stakeCredential() {
83
+ return __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_credential, "f");
84
+ }
85
+ deposit() {
86
+ return __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_deposit, "f");
87
+ }
88
+ dRep() {
89
+ return __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_dRep, "f");
90
+ }
91
+ poolKeyHash() {
92
+ return __classPrivateFieldGet(this, _StakeVoteRegistrationDelegation_poolKeyHash, "f");
93
+ }
94
+ }
95
+ _StakeVoteRegistrationDelegation_credential = new WeakMap(), _StakeVoteRegistrationDelegation_dRep = new WeakMap(), _StakeVoteRegistrationDelegation_poolKeyHash = new WeakMap(), _StakeVoteRegistrationDelegation_deposit = new WeakMap(), _StakeVoteRegistrationDelegation_originalBytes = new WeakMap();
96
+ //# sourceMappingURL=StakeVoteRegistrationDelegation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StakeVoteRegistrationDelegation.js","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/StakeVoteRegistrationDelegation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAO9B,MAAM,OAAO,+BAA+B;IAgB1C,YACE,eAAmC,EACnC,OAAyB,EACzB,IAAU,EACV,WAAqC;QAnBvC,8DAAgC;QAChC,wDAAY;QACZ,+DAAuC;QACvC,2DAA2B;QAC3B,yDAAsC,SAAS,EAAC;QAiB9C,uBAAA,IAAI,+CAAe,eAAe,MAAA,CAAC;QACnC,uBAAA,IAAI,4CAAY,OAAO,MAAA,CAAC;QACxB,uBAAA,IAAI,yCAAS,IAAI,MAAA,CAAC;QAClB,uBAAA,IAAI,gDAAgB,WAAW,MAAA,CAAC;IAClC,CAAC;IAOD,MAAM;QACJ,MAAM,M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;YACrD,YAAY,EAAE,uBAAA,IAAI,mDAAY,CAAC,IAA2C;SAC3E,CAAC;IACJ,CAAC;IAOD,MAAM,CAAC,QAAQ,CAAC,KAAyD;QACvE,OAAO,IAAI,+BAA+B,CACxC,EAAE,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,EAC3F,KAAK,CAAC,OAAO,EACb,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EACzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CACvC,CAAC;IACJ,CAAC;IAOD,eAAe;QACb,OAAO,uBAAA,IAAI,mDAAY,CAAC;IAC1B,CAAC;IAOD,OAAO;QACL,OAAO,uBAAA,IAAI,gDAAS,CAAC;IACvB,CAAC;IAOD,IAAI;QACF,OAAO,uBAAA,IAAI,6CAAM,CAAC;IACpB,CAAC;IAOD,WAAW;QACT,OAAO,uBAAA,IAAI,oDAAa,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,13 @@
1
+ import * as Cardano from '../../Cardano';
2
+ import { HexBlob } from '@cardano-sdk/util';
3
+ export declare class UnregisterDelegateRepresentative {
4
+ #private;
5
+ constructor(drepCredential: Cardano.Credential, deposit: Cardano.Lovelace);
6
+ toCbor(): HexBlob;
7
+ static fromCbor(cbor: HexBlob): UnregisterDelegateRepresentative;
8
+ toCore(): Cardano.UnRegisterDelegateRepresentativeCertificate;
9
+ static fromCore(cert: Cardano.UnRegisterDelegateRepresentativeCertificate): UnregisterDelegateRepresentative;
10
+ credential(): Cardano.Credential;
11
+ deposit(): Cardano.Lovelace;
12
+ }
13
+ //# sourceMappingURL=UnregisterDelegateRepresentative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnregisterDelegateRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/UnregisterDelegateRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAKzC,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AAWlE,qBAAa,gCAAgC;;gBAW/B,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ;IAUzE,MAAM,IAAI,OAAO;IA+BjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,gCAAgC;IA+ChE,MAAM,IAAI,OAAO,CAAC,2CAA2C;IAa7D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,2CAA2C;IASzE,UAAU,IAAI,OAAO,CAAC,UAAU;IAShC,OAAO,IAAI,OAAO,CAAC,QAAQ;CAG5B"}
@@ -0,0 +1,77 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _UnregisterDelegateRepresentative_drepCredential, _UnregisterDelegateRepresentative_deposit, _UnregisterDelegateRepresentative_originalBytes;
13
+ import * as Crypto from '@cardano-sdk/crypto';
14
+ import { CborReader, CborWriter } from '../CBOR';
15
+ import { CertificateKind } from './CertificateKind';
16
+ import { CertificateType } from '../../Cardano';
17
+ import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
18
+ const EMBEDDED_GROUP_SIZE = 2;
19
+ export class UnregisterDelegateRepresentative {
20
+ constructor(drepCredential, deposit) {
21
+ _UnregisterDelegateRepresentative_drepCredential.set(this, void 0);
22
+ _UnregisterDelegateRepresentative_deposit.set(this, void 0);
23
+ _UnregisterDelegateRepresentative_originalBytes.set(this, undefined);
24
+ __classPrivateFieldSet(this, _UnregisterDelegateRepresentative_drepCredential, drepCredential, "f");
25
+ __classPrivateFieldSet(this, _UnregisterDelegateRepresentative_deposit, deposit, "f");
26
+ }
27
+ toCbor() {
28
+ const writer = new CborWriter();
29
+ if (__classPrivateFieldGet(this, _UnregisterDelegateRepresentative_originalBytes, "f"))
30
+ return __classPrivateFieldGet(this, _UnregisterDelegateRepresentative_originalBytes, "f");
31
+ writer.writeStartArray(3);
32
+ writer.writeInt(CertificateKind.DrepUnregistration);
33
+ writer.writeStartArray(EMBEDDED_GROUP_SIZE);
34
+ writer.writeInt(__classPrivateFieldGet(this, _UnregisterDelegateRepresentative_drepCredential, "f").type);
35
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _UnregisterDelegateRepresentative_drepCredential, "f").hash, 'hex'));
36
+ writer.writeInt(__classPrivateFieldGet(this, _UnregisterDelegateRepresentative_deposit, "f"));
37
+ return writer.encodeAsHex();
38
+ }
39
+ static fromCbor(cbor) {
40
+ const reader = new CborReader(cbor);
41
+ const length = reader.readStartArray();
42
+ if (length !== 3)
43
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
44
+ const kind = Number(reader.readInt());
45
+ if (kind !== CertificateKind.DrepUnregistration)
46
+ throw new InvalidArgumentError('cbor', `Expected certificate kind ${CertificateKind.DrepUnregistration}, but got ${kind}`);
47
+ const credLength = reader.readStartArray();
48
+ if (credLength !== EMBEDDED_GROUP_SIZE)
49
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
50
+ const type = Number(reader.readInt());
51
+ const hash = Crypto.Hash28ByteBase16(HexBlob.fromBytes(reader.readByteString()));
52
+ reader.readEndArray();
53
+ const deposit = reader.readInt();
54
+ reader.readEndArray();
55
+ const cert = new UnregisterDelegateRepresentative({ hash, type }, deposit);
56
+ __classPrivateFieldSet(cert, _UnregisterDelegateRepresentative_originalBytes, cbor, "f");
57
+ return cert;
58
+ }
59
+ toCore() {
60
+ return {
61
+ __typename: CertificateType.UnregisterDelegateRepresentative,
62
+ dRepCredential: __classPrivateFieldGet(this, _UnregisterDelegateRepresentative_drepCredential, "f"),
63
+ deposit: __classPrivateFieldGet(this, _UnregisterDelegateRepresentative_deposit, "f")
64
+ };
65
+ }
66
+ static fromCore(cert) {
67
+ return new UnregisterDelegateRepresentative(cert.dRepCredential, cert.deposit);
68
+ }
69
+ credential() {
70
+ return __classPrivateFieldGet(this, _UnregisterDelegateRepresentative_drepCredential, "f");
71
+ }
72
+ deposit() {
73
+ return __classPrivateFieldGet(this, _UnregisterDelegateRepresentative_deposit, "f");
74
+ }
75
+ }
76
+ _UnregisterDelegateRepresentative_drepCredential = new WeakMap(), _UnregisterDelegateRepresentative_deposit = new WeakMap(), _UnregisterDelegateRepresentative_originalBytes = new WeakMap();
77
+ //# sourceMappingURL=UnregisterDelegateRepresentative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnregisterDelegateRepresentative.js","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/UnregisterDelegateRepresentative.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,E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AgB,CAAC;IAC9B,CAAC;IAOD,OAAO;QACL,OAAO,uBAAA,IAAI,iDAAS,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ import * as Cardano from '../../Cardano';
2
+ import { HexBlob } from '@cardano-sdk/util';
3
+ export declare class Unregistration {
4
+ #private;
5
+ constructor(credential: Cardano.Credential, deposit: Cardano.Lovelace);
6
+ toCbor(): HexBlob;
7
+ static fromCbor(cbor: HexBlob): Unregistration;
8
+ toCore(): Cardano.NewStakeAddressCertificate;
9
+ static fromCore(cert: Cardano.NewStakeAddressCertificate): Unregistration;
10
+ stakeCredential(): Cardano.Credential;
11
+ setStakeCredential(credential: Cardano.Credential): void;
12
+ deposit(): Cardano.Lovelace;
13
+ setDeposit(deposit: Cardano.Lovelace): void;
14
+ }
15
+ //# sourceMappingURL=Unregistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Unregistration.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/Unregistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAIzC,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AAclE,qBAAa,cAAc;;gBAYb,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ;IAUrE,MAAM,IAAI,OAAO;IA8BjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc;IA4C9C,MAAM,IAAI,OAAO,CAAC,0BAA0B;IAa5C,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B;IAYxD,eAAe,IAAI,OAAO,CAAC,UAAU;IASrC,kBAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,GAAG,IAAI;IAUxD,OAAO,IAAI,OAAO,CAAC,QAAQ;IAS3B,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,GAAG,IAAI;CAI5C"}
@@ -0,0 +1,85 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _Unregistration_credential, _Unregistration_deposit, _Unregistration_originalBytes;
13
+ import * as Cardano from '../../Cardano';
14
+ import * as Crypto from '@cardano-sdk/crypto';
15
+ import { CborReader, CborWriter } from '../CBOR';
16
+ import { CertificateKind } from './CertificateKind';
17
+ import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
18
+ const EMBEDDED_GROUP_SIZE = 2;
19
+ export class Unregistration {
20
+ constructor(credential, deposit) {
21
+ _Unregistration_credential.set(this, void 0);
22
+ _Unregistration_deposit.set(this, void 0);
23
+ _Unregistration_originalBytes.set(this, undefined);
24
+ __classPrivateFieldSet(this, _Unregistration_credential, credential, "f");
25
+ __classPrivateFieldSet(this, _Unregistration_deposit, deposit, "f");
26
+ }
27
+ toCbor() {
28
+ const writer = new CborWriter();
29
+ if (__classPrivateFieldGet(this, _Unregistration_originalBytes, "f"))
30
+ return __classPrivateFieldGet(this, _Unregistration_originalBytes, "f");
31
+ writer.writeStartArray(3);
32
+ writer.writeInt(CertificateKind.Unregistration);
33
+ writer.writeStartArray(EMBEDDED_GROUP_SIZE);
34
+ writer.writeInt(__classPrivateFieldGet(this, _Unregistration_credential, "f").type);
35
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _Unregistration_credential, "f").hash, 'hex'));
36
+ writer.writeInt(__classPrivateFieldGet(this, _Unregistration_deposit, "f"));
37
+ return writer.encodeAsHex();
38
+ }
39
+ static fromCbor(cbor) {
40
+ const reader = new CborReader(cbor);
41
+ const length = reader.readStartArray();
42
+ if (length !== 3)
43
+ throw new InvalidArgumentError('cbor', `Expected an array of 3 elements, but got an array of ${length} elements`);
44
+ const kind = Number(reader.readInt());
45
+ if (kind !== CertificateKind.Unregistration)
46
+ throw new InvalidArgumentError('cbor', `Expected certificate kind ${CertificateKind.Unregistration}, but got ${kind}`);
47
+ const credLength = reader.readStartArray();
48
+ if (credLength !== EMBEDDED_GROUP_SIZE)
49
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
50
+ const type = Number(reader.readInt());
51
+ const hash = Crypto.Hash28ByteBase16(HexBlob.fromBytes(reader.readByteString()));
52
+ reader.readEndArray();
53
+ const deposit = reader.readInt();
54
+ reader.readEndArray();
55
+ const cert = new Unregistration({ hash, type }, deposit);
56
+ __classPrivateFieldSet(cert, _Unregistration_originalBytes, cbor, "f");
57
+ return cert;
58
+ }
59
+ toCore() {
60
+ return {
61
+ __typename: Cardano.CertificateType.Unregistration,
62
+ deposit: __classPrivateFieldGet(this, _Unregistration_deposit, "f"),
63
+ stakeKeyHash: Crypto.Ed25519KeyHashHex(__classPrivateFieldGet(this, _Unregistration_credential, "f").hash)
64
+ };
65
+ }
66
+ static fromCore(cert) {
67
+ return new Unregistration({ hash: Crypto.Hash28ByteBase16(cert.stakeKeyHash), type: Cardano.CredentialType.KeyHash }, cert.deposit);
68
+ }
69
+ stakeCredential() {
70
+ return __classPrivateFieldGet(this, _Unregistration_credential, "f");
71
+ }
72
+ setStakeCredential(credential) {
73
+ __classPrivateFieldSet(this, _Unregistration_credential, credential, "f");
74
+ __classPrivateFieldSet(this, _Unregistration_originalBytes, undefined, "f");
75
+ }
76
+ deposit() {
77
+ return __classPrivateFieldGet(this, _Unregistration_deposit, "f");
78
+ }
79
+ setDeposit(deposit) {
80
+ __classPrivateFieldSet(this, _Unregistration_deposit, deposit, "f");
81
+ __classPrivateFieldSet(this, _Unregistration_originalBytes, undefined, "f");
82
+ }
83
+ }
84
+ _Unregistration_credential = new WeakMap(), _Unregistration_deposit = new WeakMap(), _Unregistration_originalBytes = new WeakMap();
85
+ //# sourceMappingURL=Unregistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Unregistration.js","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/Unregistration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAElE,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAY9B,MAAM,OAAO,cAAc;IAYzB,YAAY,UAA8B,EAAE,OAAyB;QAXrE,6CAAgC;QAChC,0CAA2B;QAC3B,wCAAsC,SAAS,EAAC;QAU9C,uBAAA,IAAI,8BAAe,UAAU,MAAA,CAAC;QAC9B,uBAAA,IAAI,2BAAY,OAAO,MAAA,CAAC;IAC1B,CAAC;IAOD,MAAM;QACJ,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAEhC,IAAI,uBAAA,IAAI,qCAAe;YAAE,OAAO,uBAAA,IAAI,qCAAe,CAAC;QAIpD,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAE1B,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAc,CAAC,CAA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@cardano-sdk/util';
4
+ export declare class UpdateDelegateRepresentative {
5
+ #private;
6
+ constructor(drepCredential: Cardano.Credential, anchor?: Anchor);
7
+ toCbor(): HexBlob;
8
+ static fromCbor(cbor: HexBlob): UpdateDelegateRepresentative;
9
+ toCore(): Cardano.UpdateDelegateRepresentativeCertificate;
10
+ static fromCore(cert: Cardano.UpdateDelegateRepresentativeCertificate): UpdateDelegateRepresentative;
11
+ credential(): Cardano.Credential;
12
+ anchor(): Anchor | undefined;
13
+ }
14
+ //# sourceMappingURL=UpdateDelegateRepresentative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateDelegateRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/UpdateDelegateRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AAQlE,qBAAa,4BAA4B;;gBAW3B,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM;IAU/D,MAAM,IAAI,OAAO;IAmCjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,4BAA4B;IAqD5D,MAAM,IAAI,OAAO,CAAC,uCAAuC;IAazD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,uCAAuC;IAYrE,UAAU,IAAI,OAAO,CAAC,UAAU;IAShC,MAAM,IAAI,MAAM,GAAG,SAAS;CAG7B"}
@@ -0,0 +1,90 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _UpdateDelegateRepresentative_drepCredential, _UpdateDelegateRepresentative_anchor, _UpdateDelegateRepresentative_originalBytes;
13
+ import * as Crypto from '@cardano-sdk/crypto';
14
+ import { Anchor } from '../Common';
15
+ import { CborReader, CborReaderState, CborWriter } from '../CBOR';
16
+ import { CertificateKind } from './CertificateKind';
17
+ import { CertificateType } from '../../Cardano';
18
+ import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
19
+ import { hexToBytes } from '../../util/misc';
20
+ const EMBEDDED_GROUP_SIZE = 2;
21
+ export class UpdateDelegateRepresentative {
22
+ constructor(drepCredential, anchor) {
23
+ _UpdateDelegateRepresentative_drepCredential.set(this, void 0);
24
+ _UpdateDelegateRepresentative_anchor.set(this, void 0);
25
+ _UpdateDelegateRepresentative_originalBytes.set(this, undefined);
26
+ __classPrivateFieldSet(this, _UpdateDelegateRepresentative_drepCredential, drepCredential, "f");
27
+ __classPrivateFieldSet(this, _UpdateDelegateRepresentative_anchor, anchor, "f");
28
+ }
29
+ toCbor() {
30
+ const writer = new CborWriter();
31
+ if (__classPrivateFieldGet(this, _UpdateDelegateRepresentative_originalBytes, "f"))
32
+ return __classPrivateFieldGet(this, _UpdateDelegateRepresentative_originalBytes, "f");
33
+ writer.writeStartArray(3);
34
+ writer.writeInt(CertificateKind.UpdateDrep);
35
+ writer.writeStartArray(EMBEDDED_GROUP_SIZE);
36
+ writer.writeInt(__classPrivateFieldGet(this, _UpdateDelegateRepresentative_drepCredential, "f").type);
37
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _UpdateDelegateRepresentative_drepCredential, "f").hash, 'hex'));
38
+ if (__classPrivateFieldGet(this, _UpdateDelegateRepresentative_anchor, "f")) {
39
+ writer.writeEncodedValue(hexToBytes(__classPrivateFieldGet(this, _UpdateDelegateRepresentative_anchor, "f").toCbor()));
40
+ }
41
+ else {
42
+ writer.writeNull();
43
+ }
44
+ return writer.encodeAsHex();
45
+ }
46
+ static fromCbor(cbor) {
47
+ const reader = new CborReader(cbor);
48
+ const length = reader.readStartArray();
49
+ if (length !== 3)
50
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
51
+ const kind = Number(reader.readInt());
52
+ if (kind !== CertificateKind.UpdateDrep)
53
+ throw new InvalidArgumentError('cbor', `Expected certificate kind ${CertificateKind.UpdateDrep}, but got ${kind}`);
54
+ const credLength = reader.readStartArray();
55
+ if (credLength !== EMBEDDED_GROUP_SIZE)
56
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
57
+ const type = Number(reader.readInt());
58
+ const hash = Crypto.Hash28ByteBase16(HexBlob.fromBytes(reader.readByteString()));
59
+ reader.readEndArray();
60
+ let anchor;
61
+ if (reader.peekState() === CborReaderState.Null) {
62
+ reader.readNull();
63
+ }
64
+ else {
65
+ anchor = Anchor.fromCbor(HexBlob.fromBytes(reader.readEncodedValue()));
66
+ }
67
+ reader.readEndArray();
68
+ const cert = new UpdateDelegateRepresentative({ hash, type }, anchor);
69
+ __classPrivateFieldSet(cert, _UpdateDelegateRepresentative_originalBytes, cbor, "f");
70
+ return cert;
71
+ }
72
+ toCore() {
73
+ return {
74
+ __typename: CertificateType.UpdateDelegateRepresentative,
75
+ anchor: __classPrivateFieldGet(this, _UpdateDelegateRepresentative_anchor, "f") ? __classPrivateFieldGet(this, _UpdateDelegateRepresentative_anchor, "f").toCore() : null,
76
+ dRepCredential: __classPrivateFieldGet(this, _UpdateDelegateRepresentative_drepCredential, "f")
77
+ };
78
+ }
79
+ static fromCore(cert) {
80
+ return new UpdateDelegateRepresentative(cert.dRepCredential, cert.anchor ? Anchor.fromCore(cert.anchor) : undefined);
81
+ }
82
+ credential() {
83
+ return __classPrivateFieldGet(this, _UpdateDelegateRepresentative_drepCredential, "f");
84
+ }
85
+ anchor() {
86
+ return __classPrivateFieldGet(this, _UpdateDelegateRepresentative_anchor, "f");
87
+ }
88
+ }
89
+ _UpdateDelegateRepresentative_drepCredential = new WeakMap(), _UpdateDelegateRepresentative_anchor = new WeakMap(), _UpdateDelegateRepresentative_originalBytes = new WeakMap();
90
+ //# sourceMappingURL=UpdateDelegateRepresentative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateDelegateRepresentative.js","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/UpdateDelegateRepresentative.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAK9B,MAAM,OAAO,4BAA4B;IAWvC,YAAY,cAAkC,EAAE,MAAe;QAV/D,+DAAoC;QACpC,uDAA4B;QAC5B,sDAAsC,SAAS,EAAC;QAS9C,uBAAA,IAAI,gDAAmB,cAAc,MAAA,CAAC;QACtC,uBAAA,IAAI,wCAAW,MAAM,MAAA,CAAC;I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,CAAC,cAAc,EACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CACvD,CAAC;IACJ,CAAC;IAOD,UAAU;QACR,OAAO,uBAAA,IAAI,oDAAgB,CAAC;IAC9B,CAAC;IAOD,MAAM;QACJ,OAAO,uBAAA,IAAI,4CAAQ,CAAC;IACtB,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import * as Cardano from '../../Cardano';
2
+ import { DRep } from './DRep';
3
+ import { HexBlob } from '@cardano-sdk/util';
4
+ export declare class VoteDelegation {
5
+ #private;
6
+ constructor(stakeCredential: Cardano.Credential, dRep: DRep);
7
+ toCbor(): HexBlob;
8
+ static fromCbor(cbor: HexBlob): VoteDelegation;
9
+ toCore(): Cardano.VoteDelegationCertificate;
10
+ static fromCore(deleg: Cardano.VoteDelegationCertificate): VoteDelegation;
11
+ stakeCredential(): Cardano.Credential;
12
+ dRep(): DRep;
13
+ }
14
+ //# sourceMappingURL=VoteDelegation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteDelegation.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/VoteDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAKzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AASlE,qBAAa,cAAc;;gBAWb,eAAe,EAAE,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI;IAU3D,MAAM,IAAI,OAAO;IA+BjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc;IA4C9C,MAAM,IAAI,OAAO,CAAC,yBAAyB;IAa3C,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,yBAAyB;IAYxD,eAAe,IAAI,OAAO,CAAC,UAAU;IASrC,IAAI,IAAI,IAAI;CAGb"}
@@ -0,0 +1,80 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _VoteDelegation_credential, _VoteDelegation_dRep, _VoteDelegation_originalBytes;
13
+ import * as Cardano from '../../Cardano';
14
+ import * as Crypto from '@cardano-sdk/crypto';
15
+ import { CborReader, CborWriter } from '../CBOR';
16
+ import { CertificateKind } from './CertificateKind';
17
+ import { CertificateType } from '../../Cardano';
18
+ import { DRep } from './DRep';
19
+ import { HexBlob, InvalidArgumentError } from '@cardano-sdk/util';
20
+ import { hexToBytes } from '../../util/misc';
21
+ const EMBEDDED_GROUP_SIZE = 2;
22
+ export class VoteDelegation {
23
+ constructor(stakeCredential, dRep) {
24
+ _VoteDelegation_credential.set(this, void 0);
25
+ _VoteDelegation_dRep.set(this, void 0);
26
+ _VoteDelegation_originalBytes.set(this, undefined);
27
+ __classPrivateFieldSet(this, _VoteDelegation_credential, stakeCredential, "f");
28
+ __classPrivateFieldSet(this, _VoteDelegation_dRep, dRep, "f");
29
+ }
30
+ toCbor() {
31
+ const writer = new CborWriter();
32
+ if (__classPrivateFieldGet(this, _VoteDelegation_originalBytes, "f"))
33
+ return __classPrivateFieldGet(this, _VoteDelegation_originalBytes, "f");
34
+ writer.writeStartArray(3);
35
+ writer.writeInt(CertificateKind.VoteDelegation);
36
+ writer.writeStartArray(EMBEDDED_GROUP_SIZE);
37
+ writer.writeInt(__classPrivateFieldGet(this, _VoteDelegation_credential, "f").type);
38
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _VoteDelegation_credential, "f").hash, 'hex'));
39
+ writer.writeEncodedValue(hexToBytes(__classPrivateFieldGet(this, _VoteDelegation_dRep, "f").toCbor()));
40
+ return writer.encodeAsHex();
41
+ }
42
+ static fromCbor(cbor) {
43
+ const reader = new CborReader(cbor);
44
+ const length = reader.readStartArray();
45
+ if (length !== 3)
46
+ throw new InvalidArgumentError('cbor', `Expected an array of 3 elements, but got an array of ${length} elements`);
47
+ const kind = Number(reader.readInt());
48
+ if (kind !== CertificateKind.VoteDelegation)
49
+ throw new InvalidArgumentError('cbor', `Expected certificate kind ${CertificateKind.VoteDelegation}, but got ${kind}`);
50
+ const credLength = reader.readStartArray();
51
+ if (credLength !== EMBEDDED_GROUP_SIZE)
52
+ throw new InvalidArgumentError('cbor', `Expected an array of ${EMBEDDED_GROUP_SIZE} elements, but got an array of ${length} elements`);
53
+ const type = Number(reader.readInt());
54
+ const hash = Crypto.Hash28ByteBase16(HexBlob.fromBytes(reader.readByteString()));
55
+ reader.readEndArray();
56
+ const dRep = DRep.fromCbor(HexBlob.fromBytes(reader.readEncodedValue()));
57
+ reader.readEndArray();
58
+ const cert = new VoteDelegation({ hash, type }, dRep);
59
+ __classPrivateFieldSet(cert, _VoteDelegation_originalBytes, cbor, "f");
60
+ return cert;
61
+ }
62
+ toCore() {
63
+ return {
64
+ __typename: CertificateType.VoteDelegation,
65
+ dRep: __classPrivateFieldGet(this, _VoteDelegation_dRep, "f").toCore(),
66
+ stakeKeyHash: __classPrivateFieldGet(this, _VoteDelegation_credential, "f").hash
67
+ };
68
+ }
69
+ static fromCore(deleg) {
70
+ return new VoteDelegation({ hash: Crypto.Hash28ByteBase16(deleg.stakeKeyHash), type: Cardano.CredentialType.KeyHash }, DRep.fromCore(deleg.dRep));
71
+ }
72
+ stakeCredential() {
73
+ return __classPrivateFieldGet(this, _VoteDelegation_credential, "f");
74
+ }
75
+ dRep() {
76
+ return __classPrivateFieldGet(this, _VoteDelegation_dRep, "f");
77
+ }
78
+ }
79
+ _VoteDelegation_credential = new WeakMap(), _VoteDelegation_dRep = new WeakMap(), _VoteDelegation_originalBytes = new WeakMap();
80
+ //# sourceMappingURL=VoteDelegation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteDelegation.js","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/VoteDelegation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAM9B,MAAM,OAAO,cAAc;IAWzB,YAAY,eAAmC,EAAE,IAAU;QAV3D,6CAAgC;QAChC,uCAAY;QACZ,wCAAsC,SAAS,EAAC;QAS9C,uBAAA,IAAI,8BAAe,eAAe,MAAA,CAAC;QACnC,uBAAA,IAAI,wBAAS,IAAI,MAAA,CAAC;IACpB,CAAC;IAOD,MAAM;QACJ,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAEhC,IAAI,uBAAA,IAA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Blob } from '@cardano-sdk/util';
4
+ export declare class VoteRegistrationDelegation {
5
+ #private;
6
+ constructor(stakeCredential: Cardano.Credential, deposit: Cardano.Lovelace, dRep: DRep);
7
+ toCbor(): HexBlob;
8
+ static fromCbor(cbor: HexBlob): VoteRegistrationDelegation;
9
+ toCore(): Cardano.VoteRegistrationDelegationCertificate;
10
+ static fromCore(deleg: Cardano.VoteRegistrationDelegationCertificate): VoteRegistrationDelegation;
11
+ stakeCredential(): Cardano.Credential;
12
+ deposit(): Cardano.Lovelace;
13
+ dRep(): DRep;
14
+ }
15
+ //# sourceMappingURL=VoteRegistrationDelegation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteRegistrationDelegation.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Certificates/VoteRegistrationDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAKzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AAQlE,qBAAa,0BAA0B;;gBAczB,eAAe,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI;IAWtF,MAAM,IAAI,OAAO;IAgCjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,0BAA0B;IA6C1D,MAAM,IAAI,OAAO,CAAC,qCAAqC;IAcvD,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,qCAAqC;IAapE,eAAe,IAAI,OAAO,CAAC,UAAU;IASrC,OAAO,IAAI,OAAO,CAAC,QAAQ;IAS3B,IAAI,IAAI,IAAI;CAGb"}