Skip to content

Commit

Permalink
Update multi wallet balance (#1315)
Browse files Browse the repository at this point in the history
* Add user balance for associated wallets

* Fix lint

* Update multi wallet balance

* Add staking and delegate contract

* Fix lint

Co-authored-by: Ubuntu <ubuntu@ip-172-31-32-137.ec2.internal>
  • Loading branch information
jowlee and Ubuntu committed Mar 18, 2021
1 parent 1b1ab15 commit 59d220c
Show file tree
Hide file tree
Showing 9 changed files with 1,655 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""add user associated wallet balance
Revision ID: 80ed43392e52
Revises: 5a2f90f7def1
Create Date: 2021-03-16 15:05:06.396266
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '80ed43392e52'
down_revision = '5a2f90f7def1'
branch_labels = None
depends_on = None


def upgrade():
op.add_column('user_balances', sa.Column('associated_wallets_balance', sa.String(), server_default='0', nullable=False))


def downgrade():
op.drop_column('user_balances', 'associated_wallets_balance')

0 comments on commit 59d220c

Please sign in to comment.