@glowlabs-org/utils 0.2.162 → 0.2.163

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.
@@ -874,6 +874,84 @@ export interface EfficiencyScoresErrorResponse {
874
874
  error: string;
875
875
  }
876
876
 
877
+ // ----------------------------- Batch Farm Weekly Rewards --------------------
878
+ export interface FarmWeeklyRewardsBatchQuery {
879
+ farmIds: string[]; // Array of farm IDs (max 100)
880
+ startWeek?: number; // Optional: Inclusive starting week (epoch number)
881
+ endWeek?: number; // Optional: Inclusive ending week (epoch number)
882
+ }
883
+
884
+ export interface FarmWeeklyRewardsBatchResult {
885
+ summary: FarmWeeklyRewardsSummary;
886
+ rewards: FarmWeeklyReward[];
887
+ }
888
+
889
+ export interface FarmWeeklyRewardsBatchErrorResult {
890
+ error: string;
891
+ }
892
+
893
+ export interface FarmWeeklyRewardsBatchResponse {
894
+ results: Record<
895
+ string,
896
+ FarmWeeklyRewardsBatchResult | FarmWeeklyRewardsBatchErrorResult
897
+ >;
898
+ }
899
+
900
+ // ----------------------------- Wallet Farm Rewards History ------------------
901
+ export interface WalletFarmReward {
902
+ farmId: string;
903
+ farmName: string;
904
+ expectedWeeklyCarbonCredits: string; // Decimal format
905
+ protocolDepositUSDC6Decimals: string; // 6 decimals
906
+ weekNumber: number;
907
+ walletTotalGlowInflationReward: string; // 18 decimals
908
+ walletTotalProtocolDepositReward: string; // Currency's native decimals
909
+ asset: PaymentCurrency;
910
+ inflationSplitFromLaunchpad: number; // Decimal (e.g., 0.001529 = 0.1529%)
911
+ inflationSplitFromMiningCenter: number;
912
+ depositSplitFromLaunchpad: number;
913
+ depositSplitFromMiningCenter: number;
914
+ walletInflationFromLaunchpad: string; // 18 decimals
915
+ walletProtocolDepositFromLaunchpad: string; // Currency's native decimals
916
+ walletInflationFromMiningCenter: string; // 18 decimals
917
+ walletProtocolDepositFromMiningCenter: string; // Currency's native decimals
918
+ farmTotalInflation: string; // 18 decimals
919
+ farmTotalProtocolDepositReward: string; // Currency's native decimals
920
+ }
921
+
922
+ export interface WalletFarmRewardsHistoryQuery {
923
+ startWeek?: number; // Inclusive lower bound epoch/week
924
+ endWeek?: number; // Inclusive upper bound epoch/week
925
+ }
926
+
927
+ export interface WalletFarmRewardsHistoryResponse {
928
+ walletAddress: string;
929
+ weekRange: {
930
+ startWeek: number;
931
+ endWeek: number;
932
+ };
933
+ farmRewards: WalletFarmReward[];
934
+ }
935
+
936
+ // ----------------------------- Batch Wallet Farm Rewards History ------------
937
+ export interface WalletFarmRewardsHistoryBatchQuery {
938
+ wallets: string[]; // Array of wallet addresses (max 1000)
939
+ startWeek?: number; // Optional: Inclusive starting week (epoch number)
940
+ endWeek?: number; // Optional: Inclusive ending week (epoch number)
941
+ }
942
+
943
+ export interface WalletFarmRewardsHistoryBatchResult {
944
+ weekRange: {
945
+ startWeek: number;
946
+ endWeek: number;
947
+ };
948
+ farmRewards: WalletFarmReward[];
949
+ }
950
+
951
+ export interface WalletFarmRewardsHistoryBatchResponse {
952
+ results: Record<string, WalletFarmRewardsHistoryBatchResult>;
953
+ }
954
+
877
955
  // ---------------------------------------------------------------------------
878
956
  // Barrel exports (convenience)
879
957
  // ---------------------------------------------------------------------------