Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: input data format for multi chain support #143

Merged
merged 11 commits into from
Sep 13, 2024
Merged

Conversation

rkdud007
Copy link
Member

@rkdud007 rkdud007 commented Sep 12, 2024

support multiple destination chain -- for now its evm

{
  "destinationChainId": "ETHEREUM_SEPOLIA",
  "tasks": [
    {
      "type": "DatalakeCompute",
      "datalake": {
        "type": "BlockSampled",
        "chainId": "ETHEREUM_SEPOLIA",
        "blockRangeStart": 6375109,
        "blockRangeEnd": 6375109,
        "increment": 1,
        "sampledProperty": "storage.0xaFE8A72C86d5895DD6616daB26d4b736Cf22472f.0x0000000000000000000000000000000000000000000000000000000000000010"
      },
      "compute": {
        "aggregateFnId": "avg"
      }
    },
    {
      "type": "DatalakeCompute",
      "datalake": {
        "type": "BlockSampled",
        "chainId": "ETHEREUM_MAINNET",
        "blockRangeStart": 100,
        "blockRangeEnd": 110,
        "increment": 1,
        "sampledProperty": "header.number"
      },
      "compute": {
        "aggregateFnId": "avg"
      }
    }
  ]
}

@rkdud007
Copy link
Member Author

turn out i really need huge refactor -- related to #128

@rkdud007 rkdud007 marked this pull request as ready for review September 13, 2024 05:14
@rkdud007 rkdud007 merged commit a00269c into dev Sep 13, 2024
1 check passed
@rkdud007 rkdud007 deleted the feat/input-format branch September 13, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant