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

feat: store source event data as idx_transfer #467

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

purplesmoke05
Copy link
Member

Close #465

Changes

  • Added new columns about source event data to IDXTransfer
  • Added some logic to batch indexer_Transfer so that source event data is stored.
  • Added some query param to /bond/transfers/{token_address} and /share/transfers/{token_address}
  • reorder existing imports

Check List

  • Migrations about server_default value for existing record
  • API document updates
  • Unit tests coverages

Comment on lines +26 to +32
# NOTE: Manually modified
# 1. Added server_default arg to migrate existing record.
# 2. Added alter column operation to remove server default setting.
op.add_column('idx_transfer', sa.Column('source_event', sa.String(length=50), server_default='Transfer', nullable=False), schema=get_db_schema())
op.alter_column('idx_transfer', 'source_event',
existing_type=sa.String(length=50),
existing_nullable=False, server_default=None, schema=get_db_schema())
Copy link
Member Author

@purplesmoke05 purplesmoke05 Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually modified so as to fill Transfer value to source_event column.

@purplesmoke05 purplesmoke05 marked this pull request as ready for review January 17, 2023 09:42
@YoshihitoAso YoshihitoAso merged commit c68d76d into dev-23.3 Jan 18, 2023
@YoshihitoAso YoshihitoAso deleted the feature/#465 branch January 18, 2023 04:25
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.

[FEATURE] Add data field to IDXTransfer to represent additional data derived from unlock
2 participants