@show-karma/karma-gap-sdk 0.3.25 → 0.3.26

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.
@@ -246,17 +246,7 @@ class Project extends Attestation_1.Attestation {
246
246
  project.grants = Grant_1.Grant.from(attestation.grants, network);
247
247
  }
248
248
  if (attestation.impacts) {
249
- project.impacts = attestation.impacts.map((pi) => {
250
- const impact = new ProjectImpact_1.ProjectImpact({
251
- ...pi,
252
- data: {
253
- ...pi.data,
254
- },
255
- schema: new AllGapSchemas_1.AllGapSchemas().findSchema('ProjectDetails', consts_1.chainIdToNetwork[attestation.chainID]),
256
- chainID: attestation.chainID,
257
- });
258
- return impact;
259
- });
249
+ project.impacts = ProjectImpact_1.ProjectImpact.from(attestation.impacts, network);
260
250
  }
261
251
  if (attestation.endorsements) {
262
252
  project.endorsements = attestation.endorsements.map((pi) => {
@@ -38,6 +38,6 @@ export declare class ProjectImpact extends Attestation<IProjectImpact> implement
38
38
  * @param reason
39
39
  */
40
40
  verify(signer: SignerOrProvider, reason?: string): Promise<void>;
41
- static from(attestations: _IProjectImpact[], network: TNetwork): ProjectImpact[];
41
+ static from(attestations: ProjectImpact[], network: TNetwork): ProjectImpact[];
42
42
  }
43
43
  export {};
@@ -64,7 +64,7 @@ class ProjectImpact extends Attestation_1.Attestation {
64
64
  }
65
65
  static from(attestations, network) {
66
66
  return attestations.map((attestation) => {
67
- const grantUpdate = new ProjectImpact({
67
+ const projectImpact = new ProjectImpact({
68
68
  ...attestation,
69
69
  data: {
70
70
  ...attestation.data,
@@ -73,7 +73,7 @@ class ProjectImpact extends Attestation_1.Attestation {
73
73
  chainID: attestation.chainID,
74
74
  });
75
75
  if (attestation.verified?.length > 0) {
76
- grantUpdate.verified = attestation.verified.map(m => new ProjectImpactStatus({
76
+ projectImpact.verified = attestation.verified.map(m => new ProjectImpactStatus({
77
77
  ...m,
78
78
  data: {
79
79
  ...m.data,
@@ -82,7 +82,7 @@ class ProjectImpact extends Attestation_1.Attestation {
82
82
  chainID: attestation.chainID,
83
83
  }));
84
84
  }
85
- return grantUpdate;
85
+ return projectImpact;
86
86
  });
87
87
  }
88
88
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.25",
6
+ "version": "0.3.26",
7
7
  "description": "Simple and easy interface between EAS and Karma GAP.",
8
8
  "main": "./index.js",
9
9
  "author": "KarmaHQ",