v0.1.0-pre.011
This commit is contained in:
@@ -372,7 +372,7 @@ pub(in crate::postgres) async fn list_core_instruction_replay_inputs(
|
||||
pool: &sqlx::PgPool,
|
||||
filter: &crate::CoreInstructionReplayFilter,
|
||||
page_request: &crate::PageRequest,
|
||||
) -> kb_core::Result<std::vec::Vec<crate::CoreInstructionReplayInput>> {
|
||||
) -> kb_core::Result<std::vec::Vec<crate::MdCoreInstructionReplayInput>> {
|
||||
let instructions_result =
|
||||
crate::postgres::query::core_queries::list_core_instructions_for_replay(
|
||||
pool,
|
||||
@@ -402,7 +402,7 @@ pub(in crate::postgres) async fn list_core_instruction_replay_inputs(
|
||||
pub(in crate::postgres) async fn list_decode_replay_inputs(
|
||||
pool: &sqlx::PgPool,
|
||||
filter: &crate::DecodeSelectionFilter,
|
||||
) -> kb_core::Result<std::vec::Vec<crate::CoreInstructionReplayInput>> {
|
||||
) -> kb_core::Result<std::vec::Vec<crate::MdCoreInstructionReplayInput>> {
|
||||
let min_slot_result =
|
||||
crate::postgres::query::core_queries::optional_sql_slot_from_u64(filter.min_slot);
|
||||
let min_slot = match min_slot_result {
|
||||
@@ -758,7 +758,7 @@ where
|
||||
pub(in crate::postgres) async fn load_replay_input_for_instruction(
|
||||
pool: &sqlx::PgPool,
|
||||
instruction: &crate::CoreInstructionRow,
|
||||
) -> kb_core::Result<crate::CoreInstructionReplayInput> {
|
||||
) -> kb_core::Result<crate::MdCoreInstructionReplayInput> {
|
||||
let transaction_context_result =
|
||||
sqlx::query_as::<sqlx::Postgres, (bool, std::option::Option<serde_json::Value>)>(
|
||||
"SELECT failed, err_json FROM kb_sol_core_transactions WHERE signature = $1 LIMIT 1",
|
||||
@@ -830,7 +830,7 @@ pub(in crate::postgres) async fn load_replay_input_for_instruction(
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
return crate::CoreInstructionReplayInput::new(
|
||||
return crate::MdCoreInstructionReplayInput::new(
|
||||
replay_input_key,
|
||||
instruction.signature.clone(),
|
||||
slot,
|
||||
|
||||
@@ -69,7 +69,7 @@ pub(in crate::postgres) async fn apply_decode_store_schema(
|
||||
pub(in crate::postgres) async fn list_decode_inputs(
|
||||
pool: &sqlx::PgPool,
|
||||
filter: &crate::DecodeSelectionFilter,
|
||||
) -> kb_core::Result<std::vec::Vec<crate::CoreInstructionReplayInput>> {
|
||||
) -> kb_core::Result<std::vec::Vec<crate::MdCoreInstructionReplayInput>> {
|
||||
tracing::debug!(target: crate::TRACING_TARGET, action = "list_decode_inputs", signature_count = filter.signatures.len(), signature_sample = ?filter.signatures.iter().take(5).map(std::string::String::as_str).collect::<std::vec::Vec<_>>(), processing_states = ?filter.processing_states, min_slot = ?filter.min_slot, max_slot = ?filter.max_slot, program_ids = ?filter.program_ids, instruction_paths = ?filter.instruction_paths, limit = filter.limit, "query PostgreSQL contextual decode inputs");
|
||||
let result =
|
||||
crate::postgres::query::core_queries::list_decode_replay_inputs(pool, filter).await;
|
||||
|
||||
@@ -420,7 +420,7 @@ mod tests {
|
||||
assert_eq!(duplicate_outcome.skipped_count, 1);
|
||||
let has_result = crate::RawTransactionStore::has_raw_transaction_signature(
|
||||
&store,
|
||||
&kb_lib::Signature(signature.clone()),
|
||||
&kb_lib::MdSignature(signature.clone()),
|
||||
)
|
||||
.await;
|
||||
let has_signature = match has_result {
|
||||
|
||||
@@ -96,7 +96,7 @@ impl crate::CoreTransactionStore for crate::PostgresStore {
|
||||
&self,
|
||||
filter: &crate::CoreInstructionReplayFilter,
|
||||
page_request: &crate::PageRequest,
|
||||
) -> kb_core::Result<std::vec::Vec<crate::CoreInstructionReplayInput>> {
|
||||
) -> kb_core::Result<std::vec::Vec<crate::MdCoreInstructionReplayInput>> {
|
||||
return crate::postgres::query::list_core_instruction_replay_inputs(
|
||||
self.pool(),
|
||||
filter,
|
||||
|
||||
@@ -12,7 +12,7 @@ impl crate::DecodePipelineStore for crate::PostgresStore {
|
||||
async fn list_decode_inputs(
|
||||
&self,
|
||||
filter: &crate::DecodeSelectionFilter,
|
||||
) -> kb_core::Result<std::vec::Vec<crate::CoreInstructionReplayInput>> {
|
||||
) -> kb_core::Result<std::vec::Vec<crate::MdCoreInstructionReplayInput>> {
|
||||
return crate::postgres::query::list_decode_inputs(self.pool(), filter).await;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ impl crate::RawTransactionStore for crate::PostgresStore {
|
||||
)]
|
||||
async fn has_raw_transaction_signature(
|
||||
&self,
|
||||
signature: &kb_lib::Signature,
|
||||
signature: &kb_lib::MdSignature,
|
||||
) -> kb_core::Result<bool> {
|
||||
return crate::postgres::query::has_raw_transaction_signature(
|
||||
self.pool(),
|
||||
|
||||
Reference in New Issue
Block a user