diff --git a/Cargo.lock b/Cargo.lock index bc334896..3e8a7b08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -584,9 +584,9 @@ dependencies = [ "anyhow", "async-trait", "clap 3.2.25", - "cml-chain 5.2.0", - "cml-core 5.2.0", - "cml-crypto 5.2.0", + "cml-chain 5.3.0", + "cml-core 5.3.0", + "cml-crypto 5.3.0", "cml-multi-era", "ctrlc", "dcspark-blockchain-source", @@ -765,14 +765,15 @@ dependencies = [ [[package]] name = "cml-chain" -version = "5.2.0" -source = "git+https://github.com/dcSpark/cardano-multiplatform-lib?branch=new-conway-cddl-updates#386e91dbd41179fa6b975d6cb324a52f76d0f160" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b58dce9d0eb50807b73ea4c130549347b40580b96b2f199650b9845566e0b5ef" dependencies = [ "base64 0.21.7", "bech32 0.7.3", "cbor_event", - "cml-core 5.2.0", - "cml-crypto 5.2.0", + "cml-core 5.3.0", + "cml-crypto 5.3.0", "derivative", "fraction", "getrandom", @@ -819,8 +820,9 @@ dependencies = [ [[package]] name = "cml-core" -version = "5.2.0" -source = "git+https://github.com/dcSpark/cardano-multiplatform-lib?branch=new-conway-cddl-updates#386e91dbd41179fa6b975d6cb324a52f76d0f160" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cbdbd4f17a5df89ec8e65d01ace223ea01c0501d705629966df466cecb7d10" dependencies = [ "base64 0.13.1", "bech32 0.7.3", @@ -868,14 +870,15 @@ dependencies = [ [[package]] name = "cml-crypto" -version = "5.2.0" -source = "git+https://github.com/dcSpark/cardano-multiplatform-lib?branch=new-conway-cddl-updates#386e91dbd41179fa6b975d6cb324a52f76d0f160" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34119f9c40c11fabaeba5bc3b20290ba0e27461aab003c6813a8568a44252daf" dependencies = [ "base64 0.21.7", "bech32 0.7.3", "cbor_event", "cfg-if 1.0.0", - "cml-core 5.2.0", + "cml-core 5.3.0", "cryptoxide", "derivative", "digest 0.9.0", @@ -891,14 +894,15 @@ dependencies = [ [[package]] name = "cml-multi-era" -version = "5.2.0" -source = "git+https://github.com/dcSpark/cardano-multiplatform-lib?branch=new-conway-cddl-updates#386e91dbd41179fa6b975d6cb324a52f76d0f160" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc958024de3d1885c5e13ca4cbc1c9f64e89662aed474775cb2defc556e81bc3" dependencies = [ "bech32 0.7.3", "cbor_event", - "cml-chain 5.2.0", - "cml-core 5.2.0", - "cml-crypto 5.2.0", + "cml-chain 5.3.0", + "cml-core 5.3.0", + "cml-crypto 5.3.0", "derivative", "hex", "linked-hash-map", @@ -2848,9 +2852,9 @@ name = "reparse" version = "0.1.0" dependencies = [ "anyhow", - "cml-chain 5.2.0", - "cml-core 5.2.0", - "cml-crypto 5.2.0", + "cml-chain 5.3.0", + "cml-core 5.3.0", + "cml-crypto 5.3.0", "cml-multi-era", "dotenv", "entity", @@ -3737,9 +3741,9 @@ dependencies = [ "anyhow", "cardano-projected-nft", "cfg-if 1.0.0", - "cml-chain 5.2.0", - "cml-core 5.2.0", - "cml-crypto 5.2.0", + "cml-chain 5.3.0", + "cml-core 5.3.0", + "cml-crypto 5.3.0", "cml-multi-era", "cryptoxide", "entity", diff --git a/Cargo.toml b/Cargo.toml index cea95cab..5aa91926 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ [workspace.dependencies] -cml-chain = { git = "https://github.com/dcSpark/cardano-multiplatform-lib", branch = "new-conway-cddl-updates" } -cml-core = { git = "https://github.com/dcSpark/cardano-multiplatform-lib", branch = "new-conway-cddl-updates" } -cml-crypto = { git = "https://github.com/dcSpark/cardano-multiplatform-lib", branch = "new-conway-cddl-updates" } -cml-multi-era = { git = "https://github.com/dcSpark/cardano-multiplatform-lib", branch = "new-conway-cddl-updates" } +cml-chain = { version = "5.3.0" } +cml-core = { version = "5.3.0" } +cml-crypto = { version = "5.3.0" } +cml-multi-era = { version = "5.3.0" } diff --git a/indexer/tasks/src/multiera/multiera_drep_delegation.rs b/indexer/tasks/src/multiera/multiera_drep_delegation.rs index b12fe2d3..c9b27bd4 100644 --- a/indexer/tasks/src/multiera/multiera_drep_delegation.rs +++ b/indexer/tasks/src/multiera/multiera_drep_delegation.rs @@ -31,9 +31,11 @@ carp_task! { read [multiera_txs, multiera_stake_credential]; write []; should_add_task |block, _properties| { - // recall: txs may have no outputs if they just burn all inputs as fee - // TODO: this runs slightly more than it should - !block.1.is_empty() + block + .1 + .transaction_bodies() + .iter() + .any(|x| x.certs().is_some()); }; execute |previous_data, task| handle( task.db_tx, diff --git a/indexer/tasks/src/multiera/multiera_governance_voting.rs b/indexer/tasks/src/multiera/multiera_governance_voting.rs index fc1adbcf..2302c201 100644 --- a/indexer/tasks/src/multiera/multiera_governance_voting.rs +++ b/indexer/tasks/src/multiera/multiera_governance_voting.rs @@ -13,9 +13,7 @@ carp_task! { read [multiera_txs]; write []; should_add_task |block, _properties| { - // recall: txs may have no outputs if they just burn all inputs as fee - // TODO: this runs slightly more than it should - !block.1.is_empty() + block.1.transaction_bodies().iter().any(|x| x.voting_procedures().is_some()) }; execute |previous_data, task| handle( task.db_tx,