v0.5.3-pre.003
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
<!-- file: ks-pipeline-demo-scenarios/CHANGELOG.md -->
|
||||
<!-- version: 82 -->
|
||||
<!-- version: 83 -->
|
||||
|
||||
# CHANGELOG — ks-pipeline-demo-scenarios
|
||||
|
||||
## `0.5.3-pre.003`
|
||||
|
||||
- adapte les scénarios réutilisables au renommage N3 `MaterializedOutput*` / `list_materialized_outputs` sans modifier les campagnes Devnet ni leurs critères de succès ;
|
||||
- conserve la façade `Store` backend-agnostique introduite en `pre.002` pendant la reconstruction physique PostgreSQL de `pre.003`.
|
||||
|
||||
## `0.5.3-pre.002`
|
||||
|
||||
- remplace les constructions `PostgresStore`/`PostgresStoreOptions` des scénarios par `ks_store::Store` et `StoreOpenOptions` ;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/metadata/metaplex_token_metadata/devnet_execution.rs
|
||||
// version: 26
|
||||
// version: 27
|
||||
|
||||
//! Real Devnet simulation and submission for current Metaplex Token Metadata operations.
|
||||
|
||||
@@ -357,7 +357,7 @@ pub struct DevnetMetaplexTokenMetadataExecutionSummary {
|
||||
/// Second replay proving idempotence for the exact same input.
|
||||
pub idempotence_replay: std::option::Option<ks_pipeline::DecodeReplaySummary>,
|
||||
/// Exact materialized rows produced for the submitted Metaplex transaction.
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
/// Aggregated canonical post-execution diagnostic.
|
||||
pub post_execution: std::option::Option<ks_lib::ExApiPostExecutionDiagnostic>,
|
||||
}
|
||||
@@ -758,7 +758,7 @@ where
|
||||
.push(replay_summary_diagnostic("first Metaplex replay", &first_replay));
|
||||
}
|
||||
summary.decode_replay = std::option::Option::Some(first_replay);
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::None,
|
||||
std::option::Option::None,
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -767,7 +767,8 @@ where
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await
|
||||
{
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
diagnostic
|
||||
@@ -1119,8 +1120,8 @@ where
|
||||
}
|
||||
|
||||
fn metaplex_instruction_materializations(
|
||||
rows: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
) -> std::vec::Vec<ks_store::MaterializedEventQueryRow> {
|
||||
rows: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
) -> std::vec::Vec<ks_store::MaterializedOutputQueryRow> {
|
||||
let materializer_name = ks_lib::MtApiEventMaterializer::identity(
|
||||
&ks_lib::MtMetadataMetaplexTokenMetadataMaterializer,
|
||||
)
|
||||
@@ -1613,8 +1614,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn materialization_evidence_is_owned_by_the_metaplex_materializer() {
|
||||
fn row(processor_name: &str) -> ks_store::MaterializedEventQueryRow {
|
||||
return ks_store::MaterializedEventQueryRow {
|
||||
fn row(processor_name: &str) -> ks_store::MaterializedOutputQueryRow {
|
||||
return ks_store::MaterializedOutputQueryRow {
|
||||
processor_name: processor_name.to_string(),
|
||||
processor_version: "0.4.8-pre.13".to_string(),
|
||||
input_key: "input".to_string(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/spl/associated_token_account.rs
|
||||
// version: 19
|
||||
// version: 20
|
||||
|
||||
//! Devnet ATA execution with stateful and canonical post-validation.
|
||||
|
||||
@@ -102,7 +102,7 @@ pub struct DevnetSplAssociatedTokenAccountExecutionSummary {
|
||||
/// Second replay proving idempotence for the same decoder version and input.
|
||||
pub idempotence_replay: std::option::Option<ks_pipeline::DecodeReplaySummary>,
|
||||
/// Exact materialized rows produced for the submitted Token transaction.
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
/// Aggregated post-execution validation diagnostic.
|
||||
pub post_execution: std::option::Option<ks_lib::ExApiPostExecutionDiagnostic>,
|
||||
}
|
||||
@@ -424,7 +424,7 @@ where
|
||||
};
|
||||
diagnostic.decode_replayed = decode_completed(&first_replay);
|
||||
summary.decode_replay = std::option::Option::Some(first_replay);
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::None,
|
||||
std::option::Option::None,
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -433,7 +433,8 @@ where
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await
|
||||
{
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
diagnostic.diagnostics.push(format!(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/spl/memo.rs
|
||||
// version: 15
|
||||
// version: 16
|
||||
|
||||
//! Devnet SPL Memo v4 execution with canonical post-validation.
|
||||
|
||||
@@ -107,7 +107,7 @@ pub struct DevnetMemoExecutionSummary {
|
||||
/// Second replay proving that the same decoder version and input are idempotent.
|
||||
pub idempotence_replay: std::option::Option<ks_pipeline::DecodeReplaySummary>,
|
||||
/// Exact persisted transaction annotation rows for the submitted signature.
|
||||
pub annotations: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
pub annotations: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
/// Aggregated post-execution validation diagnostic.
|
||||
pub post_execution: std::option::Option<ks_lib::ExApiPostExecutionDiagnostic>,
|
||||
}
|
||||
@@ -490,7 +490,7 @@ where
|
||||
};
|
||||
diagnostic.decode_replayed = decode_completed(&first_replay);
|
||||
summary.decode_replay = std::option::Option::Some(first_replay);
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::Some("materializer.transaction.annotations".to_string()),
|
||||
std::option::Option::Some("transaction_annotation".to_string()),
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -500,7 +500,7 @@ where
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
summary.annotations =
|
||||
match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await {
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
diagnostic.diagnostics.push(format!("Memo annotation query failed: {error}"));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/spl/token/execution.rs
|
||||
// version: 19
|
||||
// version: 20
|
||||
|
||||
//! Devnet classic SPL Token execution with stateful and canonical post-validation.
|
||||
|
||||
@@ -99,7 +99,7 @@ pub struct DevnetSplTokenExecutionSummary {
|
||||
/// Second replay proving idempotence for the same decoder version and input.
|
||||
pub idempotence_replay: std::option::Option<ks_pipeline::DecodeReplaySummary>,
|
||||
/// Exact materialized rows produced for the submitted Token transaction.
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
/// Aggregated post-execution validation diagnostic.
|
||||
pub post_execution: std::option::Option<ks_lib::ExApiPostExecutionDiagnostic>,
|
||||
}
|
||||
@@ -390,7 +390,7 @@ where
|
||||
};
|
||||
diagnostic.decode_replayed = crate::decode_completed(&first_replay);
|
||||
summary.decode_replay = std::option::Option::Some(first_replay);
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::None,
|
||||
std::option::Option::None,
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -399,7 +399,8 @@ where
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await
|
||||
{
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
diagnostic
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/spl/token/lifecycle.rs
|
||||
// version: 18
|
||||
// version: 19
|
||||
|
||||
//! Controlled Devnet lifecycle for freshly prepared classic SPL Token accounts.
|
||||
|
||||
@@ -662,7 +662,7 @@ where
|
||||
"lifecycle predecessor decode and materialization did not complete",
|
||||
));
|
||||
}
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::None,
|
||||
std::option::Option::None,
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -671,7 +671,8 @@ where
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await
|
||||
{
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline-demo-scenarios/src/spl/token_2022/devnet_execution.rs
|
||||
// version: 12
|
||||
// version: 13
|
||||
|
||||
//! Devnet Token-2022 execution with stateful and canonical post-validation.
|
||||
|
||||
@@ -99,7 +99,7 @@ pub struct DevnetSplToken2022ExecutionSummary {
|
||||
/// Second replay proving idempotence for the same decoder version and input.
|
||||
pub idempotence_replay: std::option::Option<ks_pipeline::DecodeReplaySummary>,
|
||||
/// Exact materialized rows produced for the submitted Token transaction.
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedEventQueryRow>,
|
||||
pub materializations: std::vec::Vec<ks_store::MaterializedOutputQueryRow>,
|
||||
/// Aggregated post-execution validation diagnostic.
|
||||
pub post_execution: std::option::Option<ks_lib::ExApiPostExecutionDiagnostic>,
|
||||
}
|
||||
@@ -390,7 +390,7 @@ where
|
||||
};
|
||||
diagnostic.decode_replayed = crate::decode_completed(&first_replay);
|
||||
summary.decode_replay = std::option::Option::Some(first_replay);
|
||||
let filter = match ks_store::MaterializedEventFilter::new(
|
||||
let filter = match ks_store::MaterializedOutputFilter::new(
|
||||
std::option::Option::None,
|
||||
std::option::Option::None,
|
||||
std::option::Option::Some(signature.0.clone()),
|
||||
@@ -399,7 +399,8 @@ where
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => return std::result::Result::Err(error),
|
||||
};
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_events(store, &filter).await {
|
||||
let rows = match ks_store::DecodePipelineStore::list_materialized_outputs(store, &filter).await
|
||||
{
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
diagnostic
|
||||
|
||||
Reference in New Issue
Block a user