class RuntimeStorage(BaseModel): __tablename__ = 'runtime_storage' spec_name = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) spec_version = sa.Column(sa.Integer(), nullable=False, primary_key=True, index=True) pallet = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) storage_name = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) pallet_storage_idx = sa.Column(sa.Integer(), nullable=False) #default = sa.Column(BLOB()) modifier = sa.Column(sa.String(64)) key_prefix_pallet = sa.Column(HashBinary(16)) key_prefix_name = sa.Column(HashBinary(16)) key1_scale_type = sa.Column(sa.String(255)) key1_hasher = sa.Column(sa.String(255)) key2_scale_type = sa.Column(sa.String(255)) key2_hasher = sa.Column(sa.String(255)) value_scale_type = sa.Column(sa.String(255)) is_linked = sa.Column(sa.Boolean()) documentation = sa.Column(sa.Text())
class CodecBlockHeaderDigestLog(BaseModel): __tablename__ = 'codec_block_header_digest_log' block_hash = sa.Column(HashBinary(32), primary_key=True, index=True, nullable=False) log_idx = sa.Column(sa.Integer(), primary_key=True, index=True, nullable=False) block_number = sa.Column(sa.Integer(), nullable=False, index=True) scale_type = sa.Column(sa.String(255)) data = sa.Column(sa.JSON()) complete = sa.Column(sa.Boolean(), nullable=False, default=False, index=True) def __repr__(self): return "<{}(block_hash={}, log_idx={})>".format( self.__class__.__name__, self.block_hash.hex(), self.log_idx)
class CodecBlockEvent(BaseModel): __tablename__ = 'codec_block_event' # __table_args__ = (Index('ix_codec_block_event_block_idx', "block_number", "event_idx"),) block_hash = sa.Column(HashBinary(32), primary_key=True, index=True, nullable=False) event_idx = sa.Column(sa.Integer(), primary_key=True, index=True, nullable=False) block_number = sa.Column(sa.Integer(), nullable=False, index=True) scale_type = sa.Column(sa.String(255)) event_module = sa.Column(sa.String(255), nullable=True, index=True) event_name = sa.Column(sa.String(255), nullable=True, index=True) extrinsic_idx = sa.Column(sa.Integer(), index=True) data = sa.Column(sa.JSON()) complete = sa.Column(sa.Boolean(), nullable=False, default=False, index=True) def __repr__(self): return "<{}(block_hash={}, event_idx={})>".format( self.__class__.__name__, self.block_hash.hex(), self.event_idx)
class CodecBlockStorage(BaseModel): __tablename__ = 'codec_block_storage' block_hash = sa.Column(HashBinary(32), primary_key=True, index=True, nullable=False) storage_key = sa.Column(sa.VARBINARY(128), primary_key=True, index=True) block_number = sa.Column(sa.Integer(), nullable=False, index=True) scale_type = sa.Column(sa.String(255)) storage_module = sa.Column(sa.String(255), nullable=True, index=True) storage_name = sa.Column(sa.String(255), nullable=True, index=True) data = sa.Column(sa.JSON()) complete = sa.Column(sa.Boolean(), nullable=False, default=False, index=True) def __repr__(self): return "<{}(storage_key={}, block_hash={})>".format( self.__class__.__name__, self.storage_key.hex(), self.block_hash.hex())
class RuntimeEvent(BaseModel): __tablename__ = 'runtime_event' spec_name = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) spec_version = sa.Column(sa.Integer(), nullable=False, primary_key=True, index=True) pallet = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) event_name = sa.Column(sa.String(255), primary_key=True, index=True) pallet_event_idx = sa.Column(sa.Integer(), nullable=False) lookup = sa.Column(HashBinary(2), index=True, nullable=False) documentation = sa.Column(sa.Text()) count_attributes = sa.Column(sa.Integer(), nullable=False)
class RuntimeCall(BaseModel): __tablename__ = 'runtime_call' spec_name = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) spec_version = sa.Column(sa.Integer(), nullable=False, primary_key=True, index=True) pallet = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) call_name = sa.Column(sa.String(255), nullable=False, primary_key=True, index=True) pallet_call_idx = sa.Column(sa.Integer(), nullable=False) lookup = sa.Column(HashBinary(2), index=True, nullable=False) documentation = sa.Column(sa.Text()) count_arguments = sa.Column(sa.Integer(), nullable=False)