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

add transactions table in schema md #40

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions schemas/general/SCHEMA.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,23 @@ User level token balance snapshots.
| token_amount | The amount of the token at the given snapshot timestamp (decimal normalized). | number |
| token_amount_usd | The amount of the token in USD. | number |

### General Transactions

Generic table at a user and transaction level

| Property | Description | Type |
|-------------------------|-----------------------------------------------------------|--------|
| timestamp | The timestamp of the transaction. | timestamp |
| block_date | A date representation of the timestamp (ie, YYYY-MM-DD HH:MM:SS) | date |
| chain_id | The standard chain id. | number |
| block_number | The ordinal block number. | number |
| signer_address | The transaction signer's address. | varbinary |
| transaction_hash | The unique identifier for this transaction. | varbinary |
| log_index | The unique identifier for this transaction. | number |
| event_name | The string name for the event associated with log_index, corresponds to the action taken by the user (ie, deposit, withdrawal, borrow, repay, liquidation, flashloan). | string |
| transaction_fee | The total amount of gas used in the transactions occurring in the given snapshot (in the native gas amount). | number |
| transaction_fee_usd | (Optional, if possible) The total amount of gas used in USD terms in the given snapshot. | number |

### User Transaction Fee Snapshot

Gas and transaction snapshot data at the user level.
Expand Down