@gearbox-protocol/sdk 3.0.0-vfour.391 → 3.0.0-vfour.392

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.
@@ -75,7 +75,7 @@ class GearboxRewardsApi {
75
75
  return acc;
76
76
  }, {});
77
77
  const r = currentActiveCampaigns.reduce((acc, campaign) => {
78
- const rewardSource = (campaign.tokens[0]?.address || campaign.identifier).toLowerCase();
78
+ const rewardSource = campaign.identifier.toLowerCase();
79
79
  const allRewards = campaign.aprRecord.breakdowns.map((r2, i) => {
80
80
  const apy = r2.value;
81
81
  const aprCampaign = aprCampaignByAPRId[r2.identifier]?.[0];
@@ -42,7 +42,7 @@ class GearboxRewardsApi {
42
42
  return acc;
43
43
  }, {});
44
44
  const r = currentActiveCampaigns.reduce((acc, campaign) => {
45
- const rewardSource = (campaign.tokens[0]?.address || campaign.identifier).toLowerCase();
45
+ const rewardSource = campaign.identifier.toLowerCase();
46
46
  const allRewards = campaign.aprRecord.breakdowns.map((r2, i) => {
47
47
  const apy = r2.value;
48
48
  const aprCampaign = aprCampaignByAPRId[r2.identifier]?.[0];
@@ -92,6 +92,17 @@ export interface MerklXYZV4Campaign {
92
92
  dailyRewardsRecordid: string;
93
93
  }>;
94
94
  };
95
+ depositUrl: string;
96
+ explorerAddress: Address;
97
+ lastCampaignCreatedAt: string;
98
+ protocol: {
99
+ description: string;
100
+ icon: string;
101
+ id: string;
102
+ name: string;
103
+ tags: Array<string>;
104
+ url: string;
105
+ };
95
106
  }
96
107
  export type MerkleXYZV4CampaignsResponse = Array<MerklXYZV4Campaign>;
97
108
  export interface MerklXYZV4RewardCampaign {
@@ -128,6 +139,15 @@ export interface MerklXYZV4RewardCampaign {
128
139
  error: string;
129
140
  details: string;
130
141
  };
142
+ createdAt: string;
143
+ creator: {
144
+ address: Address;
145
+ creatorId: null;
146
+ tags: Array<string>;
147
+ };
148
+ distributionType: string;
149
+ subType: number;
150
+ type: string;
131
151
  }
132
152
  export type MerkleXYZV4RewardCampaignResponse = Array<MerklXYZV4RewardCampaign>;
133
153
  export declare class MerkleXYZApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.391",
3
+ "version": "3.0.0-vfour.392",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",