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

shovel: save static data to integration table #211

Open
ryandotsmith opened this issue Dec 1, 2023 · 0 comments
Open

shovel: save static data to integration table #211

ryandotsmith opened this issue Dec 1, 2023 · 0 comments

Comments

@ryandotsmith
Copy link
Member

Let's say I have two events that are related to the same contract and the events both have the same type of data. For example: AddKey(address,bytes32[2]) and RemoveKey(address,bytes32[2]). It would be nice to save both of these events to the same pg table and for that table to have a column named "kind" where I can set values like "add" or "remove". Or possible I may want to set the event name on the table.

...
"event": {
  "name": "AddKey",
  "inputs": [
    {"name": "addr", "type": "address", "column": "addr"},
    {"name": "keys", "type": "bytes32[2]", "column": "key"}
  ],
  "extra": [
    {"name": "AddKey", "type": "text", "column": "kind"}
  ]
}
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

No branches or pull requests

1 participant