Skip to content

Commit

Permalink
Add staking boost entities
Browse files Browse the repository at this point in the history
  • Loading branch information
peroxy committed Apr 10, 2024
1 parent 572deea commit 4bbb8f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/hubble-db/src/models/StakingBoostEntity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export interface StakingBoostEntity {
id: bigint;
boost: string;
staked_amount: string;
valid_from: Date;
valid_to: Date;
updated_on: Date;
owner_id: number;
points_source_id: number;
farm_id: number;
}
export default StakingBoostEntity;
2 changes: 2 additions & 0 deletions packages/hubble-db/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export * from './AirdropEntity';
export * from './PointsSourceBoostEntity';
export * from './PointsOwnerBoostEntity';
export * from './PointsOwnerBoostSourceEntity';
export * from './StakingBoostEntity';

export const CLUSTER_TABLE: string = 'cluster';
export const COLLATERAL_TABLE: string = 'collateral';
Expand Down Expand Up @@ -139,6 +140,7 @@ export const AIRDROP_SOURCE_TABLE = 'airdrop_source';
export const POINTS_SOURCE_BOOST_TABLE = 'points_source_boost';
export const POINTS_OWNER_BOOST_SOURCE_TABLE = 'points_owner_boost_source';
export const POINTS_OWNER_BOOST_TABLE = 'points_owner_boost';
export const STAKING_BOOST_TABLE = 'staking_boost';

export type RESAMPLE_FREQUENCY = 'hour' | 'day';
export const HOURLY_FREQUENCY = 'hour';
Expand Down

0 comments on commit 4bbb8f1

Please sign in to comment.