From 4bbb8f1070018a968f6a56eb36e4fe65b7c2eb23 Mon Sep 17 00:00:00 2001 From: peroxy Date: Wed, 10 Apr 2024 13:39:17 +0200 Subject: [PATCH] Add staking boost entities --- packages/hubble-db/src/models/StakingBoostEntity.ts | 12 ++++++++++++ packages/hubble-db/src/models/index.ts | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 packages/hubble-db/src/models/StakingBoostEntity.ts diff --git a/packages/hubble-db/src/models/StakingBoostEntity.ts b/packages/hubble-db/src/models/StakingBoostEntity.ts new file mode 100644 index 00000000..ff68957a --- /dev/null +++ b/packages/hubble-db/src/models/StakingBoostEntity.ts @@ -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; diff --git a/packages/hubble-db/src/models/index.ts b/packages/hubble-db/src/models/index.ts index c74c64be..f0afd1da 100644 --- a/packages/hubble-db/src/models/index.ts +++ b/packages/hubble-db/src/models/index.ts @@ -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'; @@ -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';