@show-karma/karma-gap-sdk 0.4.19 → 0.4.20

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const attestationGrantDetails = {
4
+ title: "Grant",
5
+ proposalURL: "https://example.com",
6
+ type: "grant-details",
7
+ receivedDate: 1704844800
8
+ };
9
+ const indexerGrantDetails = {
10
+ id: "attestation-id",
11
+ uid: "0x1111111111111111111111111111111111111111111111111111111111111111",
12
+ schemaUID: "0x2222222222222222222222222222222222222222222222222222222222222222",
13
+ refUID: "0x0000000000000000000000000000000000000000000000000000000000000000",
14
+ attester: "0x3333333333333333333333333333333333333333333333333333333333333333",
15
+ recipient: "0x4444444444444444444444444444444444444444444444444444444444444444",
16
+ revoked: false,
17
+ createdAt: new Date().toISOString(),
18
+ updatedAt: new Date().toISOString(),
19
+ chainID: 10,
20
+ type: "GrantDetails",
21
+ decodedDataJson: "{}",
22
+ isOffchain: false,
23
+ revocable: true,
24
+ schemaId: "0x5555555555555555555555555555555555555555555555555555555555555555",
25
+ data: {
26
+ title: "Grant",
27
+ amount: "1000",
28
+ description: "Description",
29
+ proposalURL: "https://example.com",
30
+ payoutAddress: "0x6666666666666666666666666666666666666666666666666666666666666666",
31
+ questions: [],
32
+ type: "grant-details",
33
+ receivedDate: 1704844800
34
+ }
35
+ };
36
+ const attestationReceivedDate = attestationGrantDetails.receivedDate;
37
+ const indexerReceivedDate = indexerGrantDetails.data.receivedDate;
38
+ void attestationReceivedDate;
39
+ void indexerReceivedDate;
@@ -146,7 +146,8 @@ export interface IGrantDetails extends IAttestationResponse {
146
146
  query: string;
147
147
  explanation: string;
148
148
  }[];
149
- startDate: number;
149
+ startDate?: number;
150
+ receivedDate?: number;
150
151
  programId?: string;
151
152
  type: "grant-details";
152
153
  fundUsage?: string;
@@ -48,6 +48,7 @@ export interface IGrantDetails {
48
48
  questions?: IGrantDetailsQuestion[];
49
49
  type?: string;
50
50
  startDate?: number;
51
+ receivedDate?: number;
51
52
  programId?: string;
52
53
  fundUsage?: string;
53
54
  selectedTrackIds?: string[];
@@ -65,6 +66,7 @@ export declare class GrantDetails extends Attestation<IGrantDetails> implements
65
66
  questions?: IGrantDetailsQuestion[];
66
67
  type: string;
67
68
  startDate?: number;
69
+ receivedDate?: number;
68
70
  fundUsage?: string;
69
71
  selectedTrackIds?: string[];
70
72
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.19",
6
+ "version": "0.4.20",
7
7
  "description": "Simple and easy interface between EAS and Karma GAP.",
8
8
  "main": "./index.js",
9
9
  "author": "KarmaHQ",
@@ -14,6 +14,8 @@
14
14
  "type": "git"
15
15
  },
16
16
  "scripts": {
17
+ "build": "tsc -p tsconfig.json",
18
+ "test": "npx tsc -p tsconfig.json --noEmit",
17
19
  "deploy": "npx ts-node ./core/scripts/deploy.ts",
18
20
  "csv-upload": "npx ts-node ./csv-upload/scripts/run.ts",
19
21
  "test-file": "npx ts-node ./test-file-indexer-api.ts",