text: 
  class RecentProposerRecord():
      fields = {
          # Proposer index
          'index': 'int24',
          # New RANDAO commitment
          'randao_commitment': 'hash32',
          # Balance delta
          'balance_delta': 'int24'
      }
      defaults = {
          'randao_commitment': b'\x00'*32,
          'balance_delta': 0
      }
  
      def __init__(self, **kwargs):
          for k in self.fields.keys():
              assert k in kwargs or k in self.defaults
              setattr(self, k, kwargs.get(k, self.defaults.get(k)))
  