FuelLabs / fuel-indexer

*Archived* ๐Ÿ—ƒ The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
140 stars 67 forks source link

Fails to handle LogData when using the indexer #982

Closed chlenc closed 1 year ago

chlenc commented 1 year ago

Issue: Fails to handle LogData when using the indexer

Description

I am attempting to retrieve contract log data using the indexer according to the instructions provided in the indexer reference guide. However, it seems that the handle_log_data function is not being called as expected.

I have created a simple indexer with two handlers defined in the lib.rs file of the compolabs_index_mod module. The handle_block handler is responsible for searching and printing ProxySendFundsToPredicateParams in the transaction receipts of each block. The handle_log_data function is intended to catch and print instances of the ProxySendFundsToPredicateParams type. I expected to see logs from both the handle_block and handle_log_data functions, but only the log from handle_block is appearing.

Here is the relevant code snippet:

extern crate alloc;
use fuel_indexer_utils::prelude::*;

const PROXY: &str = "0x8924a38ac11879670de1d0898c373beb1e35dca974c4cab8a70819322f6bd9c4";

#[indexer(manifest = "spark_indexer.manifest.yaml")]
pub mod compolabs_index_mod {

    fn handle_block(block: BlockData) {
        let height = block.height;
        let txs = block.transactions.len();
        let proxy_contract_id = ContractId::from_str(PROXY).unwrap();

        Logger::info(&format!("๐Ÿงฑ Block height: {} | transactions: {}", height, txs));

        for tx in block.transactions.clone() {
            match tx.status {
                fuel::TransactionStatus::Failure { .. } => continue,
                _ => (),
            }

            tx.receipts.iter().for_each(|receipt| {
                if receipt.data().is_some() {
                    let data = ProxySendFundsToPredicateParams::try_from(receipt.data().unwrap());
                    let id = receipt.id();
                    if data.is_ok() && id.is_some() && id.unwrap().to_owned() == proxy_contract_id {
                        Logger::info(&format!("๐Ÿ“ฌ Order: {:#?}", data));
                    }
                }
            });
        }
    }

    fn handle_log_data(data: ProxySendFundsToPredicateParams) {
        Logger::info(format!("โœจ ProxySendFundsToPredicateParams \n{:?}", data).as_str());
    }
}

Expected Behavior

I expected to see logs from both the handle_block and handle_log_data functions when running the indexer.

Actual Behavior

Only the log output from the handle_block function is appearing. The handle_log_data function does not seem to be called.

Steps to Reproduce

  1. Switch to the latest version of the indexer.
    fuelup toolchain install latest   
    fuelup default latest
  2. Clone the repo and go to the handle-log-data-issue branch
    git clone https://github.com/compolabs/spark-indexer.git
    cd spark-indexer/   
    git checkout handle-log-data-issue
  3. Run a postgres database in a docker container
    docker run -d -p 5432:5432 --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres
  4. Build and deploy the indexer
    fuel-indexer run --run-migrations --fuel-node-host beta-3.fuel.network --fuel-node-port 80 --postgres-host 127.0.0.1 --postgres-port 5432 --postgres-password mysecretpassword --postgres-user postgres
  5. Deploy the indexer by opening a new terminal tab in the root repo directory:
    forc index deploy

Environment

installed toolchains

beta-3-aarch64-apple-darwin latest-aarch64-apple-darwin (default) forc-0.39-toolchain

active toolchain

latest-aarch64-apple-darwin (default) forc : 0.40.1

fuels versions

forc : 0.42



[foo.txt](https://github.com/FuelLabs/fuel-indexer/files/11666573/foo.txt)
ra0x3 commented 1 year ago

@chlenc

extern crate alloc;
use fuel_indexer_utils::prelude::*;

const PROXY: &str = "0x8924a38ac11879670de1d0898c373beb1e35dca974c4cab8a70819322f6bd9c4";

#[indexer(manifest = "spark_indexer.manifest.yaml")]
pub mod compolabs_index_mod {

    fn handle_block(block_data: BlockData) {
        // do stuff...
    }

    fn handle_log_data(block: BlockData) {
        Logger::info("I found a block!");
        for transaction in block_data.transactions.iter() {
            for receipt in transaction.receipts.iter() {
                match receipt {
                    fuel::Receipt::LogData { .. } => {
                        Logger::info("I found a LogData receipt!");
                    }
                    _ => {
                        Logger::info("Not handling this receipt type.");
                    }
                }
            }
        }
    }
}
chlenc commented 1 year ago
    fn handle_log_data(block: BlockData) {
        Logger::info("I found a block!");
        for transaction in block_data.transactions.iter() {
            for receipt in transaction.receipts.iter() {
                match receipt {
                    fuel::Receipt::LogData { .. } => {
                        Logger::info("I found a LogData receipt!");
                    }
                    _ => {
                        Logger::info("Not handling this receipt type.");
                    }
                }
            }
        }
    }

I did it, the output looks like that

2023-06-06T15:14:09.413031Z  INFO fuel_indexer::executor: 153: Stopping indexer at the specified end_block: 926400
2023-06-06T15:14:10.586343Z  INFO fuel_indexer::executor: 153: Stopping indexer at the specified end_block: 926400
2023-06-06T15:14:10.614036Z  INFO fuel_indexer::ffi: 110: ๐Ÿงฑ Block height: 926400 | transacrions: 52
2023-06-06T15:14:10.614111Z  INFO fuel_indexer::ffi: 110: ๐Ÿ“ฌ Order: Ok(
    ProxySendFundsToPredicateParams {
        predicate_root: 0xc4024abfaf2e26f59c150403c2c04b53cfa5764eb386e8c97a728c9f85b56a3c,
        asset_0: 0x56fb8789a590ea9c12af6fe6dc2b43f347700b049d4f823fd4476c6f366af201,
        asset_1: 0x5381bbd1cff41519062c8531ec30e8ea1a2d752e59e4ac884068d3821e9f0093,
        maker: 0xccc4f9249536cf89ab0f31bb52fa06c00ea0387dcac5830924ecf56f2dded3a5,
        min_fulfill_amount_0: 1,
        price: 300000000,
        asset_0_decimals: 6,
        asset_1_decimals: 9,
        price_decimals: 9,
    },
) 
2023-06-06T15:14:10.614148Z  INFO fuel_indexer::ffi: 110: I found a block!
2023-06-06T15:14:10.614151Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614153Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614203Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614212Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614215Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614216Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614218Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614220Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614222Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614224Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614225Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614227Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614229Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614231Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614233Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614234Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614279Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614282Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614284Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614285Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614287Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614289Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614294Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614296Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614325Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614331Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614333Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614335Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614337Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614340Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614343Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614345Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614346Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614349Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614350Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614352Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614354Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614598Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614604Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614606Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614608Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614610Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614612Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614614Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614616Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614680Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614683Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614685Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614687Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614690Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614693Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614695Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614697Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614699Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614701Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614703Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614705Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614706Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614761Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614767Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614770Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614772Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614774Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614776Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614777Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614779Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614819Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614822Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614824Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614826Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614827Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614829Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614831Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614833Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614929Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614940Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614942Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614945Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614947Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614948Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.614950Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614952Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614954Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.614956Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615019Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615024Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615026Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615028Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615030Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615031Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615033Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615035Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615037Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615039Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615041Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615073Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615076Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615078Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615080Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615082Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615083Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615085Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615087Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615089Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615090Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615097Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615099Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615101Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615102Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615104Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615106Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615107Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615109Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615134Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615137Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615139Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615140Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615142Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615144Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615145Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615147Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615180Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615183Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615185Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615187Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615189Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615191Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615192Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615194Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615196Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615197Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615223Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615226Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615228Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615230Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615232Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615234Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615235Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615237Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615274Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615277Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615279Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615280Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615282Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615284Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615286Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615287Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615316Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615319Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615320Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615322Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615324Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615326Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615328Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615329Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615378Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615381Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615383Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615384Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615386Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615389Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615392Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615394Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615396Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615398Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615400Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615401Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615404Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615405Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615439Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615442Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615444Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615446Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615448Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615449Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615451Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615453Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615455Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615457Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615459Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615460Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615462Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615464Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615489Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615491Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615493Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615495Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615497Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615498Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615500Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615502Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615520Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615523Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615524Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615526Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615528Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615530Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615531Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615533Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615598Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615601Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615602Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615604Z  INFO fuel_indexer::ffi: 110: I found a LogData receipt!
2023-06-06T15:14:10.615606Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:10.615608Z  INFO fuel_indexer::ffi: 110: Not handling this receipt type.
2023-06-06T15:14:11.559092Z  INFO fuel_indexer::executor: 153: Stopping indexer at the specified end_block: 926400
2023-06-06T15:14:12.522483Z  INFO fuel_indexer::executor: 153: Stopping indexer at the specified end_block: 926400
2023-06-06T15:14:13.454501Z  INFO fuel_indexer::executor: 153: Stopping indexer at the specified end_block: 926400
ra0x3 commented 1 year ago

@chlenc Sweet! It works! There's your data. (unless I'm misunderstanding something)

ra0x3 commented 1 year ago

@chlenc

chlenc commented 1 year ago

Awesome! Seems to be there is LogData in some receipts. But fn handle_log_data(block: BlockData) looks more like a handle_block handler (I will use your version of code in my indexer because it is better ๐Ÿค“), so the question more like how to make fn handle_log_data(data: ProxySendFundsToPredicateParams) works

Here is my contract log calling, maybe I'm doing something wrong here https://github.com/compolabs/ethglobal-predicate/blob/58ac7ef13faaaf84cddfa7d199fa88be359834c8/proxy-contract/src/main.sw#L34

chlenc commented 1 year ago

@chlenc

  • Could you show us your expanded indexer?
  • You will have to:

    • [ ] Switch to nightly rustup override set nightly-aarch64-apple-darwin
    • [ ] Go to your indexer root cd /path/to/my-indexer
    • [ ] Expand your module cargo rustc --profile=check -- -Zunpretty=expanded > foo.txt
    • [ ] Upload foo.txt to this issue

Let me check ๐Ÿซก

chlenc commented 1 year ago

@ra0x3

foo.txt

Switch to nightly rustup override set nightly-aarch64-apple-darwin

>>> rustup override set nightly-aarch64-apple-darwin info: syncing channel updates for 'nightly-aarch64-apple-darwin' info: latest update on 2023-06-06, rust version 1.72.0-nightly (e6d4725c7 2023-06-05) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' 13.6 MiB / 13.6 MiB (100 %) 6.7 MiB/s in 2s ETA: 0s info: downloading component 'rust-std' 23.6 MiB / 23.6 MiB (100 %) 7.7 MiB/s in 3s ETA: 0s info: downloading component 'rustc' 52.8 MiB / 52.8 MiB (100 %) 7.5 MiB/s in 7s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 13.6 MiB / 13.6 MiB (100 %) 3.4 MiB/s in 2s ETA: 0s info: installing component 'rust-std' 23.6 MiB / 23.6 MiB (100 %) 19.5 MiB/s in 1s ETA: 0s info: installing component 'rustc' 52.8 MiB / 52.8 MiB (100 %) 21.7 MiB/s in 2s ETA: 0s info: installing component 'rustfmt' info: override toolchain for '/Users/alexey/projects/fuel/spark_indexer' set to 'nightly-aarch64-apple-darwin' nightly-aarch64-apple-darwin installed - rustc 1.72.0-nightly (e6d4725c7 2023-06-05)

Expand your module cargo rustc --profile=check -- -Zunpretty=expanded > foo.txt

^^/p/f/spark_indexer >>> cargo rustc --profile=check -- -Zunpretty=expanded > foo.txt (*handle-log-data-issue+13) 16:35:45 Updating crates.io index Downloaded ident_case v1.0.1 Downloaded getrandom v0.2.9 Downloaded cc v1.0.79 Downloaded Inflector v0.11.4 Downloaded once_cell v1.17.1 Downloaded convert_case v0.4.0 Downloaded darling_macro v0.13.4 Downloaded block-padding v0.1.5 Downloaded hash32 v0.2.1 Downloaded indexmap v1.9.3 Downloaded async-graphql-value v5.0.9 Downloaded hex v0.4.3 Downloaded byte-tools v0.3.1 Downloaded js-sys v0.3.63 Downloaded radium v0.3.0 Downloaded proc-macro-error-attr v1.0.4 Downloaded opaque-debug v0.3.0 Downloaded autocfg v1.1.0 Downloaded digest v0.9.0 Downloaded cfg-if v1.0.0 Downloaded fake-simd v0.1.2 Downloaded bytes v1.4.0 Downloaded block-buffer v0.9.0 Downloaded atty v0.2.14 Downloaded digest v0.8.1 Downloaded opaque-debug v0.2.3 Downloaded bech32 v0.9.1 Downloaded heck v0.3.3 Downloaded clap_lex v0.2.4 Downloaded wasm-bindgen-shared v0.2.86 Downloaded lazy_static v1.4.0 Downloaded itoa v1.0.6 Downloaded keccak v0.1.4 Downloaded heck v0.4.1 Downloaded ff v0.12.1 Downloaded generic-array v0.12.4 Downloaded base16ct v0.1.1 Downloaded block-buffer v0.7.3 Downloaded ecdsa v0.14.8 Downloaded cpufeatures v0.2.7 Downloaded async-graphql-parser v5.0.9 Downloaded generic-array v0.14.7 Downloaded base64ct v1.6.0 Downloaded byteorder v1.4.3 Downloaded bech32 v0.7.3 Downloaded darling v0.13.4 Downloaded bs58 v0.4.0 Downloaded form_urlencoded v1.1.0 Downloaded crypto-common v0.1.6 Downloaded either v1.8.1 Downloaded digest v0.10.7 Downloaded iana-time-zone v0.1.56 Downloaded fnv v1.0.7 Downloaded coins-bip39 v0.7.0 Downloaded proc-macro-error v1.0.4 Downloaded strsim v0.10.0 Downloaded hmac v0.12.1 Downloaded const-oid v0.9.2 Downloaded ahash v0.8.3 Downloaded blake2 v0.10.6 Downloaded clap_derive v3.2.25 Downloaded bitflags v1.3.2 Downloaded crypto-bigint v0.4.9 Downloaded stable_deref_trait v1.2.0 Downloaded derivative v2.2.0 Downloaded strum_macros v0.24.3 Downloaded subtle v2.5.0 Downloaded rfc6979 v0.3.1 Downloaded bincode v1.3.3 Downloaded base64 v0.12.3 Downloaded matchers v0.1.0 Downloaded anyhow v1.0.71 Downloaded derive_more v0.99.17 Downloaded darling_core v0.13.4 Downloaded secrecy v0.8.0 Downloaded block-buffer v0.10.4 Downloaded strum v0.24.1 Downloaded num-traits v0.2.15 Downloaded core-foundation-sys v0.8.4 Downloaded http v0.2.9 Downloaded bitvec v0.17.4 Downloaded der v0.6.1 Downloaded version_check v0.9.4 Downloaded hashbrown v0.13.2 Downloaded hashbrown v0.12.3 Downloaded tinyvec_macros v0.1.1 Downloaded tai64 v4.0.0 Downloaded tracing-attributes v0.1.24 Downloaded bumpalo v3.13.0 Downloaded aho-corasick v1.0.1 Downloaded tracing-serde v0.1.3 Downloaded strum v0.21.0 Downloaded clap v3.2.25 Downloaded wasm-bindgen-macro v0.2.86 Downloaded regex-syntax v0.6.29 Downloaded idna v0.3.0 Downloaded spki v0.6.0 Downloaded quote v1.0.27 Downloaded zeroize_derive v1.4.2 Downloaded rand_chacha v0.3.1 Downloaded num-integer v0.1.45 Downloaded zeroize v1.6.0 Downloaded semver v1.0.17 Downloaded sha2 v0.8.2 Downloaded serde_with_macros v1.5.2 Downloaded sha2 v0.10.6 Downloaded percent-encoding v2.2.0 Downloaded thiserror v1.0.40 Downloaded termcolor v1.2.0 Downloaded password-hash v0.4.2 Downloaded ripemd v0.1.3 Downloaded nu-ansi-term v0.46.0 Downloaded overload v0.1.1 Downloaded sha2 v0.9.9 Downloaded signature v1.6.4 Downloaded rustc_version v0.4.0 Downloaded pbkdf2 v0.11.0 Downloaded linked-hash-map v0.5.6 Downloaded tracing-log v0.1.3 Downloaded time v0.1.45 Downloaded wasm-bindgen-macro-support v0.2.86 Downloaded thread_local v1.1.7 Downloaded thiserror-impl v1.0.40 Downloaded ppv-lite86 v0.2.17 Downloaded yaml-rust v0.4.5 Downloaded pkcs8 v0.9.0 Downloaded rustversion v1.0.12 Downloaded proc-macro2 v1.0.58 Downloaded ryu v1.0.13 Downloaded rand_core v0.6.4 Downloaded log v0.4.17 Downloaded os_str_bytes v6.5.0 Downloaded smallvec v1.10.0 Downloaded wasm-bindgen-backend v0.2.86 Downloaded typenum v1.16.0 Downloaded pin-project-lite v0.2.9 Downloaded serde_yaml v0.8.26 Downloaded tracing-core v0.1.31 Downloaded unicode-ident v1.0.9 Downloaded sharded-slab v0.1.4 Downloaded ucd-trie v0.1.5 Downloaded fuels-core v0.40.0 Downloaded unicode-bidi v0.3.13 Downloaded textwrap v0.16.0 Downloaded base58check v0.1.0 Downloaded serde v1.0.163 Downloaded serde_derive v1.0.163 Downloaded fuels-code-gen v0.40.0 Downloaded fuel-indexer-plugin v0.16.0 Downloaded fuel-indexer-macros v0.16.0 Downloaded fuel-core-types v0.17.12 Downloaded fuel-types v0.26.3 Downloaded fuels-macros v0.40.0 Downloaded fuel-asm v0.26.3 Downloaded url v2.3.1 Downloaded fuel-indexer-database-types v0.16.0 Downloaded tinyvec v1.6.0 Downloaded fuel-indexer-types v0.16.0 Downloaded memchr v2.5.0 Downloaded rand v0.8.5 Downloaded fuel-core-storage v0.17.11 Downloaded tracing v0.1.37 Downloaded group v0.12.1 Downloaded fuel-crypto v0.26.3 Downloaded fuel-indexer-schema v0.16.0 Downloaded fuel-tx v0.26.3 Downloaded borrown v0.1.0 Downloaded fuel-abi-types v0.2.1 Downloaded cobs v0.2.3 Downloaded fuel-storage v0.26.3 Downloaded fuel-indexer-utils v0.16.0 Downloaded coins-core v0.7.0 Downloaded fuel-core-chain-config v0.17.11 Downloaded fuel-indexer-lib v0.16.0 Downloaded base58 v0.1.0 Downloaded secp256k1 v0.24.3 Downloaded serde_with v1.14.0 Downloaded coins-bip32 v0.7.0 Downloaded regex-automata v0.1.10 Downloaded unicode-segmentation v1.10.1 Downloaded itertools v0.10.5 Downloaded pest v2.6.0 Downloaded fuels v0.40.0 Downloaded fuels-types v0.40.0 Downloaded sec1 v0.3.0 Downloaded fuel-merkle v0.26.3 Downloaded elliptic-curve v0.12.3 Downloaded strum_macros v0.21.1 Downloaded postcard v1.0.4 Downloaded unicode-normalization v0.1.22 Downloaded serde_json v1.0.96 Downloaded wasm-bindgen v0.2.86 Downloaded tracing-subscriber v0.3.17 Downloaded syn v1.0.109 Downloaded fuel-vm v0.26.3 Downloaded heapless v0.7.16 Downloaded regex v1.8.2 Downloaded syn v2.0.16 Downloaded regex-syntax v0.7.2 Downloaded k256 v0.11.6 Downloaded tokio v1.28.1 Downloaded chrono v0.4.25 Downloaded libc v0.2.144 Downloaded sha3 v0.10.8 Downloaded secp256k1-sys v0.6.1 Downloaded 205 crates (13.1 MB) in 2.05s (largest was `secp256k1-sys` at 2.5 MB) Compiling proc-macro2 v1.0.58 Compiling quote v1.0.27 Compiling unicode-ident v1.0.9 Compiling version_check v0.9.4 Compiling typenum v1.16.0 Compiling cfg-if v1.0.0 Compiling serde v1.0.163 Compiling once_cell v1.17.1 Compiling libc v0.2.144 Compiling autocfg v1.1.0 Compiling log v0.4.17 Compiling generic-array v0.14.7 Compiling syn v1.0.109 error[E0463]: can't find crate for `core` | = note: the `wasm32-unknown-unknown` target may not be installed = help: consider downloading the target with `rustup target add wasm32-unknown-unknown` = help: consider building the standard library from source with `cargo build -Zbuild-std` error[E0463]: can't find crate for `compiler_builtins` For more information about this error, try `rustc --explain E0463`. error: could not compile `cfg-if` (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... ^^/p/f/spark_indexer >>> rustup target add wasm32-unknown-unknown (101) (*handle-log-data-issue+13) 16:37:08 info: downloading component 'rust-std' for 'wasm32-unknown-unknown' info: installing component 'rust-std' for 'wasm32-unknown-unknown' ^^/p/f/spark_indexer >>> cargo rustc --profile=check -- -Zunpretty=expanded > foo.txt (*handle-log-data-issue+13) 16:37:25 Compiling proc-macro2 v1.0.58 Checking cfg-if v1.0.0 Compiling thiserror v1.0.40 Compiling log v0.4.17 Compiling typenum v1.16.0 Compiling libc v0.2.144 Compiling syn v1.0.109 Compiling wasm-bindgen-shared v0.2.86 Compiling serde v1.0.163 Compiling bumpalo v3.13.0 Compiling quote v1.0.27 Compiling syn v2.0.16 Compiling getrandom v0.2.9 Compiling generic-array v0.14.7 Compiling rand_core v0.6.4 Compiling serde_json v1.0.96 Compiling wasm-bindgen v0.2.86 Checking subtle v2.5.0 Compiling num-traits v0.2.15 Compiling cc v1.0.79 Compiling ahash v0.8.3 Compiling memchr v2.5.0 Checking crypto-common v0.1.6 Checking block-buffer v0.10.4 Compiling lazy_static v1.4.0 Compiling digest v0.10.7 Compiling num-integer v0.1.45 Compiling ryu v1.0.13 Compiling ppv-lite86 v0.2.17 Compiling itoa v1.0.6 Compiling rand_chacha v0.3.1 Compiling semver v1.0.17 Compiling anyhow v1.0.71 Compiling cpufeatures v0.2.7 Compiling rand v0.8.5 Compiling either v1.8.1 Compiling fnv v1.0.7 Checking once_cell v1.17.1 Checking base64ct v1.6.0 Compiling strsim v0.10.0 Compiling secp256k1-sys v0.6.1 Compiling rustc_version v0.4.0 Checking byteorder v1.4.3 Compiling const-oid v0.9.2 Compiling ident_case v1.0.1 Compiling itertools v0.10.5 Checking generic-array v0.12.4 Compiling aho-corasick v1.0.1 Compiling darling_core v0.13.4 Compiling heapless v0.7.16 Checking byte-tools v0.3.1 Compiling wasm-bindgen-backend v0.2.86 Compiling convert_case v0.4.0 Compiling regex-syntax v0.7.2 Compiling wasm-bindgen-macro-support v0.2.86 Compiling block-padding v0.1.5 Compiling sha2 v0.10.6 Compiling hmac v0.12.1 Compiling regex v1.8.2 Compiling ff v0.12.1 Compiling indexmap v1.9.3 Checking base16ct v0.1.1 Compiling group v0.12.1 Checking block-buffer v0.7.3 Compiling digest v0.8.1 Compiling fake-simd v0.1.2 Checking opaque-debug v0.2.3 Compiling sha2 v0.8.2 Compiling keccak v0.1.4 Compiling signature v1.6.4 Checking base58 v0.1.0 Checking sha3 v0.10.8 Checking base58check v0.1.0 Compiling blake2 v0.10.6 Compiling ripemd v0.1.3 Compiling derivative v2.2.0 Compiling derive_more v0.99.17 Compiling darling_macro v0.13.4 Compiling serde_derive v1.0.163 Compiling zeroize_derive v1.4.2 Compiling thiserror-impl v1.0.40 Compiling wasm-bindgen-macro v0.2.86 Compiling tracing-attributes v0.1.24 Checking zeroize v1.6.0 Checking js-sys v0.3.63 Checking der v0.6.1 Compiling crypto-bigint v0.4.9 Compiling spki v0.6.0 Checking pkcs8 v0.9.0 Compiling sec1 v0.3.0 Compiling darling v0.13.4 Compiling elliptic-curve v0.12.3 Compiling rfc6979 v0.3.1 Compiling ecdsa v0.14.8 Compiling serde_with_macros v1.5.2 Compiling base64 v0.12.3 Compiling bech32 v0.7.3 Checking password-hash v0.4.2 Compiling k256 v0.11.6 Compiling Inflector v0.11.4 Compiling heck v0.4.1 Compiling radium v0.3.0 Compiling unicode-segmentation v1.10.1 Compiling bs58 v0.4.0 Checking bitvec v0.17.4 Compiling heck v0.3.3 Compiling pbkdf2 v0.11.0 Compiling rustversion v1.0.12 Checking hashbrown v0.13.2 Compiling strum_macros v0.21.1 Checking hex v0.4.3 Checking bincode v1.3.3 Checking coins-core v0.7.0 Checking fuel-types v0.26.3 Compiling secp256k1 v0.24.3 Checking coins-bip32 v0.7.0 Compiling fuel-abi-types v0.2.1 Checking coins-bip39 v0.7.0 Compiling fuels-code-gen v0.40.0 Checking tracing-core v0.1.31 Checking borrown v0.1.0 Checking bitflags v1.3.2 Checking fuel-storage v0.26.3 Compiling fuel-merkle v0.26.3 Compiling fuel-crypto v0.26.3 Compiling fuel-asm v0.26.3 Compiling pin-project-lite v0.2.9 Compiling tai64 v4.0.0 Compiling strum_macros v0.24.3 Compiling proc-macro-error-attr v1.0.4 Checking fuel-tx v0.26.3 Checking tracing v0.1.37 Compiling fuels-macros v0.40.0 Checking secrecy v0.8.0 Compiling hash32 v0.2.1 Compiling proc-macro-error v1.0.4 Checking fuel-vm v0.26.3 Compiling stable_deref_trait v1.2.0 Compiling core-foundation-sys v0.8.4 Compiling iana-time-zone v0.1.56 Checking time v0.1.45 Compiling tokio v1.28.1 Checking hashbrown v0.12.3 Compiling cobs v0.2.3 Checking postcard v1.0.4 Compiling chrono v0.4.25 Checking fuel-core-types v0.17.12 Compiling bytes v1.4.0 Compiling serde_with v1.14.0 Compiling block-buffer v0.9.0 Compiling digest v0.9.0 Checking opaque-debug v0.3.0 Compiling bech32 v0.9.1 Checking fuel-core-storage v0.17.11 Checking unicode-ident v1.0.9 Compiling sha2 v0.9.9 Compiling clap_derive v3.2.25 Checking tinyvec_macros v0.1.1 Compiling strum v0.21.0 Compiling tinyvec v1.6.0 Checking regex-syntax v0.6.29 Checking fuel-core-chain-config v0.17.11 Checking fuels-types v0.40.0 Compiling unicode-normalization v0.1.22 Checking regex-automata v0.1.10 Checking strum v0.24.1 Checking fuels-core v0.40.0 Compiling linked-hash-map v0.5.6 Checking ucd-trie v0.1.5 Compiling unicode-bidi v0.3.13 Compiling os_str_bytes v6.5.0 Compiling percent-encoding v2.2.0 Checking overload v0.1.1 Compiling matchers v0.1.0 Compiling nu-ansi-term v0.46.0 Checking yaml-rust v0.4.5 Checking form_urlencoded v1.1.0 Compiling pest v2.6.0 Compiling idna v0.3.0 Checking clap_lex v0.2.4 Compiling fuels v0.40.0 Checking tracing-log v0.1.3 Checking async-graphql-value v5.0.9 Compiling tracing-serde v0.1.3 Checking sharded-slab v0.1.4 Checking thread_local v1.1.7 Compiling atty v0.2.14 Checking textwrap v0.16.0 Compiling termcolor v1.2.0 Compiling smallvec v1.10.0 Checking http v0.2.9 Checking clap v3.2.25 Checking tracing-subscriber v0.3.17 Checking async-graphql-parser v5.0.9 Compiling serde_yaml v0.8.26 Checking fuel-indexer-types v0.16.0 Checking url v2.3.1 Checking fuel-indexer-database-types v0.16.0 Checking fuel-indexer-schema v0.16.0 Checking fuel-indexer-lib v0.16.0 Checking fuel-indexer-plugin v0.16.0 Compiling fuel-indexer-macros v0.16.0 Checking fuel-indexer-utils v0.16.0 Checking spark_indexer v0.0.0 (/Users/alexey/projects/fuel/spark_indexer) Finished dev [unoptimized + debuginfo] target(s) in 24.09s

chlenc commented 1 year ago

It was there

image

Just click here ๐Ÿ‘‡ foo.txt

ra0x3 commented 1 year ago

@chlenc

chlenc commented 1 year ago

@chlenc

  • Hm. Your expanded code looks correct ๐Ÿ‘Œ๐Ÿฝ
  • Could you show me your indexer manifest file?

https://github.com/compolabs/spark-indexer/blob/handle-log-data-issue/spark_indexer.manifest.yaml

ra0x3 commented 1 year ago

@chlenc

chlenc commented 1 year ago
  • Logger::info("foo");

That works, I can see the log

ra0x3 commented 1 year ago

Is handle_log_data2 being called?

chlenc commented 1 year ago

Is handle_log_data2 being called?

Yes, it was called So, I just tried to use contract_id: fuel13yj28zkprpukwr0p6zyccdemav0rth9fwnzv4w98pqvnytmtm8zqanjtv8 in the manifest, but this time made a small change as you texted before, and it's worse for me

I guess the problem was in the contract_id type, we should use the fuel.. format

ra0x3 commented 1 year ago

@chlenc

chlenc commented 1 year ago

Yes, you can close that, thanks a lot for your help ๐Ÿ’™๐Ÿ’š๐Ÿงก

chlenc commented 1 year ago

I'll create an issue about the 0x... format of addresses, but a bit late