-
Notifications
You must be signed in to change notification settings - Fork 50
Add raw transactions #1138
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 raw transactions #1138
Conversation
| hash = Column( | ||
| VARCHAR(256), primary_key=True, unique=True, nullable=False, index=True | ||
| ) | ||
| block_number = Column( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not ForeignKey?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will mean nullable ForeignKey in labels so i suggest make normalization later if we need.
kompotkot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg
Added raw transactions table for store raw transactions with values for each transaction which was parent of indexed
tx_callorevent.table structure
l2 tables contain
l1_block_number.Running Locally
1) Clone the repository
Then navigate to the directory:
cd api/moonstreamdb-v32) Create and activate a virtual environment
python3 -m venv .moonstreamdb source .moonstreamdb/bin/activate3) Install dependencies
pip install -e .4) Set up Alembic configuration
Copy the sample configuration file to your dev config:
Edit the “sqlalchemy.url” in alembic.dev.ini to match your local database connection string.
If your database operates in the “public” schema, set:
5) Run Alembic migrations
Run the migrations with:
This will initialize or update your local database schema to the latest version.