@kamino-finance/kamino-db 8.0.41 → 8.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +20 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/kvault/KVaultAllocationStateEntity.d.ts +13 -0
- package/dist/models/kvault/{KVaultStateAllocationEntity.js → KVaultAllocationStateEntity.js} +1 -1
- package/dist/models/kvault/KVaultAllocationStateEntity.js.map +1 -0
- package/dist/models/kvault/KVaultHolderEntity.d.ts +4 -0
- package/dist/models/kvault/KVaultHolderEntity.js.map +1 -1
- package/dist/models/kvault/KVaultReserveRewardStateEntity.d.ts +8 -2
- package/dist/models/kvault/KVaultReserveRewardStateEntity.js.map +1 -1
- package/dist/models/kvault/KVaultReserveStateEntity.d.ts +8 -2
- package/dist/models/kvault/KVaultReserveStateEntity.js.map +1 -1
- package/dist/models/kvault/KVaultStateEntity.d.ts +4 -4
- package/dist/models/kvault/KVaultStateEntity.js.map +1 -1
- package/dist/models/kvault/index.d.ts +1 -1
- package/dist/models/kvault/index.js +1 -1
- package/dist/models/kvault/index.js.map +1 -1
- package/package.json +1 -1
- package/src/models/index.ts +15 -0
- package/src/models/kvault/KVaultAllocationStateEntity.ts +15 -0
- package/src/models/kvault/KVaultHolderEntity.ts +4 -0
- package/src/models/kvault/KVaultReserveRewardStateEntity.ts +10 -2
- package/src/models/kvault/KVaultReserveStateEntity.ts +10 -2
- package/src/models/kvault/KVaultStateEntity.ts +4 -4
- package/src/models/kvault/index.ts +1 -1
- package/dist/models/kvault/KVaultStateAllocationEntity.d.ts +0 -7
- package/dist/models/kvault/KVaultStateAllocationEntity.js.map +0 -1
- package/src/models/kvault/KVaultStateAllocationEntity.ts +0 -7
package/dist/models/index.d.ts
CHANGED
|
@@ -156,6 +156,9 @@ export declare const KVAULT_HOLDER_TABLE = "kvault_holder";
|
|
|
156
156
|
export declare const KVAULT_HOLDER_TOTAL_TABLE = "kvault_holder_total";
|
|
157
157
|
export declare const KVAULT_INSTRUCTION_TABLE = "kvault_instruction";
|
|
158
158
|
export declare const KVAULT_STATE_TABLE = "kvault_state";
|
|
159
|
+
export declare const KVAULT_RESERVE_STATE_TABLE = "kvault_reserve_state";
|
|
160
|
+
export declare const KVAULT_ALLOCATION_STATE_TABLE = "kvault_allocation_state";
|
|
161
|
+
export declare const KVAULT_RESERVE_REWARD_STATE_TABLE = "kvault_reserve_reward_state";
|
|
159
162
|
export declare const KVAULT_METRICS_TABLE = "kvault_metrics";
|
|
160
163
|
export declare const LIMO_ORDER_TABLE = "limo_order";
|
|
161
164
|
export declare const LIMO_ORDER_STATUS_TABLE = "limo_order_status";
|
|
@@ -187,6 +190,9 @@ export declare const GET_OBLIGATION_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_
|
|
|
187
190
|
export declare const GET_KVAULT_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
188
191
|
export declare const GET_KVAULT_HOLDER_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
189
192
|
export declare const GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
193
|
+
export declare const GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
194
|
+
export declare const GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
195
|
+
export declare const GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
190
196
|
export declare const GET_OWNER_NET_VALUE_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
191
197
|
export declare const GET_OWNER_NET_VALUE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
|
192
198
|
export declare const GET_STRATEGY_STATE_RESAMPLED_TABLE: (frequency: RESAMPLE_FREQUENCY) => string;
|
package/dist/models/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.STABLECOIN_TOKEN_TABLE = exports.POINTS_LEADERBOARD_BLACKLIST_TABLE = exports.STAKED_SOL_TOKEN_TABLE = exports.POINTS_LEADERBOARD_TABLE = exports.POINTS_TOTAL_TABLE = exports.POINTS_KLEND_TABLE = exports.POINTS_STRATEGIES_TABLE = exports.KLEND_OBLIGATION_TYPE_TABLE = exports.POINTS_SOURCE_TABLE = exports.KLEND_LEVERAGE_METRICS_TABLE = exports.FARM_REWARD_TABLE = exports.FARM_USER_STATE_TABLE = exports.FARM_USER_TABLE = exports.FARM_STATE_TABLE = exports.FARM_TABLE = exports.PRICE_TYPE_TABLE = exports.USER_METRICS_TABLE = exports.INSTRUCTION_TABLE = exports.KLEND_OBLIGATION_STATE_TABLE = exports.KLEND_RESERVE_STATE_TABLE = exports.KLEND_MARKET_STATE_TABLE = exports.KLEND_OBLIGATION_TABLE = exports.KLEND_RESERVE_TABLE = exports.KLEND_MARKET_TABLE = exports.METRICS_SOURCE_TABLE = exports.SIMULATOR_POOL_TABLE = exports.STRATEGY_METRICS_TABLE = exports.TRADE_POOL_TABLE = exports.TRADE_SOURCE_TABLE = exports.TRADE_AGGREGATOR_TABLE = exports.PROGRAM_ACCOUNT_TABLE = exports.TOKEN_MINT_TABLE = exports.TRADE_TABLE = exports.TOKEN_HISTORY_SOURCE_TABLE = exports.TOKEN_HISTORY_FIELD_TABLE = exports.TOKEN_HISTORY_TABLE = exports.PRICE_TABLE = exports.REWARD_EARNED_TABLE = exports.REWARD_TABLE = exports.WHIRLPOOL_STATE_TABLE = exports.WHIRLPOOL_TABLE = exports.SHARE_HOLDER_TABLE = exports.STRATEGY_STATE_TABLE = exports.SHARE_MINT_TABLE = exports.STRATEGY_TABLE = exports.TOKEN_TABLE = exports.VAULT_TABLE = exports.OWNER_TABLE = exports.DEX_TYPE = exports.CLUSTER_TABLE = void 0;
|
|
18
|
-
exports.
|
|
19
|
-
exports.API_SCHEMA = exports.GET_PRICE_RESAMPLED_TABLE = exports.GET_STRATEGY_STATE_RESAMPLED_TABLE = exports.GET_OWNER_NET_VALUE_RESAMPLED_TABLE = exports.GET_OWNER_NET_VALUE_TABLE = exports.GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = exports.GET_KVAULT_HOLDER_RESAMPLED_TABLE = exports.GET_KVAULT_STATE_RESAMPLED_TABLE = exports.GET_OBLIGATION_STATE_RESAMPLED_TABLE = exports.DAILY_FREQUENCY = exports.HOURLY_FREQUENCY = void 0;
|
|
18
|
+
exports.OWNER_SCREENING_CONFIG_TABLE = exports.OWNER_SCREENING_AUDIT_LOG_TABLE = exports.LOOKUP_TABLE_ACCOUNT = exports.LOOKUP_TABLE = exports.KSWAP_AGGREGATOR_TABLE = exports.KSWAP_LEADERBOARD_TABLE = exports.KSWAP_INSTRUCTION_TABLE = exports.REFERRAL_LEADERBOARD_TABLE = exports.REFERRED_OWNER_TABLE = exports.REFERRAL_CODE_TABLE = exports.KSWAP_TOKEN_TABLE = exports.OWNER_NET_VALUE_TABLE = exports.NOTIFICATION_TYPE_TABLE = exports.KLEND_NOTIFICATION_TABLE = exports.LIMO_WEEKLY_LEADERBOARD_TABLE = exports.LIMO_METRICS_TABLE = exports.LIMO_INSTRUCTION_TABLE = exports.LIMO_ORDER_TYPE_TABLE = exports.LIMO_ORDER_STATUS_TABLE = exports.LIMO_ORDER_TABLE = exports.KVAULT_METRICS_TABLE = exports.KVAULT_RESERVE_REWARD_STATE_TABLE = exports.KVAULT_ALLOCATION_STATE_TABLE = exports.KVAULT_RESERVE_STATE_TABLE = exports.KVAULT_STATE_TABLE = exports.KVAULT_INSTRUCTION_TABLE = exports.KVAULT_HOLDER_TOTAL_TABLE = exports.KVAULT_HOLDER_TABLE = exports.KVAULT_TABLE = exports.EPOCH_TABLE = exports.STAKING_YIELD_TABLE = exports.RECENT_SLOT_TABLE = exports.ACCOUNTING_BALANCE_TABLE = exports.ACCOUNTING_TRANSACTION_TABLE = exports.ACCOUNTING_CONFIG_TABLE = exports.OWNER_SCREENING_TABLE = exports.POINTS_STAKING_TABLE = exports.STAKING_BOOST_TABLE = exports.POINTS_OWNER_BOOST_TABLE = exports.POINTS_OWNER_BOOST_SOURCE_TABLE = exports.POINTS_SOURCE_BOOST_TABLE = exports.AIRDROP_SOURCE_TABLE = exports.AIRDROP_METRICS_TABLE = exports.AIRDROP_TABLE = exports.POINTS_TOTAL_HISTORY_TABLE = exports.STAKING_RATE_TABLE = exports.YIELD_TABLE = exports.KLEND_INSTRUCTION_TABLE = exports.KAMINO_INSTRUCTION_TABLE = exports.RAW_INSTRUCTION_TABLE = void 0;
|
|
19
|
+
exports.API_SCHEMA = exports.GET_PRICE_RESAMPLED_TABLE = exports.GET_STRATEGY_STATE_RESAMPLED_TABLE = exports.GET_OWNER_NET_VALUE_RESAMPLED_TABLE = exports.GET_OWNER_NET_VALUE_TABLE = exports.GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE = exports.GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE = exports.GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE = exports.GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = exports.GET_KVAULT_HOLDER_RESAMPLED_TABLE = exports.GET_KVAULT_STATE_RESAMPLED_TABLE = exports.GET_OBLIGATION_STATE_RESAMPLED_TABLE = exports.DAILY_FREQUENCY = exports.HOURLY_FREQUENCY = exports.REWARD_KVAULT_METRICS_TABLE = exports.REWARD_KVAULT_TABLE = exports.REPLAY_SAMPLE_TABLE = void 0;
|
|
20
20
|
__exportStar(require("./ClusterEntity"), exports);
|
|
21
21
|
__exportStar(require("./OwnerEntity"), exports);
|
|
22
22
|
__exportStar(require("./TokenEntity"), exports);
|
|
@@ -175,6 +175,9 @@ exports.KVAULT_HOLDER_TABLE = 'kvault_holder';
|
|
|
175
175
|
exports.KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';
|
|
176
176
|
exports.KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';
|
|
177
177
|
exports.KVAULT_STATE_TABLE = 'kvault_state';
|
|
178
|
+
exports.KVAULT_RESERVE_STATE_TABLE = 'kvault_reserve_state';
|
|
179
|
+
exports.KVAULT_ALLOCATION_STATE_TABLE = 'kvault_allocation_state';
|
|
180
|
+
exports.KVAULT_RESERVE_REWARD_STATE_TABLE = 'kvault_reserve_reward_state';
|
|
178
181
|
exports.KVAULT_METRICS_TABLE = 'kvault_metrics';
|
|
179
182
|
exports.LIMO_ORDER_TABLE = 'limo_order';
|
|
180
183
|
exports.LIMO_ORDER_STATUS_TABLE = 'limo_order_status';
|
|
@@ -226,6 +229,21 @@ const GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = (frequency) => {
|
|
|
226
229
|
return `${exports.KVAULT_HOLDER_TOTAL_TABLE}_${frequency}`;
|
|
227
230
|
};
|
|
228
231
|
exports.GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE;
|
|
232
|
+
const GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE = (frequency) => {
|
|
233
|
+
validateFrequency(frequency);
|
|
234
|
+
return `${exports.KVAULT_RESERVE_STATE_TABLE}_${frequency}`;
|
|
235
|
+
};
|
|
236
|
+
exports.GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE = GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE;
|
|
237
|
+
const GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE = (frequency) => {
|
|
238
|
+
validateFrequency(frequency);
|
|
239
|
+
return `${exports.KVAULT_ALLOCATION_STATE_TABLE}_${frequency}`;
|
|
240
|
+
};
|
|
241
|
+
exports.GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE = GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE;
|
|
242
|
+
const GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE = (frequency) => {
|
|
243
|
+
validateFrequency(frequency);
|
|
244
|
+
return `${exports.KVAULT_RESERVE_REWARD_STATE_TABLE}_${frequency}`;
|
|
245
|
+
};
|
|
246
|
+
exports.GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE = GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE;
|
|
229
247
|
const GET_OWNER_NET_VALUE_TABLE = (frequency) => {
|
|
230
248
|
validateFrequency(frequency);
|
|
231
249
|
return `owner_net_value_${frequency}`;
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,oDAAkC;AAClC,yDAAuC;AACvC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,gDAA8B;AAC9B,uDAAqC;AACrC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,oDAAkC;AAClC,0DAAwC;AACxC,gDAA8B;AAC9B,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,0DAAwC;AACxC,+DAA6C;AAC7C,uDAAqC;AACrC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,oDAAkC;AAClC,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,wDAAsC;AACtC,qDAAmC;AACnC,+DAA6C;AAC7C,sDAAo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E,EAAE;IACzE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,mBAAW,IAAI,SAAS,EAAE,CAAC;AACvC,CAAC,CAAC;AAHW,QAAA,yBAAyB,6BAGpC;AAEW,QAAA,UAAU,GAAW,KAAK,CAAC","sourcesContent":["export * from './ClusterEntity';\nexport * from './OwnerEntity';\nexport * from './TokenEntity';\nexport * from './StrategyEntity';\nexport * from './ShareMintEntity';\nexport * from './ShareHolderEntity';\nexport * from './StrategyStateEntity';\nexport * from './WhirlpoolEntity';\nexport * from './WhirlpoolStateEntity';\nexport * from './DexTypeEntity';\nexport * from './VaultEntity';\nexport * from './RewardEntity';\nexport * from './RewardEarnedEntity';\nexport * from './PriceEntity';\nexport * from './TokenHistoryEntity';\nexport * from './TokenHistorySourceEntity';\nexport * from './TokenHistoryFieldEntity';\nexport * from './ProgramAccountEntity';\nexport * from './TokenMintEntity';\nexport * from './TradeAggregatorEntity';\nexport * from './TradeEntity';\nexport * from './TradeSourceEntity';\nexport * from './StrategyMetricsEntity';\nexport * from './TradePoolEntity';\nexport * from './SimulatorPoolEntity';\nexport * from './MetricsSourceEntity';\nexport * from './KlendMarketEntity';\nexport * from './KlendMarketStateEntity';\nexport * from './KlendObligationEntity';\nexport * from './KLendObligationStateEntity';\nexport * from './KlendReserveEntity';\nexport * from './KlendReserveStateEntity';\nexport * from './KaminoInstructionEntity';\nexport * from './InstructionEntity';\nexport * from './UserMetricsEntity';\nexport * from './PriceTypeEntity';\nexport * from './FarmEntity';\nexport * from './FarmStateEntity';\nexport * from './FarmUserEntity';\nexport * from './FarmUserStateEntity';\nexport * from './FarmRewardEntity';\nexport * from './KlendLeverageMetricsEntity';\nexport * from './PointsTotalEntity';\nexport * from './PointsKlendEntity';\nexport * from './PointsStrategiesEntity';\nexport * from './PointsSourceEntity';\nexport * from './KlendObligationTypeEntity';\nexport * from './StakedSolTokenEntity';\nexport * from './StablecoinTokenEntity';\nexport * from './PointsLeaderboardBlacklistEntity';\nexport * from './KlendInstructionEntity';\nexport * from './RawInstructionEntity';\nexport * from './YieldEntity';\nexport * from './StakingRateEntity';\nexport * from './PointsTotalHistoryEntity';\nexport * from './AirdropMetricsEntity';\nexport * from './AirdropSourceEntity';\nexport * from './AirdropEntity';\nexport * from './PointsSourceBoostEntity';\nexport * from './PointsOwnerBoostEntity';\nexport * from './PointsOwnerBoostSourceEntity';\nexport * from './StakingBoostEntity';\nexport * from './PointsStakingEntity';\nexport * from './OwnerScreeningEntity';\nexport * from './accounting';\nexport * from './RecentSlotEntity';\nexport * from './EpochEntity';\nexport * from './StakingYieldEntity';\nexport * from './kvault';\nexport * from './limo';\nexport * from './KlendNotificationEntity';\nexport * from './NotificationTypeEntity';\nexport * from './OwnerNetValueEntity';\nexport * from './kswap';\nexport * from './referral';\nexport * from './LookupTableEntity';\nexport * from './LookupTableAccountEntity';\nexport * from './OwnerScreeningAuditLogEntity';\nexport * from './OwnerScreeningConfigEntity';\nexport * from './ReplaySampleEntity';\nexport * from './RewardKvaultEntity';\nexport * from './RewardKvaultMetricsEntity';\n\nexport const CLUSTER_TABLE: string = 'cluster';\nexport const DEX_TYPE: string = 'dex_type';\nexport const OWNER_TABLE: string = 'owner';\nexport const VAULT_TABLE: string = 'vault';\nexport const TOKEN_TABLE: string = 'token';\nexport const STRATEGY_TABLE: string = 'strategy';\nexport const SHARE_MINT_TABLE: string = 'share_mint';\nexport const STRATEGY_STATE_TABLE: string = 'strategy_state';\nexport const SHARE_HOLDER_TABLE: string = 'share_holder';\nexport const WHIRLPOOL_TABLE: string = 'whirlpool';\nexport const WHIRLPOOL_STATE_TABLE: string = 'whirlpool_state';\nexport const REWARD_TABLE = 'reward';\nexport const REWARD_EARNED_TABLE = 'reward_earned';\nexport const PRICE_TABLE = 'price';\nexport const TOKEN_HISTORY_TABLE = 'token_history';\nexport const TOKEN_HISTORY_FIELD_TABLE = 'token_history_field';\nexport const TOKEN_HISTORY_SOURCE_TABLE = 'token_history_source';\nexport const TRADE_TABLE = 'trade';\nexport const TOKEN_MINT_TABLE = 'token_mint';\nexport const PROGRAM_ACCOUNT_TABLE = 'program_account';\nexport const TRADE_AGGREGATOR_TABLE = 'trade_aggregator';\nexport const TRADE_SOURCE_TABLE = 'trade_source';\nexport const TRADE_POOL_TABLE = 'trade_pool';\nexport const STRATEGY_METRICS_TABLE = 'strategy_metrics';\nexport const SIMULATOR_POOL_TABLE = 'simulator_pool';\nexport const METRICS_SOURCE_TABLE = 'metrics_source';\nexport const KLEND_MARKET_TABLE = 'klend_market';\nexport const KLEND_RESERVE_TABLE = 'klend_reserve';\nexport const KLEND_OBLIGATION_TABLE = 'klend_obligation';\nexport const KLEND_MARKET_STATE_TABLE = 'klend_market_state';\nexport const KLEND_RESERVE_STATE_TABLE = 'klend_reserve_state';\nexport const KLEND_OBLIGATION_STATE_TABLE = 'klend_obligation_state';\nexport const INSTRUCTION_TABLE = 'instruction';\nexport const USER_METRICS_TABLE = 'user_metrics';\nexport const PRICE_TYPE_TABLE = 'price_type';\nexport const FARM_TABLE = 'farm';\nexport const FARM_STATE_TABLE = 'farm_state';\nexport const FARM_USER_TABLE = 'farm_user';\nexport const FARM_USER_STATE_TABLE = 'farm_user_state';\nexport const FARM_REWARD_TABLE = 'farm_reward_state';\nexport const KLEND_LEVERAGE_METRICS_TABLE = 'klend_leverage_metrics';\nexport const POINTS_SOURCE_TABLE = 'points_source';\nexport const KLEND_OBLIGATION_TYPE_TABLE = 'klend_obligation_type';\nexport const POINTS_STRATEGIES_TABLE = 'points_strategies';\nexport const POINTS_KLEND_TABLE = 'points_klend';\nexport const POINTS_TOTAL_TABLE = 'points_total';\nexport const POINTS_LEADERBOARD_TABLE = 'points_leaderboard';\nexport const STAKED_SOL_TOKEN_TABLE = 'staked_sol_token';\nexport const POINTS_LEADERBOARD_BLACKLIST_TABLE = 'points_leaderboard_blacklist';\nexport const STABLECOIN_TOKEN_TABLE = 'stablecoin_token';\nexport const RAW_INSTRUCTION_TABLE = 'raw_instruction';\nexport const KAMINO_INSTRUCTION_TABLE = 'kamino_instruction';\nexport const KLEND_INSTRUCTION_TABLE = 'klend_instruction';\nexport const YIELD_TABLE = 'yield';\nexport const STAKING_RATE_TABLE = 'staking_rate';\nexport const POINTS_TOTAL_HISTORY_TABLE = 'points_total_history';\nexport const AIRDROP_TABLE = 'airdrop';\nexport const AIRDROP_METRICS_TABLE = 'airdrop_metrics';\nexport const AIRDROP_SOURCE_TABLE = 'airdrop_source';\nexport const POINTS_SOURCE_BOOST_TABLE = 'points_source_boost';\nexport const POINTS_OWNER_BOOST_SOURCE_TABLE = 'points_owner_boost_source';\nexport const POINTS_OWNER_BOOST_TABLE = 'points_owner_boost';\nexport const STAKING_BOOST_TABLE = 'staking_boost';\nexport const POINTS_STAKING_TABLE = 'points_staking';\nexport const OWNER_SCREENING_TABLE = 'owner_screening';\nexport const ACCOUNTING_CONFIG_TABLE = 'accounting_config';\nexport const ACCOUNTING_TRANSACTION_TABLE = 'accounting_transaction';\nexport const ACCOUNTING_BALANCE_TABLE = 'accounting_balance';\nexport const RECENT_SLOT_TABLE = 'recent_slot';\nexport const STAKING_YIELD_TABLE = 'staking_yield';\nexport const EPOCH_TABLE = 'epoch';\nexport const KVAULT_TABLE = 'kvault';\nexport const KVAULT_HOLDER_TABLE = 'kvault_holder';\nexport const KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';\nexport const KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';\nexport const KVAULT_STATE_TABLE = 'kvault_state';\nexport const KVAULT_METRICS_TABLE = 'kvault_metrics';\nexport const LIMO_ORDER_TABLE = 'limo_order';\nexport const LIMO_ORDER_STATUS_TABLE = 'limo_order_status';\nexport const LIMO_ORDER_TYPE_TABLE = 'limo_order_type';\nexport const LIMO_INSTRUCTION_TABLE = 'limo_instruction';\nexport const LIMO_METRICS_TABLE = 'limo_metrics';\nexport const LIMO_WEEKLY_LEADERBOARD_TABLE = 'limo_weekly_leaderboard';\nexport const KLEND_NOTIFICATION_TABLE = 'klend_notification';\nexport const NOTIFICATION_TYPE_TABLE = 'notification_type';\nexport const OWNER_NET_VALUE_TABLE = 'owner_net_value';\nexport const KSWAP_TOKEN_TABLE = 'kswap_token';\nexport const REFERRAL_CODE_TABLE = 'referral_code';\nexport const REFERRED_OWNER_TABLE = 'referred_owner';\nexport const REFERRAL_LEADERBOARD_TABLE = 'referral_leaderboard';\nexport const KSWAP_INSTRUCTION_TABLE = 'kswap_instruction';\nexport const KSWAP_LEADERBOARD_TABLE = 'kswap_leaderboard';\nexport const KSWAP_AGGREGATOR_TABLE = 'kswap_aggregator';\nexport const LOOKUP_TABLE = 'lookup_table';\nexport const LOOKUP_TABLE_ACCOUNT = 'lookup_table_account';\nexport const OWNER_SCREENING_AUDIT_LOG_TABLE = 'owner_screening_audit_log';\nexport const OWNER_SCREENING_CONFIG_TABLE = 'owner_screening_config';\nexport const REPLAY_SAMPLE_TABLE = 'replay_sample';\nexport const REWARD_KVAULT_TABLE = 'reward_kvault';\nexport const REWARD_KVAULT_METRICS_TABLE = 'reward_kvault_metrics';\n\nexport type RESAMPLE_FREQUENCY = 'hour' | 'day';\nexport const HOURLY_FREQUENCY = 'hour';\nexport const DAILY_FREQUENCY = 'day';\n\nfunction validateFrequency(frequency: RESAMPLE_FREQUENCY) {\n if (frequency !== HOURLY_FREQUENCY && frequency !== DAILY_FREQUENCY) {\n throw Error(`Frequency ${frequency} not supported`);\n }\n}\nexport const GET_OBLIGATION_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `klend_obligation_state_resampled_${frequency}`;\n};\nexport const GET_KVAULT_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_STATE_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_HOLDER_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_HOLDER_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_HOLDER_TOTAL_TABLE}_${frequency}`;\n};\nexport const GET_OWNER_NET_VALUE_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `owner_net_value_${frequency}`;\n};\nexport const GET_OWNER_NET_VALUE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${OWNER_NET_VALUE_TABLE}_${frequency}`;\n};\nexport const GET_STRATEGY_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${STRATEGY_STATE_TABLE}_${frequency}`;\n};\nexport const GET_PRICE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${PRICE_TABLE}_${frequency}`;\n};\n\nexport const API_SCHEMA: string = 'api';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,oDAAkC;AAClC,yDAAuC;AACvC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,gDAA8B;AAC9B,uDAAqC;AACrC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,oDAAkC;AAClC,0DAAwC;AACxC,gDAA8B;AAC9B,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,0DAAwC;AACxC,+DAA6C;AAC7C,uDAAqC;AACrC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACp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AAC;AAHW,QAAA,2CAA2C,+CAGtD;AACK,MAAM,+CAA+C,GAAG,CAAC,SAA6B,EAAE,EAAE;IAC/F,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,yCAAiC,IAAI,SAAS,EAAE,CAAC;AAC7D,CAAC,CAAC;AAHW,QAAA,+CAA+C,mDAG1D;AACK,MAAM,yBAAyB,GAAG,CAAC,SAA6B,EAAE,EAAE;IACzE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,mBAAmB,SAAS,EAAE,CAAC;AACxC,CAAC,CAAC;AAHW,QAAA,yBAAyB,6BAGpC;AACK,MAAM,mCAAmC,GAAG,CAAC,SAA6B,EAAE,EAAE;IACnF,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,6BAAqB,IAAI,SAAS,EAAE,CAAC;AACjD,CAAC,CAAC;AAHW,QAAA,mCAAmC,uCAG9C;AACK,MAAM,kCAAkC,GAAG,CAAC,SAA6B,EAAE,EAAE;IAClF,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,4BAAoB,IAAI,SAAS,EAAE,CAAC;AAChD,CAAC,CAAC;AAHW,QAAA,kCAAkC,sCAG7C;AACK,MAAM,yBAAyB,GAAG,CAAC,SAA6B,EAAE,EAAE;IACzE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,mBAAW,IAAI,SAAS,EAAE,CAAC;AACvC,CAAC,CAAC;AAHW,QAAA,yBAAyB,6BAGpC;AAEW,QAAA,UAAU,GAAW,KAAK,CAAC","sourcesContent":["export * from './ClusterEntity';\nexport * from './OwnerEntity';\nexport * from './TokenEntity';\nexport * from './StrategyEntity';\nexport * from './ShareMintEntity';\nexport * from './ShareHolderEntity';\nexport * from './StrategyStateEntity';\nexport * from './WhirlpoolEntity';\nexport * from './WhirlpoolStateEntity';\nexport * from './DexTypeEntity';\nexport * from './VaultEntity';\nexport * from './RewardEntity';\nexport * from './RewardEarnedEntity';\nexport * from './PriceEntity';\nexport * from './TokenHistoryEntity';\nexport * from './TokenHistorySourceEntity';\nexport * from './TokenHistoryFieldEntity';\nexport * from './ProgramAccountEntity';\nexport * from './TokenMintEntity';\nexport * from './TradeAggregatorEntity';\nexport * from './TradeEntity';\nexport * from './TradeSourceEntity';\nexport * from './StrategyMetricsEntity';\nexport * from './TradePoolEntity';\nexport * from './SimulatorPoolEntity';\nexport * from './MetricsSourceEntity';\nexport * from './KlendMarketEntity';\nexport * from './KlendMarketStateEntity';\nexport * from './KlendObligationEntity';\nexport * from './KLendObligationStateEntity';\nexport * from './KlendReserveEntity';\nexport * from './KlendReserveStateEntity';\nexport * from './KaminoInstructionEntity';\nexport * from './InstructionEntity';\nexport * from './UserMetricsEntity';\nexport * from './PriceTypeEntity';\nexport * from './FarmEntity';\nexport * from './FarmStateEntity';\nexport * from './FarmUserEntity';\nexport * from './FarmUserStateEntity';\nexport * from './FarmRewardEntity';\nexport * from './KlendLeverageMetricsEntity';\nexport * from './PointsTotalEntity';\nexport * from './PointsKlendEntity';\nexport * from './PointsStrategiesEntity';\nexport * from './PointsSourceEntity';\nexport * from './KlendObligationTypeEntity';\nexport * from './StakedSolTokenEntity';\nexport * from './StablecoinTokenEntity';\nexport * from './PointsLeaderboardBlacklistEntity';\nexport * from './KlendInstructionEntity';\nexport * from './RawInstructionEntity';\nexport * from './YieldEntity';\nexport * from './StakingRateEntity';\nexport * from './PointsTotalHistoryEntity';\nexport * from './AirdropMetricsEntity';\nexport * from './AirdropSourceEntity';\nexport * from './AirdropEntity';\nexport * from './PointsSourceBoostEntity';\nexport * from './PointsOwnerBoostEntity';\nexport * from './PointsOwnerBoostSourceEntity';\nexport * from './StakingBoostEntity';\nexport * from './PointsStakingEntity';\nexport * from './OwnerScreeningEntity';\nexport * from './accounting';\nexport * from './RecentSlotEntity';\nexport * from './EpochEntity';\nexport * from './StakingYieldEntity';\nexport * from './kvault';\nexport * from './limo';\nexport * from './KlendNotificationEntity';\nexport * from './NotificationTypeEntity';\nexport * from './OwnerNetValueEntity';\nexport * from './kswap';\nexport * from './referral';\nexport * from './LookupTableEntity';\nexport * from './LookupTableAccountEntity';\nexport * from './OwnerScreeningAuditLogEntity';\nexport * from './OwnerScreeningConfigEntity';\nexport * from './ReplaySampleEntity';\nexport * from './RewardKvaultEntity';\nexport * from './RewardKvaultMetricsEntity';\n\nexport const CLUSTER_TABLE: string = 'cluster';\nexport const DEX_TYPE: string = 'dex_type';\nexport const OWNER_TABLE: string = 'owner';\nexport const VAULT_TABLE: string = 'vault';\nexport const TOKEN_TABLE: string = 'token';\nexport const STRATEGY_TABLE: string = 'strategy';\nexport const SHARE_MINT_TABLE: string = 'share_mint';\nexport const STRATEGY_STATE_TABLE: string = 'strategy_state';\nexport const SHARE_HOLDER_TABLE: string = 'share_holder';\nexport const WHIRLPOOL_TABLE: string = 'whirlpool';\nexport const WHIRLPOOL_STATE_TABLE: string = 'whirlpool_state';\nexport const REWARD_TABLE = 'reward';\nexport const REWARD_EARNED_TABLE = 'reward_earned';\nexport const PRICE_TABLE = 'price';\nexport const TOKEN_HISTORY_TABLE = 'token_history';\nexport const TOKEN_HISTORY_FIELD_TABLE = 'token_history_field';\nexport const TOKEN_HISTORY_SOURCE_TABLE = 'token_history_source';\nexport const TRADE_TABLE = 'trade';\nexport const TOKEN_MINT_TABLE = 'token_mint';\nexport const PROGRAM_ACCOUNT_TABLE = 'program_account';\nexport const TRADE_AGGREGATOR_TABLE = 'trade_aggregator';\nexport const TRADE_SOURCE_TABLE = 'trade_source';\nexport const TRADE_POOL_TABLE = 'trade_pool';\nexport const STRATEGY_METRICS_TABLE = 'strategy_metrics';\nexport const SIMULATOR_POOL_TABLE = 'simulator_pool';\nexport const METRICS_SOURCE_TABLE = 'metrics_source';\nexport const KLEND_MARKET_TABLE = 'klend_market';\nexport const KLEND_RESERVE_TABLE = 'klend_reserve';\nexport const KLEND_OBLIGATION_TABLE = 'klend_obligation';\nexport const KLEND_MARKET_STATE_TABLE = 'klend_market_state';\nexport const KLEND_RESERVE_STATE_TABLE = 'klend_reserve_state';\nexport const KLEND_OBLIGATION_STATE_TABLE = 'klend_obligation_state';\nexport const INSTRUCTION_TABLE = 'instruction';\nexport const USER_METRICS_TABLE = 'user_metrics';\nexport const PRICE_TYPE_TABLE = 'price_type';\nexport const FARM_TABLE = 'farm';\nexport const FARM_STATE_TABLE = 'farm_state';\nexport const FARM_USER_TABLE = 'farm_user';\nexport const FARM_USER_STATE_TABLE = 'farm_user_state';\nexport const FARM_REWARD_TABLE = 'farm_reward_state';\nexport const KLEND_LEVERAGE_METRICS_TABLE = 'klend_leverage_metrics';\nexport const POINTS_SOURCE_TABLE = 'points_source';\nexport const KLEND_OBLIGATION_TYPE_TABLE = 'klend_obligation_type';\nexport const POINTS_STRATEGIES_TABLE = 'points_strategies';\nexport const POINTS_KLEND_TABLE = 'points_klend';\nexport const POINTS_TOTAL_TABLE = 'points_total';\nexport const POINTS_LEADERBOARD_TABLE = 'points_leaderboard';\nexport const STAKED_SOL_TOKEN_TABLE = 'staked_sol_token';\nexport const POINTS_LEADERBOARD_BLACKLIST_TABLE = 'points_leaderboard_blacklist';\nexport const STABLECOIN_TOKEN_TABLE = 'stablecoin_token';\nexport const RAW_INSTRUCTION_TABLE = 'raw_instruction';\nexport const KAMINO_INSTRUCTION_TABLE = 'kamino_instruction';\nexport const KLEND_INSTRUCTION_TABLE = 'klend_instruction';\nexport const YIELD_TABLE = 'yield';\nexport const STAKING_RATE_TABLE = 'staking_rate';\nexport const POINTS_TOTAL_HISTORY_TABLE = 'points_total_history';\nexport const AIRDROP_TABLE = 'airdrop';\nexport const AIRDROP_METRICS_TABLE = 'airdrop_metrics';\nexport const AIRDROP_SOURCE_TABLE = 'airdrop_source';\nexport const POINTS_SOURCE_BOOST_TABLE = 'points_source_boost';\nexport const POINTS_OWNER_BOOST_SOURCE_TABLE = 'points_owner_boost_source';\nexport const POINTS_OWNER_BOOST_TABLE = 'points_owner_boost';\nexport const STAKING_BOOST_TABLE = 'staking_boost';\nexport const POINTS_STAKING_TABLE = 'points_staking';\nexport const OWNER_SCREENING_TABLE = 'owner_screening';\nexport const ACCOUNTING_CONFIG_TABLE = 'accounting_config';\nexport const ACCOUNTING_TRANSACTION_TABLE = 'accounting_transaction';\nexport const ACCOUNTING_BALANCE_TABLE = 'accounting_balance';\nexport const RECENT_SLOT_TABLE = 'recent_slot';\nexport const STAKING_YIELD_TABLE = 'staking_yield';\nexport const EPOCH_TABLE = 'epoch';\nexport const KVAULT_TABLE = 'kvault';\nexport const KVAULT_HOLDER_TABLE = 'kvault_holder';\nexport const KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';\nexport const KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';\nexport const KVAULT_STATE_TABLE = 'kvault_state';\nexport const KVAULT_RESERVE_STATE_TABLE = 'kvault_reserve_state';\nexport const KVAULT_ALLOCATION_STATE_TABLE = 'kvault_allocation_state';\nexport const KVAULT_RESERVE_REWARD_STATE_TABLE = 'kvault_reserve_reward_state';\nexport const KVAULT_METRICS_TABLE = 'kvault_metrics';\nexport const LIMO_ORDER_TABLE = 'limo_order';\nexport const LIMO_ORDER_STATUS_TABLE = 'limo_order_status';\nexport const LIMO_ORDER_TYPE_TABLE = 'limo_order_type';\nexport const LIMO_INSTRUCTION_TABLE = 'limo_instruction';\nexport const LIMO_METRICS_TABLE = 'limo_metrics';\nexport const LIMO_WEEKLY_LEADERBOARD_TABLE = 'limo_weekly_leaderboard';\nexport const KLEND_NOTIFICATION_TABLE = 'klend_notification';\nexport const NOTIFICATION_TYPE_TABLE = 'notification_type';\nexport const OWNER_NET_VALUE_TABLE = 'owner_net_value';\nexport const KSWAP_TOKEN_TABLE = 'kswap_token';\nexport const REFERRAL_CODE_TABLE = 'referral_code';\nexport const REFERRED_OWNER_TABLE = 'referred_owner';\nexport const REFERRAL_LEADERBOARD_TABLE = 'referral_leaderboard';\nexport const KSWAP_INSTRUCTION_TABLE = 'kswap_instruction';\nexport const KSWAP_LEADERBOARD_TABLE = 'kswap_leaderboard';\nexport const KSWAP_AGGREGATOR_TABLE = 'kswap_aggregator';\nexport const LOOKUP_TABLE = 'lookup_table';\nexport const LOOKUP_TABLE_ACCOUNT = 'lookup_table_account';\nexport const OWNER_SCREENING_AUDIT_LOG_TABLE = 'owner_screening_audit_log';\nexport const OWNER_SCREENING_CONFIG_TABLE = 'owner_screening_config';\nexport const REPLAY_SAMPLE_TABLE = 'replay_sample';\nexport const REWARD_KVAULT_TABLE = 'reward_kvault';\nexport const REWARD_KVAULT_METRICS_TABLE = 'reward_kvault_metrics';\n\nexport type RESAMPLE_FREQUENCY = 'hour' | 'day';\nexport const HOURLY_FREQUENCY = 'hour';\nexport const DAILY_FREQUENCY = 'day';\n\nfunction validateFrequency(frequency: RESAMPLE_FREQUENCY) {\n if (frequency !== HOURLY_FREQUENCY && frequency !== DAILY_FREQUENCY) {\n throw Error(`Frequency ${frequency} not supported`);\n }\n}\nexport const GET_OBLIGATION_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `klend_obligation_state_resampled_${frequency}`;\n};\nexport const GET_KVAULT_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_STATE_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_HOLDER_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_HOLDER_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_HOLDER_TOTAL_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_RESERVE_STATE_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_ALLOCATION_STATE_TABLE}_${frequency}`;\n};\nexport const GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${KVAULT_RESERVE_REWARD_STATE_TABLE}_${frequency}`;\n};\nexport const GET_OWNER_NET_VALUE_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `owner_net_value_${frequency}`;\n};\nexport const GET_OWNER_NET_VALUE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${OWNER_NET_VALUE_TABLE}_${frequency}`;\n};\nexport const GET_STRATEGY_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${STRATEGY_STATE_TABLE}_${frequency}`;\n};\nexport const GET_PRICE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {\n validateFrequency(frequency);\n return `${PRICE_TABLE}_${frequency}`;\n};\n\nexport const API_SCHEMA: string = 'api';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface KVaultAllocationStateEntity {
|
|
2
|
+
id: bigint;
|
|
3
|
+
created_on: Date;
|
|
4
|
+
kvault_id: bigint;
|
|
5
|
+
klend_reserve_id: bigint;
|
|
6
|
+
allocation_pct: string;
|
|
7
|
+
}
|
|
8
|
+
export type KVaultAllocationStateHourEntity = KVaultAllocationStateEntity & {
|
|
9
|
+
resampled_on: Date;
|
|
10
|
+
};
|
|
11
|
+
export type KVaultAllocationStateDayEntity = KVaultAllocationStateEntity & {
|
|
12
|
+
resampled_on: Date;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KVaultAllocationStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultAllocationStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultAllocationStateEntity {\n id: bigint;\n created_on: Date;\n kvault_id: bigint;\n klend_reserve_id: bigint;\n allocation_pct: string;\n}\n\nexport type KVaultAllocationStateHourEntity = KVaultAllocationStateEntity & {\n resampled_on: Date;\n};\n\nexport type KVaultAllocationStateDayEntity = KVaultAllocationStateEntity & {\n resampled_on: Date;\n};\n"]}
|
|
@@ -7,6 +7,10 @@ export interface KVaultHolderEntity {
|
|
|
7
7
|
usd_amount: string;
|
|
8
8
|
sol_amount: string;
|
|
9
9
|
apy: string;
|
|
10
|
+
apy_theoretical: string | null;
|
|
11
|
+
apy_actual: string | null;
|
|
12
|
+
apy_farm_rewards: string | null;
|
|
13
|
+
apy_reserves_incentives: string | null;
|
|
10
14
|
cumulative_interest_earned: string;
|
|
11
15
|
cumulative_interest_earned_usd: string;
|
|
12
16
|
cumulative_interest_earned_sol: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KVaultHolderEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultHolderEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultHolderEntity {\n id: bigint;\n created_on: Date;\n shares_held: string;\n shares_in_farm: string;\n shares_amount: string;\n usd_amount: string;\n sol_amount: string;\n apy: string;\n cumulative_interest_earned: string;\n cumulative_interest_earned_usd: string;\n cumulative_interest_earned_sol: string;\n interest_earned_per_second: string;\n interest_earned_per_second_usd: string;\n interest_earned_per_second_sol: string;\n owner_id: number;\n kvault_state_id: string;\n}\n\nexport type KVaultHolderHourEntity = KVaultHolderEntity & {\n resampled_on: Date;\n kvault_id: string;\n};\nexport type KVaultHolderDayEntity = KVaultHolderEntity & {\n resampled_on: Date;\n kvault_id: string;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"KVaultHolderEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultHolderEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultHolderEntity {\n id: bigint;\n created_on: Date;\n shares_held: string;\n shares_in_farm: string;\n shares_amount: string;\n usd_amount: string;\n sol_amount: string;\n apy: string;\n apy_theoretical: string | null;\n apy_actual: string | null;\n apy_farm_rewards: string | null;\n apy_reserves_incentives: string | null;\n cumulative_interest_earned: string;\n cumulative_interest_earned_usd: string;\n cumulative_interest_earned_sol: string;\n interest_earned_per_second: string;\n interest_earned_per_second_usd: string;\n interest_earned_per_second_sol: string;\n owner_id: number;\n kvault_state_id: string;\n}\n\nexport type KVaultHolderHourEntity = KVaultHolderEntity & {\n resampled_on: Date;\n kvault_id: string;\n};\nexport type KVaultHolderDayEntity = KVaultHolderEntity & {\n resampled_on: Date;\n kvault_id: string;\n};\n"]}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export interface KVaultReserveRewardStateEntity {
|
|
2
2
|
id: bigint;
|
|
3
3
|
created_on: Date;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
klend_reserve_id: bigint;
|
|
5
|
+
reward_token_mint_id: bigint;
|
|
6
6
|
reward_apy: string;
|
|
7
7
|
}
|
|
8
|
+
export type KVaultReserveRewardStateHourEntity = KVaultReserveRewardStateEntity & {
|
|
9
|
+
resampled_on: Date;
|
|
10
|
+
};
|
|
11
|
+
export type KVaultReserveRewardStateDayEntity = KVaultReserveRewardStateEntity & {
|
|
12
|
+
resampled_on: Date;
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KVaultReserveRewardStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultReserveRewardStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultReserveRewardStateEntity {\n id: bigint;\n created_on: Date;\n
|
|
1
|
+
{"version":3,"file":"KVaultReserveRewardStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultReserveRewardStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultReserveRewardStateEntity {\n id: bigint;\n created_on: Date;\n klend_reserve_id: bigint;\n reward_token_mint_id: bigint;\n reward_apy: string;\n}\n\nexport type KVaultReserveRewardStateHourEntity = KVaultReserveRewardStateEntity & {\n resampled_on: Date;\n};\n\nexport type KVaultReserveRewardStateDayEntity = KVaultReserveRewardStateEntity & {\n resampled_on: Date;\n};\n"]}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export interface KVaultReserveStateEntity {
|
|
2
2
|
id: bigint;
|
|
3
3
|
created_on: Date;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
klend_reserve_id: bigint;
|
|
5
|
+
klend_market_id: bigint;
|
|
6
6
|
supply_apy: string;
|
|
7
7
|
rewards_apy: string;
|
|
8
8
|
}
|
|
9
|
+
export type KVaultReserveStateHourEntity = KVaultReserveStateEntity & {
|
|
10
|
+
resampled_on: Date;
|
|
11
|
+
};
|
|
12
|
+
export type KVaultReserveStateDayEntity = KVaultReserveStateEntity & {
|
|
13
|
+
resampled_on: Date;
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KVaultReserveStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultReserveStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultReserveStateEntity {\n id: bigint;\n created_on: Date;\n
|
|
1
|
+
{"version":3,"file":"KVaultReserveStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultReserveStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultReserveStateEntity {\n id: bigint;\n created_on: Date;\n klend_reserve_id: bigint;\n klend_market_id: bigint;\n supply_apy: string;\n rewards_apy: string;\n}\n\nexport type KVaultReserveStateHourEntity = KVaultReserveStateEntity & {\n resampled_on: Date;\n};\n\nexport type KVaultReserveStateDayEntity = KVaultReserveStateEntity & {\n resampled_on: Date;\n};\n"]}
|
|
@@ -10,10 +10,10 @@ export interface KVaultStateEntity {
|
|
|
10
10
|
share_price: string;
|
|
11
11
|
tokens_per_share: string;
|
|
12
12
|
apy: string;
|
|
13
|
-
apy_theoretical: string;
|
|
14
|
-
apy_actual: string;
|
|
15
|
-
apy_farm_rewards: string;
|
|
16
|
-
apy_reserves_incentives: string;
|
|
13
|
+
apy_theoretical: string | null;
|
|
14
|
+
apy_actual: string | null;
|
|
15
|
+
apy_farm_rewards: string | null;
|
|
16
|
+
apy_reserves_incentives: string | null;
|
|
17
17
|
number_of_holders: string;
|
|
18
18
|
shares_issued: string;
|
|
19
19
|
cumulative_interest_earned: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KVaultStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultStateEntity {\n id: bigint;\n created_on: Date;\n token_price: string;\n sol_price: string;\n tokens_available: string;\n tokens_available_usd: string;\n tokens_invested: string;\n tokens_invested_usd: string;\n share_price: string;\n tokens_per_share: string;\n apy: string;\n apy_theoretical: string;\n apy_actual: string;\n apy_farm_rewards: string;\n apy_reserves_incentives: string;\n number_of_holders: string;\n shares_issued: string;\n cumulative_interest_earned: string;\n cumulative_interest_earned_usd: string;\n cumulative_interest_earned_sol: string;\n interest_earned_per_second: string;\n interest_earned_per_second_usd: string;\n interest_earned_per_second_sol: string;\n cumulative_performance_fees: string;\n cumulative_performance_fees_usd: string;\n cumulative_performance_fees_sol: string;\n cumulative_management_fees: string;\n cumulative_management_fees_usd: string;\n cumulative_management_fees_sol: string;\n raw_json: string;\n kvault_id: string;\n}\n\nexport type KVaultStateHourEntity = KVaultStateEntity & { resampled_on: Date };\nexport type KVaultStateDayEntity = KVaultStateEntity & { resampled_on: Date };\n"]}
|
|
1
|
+
{"version":3,"file":"KVaultStateEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultStateEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultStateEntity {\n id: bigint;\n created_on: Date;\n token_price: string;\n sol_price: string;\n tokens_available: string;\n tokens_available_usd: string;\n tokens_invested: string;\n tokens_invested_usd: string;\n share_price: string;\n tokens_per_share: string;\n apy: string;\n apy_theoretical: string | null;\n apy_actual: string | null;\n apy_farm_rewards: string | null;\n apy_reserves_incentives: string | null;\n number_of_holders: string;\n shares_issued: string;\n cumulative_interest_earned: string;\n cumulative_interest_earned_usd: string;\n cumulative_interest_earned_sol: string;\n interest_earned_per_second: string;\n interest_earned_per_second_usd: string;\n interest_earned_per_second_sol: string;\n cumulative_performance_fees: string;\n cumulative_performance_fees_usd: string;\n cumulative_performance_fees_sol: string;\n cumulative_management_fees: string;\n cumulative_management_fees_usd: string;\n cumulative_management_fees_sol: string;\n raw_json: string;\n kvault_id: string;\n}\n\nexport type KVaultStateHourEntity = KVaultStateEntity & { resampled_on: Date };\nexport type KVaultStateDayEntity = KVaultStateEntity & { resampled_on: Date };\n"]}
|
|
@@ -5,5 +5,5 @@ export * from './KVaultInstructionEntity';
|
|
|
5
5
|
export * from './KVaultStateEntity';
|
|
6
6
|
export * from './KVaultMetricsEntity';
|
|
7
7
|
export * from './KVaultReserveStateEntity';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './KVaultAllocationStateEntity';
|
|
9
9
|
export * from './KVaultReserveRewardStateEntity';
|
|
@@ -21,6 +21,6 @@ __exportStar(require("./KVaultInstructionEntity"), exports);
|
|
|
21
21
|
__exportStar(require("./KVaultStateEntity"), exports);
|
|
22
22
|
__exportStar(require("./KVaultMetricsEntity"), exports);
|
|
23
23
|
__exportStar(require("./KVaultReserveStateEntity"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./KVaultAllocationStateEntity"), exports);
|
|
25
25
|
__exportStar(require("./KVaultReserveRewardStateEntity"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/kvault/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD","sourcesContent":["export * from './KVaultEntity';\nexport * from './KVaultHolderEntity';\nexport * from './KVaultHolderTotalEntity';\nexport * from './KVaultInstructionEntity';\nexport * from './KVaultStateEntity';\nexport * from './KVaultMetricsEntity';\nexport * from './KVaultReserveStateEntity';\nexport * from './
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/kvault/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,mEAAiD","sourcesContent":["export * from './KVaultEntity';\nexport * from './KVaultHolderEntity';\nexport * from './KVaultHolderTotalEntity';\nexport * from './KVaultInstructionEntity';\nexport * from './KVaultStateEntity';\nexport * from './KVaultMetricsEntity';\nexport * from './KVaultReserveStateEntity';\nexport * from './KVaultAllocationStateEntity';\nexport * from './KVaultReserveRewardStateEntity';\n"]}
|
package/package.json
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -157,6 +157,9 @@ export const KVAULT_HOLDER_TABLE = 'kvault_holder';
|
|
|
157
157
|
export const KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';
|
|
158
158
|
export const KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';
|
|
159
159
|
export const KVAULT_STATE_TABLE = 'kvault_state';
|
|
160
|
+
export const KVAULT_RESERVE_STATE_TABLE = 'kvault_reserve_state';
|
|
161
|
+
export const KVAULT_ALLOCATION_STATE_TABLE = 'kvault_allocation_state';
|
|
162
|
+
export const KVAULT_RESERVE_REWARD_STATE_TABLE = 'kvault_reserve_reward_state';
|
|
160
163
|
export const KVAULT_METRICS_TABLE = 'kvault_metrics';
|
|
161
164
|
export const LIMO_ORDER_TABLE = 'limo_order';
|
|
162
165
|
export const LIMO_ORDER_STATUS_TABLE = 'limo_order_status';
|
|
@@ -207,6 +210,18 @@ export const GET_KVAULT_HOLDER_TOTAL_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQ
|
|
|
207
210
|
validateFrequency(frequency);
|
|
208
211
|
return `${KVAULT_HOLDER_TOTAL_TABLE}_${frequency}`;
|
|
209
212
|
};
|
|
213
|
+
export const GET_KVAULT_RESERVE_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {
|
|
214
|
+
validateFrequency(frequency);
|
|
215
|
+
return `${KVAULT_RESERVE_STATE_TABLE}_${frequency}`;
|
|
216
|
+
};
|
|
217
|
+
export const GET_KVAULT_ALLOCATION_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {
|
|
218
|
+
validateFrequency(frequency);
|
|
219
|
+
return `${KVAULT_ALLOCATION_STATE_TABLE}_${frequency}`;
|
|
220
|
+
};
|
|
221
|
+
export const GET_KVAULT_RESERVE_REWARD_STATE_RESAMPLED_TABLE = (frequency: RESAMPLE_FREQUENCY) => {
|
|
222
|
+
validateFrequency(frequency);
|
|
223
|
+
return `${KVAULT_RESERVE_REWARD_STATE_TABLE}_${frequency}`;
|
|
224
|
+
};
|
|
210
225
|
export const GET_OWNER_NET_VALUE_TABLE = (frequency: RESAMPLE_FREQUENCY) => {
|
|
211
226
|
validateFrequency(frequency);
|
|
212
227
|
return `owner_net_value_${frequency}`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface KVaultAllocationStateEntity {
|
|
2
|
+
id: bigint;
|
|
3
|
+
created_on: Date;
|
|
4
|
+
kvault_id: bigint;
|
|
5
|
+
klend_reserve_id: bigint;
|
|
6
|
+
allocation_pct: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type KVaultAllocationStateHourEntity = KVaultAllocationStateEntity & {
|
|
10
|
+
resampled_on: Date;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type KVaultAllocationStateDayEntity = KVaultAllocationStateEntity & {
|
|
14
|
+
resampled_on: Date;
|
|
15
|
+
};
|
|
@@ -7,6 +7,10 @@ export interface KVaultHolderEntity {
|
|
|
7
7
|
usd_amount: string;
|
|
8
8
|
sol_amount: string;
|
|
9
9
|
apy: string;
|
|
10
|
+
apy_theoretical: string | null;
|
|
11
|
+
apy_actual: string | null;
|
|
12
|
+
apy_farm_rewards: string | null;
|
|
13
|
+
apy_reserves_incentives: string | null;
|
|
10
14
|
cumulative_interest_earned: string;
|
|
11
15
|
cumulative_interest_earned_usd: string;
|
|
12
16
|
cumulative_interest_earned_sol: string;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export interface KVaultReserveRewardStateEntity {
|
|
2
2
|
id: bigint;
|
|
3
3
|
created_on: Date;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
klend_reserve_id: bigint;
|
|
5
|
+
reward_token_mint_id: bigint;
|
|
6
6
|
reward_apy: string;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
export type KVaultReserveRewardStateHourEntity = KVaultReserveRewardStateEntity & {
|
|
10
|
+
resampled_on: Date;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type KVaultReserveRewardStateDayEntity = KVaultReserveRewardStateEntity & {
|
|
14
|
+
resampled_on: Date;
|
|
15
|
+
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export interface KVaultReserveStateEntity {
|
|
2
2
|
id: bigint;
|
|
3
3
|
created_on: Date;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
klend_reserve_id: bigint;
|
|
5
|
+
klend_market_id: bigint;
|
|
6
6
|
supply_apy: string;
|
|
7
7
|
rewards_apy: string;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
export type KVaultReserveStateHourEntity = KVaultReserveStateEntity & {
|
|
11
|
+
resampled_on: Date;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type KVaultReserveStateDayEntity = KVaultReserveStateEntity & {
|
|
15
|
+
resampled_on: Date;
|
|
16
|
+
};
|
|
@@ -10,10 +10,10 @@ export interface KVaultStateEntity {
|
|
|
10
10
|
share_price: string;
|
|
11
11
|
tokens_per_share: string;
|
|
12
12
|
apy: string;
|
|
13
|
-
apy_theoretical: string;
|
|
14
|
-
apy_actual: string;
|
|
15
|
-
apy_farm_rewards: string;
|
|
16
|
-
apy_reserves_incentives: string;
|
|
13
|
+
apy_theoretical: string | null;
|
|
14
|
+
apy_actual: string | null;
|
|
15
|
+
apy_farm_rewards: string | null;
|
|
16
|
+
apy_reserves_incentives: string | null;
|
|
17
17
|
number_of_holders: string;
|
|
18
18
|
shares_issued: string;
|
|
19
19
|
cumulative_interest_earned: string;
|
|
@@ -5,5 +5,5 @@ export * from './KVaultInstructionEntity';
|
|
|
5
5
|
export * from './KVaultStateEntity';
|
|
6
6
|
export * from './KVaultMetricsEntity';
|
|
7
7
|
export * from './KVaultReserveStateEntity';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './KVaultAllocationStateEntity';
|
|
9
9
|
export * from './KVaultReserveRewardStateEntity';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KVaultStateAllocationEntity.js","sourceRoot":"","sources":["../../../src/models/kvault/KVaultStateAllocationEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface KVaultStateAllocationEntity {\n id: bigint;\n created_on: Date;\n kvault_state_id: bigint;\n kvault_reserve_state_id: bigint;\n allocation_pct: string;\n}\n"]}
|