@@ -117,6 +117,7 @@ type Certificate interface {
117
117
isCertificate ()
118
118
Cbor () []byte
119
119
Utxorpc () * utxorpc.Certificate
120
+ Type () uint
120
121
}
121
122
122
123
const (
@@ -177,6 +178,10 @@ func (c *StakeRegistrationCertificate) Utxorpc() *utxorpc.Certificate {
177
178
}
178
179
}
179
180
181
+ func (c * StakeRegistrationCertificate ) Type () uint {
182
+ return c .CertType
183
+ }
184
+
180
185
type StakeDeregistrationCertificate struct {
181
186
cbor.StructAsArray
182
187
cbor.DecodeStoreCbor
@@ -198,6 +203,10 @@ func (c *StakeDeregistrationCertificate) Utxorpc() *utxorpc.Certificate {
198
203
}
199
204
}
200
205
206
+ func (c * StakeDeregistrationCertificate ) Type () uint {
207
+ return c .CertType
208
+ }
209
+
201
210
type StakeDelegationCertificate struct {
202
211
cbor.StructAsArray
203
212
cbor.DecodeStoreCbor
@@ -223,6 +232,10 @@ func (c *StakeDelegationCertificate) Utxorpc() *utxorpc.Certificate {
223
232
}
224
233
}
225
234
235
+ func (c * StakeDelegationCertificate ) Type () uint {
236
+ return c .CertType
237
+ }
238
+
226
239
type (
227
240
PoolKeyHash Blake2b224
228
241
PoolMetadataHash Blake2b256
@@ -373,6 +386,10 @@ func (c *PoolRegistrationCertificate) Utxorpc() *utxorpc.Certificate {
373
386
}
374
387
}
375
388
389
+ func (c * PoolRegistrationCertificate ) Type () uint {
390
+ return c .CertType
391
+ }
392
+
376
393
type PoolRetirementCertificate struct {
377
394
cbor.StructAsArray
378
395
cbor.DecodeStoreCbor
@@ -398,6 +415,10 @@ func (c *PoolRetirementCertificate) Utxorpc() *utxorpc.Certificate {
398
415
}
399
416
}
400
417
418
+ func (c * PoolRetirementCertificate ) Type () uint {
419
+ return c .CertType
420
+ }
421
+
401
422
type GenesisKeyDelegationCertificate struct {
402
423
cbor.StructAsArray
403
424
cbor.DecodeStoreCbor
@@ -425,6 +446,10 @@ func (c *GenesisKeyDelegationCertificate) Utxorpc() *utxorpc.Certificate {
425
446
}
426
447
}
427
448
449
+ func (c * GenesisKeyDelegationCertificate ) Type () uint {
450
+ return c .CertType
451
+ }
452
+
428
453
type MirSource int32
429
454
430
455
const (
@@ -508,6 +533,10 @@ func (c *MoveInstantaneousRewardsCertificate) Utxorpc() *utxorpc.Certificate {
508
533
}
509
534
}
510
535
536
+ func (c * MoveInstantaneousRewardsCertificate ) Type () uint {
537
+ return c .CertType
538
+ }
539
+
511
540
type RegistrationCertificate struct {
512
541
cbor.StructAsArray
513
542
cbor.DecodeStoreCbor
@@ -529,6 +558,10 @@ func (c *RegistrationCertificate) Utxorpc() *utxorpc.Certificate {
529
558
return nil
530
559
}
531
560
561
+ func (c * RegistrationCertificate ) Type () uint {
562
+ return c .CertType
563
+ }
564
+
532
565
type DeregistrationCertificate struct {
533
566
cbor.StructAsArray
534
567
cbor.DecodeStoreCbor
@@ -550,6 +583,10 @@ func (c *DeregistrationCertificate) Utxorpc() *utxorpc.Certificate {
550
583
return nil
551
584
}
552
585
586
+ func (c * DeregistrationCertificate ) Type () uint {
587
+ return c .CertType
588
+ }
589
+
553
590
type VoteDelegationCertificate struct {
554
591
cbor.StructAsArray
555
592
cbor.DecodeStoreCbor
@@ -571,6 +608,10 @@ func (c *VoteDelegationCertificate) Utxorpc() *utxorpc.Certificate {
571
608
return nil
572
609
}
573
610
611
+ func (c * VoteDelegationCertificate ) Type () uint {
612
+ return c .CertType
613
+ }
614
+
574
615
type StakeVoteDelegationCertificate struct {
575
616
cbor.StructAsArray
576
617
cbor.DecodeStoreCbor
@@ -593,6 +634,10 @@ func (c *StakeVoteDelegationCertificate) Utxorpc() *utxorpc.Certificate {
593
634
return nil
594
635
}
595
636
637
+ func (c * StakeVoteDelegationCertificate ) Type () uint {
638
+ return c .CertType
639
+ }
640
+
596
641
type StakeRegistrationDelegationCertificate struct {
597
642
cbor.StructAsArray
598
643
cbor.DecodeStoreCbor
@@ -615,6 +660,10 @@ func (c *StakeRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certificate
615
660
return nil
616
661
}
617
662
663
+ func (c * StakeRegistrationDelegationCertificate ) Type () uint {
664
+ return c .CertType
665
+ }
666
+
618
667
type VoteRegistrationDelegationCertificate struct {
619
668
cbor.StructAsArray
620
669
cbor.DecodeStoreCbor
@@ -637,6 +686,10 @@ func (c *VoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certificate {
637
686
return nil
638
687
}
639
688
689
+ func (c * VoteRegistrationDelegationCertificate ) Type () uint {
690
+ return c .CertType
691
+ }
692
+
640
693
type StakeVoteRegistrationDelegationCertificate struct {
641
694
cbor.StructAsArray
642
695
cbor.DecodeStoreCbor
@@ -660,6 +713,10 @@ func (c *StakeVoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certific
660
713
return nil
661
714
}
662
715
716
+ func (c * StakeVoteRegistrationDelegationCertificate ) Type () uint {
717
+ return c .CertType
718
+ }
719
+
663
720
type AuthCommitteeHotCertificate struct {
664
721
cbor.StructAsArray
665
722
cbor.DecodeStoreCbor
@@ -681,6 +738,10 @@ func (c *AuthCommitteeHotCertificate) Utxorpc() *utxorpc.Certificate {
681
738
return nil
682
739
}
683
740
741
+ func (c * AuthCommitteeHotCertificate ) Type () uint {
742
+ return c .CertType
743
+ }
744
+
684
745
type ResignCommitteeColdCertificate struct {
685
746
cbor.StructAsArray
686
747
cbor.DecodeStoreCbor
@@ -702,6 +763,10 @@ func (c *ResignCommitteeColdCertificate) Utxorpc() *utxorpc.Certificate {
702
763
return nil
703
764
}
704
765
766
+ func (c * ResignCommitteeColdCertificate ) Type () uint {
767
+ return c .CertType
768
+ }
769
+
705
770
type RegistrationDrepCertificate struct {
706
771
cbor.StructAsArray
707
772
cbor.DecodeStoreCbor
@@ -724,6 +789,10 @@ func (c *RegistrationDrepCertificate) Utxorpc() *utxorpc.Certificate {
724
789
return nil
725
790
}
726
791
792
+ func (c * RegistrationDrepCertificate ) Type () uint {
793
+ return c .CertType
794
+ }
795
+
727
796
type DeregistrationDrepCertificate struct {
728
797
cbor.StructAsArray
729
798
cbor.DecodeStoreCbor
@@ -745,6 +814,10 @@ func (c *DeregistrationDrepCertificate) Utxorpc() *utxorpc.Certificate {
745
814
return nil
746
815
}
747
816
817
+ func (c * DeregistrationDrepCertificate ) Type () uint {
818
+ return c .CertType
819
+ }
820
+
748
821
type UpdateDrepCertificate struct {
749
822
cbor.StructAsArray
750
823
cbor.DecodeStoreCbor
@@ -765,3 +838,7 @@ func (c *UpdateDrepCertificate) Utxorpc() *utxorpc.Certificate {
765
838
// TODO (#850)
766
839
return nil
767
840
}
841
+
842
+ func (c * UpdateDrepCertificate ) Type () uint {
843
+ return c .CertType
844
+ }
0 commit comments