Skip to content

Commit

Permalink
upgrade dep versions
Browse files Browse the repository at this point in the history
  • Loading branch information
OlofBlomqvist committed Feb 11, 2024
1 parent 8564b62 commit 38d5fb0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
9 changes: 5 additions & 4 deletions cardano_chain_sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ async-trait = "0.1.68"
bytes = "1.4.0"
error-stack = {version="0.4.0", features=["std","anyhow","hooks"]}
hex = "0.4.3"
pallas = "0.18.1"
pallas-primitives = "0.18.1"
pallas-traverse = "0.18.1"
pallas_network = { git = "https://github.com/OlofBlomqvist/pallas", branch="feat-win-pipes", package="pallas-network" }
pallas = "0.22.0"
pallas-primitives = "0.22.0"
pallas-traverse = "0.22.0"
pallas-network ={ version="0.22.0"}
#pallas_network = { git = "https://github.com/OlofBlomqvist/pallas", branch="feat-win-pipes", package="pallas-network" }
#pallas-network = { path = "C:/Users/oblink/Documents/GitHub/pallas/pallas-network" }
#pallas_network = { git = "https://github.com/txpipe/pallas.git", branch = "main", package = "pallas-network" }

Expand Down
14 changes: 7 additions & 7 deletions marlowe_indexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ cardano_chain_sync = { path = "../cardano_chain_sync" }
tokio = { version ="1.28.0", features = ["full"] }
anyhow = { version ="1.0.71" }
error-stack = {version="0.4.0", features=["std","anyhow","hooks"]}
pallas = "0.18.1"
pallas-primitives = "0.18.1"
pallas-traverse = "0.18.1"
pallas = "0.22.0"
pallas-primitives = "0.22.0"
pallas-traverse = "0.22.0"
pallas-crypto = "*"
#pallas-network = { path = "C:/Users/oblink/Documents/GitHub/pallas/pallas-network" }
#pallas_network = { git = "https://github.com/OlofBlomqvist/pallas", branch="feat-win-pipes", package="pallas-network" }
Expand All @@ -23,18 +23,18 @@ tonic = "*"
#marlowe_lang = { path = "../../marlowe_rust",features=["unstable","utils"] }
marlowe_lang = { git = "https://github.com/OlofBlomqvist/marlowe_lang",features=["unstable","utils"] }
hex = "0.4.3"
async-graphql = "6.0.4"
async-graphql-warp = "6.0.4"
async-graphql = "7.0.1"
async-graphql-warp = "7.0.1"
async-trait = "0.1.68"
serde_json = "1.0.96"
env_logger = "0.10.0"
env_logger = "0.11.1"
bs58 = "*"
ctrlc = "3.1"
reqwest = "*"
crossterm = "*"
clap = "4.3.21"
structopt = "0.3.26"
strum_macros = "0.25.2"
strum_macros = "0.26.1"
futures-timer = "3.0.2"
serde = "1.0.183"

Expand Down
10 changes: 6 additions & 4 deletions marlowe_indexer/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ impl MarloweSyncWorker {

}

if let Some(redeemers) = transaction.redeemers() {
let redeemers = transaction.redeemers();

if redeemers.len() > 0 {

let redeemer_plutus_data = &redeemers.iter().find(|r|r.index as usize ==index_of_input_in_this_tx)
.expect("because this transaction consumes an utxo from the marlowe validator, there MUST be a redeemer here.").data;
Expand Down Expand Up @@ -292,7 +294,7 @@ impl MarloweSyncWorker {
// in case of a tx closing the contract, there does not need to be a datum
let (datum_hash, datum,utxo_id,_original_datum_bytes) =
if let Some(o) = out_to_marlowe.first() {
let rr = read_marlowe_info_from_utxo(&o.1,&datums) ;
let rr = read_marlowe_info_from_utxo(&o.1,datums) ;
match rr {
Ok(d) => {
match d {
Expand Down Expand Up @@ -456,7 +458,7 @@ impl MarloweSyncWorker {

let tx_datums = transaction.plutus_data();

for d in &tx_datums {
for d in tx_datums {
datums.insert(
d.original_hash(),
d.raw_cbor()
Expand Down Expand Up @@ -637,7 +639,7 @@ pub enum MarloweDatumRes {
Raw(String,marlowe_lang::types::marlowe::MarloweDatum,Vec<u8>)
}

fn read_marlowe_info_from_utxo(o:&MultiEraOutput,datums:&[&pallas::codec::utils::KeepRaw<'_, pallas_primitives::babbage::PlutusData>]) -> Result<MarloweDatumRes,String> {
fn read_marlowe_info_from_utxo(o:&MultiEraOutput,datums:&[pallas::codec::utils::KeepRaw<'_, pallas_primitives::babbage::PlutusData>]) -> Result<MarloweDatumRes,String> {
match o.datum() {
Some(x) => {
match x {
Expand Down
2 changes: 2 additions & 0 deletions schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ input TransitionFilter {
issuesMatch: String
}

directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
schema {
query: QueryRoot
subscription: SubscriptionRoot
Expand Down

0 comments on commit 38d5fb0

Please sign in to comment.