|
15 | 15 | package ledger
|
16 | 16 |
|
17 | 17 | import (
|
18 |
| - "github.com/blinklabs-io/gouroboros/ledger/allegra" |
19 |
| - "github.com/blinklabs-io/gouroboros/ledger/alonzo" |
20 |
| - "github.com/blinklabs-io/gouroboros/ledger/babbage" |
21 |
| - "github.com/blinklabs-io/gouroboros/ledger/byron" |
22 | 18 | "github.com/blinklabs-io/gouroboros/ledger/common"
|
23 |
| - "github.com/blinklabs-io/gouroboros/ledger/conway" |
24 |
| - "github.com/blinklabs-io/gouroboros/ledger/mary" |
25 |
| - "github.com/blinklabs-io/gouroboros/ledger/shelley" |
26 | 19 | )
|
27 | 20 |
|
28 | 21 | // The below are compatability types and functions to keep existing code working
|
@@ -79,187 +72,3 @@ type AssetFingerprint = common.AssetFingerprint
|
79 | 72 | func NewAssetFingerprint(policyId []byte, assetName []byte) AssetFingerprint {
|
80 | 73 | return common.NewAssetFingerprint(policyId, assetName)
|
81 | 74 | }
|
82 |
| - |
83 |
| -// Byron types |
84 |
| -type ByronEpochBoundaryBlock = byron.ByronEpochBoundaryBlock |
85 |
| -type ByronMainBlock = byron.ByronMainBlock |
86 |
| -type ByronEpochBounaryBlockHeader = byron.ByronEpochBoundaryBlockHeader |
87 |
| -type ByronMainBlockHeader = byron.ByronMainBlockHeader |
88 |
| -type ByronTransaction = byron.ByronTransaction |
89 |
| -type ByronTransactionInput = byron.ByronTransactionInput |
90 |
| -type ByronTransactionOutput = byron.ByronTransactionOutput |
91 |
| - |
92 |
| -// Byron constants |
93 |
| -const ( |
94 |
| - EraIdByron = byron.EraIdByron |
95 |
| - BlockTypeByronEbb = byron.BlockTypeByronEbb |
96 |
| - BlockTypeByronMain = byron.BlockTypeByronMain |
97 |
| - BlockHeaderTypeByron = byron.BlockHeaderTypeByron |
98 |
| - TxTypeByron = byron.TxTypeByron |
99 |
| -) |
100 |
| - |
101 |
| -// Byron functions |
102 |
| -var ( |
103 |
| - NewByronEpochBoundaryBlockFromCbor = byron.NewByronEpochBoundaryBlockFromCbor |
104 |
| - NewByronMainBlockFromCbor = byron.NewByronMainBlockFromCbor |
105 |
| - NewByronEpochBoundaryBlockHeaderFromCbor = byron.NewByronEpochBoundaryBlockHeaderFromCbor |
106 |
| - NewByronMainBlockHeaderFromCbor = byron.NewByronMainBlockHeaderFromCbor |
107 |
| - NewByronTransactionInput = byron.NewByronTransactionInput |
108 |
| - NewByronTransactionFromCbor = byron.NewByronTransactionFromCbor |
109 |
| -) |
110 |
| - |
111 |
| -// Shelley types |
112 |
| -type ShelleyBlock = shelley.ShelleyBlock |
113 |
| -type ShelleyBlockHeader = shelley.ShelleyBlockHeader |
114 |
| -type ShelleyTransaction = shelley.ShelleyTransaction |
115 |
| -type ShelleyTransactionBody = shelley.ShelleyTransactionBody |
116 |
| -type ShelleyTransactionInput = shelley.ShelleyTransactionInput |
117 |
| -type ShelleyTransactionOutput = shelley.ShelleyTransactionOutput |
118 |
| -type ShelleyTransactionWitnessSet = shelley.ShelleyTransactionWitnessSet |
119 |
| -type ShelleyProtocolParameters = shelley.ShelleyProtocolParameters |
120 |
| -type ShelleyProtocolParameterUpdate = shelley.ShelleyProtocolParameterUpdate |
121 |
| - |
122 |
| -// Shelley constants |
123 |
| -const ( |
124 |
| - EraIdShelley = shelley.EraIdShelley |
125 |
| - BlockTypeShelley = shelley.BlockTypeShelley |
126 |
| - BlockHeaderTypeShelley = shelley.BlockHeaderTypeShelley |
127 |
| - TxTypeShelley = shelley.TxTypeShelley |
128 |
| -) |
129 |
| - |
130 |
| -// Shelley functions |
131 |
| -var ( |
132 |
| - NewShelleyBlockFromCbor = shelley.NewShelleyBlockFromCbor |
133 |
| - NewShelleyBlockHeaderFromCbor = shelley.NewShelleyBlockHeaderFromCbor |
134 |
| - NewShelleyTransactionInput = shelley.NewShelleyTransactionInput |
135 |
| - NewShelleyTransactionFromCbor = shelley.NewShelleyTransactionFromCbor |
136 |
| - NewShelleyTransactionBodyFromCbor = shelley.NewShelleyTransactionBodyFromCbor |
137 |
| - NewShelleyTransactionOutputFromCbor = shelley.NewShelleyTransactionOutputFromCbor |
138 |
| -) |
139 |
| - |
140 |
| -// Allegra types |
141 |
| -type AllegraBlock = allegra.AllegraBlock |
142 |
| -type AllegraTransaction = allegra.AllegraTransaction |
143 |
| -type AllegraTransactionBody = allegra.AllegraTransactionBody |
144 |
| -type AllegraProtocolParameters = allegra.AllegraProtocolParameters |
145 |
| -type AllegraProtocolParameterUpdate = allegra.AllegraProtocolParameterUpdate |
146 |
| - |
147 |
| -// Allegra constants |
148 |
| -const ( |
149 |
| - EraIdAllegra = allegra.EraIdAllegra |
150 |
| - BlockTypeAllegra = allegra.BlockTypeAllegra |
151 |
| - BlockHeaderTypeAllegra = allegra.BlockHeaderTypeAllegra |
152 |
| - TxTypeAllegra = allegra.TxTypeAllegra |
153 |
| -) |
154 |
| - |
155 |
| -// Allegra functions |
156 |
| -var ( |
157 |
| - NewAllegraBlockFromCbor = allegra.NewAllegraBlockFromCbor |
158 |
| - NewAllegraTransactionFromCbor = allegra.NewAllegraTransactionFromCbor |
159 |
| - NewAllegraTransactionBodyFromCbor = allegra.NewAllegraTransactionBodyFromCbor |
160 |
| -) |
161 |
| - |
162 |
| -// Mary types |
163 |
| -type MaryBlock = mary.MaryBlock |
164 |
| -type MaryBlockHeader = mary.MaryBlockHeader |
165 |
| -type MaryTransaction = mary.MaryTransaction |
166 |
| -type MaryTransactionBody = mary.MaryTransactionBody |
167 |
| -type MaryTransactionOutput = mary.MaryTransactionOutput |
168 |
| -type MaryTransactionOutputValue = mary.MaryTransactionOutputValue |
169 |
| -type MaryTransactionWitnessSet = mary.MaryTransactionWitnessSet |
170 |
| -type MaryProtocolParameters = mary.MaryProtocolParameters |
171 |
| -type MaryProtocolParameterUpdate = mary.MaryProtocolParameterUpdate |
172 |
| - |
173 |
| -// Mary constants |
174 |
| -const ( |
175 |
| - EraIdMary = mary.EraIdMary |
176 |
| - BlockTypeMary = mary.BlockTypeMary |
177 |
| - BlockHeaderTypeMary = mary.BlockHeaderTypeMary |
178 |
| - TxTypeMary = mary.TxTypeMary |
179 |
| -) |
180 |
| - |
181 |
| -// Mary functions |
182 |
| -var ( |
183 |
| - NewMaryBlockFromCbor = mary.NewMaryBlockFromCbor |
184 |
| - NewMaryTransactionFromCbor = mary.NewMaryTransactionFromCbor |
185 |
| - NewMaryTransactionBodyFromCbor = mary.NewMaryTransactionBodyFromCbor |
186 |
| - NewMaryTransactionOutputFromCbor = mary.NewMaryTransactionOutputFromCbor |
187 |
| -) |
188 |
| - |
189 |
| -// Alonzo types |
190 |
| -type AlonzoBlock = alonzo.AlonzoBlock |
191 |
| -type AlonzoBlockHeader = alonzo.AlonzoBlockHeader |
192 |
| -type AlonzoTransaction = alonzo.AlonzoTransaction |
193 |
| -type AlonzoTransactionBody = alonzo.AlonzoTransactionBody |
194 |
| -type AlonzoTransactionOutput = alonzo.AlonzoTransactionOutput |
195 |
| -type AlonzoTransactionWitnessSet = alonzo.AlonzoTransactionWitnessSet |
196 |
| -type AlonzoProtocolParameters = alonzo.AlonzoProtocolParameters |
197 |
| -type AlonzoProtocolParameterUpdate = alonzo.AlonzoProtocolParameterUpdate |
198 |
| - |
199 |
| -// Alonzo constants |
200 |
| -const ( |
201 |
| - EraIdAlonzo = alonzo.EraIdAlonzo |
202 |
| - BlockTypeAlonzo = alonzo.BlockTypeAlonzo |
203 |
| - BlockHeaderTypeAlonzo = alonzo.BlockHeaderTypeAlonzo |
204 |
| - TxTypeAlonzo = alonzo.TxTypeAlonzo |
205 |
| -) |
206 |
| - |
207 |
| -// Alonzo functions |
208 |
| -var ( |
209 |
| - NewAlonzoBlockFromCbor = alonzo.NewAlonzoBlockFromCbor |
210 |
| - NewAlonzoTransactionFromCbor = alonzo.NewAlonzoTransactionFromCbor |
211 |
| - NewAlonzoTransactionBodyFromCbor = alonzo.NewAlonzoTransactionBodyFromCbor |
212 |
| - NewAlonzoTransactionOutputFromCbor = alonzo.NewAlonzoTransactionOutputFromCbor |
213 |
| -) |
214 |
| - |
215 |
| -// Babbage types |
216 |
| -type BabbageBlock = babbage.BabbageBlock |
217 |
| -type BabbageBlockHeader = babbage.BabbageBlockHeader |
218 |
| -type BabbageTransaction = babbage.BabbageTransaction |
219 |
| -type BabbageTransactionBody = babbage.BabbageTransactionBody |
220 |
| -type BabbageTransactionOutput = babbage.BabbageTransactionOutput |
221 |
| -type BabbageTransactionWitnessSet = babbage.BabbageTransactionWitnessSet |
222 |
| -type BabbageProtocolParameters = babbage.BabbageProtocolParameters |
223 |
| -type BabbageProtocolParameterUpdate = babbage.BabbageProtocolParameterUpdate |
224 |
| - |
225 |
| -// Babbage constants |
226 |
| -const ( |
227 |
| - EraIdBabbage = babbage.EraIdBabbage |
228 |
| - BlockTypeBabbage = babbage.BlockTypeBabbage |
229 |
| - BlockHeaderTypeBabbage = babbage.BlockHeaderTypeBabbage |
230 |
| - TxTypeBabbage = babbage.TxTypeBabbage |
231 |
| -) |
232 |
| - |
233 |
| -// Babbage functions |
234 |
| -var ( |
235 |
| - NewBabbageBlockFromCbor = babbage.NewBabbageBlockFromCbor |
236 |
| - NewBabbageBlockHeaderFromCbor = babbage.NewBabbageBlockHeaderFromCbor |
237 |
| - NewBabbageTransactionFromCbor = babbage.NewBabbageTransactionFromCbor |
238 |
| - NewBabbageTransactionBodyFromCbor = babbage.NewBabbageTransactionBodyFromCbor |
239 |
| - NewBabbageTransactionOutputFromCbor = babbage.NewBabbageTransactionOutputFromCbor |
240 |
| -) |
241 |
| - |
242 |
| -// Conway types |
243 |
| -type ConwayBlock = conway.ConwayBlock |
244 |
| -type ConwayBlockHeader = conway.ConwayBlockHeader |
245 |
| -type ConwayTransaction = conway.ConwayTransaction |
246 |
| -type ConwayTransactionBody = conway.ConwayTransactionBody |
247 |
| -type ConwayTransactionWitnessSet = conway.ConwayTransactionWitnessSet |
248 |
| -type ConwayProtocolParameters = conway.ConwayProtocolParameters |
249 |
| -type ConwayProtocolParameterUpdate = conway.ConwayProtocolParameterUpdate |
250 |
| - |
251 |
| -// Conway constants |
252 |
| -const ( |
253 |
| - EraIdConway = conway.EraIdConway |
254 |
| - BlockTypeConway = conway.BlockTypeConway |
255 |
| - BlockHeaderTypeConway = conway.BlockHeaderTypeConway |
256 |
| - TxTypeConway = conway.TxTypeConway |
257 |
| -) |
258 |
| - |
259 |
| -// Conway functions |
260 |
| -var ( |
261 |
| - NewConwayBlockFromCbor = conway.NewConwayBlockFromCbor |
262 |
| - NewConwayBlockHeaderFromCbor = conway.NewConwayBlockHeaderFromCbor |
263 |
| - NewConwayTransactionFromCbor = conway.NewConwayTransactionFromCbor |
264 |
| - NewConwayTransactionBodyFromCbor = conway.NewConwayTransactionBodyFromCbor |
265 |
| -) |
0 commit comments