@kamino-finance/kamino-db 8.0.6 → 8.0.8

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.
@@ -67,6 +67,7 @@ export * from './RecentSlotEntity';
67
67
  export * from './EpochEntity';
68
68
  export * from './StakingYieldEntity';
69
69
  export * from './kvault';
70
+ export * from './limo';
70
71
  export declare const CLUSTER_TABLE: string;
71
72
  export declare const DEX_TYPE: string;
72
73
  export declare const OWNER_TABLE: string;
@@ -144,6 +145,10 @@ export declare const KVAULT_HOLDER_TOTAL_TABLE = "kvault_holder_total";
144
145
  export declare const KVAULT_INSTRUCTION_TABLE = "kvault_instruction";
145
146
  export declare const KVAULT_STATE_TABLE = "kvault_state";
146
147
  export declare const KVAULT_METRICS_TABLE = "kvault_metrics";
148
+ export declare const LIMO_ORDER_TABLE = "limo_order";
149
+ export declare const LIMO_ORDER_STATUS_TABLE = "limo_order_status";
150
+ export declare const LIMO_ORDER_TYPE_TABLE = "limo_order_type";
151
+ export declare const LIMO_INSTRUCTION_TABLE = "limo_instruction";
147
152
  export type RESAMPLE_FREQUENCY = 'hour' | 'day';
148
153
  export declare const HOURLY_FREQUENCY = "hour";
149
154
  export declare const DAILY_FREQUENCY = "day";
@@ -15,7 +15,7 @@ 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.API_SCHEMA = 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.KVAULT_METRICS_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;
18
+ exports.API_SCHEMA = 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.LIMO_INSTRUCTION_TABLE = exports.LIMO_ORDER_TYPE_TABLE = exports.LIMO_ORDER_STATUS_TABLE = exports.LIMO_ORDER_TABLE = exports.KVAULT_METRICS_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
19
  __exportStar(require("./ClusterEntity"), exports);
20
20
  __exportStar(require("./OwnerEntity"), exports);
21
21
  __exportStar(require("./TokenEntity"), exports);
@@ -85,6 +85,7 @@ __exportStar(require("./RecentSlotEntity"), exports);
85
85
  __exportStar(require("./EpochEntity"), exports);
86
86
  __exportStar(require("./StakingYieldEntity"), exports);
87
87
  __exportStar(require("./kvault"), exports);
88
+ __exportStar(require("./limo"), exports);
88
89
  exports.CLUSTER_TABLE = 'cluster';
89
90
  exports.DEX_TYPE = 'dex_type';
90
91
  exports.OWNER_TABLE = 'owner';
@@ -162,6 +163,10 @@ exports.KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';
162
163
  exports.KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';
163
164
  exports.KVAULT_STATE_TABLE = 'kvault_state';
164
165
  exports.KVAULT_METRICS_TABLE = 'kvault_metrics';
166
+ exports.LIMO_ORDER_TABLE = 'limo_order';
167
+ exports.LIMO_ORDER_STATUS_TABLE = 'limo_order_status';
168
+ exports.LIMO_ORDER_TYPE_TABLE = 'limo_order_type';
169
+ exports.LIMO_INSTRUCTION_TABLE = 'limo_instruction';
165
170
  exports.HOURLY_FREQUENCY = 'hour';
166
171
  exports.DAILY_FREQUENCY = 'day';
167
172
  function validateFrequency(frequency) {
@@ -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,k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lD;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';\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';\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};\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;AACpC,sDAAoC;AACpC,oDAAkC;AAClC,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,wDAAsC;AACtC,qDAAmC;AACnC,+DAA6C;AAC7C,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC;AACzC,uDAAqC;AACrC,8DAA4C;AAC5C,yDAAuC;AACvC,0DAAwC;AACxC,qEAAmD;AACnD,2DAAyC;AACzC,yDAAuC;AACvC,gDAA8B;AAC9B,sDAAoC;AACpC,6DAA2C;AAC3C,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,4DAA0C;AAC1C,2DAAyC;AACzC,iEAA+C;AAC/C,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,uDAAqC;AACrC,2CAAyB;AACzB,yCAAuB;AAEV,QAAA,aAAa,GAAW,SAAS,CAAC;AACl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;IAC7B,OAAO,GAAG,0BAAkB,IAAI,SAAS,EAAE,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,gCAAgC,oCAG3C;AACK,MAAM,iCAAiC,GAAG,CAAC,SAA6B,EAAE,EAAE;IACjF,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,2BAAmB,IAAI,SAAS,EAAE,CAAC;AAC/C,CAAC,CAAC;AAHW,QAAA,iCAAiC,qCAG5C;AACK,MAAM,uCAAuC,GAAG,CAAC,SAA6B,EAAE,EAAE;IACvF,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,GAAG,iCAAyB,IAAI,SAAS,EAAE,CAAC;AACrD,CAAC,CAAC;AAHW,QAAA,uCAAuC,2CAGlD;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';\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';\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};\n\nexport const API_SCHEMA: string = 'api';\n"]}
@@ -1,8 +1,11 @@
1
1
  export interface KVaultHolderEntity {
2
2
  id: bigint;
3
3
  created_on: Date;
4
+ shares_held: string;
5
+ shares_in_farm: string;
4
6
  shares_amount: string;
5
7
  usd_amount: string;
8
+ sol_amount: string;
6
9
  apy: string;
7
10
  cumulative_interest_earned: string;
8
11
  cumulative_interest_earned_usd: 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_amount: string;\n usd_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};\nexport type KVaultHolderDayEntity = KVaultHolderEntity & {\n resampled_on: Date;\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 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};\nexport type KVaultHolderDayEntity = KVaultHolderEntity & {\n resampled_on: Date;\n};\n"]}
@@ -0,0 +1,24 @@
1
+ export interface LimoInstructionEntity {
2
+ id: bigint;
3
+ initial_in_amount: string;
4
+ remaining_in_amount: string;
5
+ expected_out_amount: string;
6
+ filled_out_amount: string;
7
+ total_filled: string;
8
+ number_of_fills: string;
9
+ order_price_in_out: string;
10
+ order_price_out_in: string;
11
+ execution_price_in_out: string;
12
+ execution_price_out_in: string;
13
+ tip_amount: string;
14
+ network_fee: string;
15
+ sol_price: string;
16
+ updated_on: Date;
17
+ limo_order_id: string;
18
+ in_token_mint_id: number;
19
+ out_token_mint_id: number;
20
+ owner_id: number;
21
+ limo_order_status_id: number;
22
+ limo_order_type_id: number;
23
+ raw_instruction_id: string;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LimoInstructionEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimoInstructionEntity.js","sourceRoot":"","sources":["../../../src/models/limo/LimoInstructionEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface LimoInstructionEntity {\n id: bigint;\n initial_in_amount: string;\n remaining_in_amount: string;\n expected_out_amount: string;\n filled_out_amount: string;\n total_filled: string;\n number_of_fills: string;\n order_price_in_out: string;\n order_price_out_in: string;\n execution_price_in_out: string;\n execution_price_out_in: string;\n tip_amount: string;\n network_fee: string;\n sol_price: string;\n updated_on: Date;\n limo_order_id: string;\n in_token_mint_id: number;\n out_token_mint_id: number;\n owner_id: number;\n limo_order_status_id: number;\n limo_order_type_id: number;\n raw_instruction_id: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderEntity {
2
+ id: string;
3
+ pubkey: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LimoOrderEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimoOrderEntity.js","sourceRoot":"","sources":["../../../src/models/limo/LimoOrderEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface LimoOrderEntity {\n id: string;\n pubkey: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderStatusEntity {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LimoOrderStatusEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimoOrderStatusEntity.js","sourceRoot":"","sources":["../../../src/models/limo/LimoOrderStatusEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface LimoOrderStatusEntity {\n id: number;\n name: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderTypeEntity {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LimoOrderTypeEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimoOrderTypeEntity.js","sourceRoot":"","sources":["../../../src/models/limo/LimoOrderTypeEntity.ts"],"names":[],"mappings":"","sourcesContent":["export interface LimoOrderTypeEntity {\n id: number;\n name: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export * from './LimoOrderEntity';
2
+ export * from './LimoOrderStatusEntity';
3
+ export * from './LimoOrderTypeEntity';
4
+ export * from './LimoInstructionEntity';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./LimoOrderEntity"), exports);
18
+ __exportStar(require("./LimoOrderStatusEntity"), exports);
19
+ __exportStar(require("./LimoOrderTypeEntity"), exports);
20
+ __exportStar(require("./LimoInstructionEntity"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/limo/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0DAAwC;AACxC,wDAAsC;AACtC,0DAAwC","sourcesContent":["export * from './LimoOrderEntity';\nexport * from './LimoOrderStatusEntity';\nexport * from './LimoOrderTypeEntity';\nexport * from './LimoInstructionEntity';\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Kamino database models",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
- "version": "8.0.6",
6
+ "version": "8.0.8",
7
7
  "scripts": {
8
8
  "prepublish": "yarn build",
9
9
  "build": "rm -rf dist/; tsc",
@@ -67,6 +67,7 @@ export * from './RecentSlotEntity';
67
67
  export * from './EpochEntity';
68
68
  export * from './StakingYieldEntity';
69
69
  export * from './kvault';
70
+ export * from './limo';
70
71
 
71
72
  export const CLUSTER_TABLE: string = 'cluster';
72
73
  export const DEX_TYPE: string = 'dex_type';
@@ -145,6 +146,10 @@ export const KVAULT_HOLDER_TOTAL_TABLE = 'kvault_holder_total';
145
146
  export const KVAULT_INSTRUCTION_TABLE = 'kvault_instruction';
146
147
  export const KVAULT_STATE_TABLE = 'kvault_state';
147
148
  export const KVAULT_METRICS_TABLE = 'kvault_metrics';
149
+ export const LIMO_ORDER_TABLE = 'limo_order';
150
+ export const LIMO_ORDER_STATUS_TABLE = 'limo_order_status';
151
+ export const LIMO_ORDER_TYPE_TABLE = 'limo_order_type';
152
+ export const LIMO_INSTRUCTION_TABLE = 'limo_instruction';
148
153
 
149
154
  export type RESAMPLE_FREQUENCY = 'hour' | 'day';
150
155
  export const HOURLY_FREQUENCY = 'hour';
@@ -1,8 +1,11 @@
1
1
  export interface KVaultHolderEntity {
2
2
  id: bigint;
3
3
  created_on: Date;
4
+ shares_held: string;
5
+ shares_in_farm: string;
4
6
  shares_amount: string;
5
7
  usd_amount: string;
8
+ sol_amount: string;
6
9
  apy: string;
7
10
  cumulative_interest_earned: string;
8
11
  cumulative_interest_earned_usd: string;
@@ -0,0 +1,24 @@
1
+ export interface LimoInstructionEntity {
2
+ id: bigint;
3
+ initial_in_amount: string;
4
+ remaining_in_amount: string;
5
+ expected_out_amount: string;
6
+ filled_out_amount: string;
7
+ total_filled: string;
8
+ number_of_fills: string;
9
+ order_price_in_out: string;
10
+ order_price_out_in: string;
11
+ execution_price_in_out: string;
12
+ execution_price_out_in: string;
13
+ tip_amount: string;
14
+ network_fee: string;
15
+ sol_price: string;
16
+ updated_on: Date;
17
+ limo_order_id: string;
18
+ in_token_mint_id: number;
19
+ out_token_mint_id: number;
20
+ owner_id: number;
21
+ limo_order_status_id: number;
22
+ limo_order_type_id: number;
23
+ raw_instruction_id: string;
24
+ }
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderEntity {
2
+ id: string;
3
+ pubkey: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderStatusEntity {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface LimoOrderTypeEntity {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export * from './LimoOrderEntity';
2
+ export * from './LimoOrderStatusEntity';
3
+ export * from './LimoOrderTypeEntity';
4
+ export * from './LimoInstructionEntity';