@cardano-sdk/core 0.17.0 → 0.19.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 (131) hide show
  1. package/dist/cjs/CBOR/TxBodyCBOR.js +1 -1
  2. package/dist/cjs/CBOR/TxBodyCBOR.js.map +1 -1
  3. package/dist/cjs/CML/util.d.ts.map +1 -1
  4. package/dist/cjs/CML/util.js +2 -1
  5. package/dist/cjs/CML/util.js.map +1 -1
  6. package/dist/cjs/Cardano/types/ProtocolParameters.d.ts +12 -6
  7. package/dist/cjs/Cardano/types/ProtocolParameters.d.ts.map +1 -1
  8. package/dist/cjs/Serialization/CBOR/CborReader.js +1 -1
  9. package/dist/cjs/Serialization/CBOR/CborReader.js.map +1 -1
  10. package/dist/cjs/Serialization/Common/ExUnits.d.ts +16 -0
  11. package/dist/cjs/Serialization/Common/ExUnits.d.ts.map +1 -0
  12. package/dist/cjs/Serialization/Common/ExUnits.js +79 -0
  13. package/dist/cjs/Serialization/Common/ExUnits.js.map +1 -0
  14. package/dist/cjs/Serialization/Common/ProtocolVersion.d.ts +15 -0
  15. package/dist/cjs/Serialization/Common/ProtocolVersion.d.ts.map +1 -0
  16. package/dist/cjs/Serialization/Common/ProtocolVersion.js +74 -0
  17. package/dist/cjs/Serialization/Common/ProtocolVersion.js.map +1 -0
  18. package/dist/cjs/Serialization/Common/UnitInterval.d.ts +2 -0
  19. package/dist/cjs/Serialization/Common/UnitInterval.d.ts.map +1 -1
  20. package/dist/cjs/Serialization/Common/UnitInterval.js +13 -0
  21. package/dist/cjs/Serialization/Common/UnitInterval.js.map +1 -1
  22. package/dist/cjs/Serialization/Common/index.d.ts +2 -0
  23. package/dist/cjs/Serialization/Common/index.d.ts.map +1 -1
  24. package/dist/cjs/Serialization/Common/index.js +2 -0
  25. package/dist/cjs/Serialization/Common/index.js.map +1 -1
  26. package/dist/cjs/Serialization/Transaction.d.ts +4 -3
  27. package/dist/cjs/Serialization/Transaction.d.ts.map +1 -1
  28. package/dist/cjs/Serialization/Transaction.js.map +1 -1
  29. package/dist/cjs/Serialization/Update/Costmdls/CostModel.d.ts +12 -0
  30. package/dist/cjs/Serialization/Update/Costmdls/CostModel.d.ts.map +1 -0
  31. package/dist/cjs/Serialization/Update/Costmdls/CostModel.js +101 -0
  32. package/dist/cjs/Serialization/Update/Costmdls/CostModel.js.map +1 -0
  33. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.d.ts +17 -0
  34. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.d.ts.map +1 -0
  35. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.js +148 -0
  36. package/dist/cjs/Serialization/Update/Costmdls/Costmdls.js.map +1 -0
  37. package/dist/cjs/Serialization/Update/Costmdls/index.d.ts +3 -0
  38. package/dist/cjs/Serialization/Update/Costmdls/index.d.ts.map +1 -0
  39. package/dist/cjs/Serialization/Update/Costmdls/index.js +19 -0
  40. package/dist/cjs/Serialization/Update/Costmdls/index.js.map +1 -0
  41. package/dist/cjs/Serialization/Update/ExUnitPrices.d.ts +16 -0
  42. package/dist/cjs/Serialization/Update/ExUnitPrices.d.ts.map +1 -0
  43. package/dist/cjs/Serialization/Update/ExUnitPrices.js +81 -0
  44. package/dist/cjs/Serialization/Update/ExUnitPrices.js.map +1 -0
  45. package/dist/cjs/Serialization/Update/ProposedProtocolParameterUpdates.d.ts +16 -0
  46. package/dist/cjs/Serialization/Update/ProposedProtocolParameterUpdates.d.ts.map +1 -0
  47. package/dist/cjs/Serialization/Update/ProposedProtocolParameterUpdates.js +96 -0
  48. package/dist/cjs/Serialization/Update/ProposedProtocolParameterUpdates.js.map +1 -0
  49. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.d.ts +61 -0
  50. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.d.ts.map +1 -0
  51. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.js +526 -0
  52. package/dist/cjs/Serialization/Update/ProtocolParamUpdate.js.map +1 -0
  53. package/dist/cjs/Serialization/Update/Update.d.ts +16 -0
  54. package/dist/cjs/Serialization/Update/Update.d.ts.map +1 -0
  55. package/dist/cjs/Serialization/Update/Update.js +101 -0
  56. package/dist/cjs/Serialization/Update/Update.js.map +1 -0
  57. package/dist/cjs/Serialization/Update/index.d.ts +6 -0
  58. package/dist/cjs/Serialization/Update/index.d.ts.map +1 -0
  59. package/dist/cjs/Serialization/Update/index.js +22 -0
  60. package/dist/cjs/Serialization/Update/index.js.map +1 -0
  61. package/dist/cjs/Serialization/index.d.ts +1 -0
  62. package/dist/cjs/Serialization/index.d.ts.map +1 -1
  63. package/dist/cjs/Serialization/index.js +1 -0
  64. package/dist/cjs/Serialization/index.js.map +1 -1
  65. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  66. package/dist/esm/CBOR/TxBodyCBOR.js +1 -1
  67. package/dist/esm/CBOR/TxBodyCBOR.js.map +1 -1
  68. package/dist/esm/CML/util.d.ts.map +1 -1
  69. package/dist/esm/CML/util.js +3 -2
  70. package/dist/esm/CML/util.js.map +1 -1
  71. package/dist/esm/Cardano/types/ProtocolParameters.d.ts +12 -6
  72. package/dist/esm/Cardano/types/ProtocolParameters.d.ts.map +1 -1
  73. package/dist/esm/Serialization/CBOR/CborReader.js +1 -1
  74. package/dist/esm/Serialization/CBOR/CborReader.js.map +1 -1
  75. package/dist/esm/Serialization/Common/ExUnits.d.ts +16 -0
  76. package/dist/esm/Serialization/Common/ExUnits.d.ts.map +1 -0
  77. package/dist/esm/Serialization/Common/ExUnits.js +75 -0
  78. package/dist/esm/Serialization/Common/ExUnits.js.map +1 -0
  79. package/dist/esm/Serialization/Common/ProtocolVersion.d.ts +15 -0
  80. package/dist/esm/Serialization/Common/ProtocolVersion.d.ts.map +1 -0
  81. package/dist/esm/Serialization/Common/ProtocolVersion.js +70 -0
  82. package/dist/esm/Serialization/Common/ProtocolVersion.js.map +1 -0
  83. package/dist/esm/Serialization/Common/UnitInterval.d.ts +2 -0
  84. package/dist/esm/Serialization/Common/UnitInterval.d.ts.map +1 -1
  85. package/dist/esm/Serialization/Common/UnitInterval.js +10 -0
  86. package/dist/esm/Serialization/Common/UnitInterval.js.map +1 -1
  87. package/dist/esm/Serialization/Common/index.d.ts +2 -0
  88. package/dist/esm/Serialization/Common/index.d.ts.map +1 -1
  89. package/dist/esm/Serialization/Common/index.js +2 -0
  90. package/dist/esm/Serialization/Common/index.js.map +1 -1
  91. package/dist/esm/Serialization/Transaction.d.ts +4 -3
  92. package/dist/esm/Serialization/Transaction.d.ts.map +1 -1
  93. package/dist/esm/Serialization/Transaction.js.map +1 -1
  94. package/dist/esm/Serialization/Update/Costmdls/CostModel.d.ts +12 -0
  95. package/dist/esm/Serialization/Update/Costmdls/CostModel.d.ts.map +1 -0
  96. package/dist/esm/Serialization/Update/Costmdls/CostModel.js +74 -0
  97. package/dist/esm/Serialization/Update/Costmdls/CostModel.js.map +1 -0
  98. package/dist/esm/Serialization/Update/Costmdls/Costmdls.d.ts +17 -0
  99. package/dist/esm/Serialization/Update/Costmdls/Costmdls.d.ts.map +1 -0
  100. package/dist/esm/Serialization/Update/Costmdls/Costmdls.js +121 -0
  101. package/dist/esm/Serialization/Update/Costmdls/Costmdls.js.map +1 -0
  102. package/dist/esm/Serialization/Update/Costmdls/index.d.ts +3 -0
  103. package/dist/esm/Serialization/Update/Costmdls/index.d.ts.map +1 -0
  104. package/dist/esm/Serialization/Update/Costmdls/index.js +3 -0
  105. package/dist/esm/Serialization/Update/Costmdls/index.js.map +1 -0
  106. package/dist/esm/Serialization/Update/ExUnitPrices.d.ts +16 -0
  107. package/dist/esm/Serialization/Update/ExUnitPrices.d.ts.map +1 -0
  108. package/dist/esm/Serialization/Update/ExUnitPrices.js +74 -0
  109. package/dist/esm/Serialization/Update/ExUnitPrices.js.map +1 -0
  110. package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.d.ts +16 -0
  111. package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.d.ts.map +1 -0
  112. package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.js +69 -0
  113. package/dist/esm/Serialization/Update/ProposedProtocolParameterUpdates.js.map +1 -0
  114. package/dist/esm/Serialization/Update/ProtocolParamUpdate.d.ts +61 -0
  115. package/dist/esm/Serialization/Update/ProtocolParamUpdate.d.ts.map +1 -0
  116. package/dist/esm/Serialization/Update/ProtocolParamUpdate.js +522 -0
  117. package/dist/esm/Serialization/Update/ProtocolParamUpdate.js.map +1 -0
  118. package/dist/esm/Serialization/Update/Update.d.ts +16 -0
  119. package/dist/esm/Serialization/Update/Update.d.ts.map +1 -0
  120. package/dist/esm/Serialization/Update/Update.js +74 -0
  121. package/dist/esm/Serialization/Update/Update.js.map +1 -0
  122. package/dist/esm/Serialization/Update/index.d.ts +6 -0
  123. package/dist/esm/Serialization/Update/index.d.ts.map +1 -0
  124. package/dist/esm/Serialization/Update/index.js +6 -0
  125. package/dist/esm/Serialization/Update/index.js.map +1 -0
  126. package/dist/esm/Serialization/index.d.ts +1 -0
  127. package/dist/esm/Serialization/index.d.ts.map +1 -1
  128. package/dist/esm/Serialization/index.js +1 -0
  129. package/dist/esm/Serialization/index.js.map +1 -1
  130. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  131. package/package.json +5 -4
@@ -0,0 +1,522 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ 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");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ 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");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _ProtocolParamUpdate_instances, _ProtocolParamUpdate_minFeeA, _ProtocolParamUpdate_minFeeB, _ProtocolParamUpdate_maxBlockBodySize, _ProtocolParamUpdate_maxTxSize, _ProtocolParamUpdate_maxBlockHeaderSize, _ProtocolParamUpdate_keyDeposit, _ProtocolParamUpdate_poolDeposit, _ProtocolParamUpdate_maxEpoch, _ProtocolParamUpdate_nOpt, _ProtocolParamUpdate_poolPledgeInfluence, _ProtocolParamUpdate_expansionRate, _ProtocolParamUpdate_treasuryGrowthRate, _ProtocolParamUpdate_d, _ProtocolParamUpdate_extraEntropy, _ProtocolParamUpdate_protocolVersion, _ProtocolParamUpdate_minPoolCost, _ProtocolParamUpdate_adaPerUtxoByte, _ProtocolParamUpdate_costModels, _ProtocolParamUpdate_executionCosts, _ProtocolParamUpdate_maxTxExUnits, _ProtocolParamUpdate_maxBlockExUnits, _ProtocolParamUpdate_maxValueSize, _ProtocolParamUpdate_collateralPercentage, _ProtocolParamUpdate_maxCollateralInputs, _ProtocolParamUpdate_originalBytes, _ProtocolParamUpdate_getMapSize;
13
+ import { CborReader, CborReaderState, CborWriter } from '../CBOR';
14
+ import { Costmdls } from './Costmdls';
15
+ import { ExUnitPrices } from './ExUnitPrices';
16
+ import { ExUnits, ProtocolVersion, UnitInterval } from '../Common';
17
+ import { HexBlob } from '@cardano-sdk/util';
18
+ export class ProtocolParamUpdate {
19
+ constructor() {
20
+ _ProtocolParamUpdate_instances.add(this);
21
+ _ProtocolParamUpdate_minFeeA.set(this, void 0);
22
+ _ProtocolParamUpdate_minFeeB.set(this, void 0);
23
+ _ProtocolParamUpdate_maxBlockBodySize.set(this, void 0);
24
+ _ProtocolParamUpdate_maxTxSize.set(this, void 0);
25
+ _ProtocolParamUpdate_maxBlockHeaderSize.set(this, void 0);
26
+ _ProtocolParamUpdate_keyDeposit.set(this, void 0);
27
+ _ProtocolParamUpdate_poolDeposit.set(this, void 0);
28
+ _ProtocolParamUpdate_maxEpoch.set(this, void 0);
29
+ _ProtocolParamUpdate_nOpt.set(this, void 0);
30
+ _ProtocolParamUpdate_poolPledgeInfluence.set(this, void 0);
31
+ _ProtocolParamUpdate_expansionRate.set(this, void 0);
32
+ _ProtocolParamUpdate_treasuryGrowthRate.set(this, void 0);
33
+ _ProtocolParamUpdate_d.set(this, void 0);
34
+ _ProtocolParamUpdate_extraEntropy.set(this, void 0);
35
+ _ProtocolParamUpdate_protocolVersion.set(this, void 0);
36
+ _ProtocolParamUpdate_minPoolCost.set(this, void 0);
37
+ _ProtocolParamUpdate_adaPerUtxoByte.set(this, void 0);
38
+ _ProtocolParamUpdate_costModels.set(this, void 0);
39
+ _ProtocolParamUpdate_executionCosts.set(this, void 0);
40
+ _ProtocolParamUpdate_maxTxExUnits.set(this, void 0);
41
+ _ProtocolParamUpdate_maxBlockExUnits.set(this, void 0);
42
+ _ProtocolParamUpdate_maxValueSize.set(this, void 0);
43
+ _ProtocolParamUpdate_collateralPercentage.set(this, void 0);
44
+ _ProtocolParamUpdate_maxCollateralInputs.set(this, void 0);
45
+ _ProtocolParamUpdate_originalBytes.set(this, undefined);
46
+ }
47
+ toCbor() {
48
+ const writer = new CborWriter();
49
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_originalBytes, "f"))
50
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_originalBytes, "f");
51
+ writer.writeStartMap(__classPrivateFieldGet(this, _ProtocolParamUpdate_instances, "m", _ProtocolParamUpdate_getMapSize).call(this));
52
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f")) {
53
+ writer.writeInt(0n);
54
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f"));
55
+ }
56
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f")) {
57
+ writer.writeInt(1n);
58
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f"));
59
+ }
60
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockBodySize, "f")) {
61
+ writer.writeInt(2n);
62
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockBodySize, "f"));
63
+ }
64
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f")) {
65
+ writer.writeInt(3n);
66
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f"));
67
+ }
68
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockHeaderSize, "f")) {
69
+ writer.writeInt(4n);
70
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockHeaderSize, "f"));
71
+ }
72
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f")) {
73
+ writer.writeInt(5n);
74
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f"));
75
+ }
76
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f")) {
77
+ writer.writeInt(6n);
78
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f"));
79
+ }
80
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxEpoch, "f")) {
81
+ writer.writeInt(7n);
82
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxEpoch, "f"));
83
+ }
84
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_nOpt, "f")) {
85
+ writer.writeInt(8n);
86
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_nOpt, "f"));
87
+ }
88
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f")) {
89
+ writer.writeInt(9n);
90
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f").toCbor(), 'hex'));
91
+ }
92
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f")) {
93
+ writer.writeInt(10n);
94
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f").toCbor(), 'hex'));
95
+ }
96
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f")) {
97
+ writer.writeInt(11n);
98
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f").toCbor(), 'hex'));
99
+ }
100
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f")) {
101
+ writer.writeInt(12n);
102
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f").toCbor(), 'hex'));
103
+ }
104
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_extraEntropy, "f")) {
105
+ writer.writeInt(13n);
106
+ writer.writeStartArray(2);
107
+ writer.writeInt(1);
108
+ writer.writeByteString(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_extraEntropy, "f"), 'hex'));
109
+ }
110
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_protocolVersion, "f")) {
111
+ writer.writeInt(14n);
112
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_protocolVersion, "f").toCbor(), 'hex'));
113
+ }
114
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f")) {
115
+ writer.writeInt(16n);
116
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f"));
117
+ }
118
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f")) {
119
+ writer.writeInt(17n);
120
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f"));
121
+ }
122
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_costModels, "f")) {
123
+ writer.writeInt(18n);
124
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_costModels, "f").toCbor(), 'hex'));
125
+ }
126
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_executionCosts, "f")) {
127
+ writer.writeInt(19n);
128
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_executionCosts, "f").toCbor(), 'hex'));
129
+ }
130
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxExUnits, "f")) {
131
+ writer.writeInt(20n);
132
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxExUnits, "f").toCbor(), 'hex'));
133
+ }
134
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockExUnits, "f")) {
135
+ writer.writeInt(21n);
136
+ writer.writeEncodedValue(Buffer.from(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockExUnits, "f").toCbor(), 'hex'));
137
+ }
138
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxValueSize, "f")) {
139
+ writer.writeInt(22n);
140
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxValueSize, "f"));
141
+ }
142
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_collateralPercentage, "f")) {
143
+ writer.writeInt(23n);
144
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_collateralPercentage, "f"));
145
+ }
146
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxCollateralInputs, "f")) {
147
+ writer.writeInt(24n);
148
+ writer.writeInt(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxCollateralInputs, "f"));
149
+ }
150
+ return writer.encodeAsHex();
151
+ }
152
+ static fromCbor(cbor) {
153
+ const reader = new CborReader(cbor);
154
+ const params = new ProtocolParamUpdate();
155
+ reader.readStartMap();
156
+ while (reader.peekState() !== CborReaderState.EndMap) {
157
+ const key = reader.readInt();
158
+ switch (key) {
159
+ case 0n:
160
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minFeeA, reader.readInt(), "f");
161
+ break;
162
+ case 1n:
163
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minFeeB, reader.readInt(), "f");
164
+ break;
165
+ case 2n:
166
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockBodySize, Number(reader.readInt()), "f");
167
+ break;
168
+ case 3n:
169
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxTxSize, Number(reader.readInt()), "f");
170
+ break;
171
+ case 4n:
172
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockHeaderSize, Number(reader.readInt()), "f");
173
+ break;
174
+ case 5n:
175
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_keyDeposit, reader.readInt(), "f");
176
+ break;
177
+ case 6n:
178
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_poolDeposit, reader.readInt(), "f");
179
+ break;
180
+ case 7n:
181
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxEpoch, Number(reader.readInt()), "f");
182
+ break;
183
+ case 8n:
184
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_nOpt, Number(reader.readInt()), "f");
185
+ break;
186
+ case 9n:
187
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_poolPledgeInfluence, UnitInterval.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
188
+ break;
189
+ case 10n:
190
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_expansionRate, UnitInterval.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
191
+ break;
192
+ case 11n:
193
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_treasuryGrowthRate, UnitInterval.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
194
+ break;
195
+ case 12n:
196
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_d, UnitInterval.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
197
+ break;
198
+ case 13n:
199
+ reader.readStartArray();
200
+ reader.readEncodedValue();
201
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_extraEntropy, HexBlob.fromBytes(reader.readByteString()), "f");
202
+ reader.readEndArray();
203
+ break;
204
+ case 14n:
205
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_protocolVersion, ProtocolVersion.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
206
+ break;
207
+ case 16n:
208
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minPoolCost, reader.readInt(), "f");
209
+ break;
210
+ case 17n:
211
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_adaPerUtxoByte, reader.readInt(), "f");
212
+ break;
213
+ case 18n:
214
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_costModels, Costmdls.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
215
+ break;
216
+ case 19n:
217
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_executionCosts, ExUnitPrices.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
218
+ break;
219
+ case 20n:
220
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxTxExUnits, ExUnits.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
221
+ break;
222
+ case 21n:
223
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockExUnits, ExUnits.fromCbor(HexBlob.fromBytes(reader.readEncodedValue())), "f");
224
+ break;
225
+ case 22n:
226
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxValueSize, Number(reader.readInt()), "f");
227
+ break;
228
+ case 23n:
229
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_collateralPercentage, Number(reader.readInt()), "f");
230
+ break;
231
+ case 24n:
232
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxCollateralInputs, Number(reader.readInt()), "f");
233
+ break;
234
+ }
235
+ }
236
+ reader.readEndMap();
237
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_originalBytes, cbor, "f");
238
+ return params;
239
+ }
240
+ toCore() {
241
+ return {
242
+ coinsPerUtxoByte: __classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f")) : undefined,
243
+ collateralPercentage: __classPrivateFieldGet(this, _ProtocolParamUpdate_collateralPercentage, "f"),
244
+ costModels: __classPrivateFieldGet(this, _ProtocolParamUpdate_costModels, "f")?.toCore(),
245
+ decentralizationParameter: __classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f") ? __classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f").toFloat().toString() : undefined,
246
+ desiredNumberOfPools: __classPrivateFieldGet(this, _ProtocolParamUpdate_nOpt, "f"),
247
+ extraEntropy: __classPrivateFieldGet(this, _ProtocolParamUpdate_extraEntropy, "f"),
248
+ maxBlockBodySize: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockBodySize, "f"),
249
+ maxBlockHeaderSize: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockHeaderSize, "f"),
250
+ maxCollateralInputs: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxCollateralInputs, "f"),
251
+ maxExecutionUnitsPerBlock: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockExUnits, "f")?.toCore(),
252
+ maxExecutionUnitsPerTransaction: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxExUnits, "f")?.toCore(),
253
+ maxTxSize: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f")) : undefined,
254
+ maxValueSize: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxValueSize, "f"),
255
+ minFeeCoefficient: __classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f")) : undefined,
256
+ minFeeConstant: __classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f")) : undefined,
257
+ minPoolCost: __classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f")) : undefined,
258
+ monetaryExpansion: __classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f") ? __classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f").toFloat().toString() : undefined,
259
+ poolDeposit: __classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f")) : undefined,
260
+ poolInfluence: __classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f") ? __classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f").toFloat().toString() : undefined,
261
+ poolRetirementEpochBound: __classPrivateFieldGet(this, _ProtocolParamUpdate_maxEpoch, "f"),
262
+ prices: __classPrivateFieldGet(this, _ProtocolParamUpdate_executionCosts, "f")?.toCore(),
263
+ protocolVersion: __classPrivateFieldGet(this, _ProtocolParamUpdate_protocolVersion, "f")?.toCore(),
264
+ stakeKeyDeposit: __classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f") ? Number(__classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f")) : undefined,
265
+ treasuryExpansion: __classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f") ? __classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f").toFloat().toString() : undefined
266
+ };
267
+ }
268
+ static fromCore(parametersUpdate) {
269
+ const params = new ProtocolParamUpdate();
270
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minFeeA, parametersUpdate.minFeeCoefficient ? BigInt(parametersUpdate.minFeeCoefficient) : undefined, "f");
271
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockBodySize, parametersUpdate.maxBlockBodySize, "f");
272
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minFeeB, parametersUpdate.minFeeConstant ? BigInt(parametersUpdate.minFeeConstant) : undefined, "f");
273
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockHeaderSize, parametersUpdate.maxBlockHeaderSize, "f");
274
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_keyDeposit, parametersUpdate.stakeKeyDeposit ? BigInt(parametersUpdate.stakeKeyDeposit) : undefined, "f");
275
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_poolDeposit, parametersUpdate.poolDeposit ? BigInt(parametersUpdate.poolDeposit) : undefined, "f");
276
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxEpoch, parametersUpdate.poolRetirementEpochBound, "f");
277
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_nOpt, parametersUpdate.desiredNumberOfPools, "f");
278
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_poolPledgeInfluence, UnitInterval.fromFloat(Number(parametersUpdate.poolInfluence)), "f");
279
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_expansionRate, UnitInterval.fromFloat(Number(parametersUpdate.monetaryExpansion)), "f");
280
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_treasuryGrowthRate, UnitInterval.fromFloat(Number(parametersUpdate.treasuryExpansion)), "f");
281
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_d, UnitInterval.fromFloat(Number(parametersUpdate.decentralizationParameter)), "f");
282
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_minPoolCost, parametersUpdate.minPoolCost ? BigInt(parametersUpdate.minPoolCost) : undefined, "f");
283
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_protocolVersion, parametersUpdate.protocolVersion
284
+ ? ProtocolVersion.fromCore(parametersUpdate.protocolVersion)
285
+ : undefined, "f");
286
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxValueSize, parametersUpdate.maxValueSize, "f");
287
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxTxSize, parametersUpdate.maxTxSize, "f");
288
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_collateralPercentage, parametersUpdate.collateralPercentage, "f");
289
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxCollateralInputs, parametersUpdate.maxCollateralInputs, "f");
290
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_extraEntropy, parametersUpdate.extraEntropy ? HexBlob(parametersUpdate.extraEntropy) : undefined, "f");
291
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_costModels, parametersUpdate.costModels ? Costmdls.fromCore(parametersUpdate.costModels) : undefined, "f");
292
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_executionCosts, parametersUpdate.prices ? ExUnitPrices.fromCore(parametersUpdate.prices) : undefined, "f");
293
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxTxExUnits, parametersUpdate.maxExecutionUnitsPerTransaction
294
+ ? ExUnits.fromCore(parametersUpdate.maxExecutionUnitsPerTransaction)
295
+ : undefined, "f");
296
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_maxBlockExUnits, parametersUpdate.maxExecutionUnitsPerBlock
297
+ ? ExUnits.fromCore(parametersUpdate.maxExecutionUnitsPerBlock)
298
+ : undefined, "f");
299
+ __classPrivateFieldSet(params, _ProtocolParamUpdate_adaPerUtxoByte, parametersUpdate.coinsPerUtxoByte ? BigInt(parametersUpdate.coinsPerUtxoByte) : undefined, "f");
300
+ return params;
301
+ }
302
+ setMinFeeA(minFeeA) {
303
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_minFeeA, minFeeA, "f");
304
+ }
305
+ minFeeA() {
306
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f");
307
+ }
308
+ setMinFeeB(minFeeB) {
309
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_minFeeB, minFeeB, "f");
310
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
311
+ }
312
+ minFeeB() {
313
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f");
314
+ }
315
+ setMaxBlockBodySize(maxBlockBodySize) {
316
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxBlockBodySize, maxBlockBodySize, "f");
317
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
318
+ }
319
+ maxBlockBodySize() {
320
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockBodySize, "f");
321
+ }
322
+ setMaxTxSize(maxTxSize) {
323
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxTxSize, maxTxSize, "f");
324
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
325
+ }
326
+ maxTxSize() {
327
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f");
328
+ }
329
+ setMaxBlockHeaderSize(maxBlockHeaderSize) {
330
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxBlockHeaderSize, maxBlockHeaderSize, "f");
331
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
332
+ }
333
+ maxBlockHeaderSize() {
334
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockHeaderSize, "f");
335
+ }
336
+ setKeyDeposit(keyDeposit) {
337
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_keyDeposit, keyDeposit, "f");
338
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
339
+ }
340
+ keyDeposit() {
341
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f");
342
+ }
343
+ setPoolDeposit(poolDeposit) {
344
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_poolDeposit, poolDeposit, "f");
345
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
346
+ }
347
+ poolDeposit() {
348
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f");
349
+ }
350
+ setMaxEpoch(maxEpoch) {
351
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxEpoch, maxEpoch, "f");
352
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
353
+ }
354
+ maxEpoch() {
355
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxEpoch, "f");
356
+ }
357
+ setNOpt(nOpt) {
358
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_nOpt, nOpt, "f");
359
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
360
+ }
361
+ nOpt() {
362
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_nOpt, "f");
363
+ }
364
+ setPoolPledgeInfluence(poolPledgeInfluence) {
365
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_poolPledgeInfluence, poolPledgeInfluence, "f");
366
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
367
+ }
368
+ poolPledgeInfluence() {
369
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f");
370
+ }
371
+ setExpansionRate(expansionRate) {
372
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_expansionRate, expansionRate, "f");
373
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
374
+ }
375
+ expansionRate() {
376
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f");
377
+ }
378
+ setTreasuryGrowthRate(treasuryGrowthRate) {
379
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_treasuryGrowthRate, treasuryGrowthRate, "f");
380
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
381
+ }
382
+ treasuryGrowthRate() {
383
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f");
384
+ }
385
+ setD(d) {
386
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_d, d, "f");
387
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
388
+ }
389
+ d() {
390
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f");
391
+ }
392
+ setExtraEntropy(extraEntropy) {
393
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_extraEntropy, extraEntropy, "f");
394
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
395
+ }
396
+ extraEntropy() {
397
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_extraEntropy, "f");
398
+ }
399
+ setProtocolVersion(protocolVersion) {
400
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_protocolVersion, protocolVersion, "f");
401
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
402
+ }
403
+ protocolVersion() {
404
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_protocolVersion, "f");
405
+ }
406
+ setMinPoolCost(minPoolCost) {
407
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_minPoolCost, minPoolCost, "f");
408
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
409
+ }
410
+ minPoolCost() {
411
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f");
412
+ }
413
+ setAdaPerUtxoByte(adaPerUtxoByte) {
414
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_adaPerUtxoByte, adaPerUtxoByte, "f");
415
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
416
+ }
417
+ adaPerUtxoByte() {
418
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f");
419
+ }
420
+ setCostModels(costModels) {
421
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_costModels, costModels, "f");
422
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
423
+ }
424
+ costModels() {
425
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_costModels, "f");
426
+ }
427
+ setExecutionCosts(executionCosts) {
428
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_executionCosts, executionCosts, "f");
429
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
430
+ }
431
+ executionCosts() {
432
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_executionCosts, "f");
433
+ }
434
+ setMaxTxExUnits(maxTxExUnits) {
435
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxTxExUnits, maxTxExUnits, "f");
436
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
437
+ }
438
+ maxTxExUnits() {
439
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxExUnits, "f");
440
+ }
441
+ setMaxBlockExUnits(maxBlockExUnits) {
442
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxBlockExUnits, maxBlockExUnits, "f");
443
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
444
+ }
445
+ maxBlockExUnits() {
446
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockExUnits, "f");
447
+ }
448
+ setMaxValueSize(maxValueSize) {
449
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxValueSize, maxValueSize, "f");
450
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
451
+ }
452
+ maxValueSize() {
453
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxValueSize, "f");
454
+ }
455
+ setCollateralPercentage(collateralPercentage) {
456
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_collateralPercentage, collateralPercentage, "f");
457
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
458
+ }
459
+ collateralPercentage() {
460
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_collateralPercentage, "f");
461
+ }
462
+ setMaxCollateralInputs(maxCollateralInputs) {
463
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_maxCollateralInputs, maxCollateralInputs, "f");
464
+ __classPrivateFieldSet(this, _ProtocolParamUpdate_originalBytes, undefined, "f");
465
+ }
466
+ maxCollateralInputs() {
467
+ return __classPrivateFieldGet(this, _ProtocolParamUpdate_maxCollateralInputs, "f");
468
+ }
469
+ }
470
+ _ProtocolParamUpdate_minFeeA = new WeakMap(), _ProtocolParamUpdate_minFeeB = new WeakMap(), _ProtocolParamUpdate_maxBlockBodySize = new WeakMap(), _ProtocolParamUpdate_maxTxSize = new WeakMap(), _ProtocolParamUpdate_maxBlockHeaderSize = new WeakMap(), _ProtocolParamUpdate_keyDeposit = new WeakMap(), _ProtocolParamUpdate_poolDeposit = new WeakMap(), _ProtocolParamUpdate_maxEpoch = new WeakMap(), _ProtocolParamUpdate_nOpt = new WeakMap(), _ProtocolParamUpdate_poolPledgeInfluence = new WeakMap(), _ProtocolParamUpdate_expansionRate = new WeakMap(), _ProtocolParamUpdate_treasuryGrowthRate = new WeakMap(), _ProtocolParamUpdate_d = new WeakMap(), _ProtocolParamUpdate_extraEntropy = new WeakMap(), _ProtocolParamUpdate_protocolVersion = new WeakMap(), _ProtocolParamUpdate_minPoolCost = new WeakMap(), _ProtocolParamUpdate_adaPerUtxoByte = new WeakMap(), _ProtocolParamUpdate_costModels = new WeakMap(), _ProtocolParamUpdate_executionCosts = new WeakMap(), _ProtocolParamUpdate_maxTxExUnits = new WeakMap(), _ProtocolParamUpdate_maxBlockExUnits = new WeakMap(), _ProtocolParamUpdate_maxValueSize = new WeakMap(), _ProtocolParamUpdate_collateralPercentage = new WeakMap(), _ProtocolParamUpdate_maxCollateralInputs = new WeakMap(), _ProtocolParamUpdate_originalBytes = new WeakMap(), _ProtocolParamUpdate_instances = new WeakSet(), _ProtocolParamUpdate_getMapSize = function _ProtocolParamUpdate_getMapSize() {
471
+ let mapSize = 0;
472
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeA, "f"))
473
+ ++mapSize;
474
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minFeeB, "f"))
475
+ ++mapSize;
476
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockBodySize, "f"))
477
+ ++mapSize;
478
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxSize, "f"))
479
+ ++mapSize;
480
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockHeaderSize, "f"))
481
+ ++mapSize;
482
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_keyDeposit, "f"))
483
+ ++mapSize;
484
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_poolDeposit, "f"))
485
+ ++mapSize;
486
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxEpoch, "f"))
487
+ ++mapSize;
488
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_nOpt, "f"))
489
+ ++mapSize;
490
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_poolPledgeInfluence, "f"))
491
+ ++mapSize;
492
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_expansionRate, "f"))
493
+ ++mapSize;
494
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_treasuryGrowthRate, "f"))
495
+ ++mapSize;
496
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_d, "f"))
497
+ ++mapSize;
498
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_extraEntropy, "f"))
499
+ ++mapSize;
500
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_protocolVersion, "f"))
501
+ ++mapSize;
502
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_minPoolCost, "f"))
503
+ ++mapSize;
504
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_adaPerUtxoByte, "f"))
505
+ ++mapSize;
506
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_costModels, "f"))
507
+ ++mapSize;
508
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_executionCosts, "f"))
509
+ ++mapSize;
510
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxTxExUnits, "f"))
511
+ ++mapSize;
512
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxBlockExUnits, "f"))
513
+ ++mapSize;
514
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxValueSize, "f"))
515
+ ++mapSize;
516
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_collateralPercentage, "f"))
517
+ ++mapSize;
518
+ if (__classPrivateFieldGet(this, _ProtocolParamUpdate_maxCollateralInputs, "f"))
519
+ ++mapSize;
520
+ return mapSize;
521
+ };
522
+ //# sourceMappingURL=ProtocolParamUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtocolParamUpdate.js","sourceRoot":"","sources":["../../../../src/Serialization/Update/ProtocolParamUpdate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,OAAO,mBAAmB;IAAhC;;QACE,+CAAuC;QACvC,+CAAuC;QACvC,wDAAsC;QACtC,iDAA+B;QAC/B,0DAAwC;QACxC,kDAA0C;QAC1C,mDAA2C;QAC3C,gDAA8B;QAC9B,4CAA0B;QAC1B,2DAA+C;QAC/C,qDAAyC;QACzC,0DAA8C;QAC9C,yCAA6B;QAC7B,oDAAmC;QACnC,uDAA8C;QAC9C,mDAA2C;QAC3C,sDAA8C;QAC9C,kDAAkC;QAClC,sDAA0C;QAC1C,oDAAmC;QACnC,uDAAsC;QACtC,oDAAkC;QAClC,4DAA0C;QAC1C,2DAAyC;QACzC,6CAAsC,SAAS,EAAC;IAk4BlD,CAAC;IA13BC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IAAI,gDAAqB;QAAE,EAAE,OAAO,CAAC;IACzC,IAAI,uBAAA,IAAI,0CAAe;QAAE,EAAE,OAAO,CAAC;IACnC,IAAI,uBAAA,IAAI,+CAAoB;QAAE,EAAE,OAAO,CAAC;IACxC,IAAI,uBAAA,IAAI,8BAAG;QAAE,EAAE,OAAO,CAAC;IACvB,IAAI,uBAAA,IAAI,yCAAc;QAAE,EAAE,OAAO,CAAC;IAClC,IAAI,uBAAA,IAAI,4CAAiB;QAAE,EAAE,OAAO,CAAC;IACrC,IAAI,uBAAA,IAAI,wCAAa;QAAE,EAAE,OAAO,CAAC;IACjC,IAAI,uBAAA,IAAI,2CAAgB;QAAE,EAAE,OAAO,CAAC;IACpC,IAAI,uBAAA,IAAI,uCAAY;QAAE,EAAE,OAAO,CAAC;IAChC,IAAI,uBAAA,IAAI,2CAAgB;QAAE,EAAE,OAAO,CAAC;IACpC,IAAI,uBAAA,IAAI,yCAAc;QAAE,EAAE,OAAO,CAAC;IAClC,IAAI,uBAAA,IAAI,4CAAiB;QAAE,EAAE,OAAO,CAAC;IACrC,IAAI,uBAAA,IAAI,yCAAc;QAAE,EAAE,OAAO,CAAC;IAClC,IAAI,uBAAA,IAAI,iDAAsB;QAAE,EAAE,OAAO,CAAC;IAC1C,IAAI,uBAAA,IAAI,gDAAqB;QAAE,EAAE,OAAO,CAAC;IAEzC,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as Cardano from '../../Cardano';
2
+ import { HexBlob } from '@cardano-sdk/util';
3
+ import { ProposedProtocolParameterUpdates } from './ProposedProtocolParameterUpdates';
4
+ export declare class Update {
5
+ #private;
6
+ constructor(updates: ProposedProtocolParameterUpdates, epoch: Cardano.EpochNo);
7
+ toCbor(): HexBlob;
8
+ static fromCbor(cbor: HexBlob): Update;
9
+ toCore(): Cardano.Update;
10
+ static fromCore(update: Cardano.Update): Update;
11
+ epoch(): Cardano.EpochNo;
12
+ setEpoch(epoch: Cardano.EpochNo): void;
13
+ proposedProtocolParameterUpdates(): ProposedProtocolParameterUpdates;
14
+ setProposedProtocolParameterUpdates(updates: ProposedProtocolParameterUpdates): void;
15
+ }
16
+ //# sourceMappingURL=Update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../src/Serialization/Update/Update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAwB,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAStF,qBAAa,MAAM;;gBAYL,OAAO,EAAE,gCAAgC,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO;IAU7E,MAAM,IAAI,OAAO;IAqBjB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;IA2BtC,MAAM,IAAI,OAAO,CAAC,MAAM;IAYxB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM;IAYtC,KAAK,IAAI,OAAO,CAAC,OAAO;IASxB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,GAAG,IAAI;IAUtC,gCAAgC,IAAI,gCAAgC;IASpE,mCAAmC,CAAC,OAAO,EAAE,gCAAgC,GAAG,IAAI;CAIrF"}