File tree Expand file tree Collapse file tree 7 files changed +36
-0
lines changed Expand file tree Collapse file tree 7 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,10 @@ type AllegraTransaction struct {
170
170
TxMetadata * cbor.LazyValue
171
171
}
172
172
173
+ func (t * AllegraTransaction ) UnmarshalCBOR (data []byte ) error {
174
+ return t .UnmarshalCbor (data , t )
175
+ }
176
+
173
177
func (AllegraTransaction ) Type () int {
174
178
return TxTypeAllegra
175
179
}
Original file line number Diff line number Diff line change @@ -362,6 +362,10 @@ type AlonzoTransaction struct {
362
362
TxMetadata * cbor.LazyValue
363
363
}
364
364
365
+ func (t * AlonzoTransaction ) UnmarshalCBOR (data []byte ) error {
366
+ return t .UnmarshalCbor (data , t )
367
+ }
368
+
365
369
func (AlonzoTransaction ) Type () int {
366
370
return TxTypeAlonzo
367
371
}
Original file line number Diff line number Diff line change @@ -515,6 +515,10 @@ type BabbageTransaction struct {
515
515
TxMetadata * cbor.LazyValue
516
516
}
517
517
518
+ func (t * BabbageTransaction ) UnmarshalCBOR (data []byte ) error {
519
+ return t .UnmarshalCbor (data , t )
520
+ }
521
+
518
522
func (BabbageTransaction ) Type () int {
519
523
return TxTypeBabbage
520
524
}
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ type StakeCredential struct {
34
34
Credential []byte
35
35
}
36
36
37
+ func (c * StakeCredential ) UnmarshalCBOR (data []byte ) error {
38
+ return c .UnmarshalCbor (data , c )
39
+ }
40
+
37
41
func (c * StakeCredential ) Hash () Blake2b224 {
38
42
hash , err := blake2b .New (28 , nil )
39
43
if err != nil {
Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ type ConwayTransaction struct {
317
317
TxMetadata * cbor.LazyValue
318
318
}
319
319
320
+ func (t * ConwayTransaction ) UnmarshalCBOR (data []byte ) error {
321
+ return t .UnmarshalCbor (data , t )
322
+ }
323
+
320
324
func (ConwayTransaction ) Type () int {
321
325
return TxTypeConway
322
326
}
Original file line number Diff line number Diff line change @@ -181,6 +181,10 @@ type MaryTransaction struct {
181
181
TxMetadata * cbor.LazyValue
182
182
}
183
183
184
+ func (t * MaryTransaction ) UnmarshalCBOR (data []byte ) error {
185
+ return t .UnmarshalCbor (data , t )
186
+ }
187
+
184
188
func (MaryTransaction ) Type () int {
185
189
return TxTypeMary
186
190
}
@@ -336,6 +340,10 @@ type MaryTransactionOutput struct {
336
340
OutputAmount MaryTransactionOutputValue
337
341
}
338
342
343
+ func (o * MaryTransactionOutput ) UnmarshalCBOR (data []byte ) error {
344
+ return o .UnmarshalCbor (data , o )
345
+ }
346
+
339
347
func (o MaryTransactionOutput ) MarshalJSON () ([]byte , error ) {
340
348
tmpObj := struct {
341
349
Address common.Address `json:"address"`
Original file line number Diff line number Diff line change @@ -444,6 +444,10 @@ type ShelleyTransactionOutput struct {
444
444
OutputAmount uint64 `json:"amount"`
445
445
}
446
446
447
+ func (o * ShelleyTransactionOutput ) UnmarshalCBOR (data []byte ) error {
448
+ return o .UnmarshalCbor (data , o )
449
+ }
450
+
447
451
func (o ShelleyTransactionOutput ) Address () common.Address {
448
452
return o .OutputAddress
449
453
}
@@ -527,6 +531,10 @@ type ShelleyTransaction struct {
527
531
TxMetadata * cbor.LazyValue
528
532
}
529
533
534
+ func (t * ShelleyTransaction ) UnmarshalCBOR (data []byte ) error {
535
+ return t .UnmarshalCbor (data , t )
536
+ }
537
+
530
538
func (ShelleyTransaction ) Type () int {
531
539
return TxTypeShelley
532
540
}
You can’t perform that action at this time.
0 commit comments