diff --git a/indexer/configs/cardano_node.yml b/indexer/configs/cardano_node.yml index b39261bb..071b6bbe 100644 --- a/indexer/configs/cardano_node.yml +++ b/indexer/configs/cardano_node.yml @@ -1,10 +1,10 @@ source: type: cardano_net relay: - - relays-new.cardano-mainnet.iohk.io - - 3001 - # - preview-node.world.dev.cardano.org - # - 30002 +# - relays-new.cardano-mainnet.iohk.io +# - 3001 + - preview-node.world.dev.cardano.org + - 30002 # - preprod-node.world.dev.cardano.org # - 30000 @@ -12,7 +12,7 @@ sink: type: cardano db: type: postgres - database_url: postgresql://carp:1234@localhost:5432/carp_mainnet - network: mainnet # preview / preprod / testnet + database_url: postgresql://postgres:1234@localhost:5432/postgres + network: preview # preview / preprod / testnet start_block: diff --git a/indexer/tasks/src/multiera/dex/minswap_v1.rs b/indexer/tasks/src/multiera/dex/minswap_v1.rs index 3da6e031..c4fc42ff 100644 --- a/indexer/tasks/src/multiera/dex/minswap_v1.rs +++ b/indexer/tasks/src/multiera/dex/minswap_v1.rs @@ -144,7 +144,7 @@ impl Dex for MinSwapV1 { let target_asset = build_asset(parse_asset_item(0, 0)?, parse_asset_item(0, 1)?); // Get transaction output - let output_address_items = vec![ + let output_address_items = [ String::from("01"), // mainnet input_datum["fields"][1]["fields"][0]["fields"][0]["bytes"] .as_str() diff --git a/indexer/tasks/src/multiera/dex/sundaeswap_v1.rs b/indexer/tasks/src/multiera/dex/sundaeswap_v1.rs index 1d9ae941..b14bb4b5 100644 --- a/indexer/tasks/src/multiera/dex/sundaeswap_v1.rs +++ b/indexer/tasks/src/multiera/dex/sundaeswap_v1.rs @@ -134,7 +134,7 @@ impl Dex for SundaeSwapV1 { } // Get transaction output - let output_address_items = vec![ + let output_address_items = [ String::from("01"), // mainnet input_datum["fields"][1]["fields"][0]["fields"][0]["fields"][0]["fields"][0] ["bytes"]